diff --git a/.github/workflows/main-build.yml b/.github/workflows/main-build.yml
index b13694950..02825a38a 100644
--- a/.github/workflows/main-build.yml
+++ b/.github/workflows/main-build.yml
@@ -17,8 +17,8 @@ jobs:
# TODO_TECHDEBT: upgrade to the latest Ignite (the latest at the moment of creating a note is 0.28). Need to downgrade to fix CI pipelines. Might be done in scope of #240.
run: |
# curl https://get.ignite.com/cli! | bash
- wget https://github.com/ignite/cli/releases/download/v0.27.2/ignite_0.27.2_linux_amd64.tar.gz
- tar -xzf ignite_0.27.2_linux_amd64.tar.gz
+ wget https://github.com/ignite/cli/releases/download/v28.2.0/ignite_28.2.0_linux_amd64.tar.gz
+ tar -xzf ignite_28.2.0_linux_amd64.tar.gz
sudo mv ignite /usr/local/bin/ignite
ignite version
@@ -29,7 +29,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
- go-version: "1.20.10"
+ go-version: "1.21.6"
- name: Install CI dependencies
run: make install_ci_deps
@@ -103,11 +103,11 @@ jobs:
sparse-checkout: |
.github
- - id: 'auth'
- name: 'Authenticate to Google Cloud'
- uses: 'google-github-actions/auth@v1'
+ - id: "auth"
+ name: "Authenticate to Google Cloud"
+ uses: "google-github-actions/auth@v1"
with:
- credentials_json: '${{ secrets.GKE_PROTOCOL_US_CENTRAL }}'
+ credentials_json: "${{ secrets.GKE_PROTOCOL_US_CENTRAL }}"
- uses: google-github-actions/get-gke-credentials@v1
with:
diff --git a/.github/workflows/reviewdog.yml b/.github/workflows/reviewdog.yml
index 60d5ee2d5..c327b6617 100644
--- a/.github/workflows/reviewdog.yml
+++ b/.github/workflows/reviewdog.yml
@@ -69,3 +69,5 @@ jobs:
reporter: github-check
level: warning
locale: "US"
+
+# TODO_IMPROVE: Enforce using k.Logger() when logging in the `x/` directory code.
\ No newline at end of file
diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml
index b843265b6..ea7f2edd3 100644
--- a/.github/workflows/run-tests.yml
+++ b/.github/workflows/run-tests.yml
@@ -21,8 +21,8 @@ jobs:
# TODO_TECHDEBT: upgrade to the latest Ignite (the latest at the moment of creating a note is 0.28). Need to downgrade to fix CI pipelines. Might be done in scope of #240.
run: |
# curl https://get.ignite.com/cli! | bash
- wget https://github.com/ignite/cli/releases/download/v0.27.2/ignite_0.27.2_linux_amd64.tar.gz
- tar -xzf ignite_0.27.2_linux_amd64.tar.gz
+ wget https://github.com/ignite/cli/releases/download/v28.2.0/ignite_28.2.0_linux_amd64.tar.gz
+ tar -xzf ignite_28.2.0_linux_amd64.tar.gz
sudo mv ignite /usr/local/bin/ignite
ignite version
@@ -33,7 +33,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
- go-version: "1.20.10"
+ go-version: "1.21.6"
- name: Install CI dependencies
run: make install_ci_deps
diff --git a/.gitignore b/.gitignore
index 11d396a32..98d96a18d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -49,10 +49,6 @@ localnet/*/config/*.json
# Frontend utils
ts-client/
-# Proto artifacts
-**/*.pb.go
-**/*.pb.gw.go
-
# Mock
**/*_mock.go
@@ -64,6 +60,10 @@ localnet_config.yaml
# `docusaurus/docs/infrastructure/localnet.md`, please do!
# Ref: https://stackoverflow.com/questions/4247068/sed-command-with-i-option-failing-on-mac-but-works-on-linux
localnet_config.yaml-e
+# These are needed to ignore byproducts of `make proto_fix_self_import`
+# Since sed functions different on macOS and Linux, we need to implement
+# some workarounds by always using "sed -i'' -e" instead of just "sed -i -e".
+api/poktroll/**/*.go-E
# Relase artifacts produced by `ignite chain build --release`
release
diff --git a/.tool-versions b/.tool-versions
index 44c16157f..9b7a6107e 100644
--- a/.tool-versions
+++ b/.tool-versions
@@ -1,4 +1,4 @@
# Run `asdf plugin add golang` and `asdf install` to install the dependencies,
# and `asdf current` to switch to the versions of dependencies listed below
-golang 1.20.10
-go 1.20.10
+golang 1.21.6
+go 1.21.6
diff --git a/Dockerfile.dev b/Dockerfile.dev
index be65919a6..585aefa4d 100644
--- a/Dockerfile.dev
+++ b/Dockerfile.dev
@@ -1,12 +1,12 @@
# This Dockerfile is used to build container image for development purposes.
# It intentionally contains no security features, ships with code and troubleshooting tools.
-FROM golang:1.20 as base
+FROM golang:1.21.6 as base
RUN apt update && \
apt-get install -y \
- ca-certificates net-tools kubernetes-client \
- curl jq make vim less dnsutils
+ ca-certificates net-tools kubernetes-client \
+ curl jq make vim less dnsutils
# enable faster module downloading.
ENV GOPROXY https://proxy.golang.org
diff --git a/Makefile b/Makefile
index c893b6f04..bfa7f0207 100644
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,33 @@ POKTROLLD_HOME ?= ./localnet/poktrolld
POCKET_NODE ?= tcp://127.0.0.1:36657 # The pocket rollup node (full node and sequencer in the localnet context)
APPGATE_SERVER ?= http://localhost:42069
POCKET_ADDR_PREFIX = pokt
+CHAIN_ID = poktroll
+
+# Detect operating system
+OS := $(shell uname -s)
+
+# Set default commands, will potentially be overridden on macOS
+SED := sed
+GREP := grep
+
+# macOS-specific adjustments
+ifeq ($(OS),Darwin)
+ # Check for gsed and ggrep, suggest installation with Homebrew if not found
+ FOUND_GSED := $(shell command -v gsed)
+ FOUND_GGREP := $(shell command -v ggrep)
+ ifeq ($(FOUND_GSED),)
+ $(warning GNU sed (gsed) is not installed. Please install it using Homebrew by running: brew install gnu-sed)
+ SED := gsed # Assuming the user will install it, setting the variable in advance
+ else
+ SED := gsed
+ endif
+ ifeq ($(FOUND_GGREP),)
+ $(warning GNU grep (ggrep) is not installed. Please install it using Homebrew by running: brew install grep)
+ GREP := ggrep # Assuming the user will install it, setting the variable in advance
+ else
+ GREP := ggrep
+ endif
+endif
####################
### Dependencies ###
@@ -17,6 +44,7 @@ install_ci_deps: ## Installs `mockgen` and other go tools
go install "github.com/golang/mock/mockgen@v1.6.0" && mockgen --version
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.53.3 && golangci-lint --version
go install golang.org/x/tools/cmd/goimports@latest
+ go install github.com/mikefarah/yq/v4@latest
########################
### Makefile Helpers ###
@@ -51,11 +79,20 @@ check_go_version:
MAJOR_VERSION=$$(echo $$GO_VERSION | cut -d "." -f 1) && \
MINOR_VERSION=$$(echo $$GO_VERSION | cut -d "." -f 2) && \
\
- if [ "$$MAJOR_VERSION" -ne 1 ] || [ "$$MINOR_VERSION" -ge 21 ] || [ "$$MINOR_VERSION" -le 18 ] ; then \
- echo "Invalid Go version. Expected 1.19.x or 1.20.x but found $$GO_VERSION"; \
+ if [ "$$MAJOR_VERSION" -ne 1 ] || [ "$$MINOR_VERSION" -le 20 ] ; then \
+ echo "Invalid Go version. Expected 1.21.x or newer but found $$GO_VERSION"; \
exit 1; \
fi
+.PHONY: check_ignite_version
+# Internal helper target - check ignite version
+check_ignite_version:
+ @version=$$(ignite version 2>/dev/null | grep 'Ignite CLI version:' | awk '{print $$4}') ; \
+ if [ "$$(printf "v28\n$$version" | sort -V | head -n1)" != "v28" ]; then \
+ echo "Error: Version $$version is less than v28. Exiting with error." ; \
+ exit 1 ; \
+ fi
+
.PHONY: check_act
# Internal helper target - check if `act` is installed
check_act:
@@ -76,7 +113,6 @@ check_gh:
fi; \
}
-
.PHONY: check_docker
# Internal helper target - check if docker is installed
check_docker:
@@ -117,6 +153,15 @@ check_jq:
fi; \
}
+.PHONY: check_yq
+# Internal helper target - check if `yq` is installed
+check_yq:
+ { \
+ if ( ! ( command -v yq >/dev/null )); then \
+ echo "Seems like you don't have `yq` installed. Make sure you install it before continuing"; \
+ exit 1; \
+ fi; \
+ }
.PHONY: check_node
# Internal helper target - check if node is installed
@@ -137,11 +182,37 @@ warn_destructive: ## Print WARNING to the user
### Proto Helpers ####
#######################
-.PHONY: proto_regen
-proto_regen: ## Delete existing protobuf artifacts and regenerate them
- find . \( -name "*.pb.go" -o -name "*.pb.gw.go" \) | xargs --no-run-if-empty rm
+.PHONY: proto_ignite_gen
+proto_ignite_gen: ## Generate protobuf artifacts using ignite
ignite generate proto-go --yes
+.PHONY: proto_fix_self_import
+proto_fix_self_import: ## TODO_TECHDEBT(@bryanchriswhite): Add a proper explanation for this make target explaining why it's necessary
+ @for dir in $(wildcard ./api/poktroll/*/); do \
+ module=$$(basename $$dir); \
+ echo "Processing module $$module"; \
+ $(GREP) -lRP '\s+'$$module' "github.com/pokt-network/poktroll/api/poktroll/'$$module'"' ./api/poktroll/$$module | while read -r file; do \
+ echo "Modifying file: $$file"; \
+ $(SED) -i -E 's,^[[:space:]]+'$$module'[[:space:]]+"github.com/pokt-network/poktroll/api/poktroll/'$$module'",,' "$$file"; \
+ $(SED) -i 's,'$$module'\.,,g' "$$file"; \
+ done; \
+ done
+
+.PHONY: proto_clean
+proto_clean: ## Delete existing .pb.go or .pb.gw.go files
+ find . \( -name "*.pb.go" -o -name "*.pb.gw.go" \) | xargs --no-run-if-empty rm
+
+## TODO_TECHDEBT(@bryanchriswhite): Investigate if / how this can be integrated with `proto_regen`
+.PHONY: proto_clean_pulsar
+proto_clean_pulsar: ## TODO_TECHDEBT(@bryanchriswhite): Add a proper explanation for this make target explaining why it's necessary
+ @find ./ -name "*.go" | xargs --no-run-if-empty $(SED) -i -E 's,(^[[:space:]_[:alnum:]]+"github.com/pokt-network/poktroll/api.+"),///\1,'
+ find ./ -name "*.pulsar.go" | xargs --no-run-if-empty rm
+ $(MAKE) proto_regen
+ find ./ -name "*.go" | xargs --no-run-if-empty $(SED) -i -E 's,^///([[:space:]_[:alnum:]]+"github.com/pokt-network/poktroll/api.+"),\1,'
+
+.PHONY: proto_regen
+proto_regen: proto_clean proto_ignite_gen proto_fix_self_import ## Regenerate protobuf artifacts
+
#######################
### Docker Helpers ###
#######################
@@ -158,23 +229,38 @@ docker_wipe: check_docker warn_destructive prompt_user ## [WARNING] Remove all t
########################
.PHONY: localnet_up
-localnet_up: ## Starts localnet
- make localnet_regenesis
+localnet_up: proto_regen localnet_regenesis## Starts localnet
tilt up
.PHONY: localnet_down
localnet_down: ## Delete resources created by localnet
tilt down
- kubectl delete secret celestia-secret || exit 1
.PHONY: localnet_regenesis
-localnet_regenesis: acc_initialize_pubkeys_warn_message ## Regenerate the localnet genesis file
+localnet_regenesis: check_yq acc_initialize_pubkeys_warn_message ## Regenerate the localnet genesis file
# NOTE: intentionally not using --home
flag to avoid overwriting the test keyring
- ignite chain init
- mkdir -p $(POKTROLLD_HOME)/config/
- cp -r ${HOME}/.poktroll/keyring-test $(POKTROLLD_HOME)
- cp ${HOME}/.poktroll/config/*_key.json $(POKTROLLD_HOME)/config/
- cp ${HOME}/.poktroll/config/genesis.json $(POKTROLLD_HOME)/config/
+# TODO_TECHDEBT: Currently the stake => power calculation is constant; however, cosmos-sdk
+# intends to make this parameterizable in the future.
+ @echo "Initializing chain..."
+ @set -e ;\
+ ignite chain init --skip-proto ;\
+ mkdir -p $(POKTROLLD_HOME)/config/ ;\
+ cp -r ${HOME}/.poktroll/keyring-test $(POKTROLLD_HOME) ;\
+ cp ${HOME}/.poktroll/config/*_key.json $(POKTROLLD_HOME)/config/ ;\
+ ADDRESS=$$(jq -r '.address' $(POKTROLLD_HOME)/config/priv_validator_key.json) ;\
+ PUB_KEY=$$(jq -r '.pub_key' $(POKTROLLD_HOME)/config/priv_validator_key.json) ;\
+ POWER=$$(yq -r ".validators[0].bonded" ./config.yml | sed 's,000000upokt,,') ;\
+ NAME=$$(yq -r ".validators[0].name" ./config.yml) ;\
+ echo "Regenerating genesis file with new validator..." ;\
+ jq --argjson pubKey "$$PUB_KEY" '.consensus["validators"]=[{"address": "'$$ADDRESS'", "pub_key": $$pubKey, "power": "'$$POWER'", "name": "'$$NAME'"}]' ${HOME}/.poktroll/config/genesis.json > temp.json ;\
+ mv temp.json ${HOME}/.poktroll/config/genesis.json ;\
+ cp ${HOME}/.poktroll/config/genesis.json $(POKTROLLD_HOME)/config/ ;\
+
+.PHONY: send_relay
+send_relay:
+ curl -X POST -H "Content-Type: application/json" \
+ --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' \
+ http://localhost:42069/anvil
# TODO_BLOCKER(@okdas): Figure out how to copy these over w/ a functional state.
# cp ${HOME}/.poktroll/config/app.toml $(POKTROLLD_HOME)/config/app.toml
@@ -231,6 +317,7 @@ go_mockgen: ## Use `mockgen` to generate mocks used for testing purposes of all
go generate ./x/supplier/types/
go generate ./x/session/types/
go generate ./x/service/types/
+ go generate ./x/proof/types/
go generate ./x/tokenomics/types/
go generate ./pkg/client/interface.go
go generate ./pkg/miner/interface.go
@@ -246,13 +333,13 @@ go_testgen_accounts: ## Generate test accounts for usage in test environments
go generate ./testutil/testkeyring/keyring.go
.PHONY: go_develop
-go_develop: proto_regen go_mockgen ## Generate protos and mocks
+go_develop: check_ignite_version proto_regen go_mockgen ## Generate protos and mocks
.PHONY: go_develop_and_test
go_develop_and_test: go_develop go_test ## Generate protos, mocks and run all tests
.PHONY: load_test_simple
-load_test_simple: ## Runs the simpliest load test through the whole stack (appgate -> relayminer -> anvil)
+load_test_simple: ## Runs the simplest load test through the whole stack (appgate -> relayminer -> anvil)
k6 run load-testing/tests/appGateServerEtherium.js
#############
@@ -317,7 +404,7 @@ gateway_list: ## List all the staked gateways
.PHONY: gateway_stake
gateway_stake: ## Stake tokens for the gateway specified (must specify the gateway env var)
- poktrolld --home=$(POKTROLLD_HOME) tx gateway stake-gateway --config $(POKTROLLD_HOME)/config/$(STAKE) --keyring-backend test --from $(GATEWAY) --node $(POCKET_NODE)
+ poktrolld --home=$(POKTROLLD_HOME) tx gateway stake-gateway --config $(POKTROLLD_HOME)/config/$(STAKE) --keyring-backend test --from $(GATEWAY) --node $(POCKET_NODE) --chain-id $(CHAIN_ID)
.PHONY: gateway1_stake
gateway1_stake: ## Stake gateway1
@@ -333,7 +420,7 @@ gateway3_stake: ## Stake gateway3
.PHONY: gateway_unstake
gateway_unstake: ## Unstake an gateway (must specify the GATEWAY env var)
- poktrolld --home=$(POKTROLLD_HOME) tx gateway unstake-gateway --keyring-backend test --from $(GATEWAY) --node $(POCKET_NODE)
+ poktrolld --home=$(POKTROLLD_HOME) tx gateway unstake-gateway --keyring-backend test --from $(GATEWAY) --node $(POCKET_NODE) --chain-id $(CHAIN_ID)
.PHONY: gateway1_unstake
gateway1_unstake: ## Unstake gateway1
@@ -357,7 +444,7 @@ app_list: ## List all the staked applications
.PHONY: app_stake
app_stake: ## Stake tokens for the application specified (must specify the APP and SERVICES env vars)
- poktrolld --home=$(POKTROLLD_HOME) tx application stake-application --config $(POKTROLLD_HOME)/config/$(SERVICES) --keyring-backend test --from $(APP) --node $(POCKET_NODE)
+ poktrolld --home=$(POKTROLLD_HOME) tx application stake-application --config $(POKTROLLD_HOME)/config/$(SERVICES) --keyring-backend test --from $(APP) --node $(POCKET_NODE) --chain-id $(CHAIN_ID)
.PHONY: app1_stake
app1_stake: ## Stake app1 (also staked in genesis)
@@ -373,7 +460,7 @@ app3_stake: ## Stake app3
.PHONY: app_unstake
app_unstake: ## Unstake an application (must specify the APP env var)
- poktrolld --home=$(POKTROLLD_HOME) tx application unstake-application --keyring-backend test --from $(APP) --node $(POCKET_NODE)
+ poktrolld --home=$(POKTROLLD_HOME) tx application unstake-application --keyring-backend test --from $(APP) --node $(POCKET_NODE) --chain-id $(CHAIN_ID)
.PHONY: app1_unstake
app1_unstake: ## Unstake app1
@@ -389,7 +476,7 @@ app3_unstake: ## Unstake app3
.PHONY: app_delegate
app_delegate: ## Delegate trust to a gateway (must specify the APP and GATEWAY_ADDR env vars). Requires the app to be staked
- poktrolld --home=$(POKTROLLD_HOME) tx application delegate-to-gateway $(GATEWAY_ADDR) --keyring-backend test --from $(APP) --node $(POCKET_NODE)
+ poktrolld --home=$(POKTROLLD_HOME) tx application delegate-to-gateway $(GATEWAY_ADDR) --keyring-backend test --from $(APP) --node $(POCKET_NODE) --chain-id $(CHAIN_ID)
.PHONY: app1_delegate_gateway1
app1_delegate_gateway1: ## Delegate trust to gateway1
@@ -408,7 +495,7 @@ app3_delegate_gateway3: ## Delegate trust to gateway3
.PHONY: app_undelegate
app_undelegate: ## Undelegate trust to a gateway (must specify the APP and GATEWAY_ADDR env vars). Requires the app to be staked
- poktrolld --home=$(POKTROLLD_HOME) tx application undelegate-from-gateway $(GATEWAY_ADDR) --keyring-backend test --from $(APP) --node $(POCKET_NODE)
+ poktrolld --home=$(POKTROLLD_HOME) tx application undelegate-from-gateway $(GATEWAY_ADDR) --keyring-backend test --from $(APP) --node $(POCKET_NODE) --chain-id $(CHAIN_ID)
.PHONY: app1_undelegate_gateway1
app1_undelegate_gateway1: ## Undelegate trust to gateway1
@@ -435,7 +522,7 @@ supplier_list: ## List all the staked supplier
.PHONY: supplier_stake
supplier_stake: ## Stake tokens for the supplier specified (must specify the SUPPLIER and SUPPLIER_CONFIG env vars)
- poktrolld --home=$(POKTROLLD_HOME) tx supplier stake-supplier --config $(POKTROLLD_HOME)/config/$(SERVICES) --keyring-backend test --from $(SUPPLIER) --node $(POCKET_NODE)
+ poktrolld --home=$(POKTROLLD_HOME) tx supplier stake-supplier --config $(POKTROLLD_HOME)/config/$(SERVICES) --keyring-backend test --from $(SUPPLIER) --node $(POCKET_NODE) --chain-id $(CHAIN_ID)
.PHONY: supplier1_stake
supplier1_stake: ## Stake supplier1 (also staked in genesis)
@@ -451,7 +538,7 @@ supplier3_stake: ## Stake supplier3
.PHONY: supplier_unstake
supplier_unstake: ## Unstake an supplier (must specify the SUPPLIER env var)
- poktrolld --home=$(POKTROLLD_HOME) tx supplier unstake-supplier --keyring-backend test --from $(SUPPLIER) --node $(POCKET_NODE)
+ poktrolld --home=$(POKTROLLD_HOME) tx supplier unstake-supplier --keyring-backend test --from $(SUPPLIER) --node $(POCKET_NODE) --chain-id $(CHAIN_ID)
.PHONY: supplier1_unstake
supplier1_unstake: ## Unstake supplier1
@@ -525,7 +612,8 @@ acc_balance_total_supply: ## Query the total supply of the network
# transaction for its public key to be populated in the account keeper. As such,
# the solution is to send funds from every account in genesis to some address
# (PNF was selected ambigously) to make sure their public keys are populated.
-
+# TODO_TECHDEBT: One of the accounts involved in this command always errors
+# so we need to understand why and fix it.
.PHONY: acc_initialize_pubkeys
acc_initialize_pubkeys: ## Make sure the account keeper has public keys for all available accounts
$(eval ADDRESSES=$(shell make -s ignite_acc_list | grep pokt | awk '{printf "%s ", $$2}' | sed 's/.$$//'))
@@ -537,11 +625,12 @@ acc_initialize_pubkeys: ## Make sure the account keeper has public keys for all
$(addr) $(PNF_ADDR) 1000upokt \
--yes \
--home=$(POKTROLLD_HOME) \
- --node $(POCKET_NODE);)
+ --node $(POCKET_NODE) \
+ --chain-id $(CHAIN_ID);)
.PHONY: acc_initialize_pubkeys_warn_message
acc_initialize_pubkeys_warn_message: ## Print a warning message about the need to run `make acc_initialize_pubkeys`
- @printf "!!! YOU MUST RUN THE FOLLOWING COMMAND ONCE FOR E2E TESTS TO WORK AFTER THE NETWORK HAS STARTED!!!\n"\
+ @printf "!!!!!!!!! YOU MUST RUN THE FOLLOWING COMMAND ONCE FOR E2E TESTS TO WORK AFTER THE NETWORK HAS STARTED !!!!!!!!!\n"\
"\t\tmake acc_initialize_pubkeys\n"
##############
@@ -592,7 +681,7 @@ MODULES := application gateway pocket service session supplier tokenomics
# TODO_IMPROVE(#322): Improve once we decide how to handle parameter updates
.PHONY: update_tokenomics_params
update_tokenomics_params: ## Update the tokenomics module params
- poktrolld --home=$(POKTROLLD_HOME) tx tokenomics update-params 43 --keyring-backend test --from pnf --node $(POCKET_NODE)
+ poktrolld --home=$(POKTROLLD_HOME) tx tokenomics update-params 43 --keyring-backend test --from pnf --node $(POCKET_NODE) --chain-id $(CHAIN_ID)
.PHONY: query_all_params
query_all_params: check_jq ## Query the params from all available modules
diff --git a/Tiltfile b/Tiltfile
index 6a7e88649..bd8fcaf7a 100644
--- a/Tiltfile
+++ b/Tiltfile
@@ -72,7 +72,7 @@ k8s_yaml(
# Hot reload protobuf changes
local_resource(
"hot-reload: generate protobufs",
- "ignite generate proto-go -y",
+ "make proto_regen",
deps=["proto"],
labels=["hot-reloading"],
)
@@ -97,7 +97,7 @@ local_resource(
docker_build_with_restart(
"poktrolld",
".",
- dockerfile_contents="""FROM golang:1.20.8
+ dockerfile_contents="""FROM golang:1.21.6
RUN apt-get -q update && apt-get install -qyy curl jq less
RUN go install github.com/go-delve/delve/cmd/dlv@latest
COPY bin/poktrolld /usr/local/bin/poktrolld
diff --git a/api/poktroll/application/application.pulsar.go b/api/poktroll/application/application.pulsar.go
new file mode 100644
index 000000000..24ca85c5c
--- /dev/null
+++ b/api/poktroll/application/application.pulsar.go
@@ -0,0 +1,966 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package application
+
+import (
+ v1beta1 "cosmossdk.io/api/cosmos/base/v1beta1"
+ fmt "fmt"
+ _ "github.com/cosmos/cosmos-proto"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ _ "github.com/cosmos/gogoproto/gogoproto"
+ shared "github.com/pokt-network/poktroll/api/poktroll/shared"
+ 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 = (*_Application_3_list)(nil)
+
+type _Application_3_list struct {
+ list *[]*shared.ApplicationServiceConfig
+}
+
+func (x *_Application_3_list) Len() int {
+ if x.list == nil {
+ return 0
+ }
+ return len(*x.list)
+}
+
+func (x *_Application_3_list) Get(i int) protoreflect.Value {
+ return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
+}
+
+func (x *_Application_3_list) Set(i int, value protoreflect.Value) {
+ valueUnwrapped := value.Message()
+ concreteValue := valueUnwrapped.Interface().(*shared.ApplicationServiceConfig)
+ (*x.list)[i] = concreteValue
+}
+
+func (x *_Application_3_list) Append(value protoreflect.Value) {
+ valueUnwrapped := value.Message()
+ concreteValue := valueUnwrapped.Interface().(*shared.ApplicationServiceConfig)
+ *x.list = append(*x.list, concreteValue)
+}
+
+func (x *_Application_3_list) AppendMutable() protoreflect.Value {
+ v := new(shared.ApplicationServiceConfig)
+ *x.list = append(*x.list, v)
+ return protoreflect.ValueOfMessage(v.ProtoReflect())
+}
+
+func (x *_Application_3_list) Truncate(n int) {
+ for i := n; i < len(*x.list); i++ {
+ (*x.list)[i] = nil
+ }
+ *x.list = (*x.list)[:n]
+}
+
+func (x *_Application_3_list) NewElement() protoreflect.Value {
+ v := new(shared.ApplicationServiceConfig)
+ return protoreflect.ValueOfMessage(v.ProtoReflect())
+}
+
+func (x *_Application_3_list) IsValid() bool {
+ return x.list != nil
+}
+
+var _ protoreflect.List = (*_Application_4_list)(nil)
+
+type _Application_4_list struct {
+ list *[]string
+}
+
+func (x *_Application_4_list) Len() int {
+ if x.list == nil {
+ return 0
+ }
+ return len(*x.list)
+}
+
+func (x *_Application_4_list) Get(i int) protoreflect.Value {
+ return protoreflect.ValueOfString((*x.list)[i])
+}
+
+func (x *_Application_4_list) Set(i int, value protoreflect.Value) {
+ valueUnwrapped := value.String()
+ concreteValue := valueUnwrapped
+ (*x.list)[i] = concreteValue
+}
+
+func (x *_Application_4_list) Append(value protoreflect.Value) {
+ valueUnwrapped := value.String()
+ concreteValue := valueUnwrapped
+ *x.list = append(*x.list, concreteValue)
+}
+
+func (x *_Application_4_list) AppendMutable() protoreflect.Value {
+ panic(fmt.Errorf("AppendMutable can not be called on message Application at list field DelegateeGatewayAddresses as it is not of Message kind"))
+}
+
+func (x *_Application_4_list) Truncate(n int) {
+ *x.list = (*x.list)[:n]
+}
+
+func (x *_Application_4_list) NewElement() protoreflect.Value {
+ v := ""
+ return protoreflect.ValueOfString(v)
+}
+
+func (x *_Application_4_list) IsValid() bool {
+ return x.list != nil
+}
+
+var (
+ md_Application protoreflect.MessageDescriptor
+ fd_Application_address protoreflect.FieldDescriptor
+ fd_Application_stake protoreflect.FieldDescriptor
+ fd_Application_service_configs protoreflect.FieldDescriptor
+ fd_Application_delegatee_gateway_addresses protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_application_application_proto_init()
+ md_Application = File_poktroll_application_application_proto.Messages().ByName("Application")
+ fd_Application_address = md_Application.Fields().ByName("address")
+ fd_Application_stake = md_Application.Fields().ByName("stake")
+ fd_Application_service_configs = md_Application.Fields().ByName("service_configs")
+ fd_Application_delegatee_gateway_addresses = md_Application.Fields().ByName("delegatee_gateway_addresses")
+}
+
+var _ protoreflect.Message = (*fastReflection_Application)(nil)
+
+type fastReflection_Application Application
+
+func (x *Application) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_Application)(x)
+}
+
+func (x *Application) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_application_application_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_Application_messageType fastReflection_Application_messageType
+var _ protoreflect.MessageType = fastReflection_Application_messageType{}
+
+type fastReflection_Application_messageType struct{}
+
+func (x fastReflection_Application_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_Application)(nil)
+}
+func (x fastReflection_Application_messageType) New() protoreflect.Message {
+ return new(fastReflection_Application)
+}
+func (x fastReflection_Application_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_Application
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_Application) Descriptor() protoreflect.MessageDescriptor {
+ return md_Application
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_Application) Type() protoreflect.MessageType {
+ return _fastReflection_Application_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_Application) New() protoreflect.Message {
+ return new(fastReflection_Application)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_Application) Interface() protoreflect.ProtoMessage {
+ return (*Application)(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_Application) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Address != "" {
+ value := protoreflect.ValueOfString(x.Address)
+ if !f(fd_Application_address, value) {
+ return
+ }
+ }
+ if x.Stake != nil {
+ value := protoreflect.ValueOfMessage(x.Stake.ProtoReflect())
+ if !f(fd_Application_stake, value) {
+ return
+ }
+ }
+ if len(x.ServiceConfigs) != 0 {
+ value := protoreflect.ValueOfList(&_Application_3_list{list: &x.ServiceConfigs})
+ if !f(fd_Application_service_configs, value) {
+ return
+ }
+ }
+ if len(x.DelegateeGatewayAddresses) != 0 {
+ value := protoreflect.ValueOfList(&_Application_4_list{list: &x.DelegateeGatewayAddresses})
+ if !f(fd_Application_delegatee_gateway_addresses, 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_Application) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.application.Application.address":
+ return x.Address != ""
+ case "poktroll.application.Application.stake":
+ return x.Stake != nil
+ case "poktroll.application.Application.service_configs":
+ return len(x.ServiceConfigs) != 0
+ case "poktroll.application.Application.delegatee_gateway_addresses":
+ return len(x.DelegateeGatewayAddresses) != 0
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.Application"))
+ }
+ panic(fmt.Errorf("message poktroll.application.Application 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_Application) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.application.Application.address":
+ x.Address = ""
+ case "poktroll.application.Application.stake":
+ x.Stake = nil
+ case "poktroll.application.Application.service_configs":
+ x.ServiceConfigs = nil
+ case "poktroll.application.Application.delegatee_gateway_addresses":
+ x.DelegateeGatewayAddresses = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.Application"))
+ }
+ panic(fmt.Errorf("message poktroll.application.Application 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_Application) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.application.Application.address":
+ value := x.Address
+ return protoreflect.ValueOfString(value)
+ case "poktroll.application.Application.stake":
+ value := x.Stake
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ case "poktroll.application.Application.service_configs":
+ if len(x.ServiceConfigs) == 0 {
+ return protoreflect.ValueOfList(&_Application_3_list{})
+ }
+ listValue := &_Application_3_list{list: &x.ServiceConfigs}
+ return protoreflect.ValueOfList(listValue)
+ case "poktroll.application.Application.delegatee_gateway_addresses":
+ if len(x.DelegateeGatewayAddresses) == 0 {
+ return protoreflect.ValueOfList(&_Application_4_list{})
+ }
+ listValue := &_Application_4_list{list: &x.DelegateeGatewayAddresses}
+ return protoreflect.ValueOfList(listValue)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.Application"))
+ }
+ panic(fmt.Errorf("message poktroll.application.Application 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_Application) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.application.Application.address":
+ x.Address = value.Interface().(string)
+ case "poktroll.application.Application.stake":
+ x.Stake = value.Message().Interface().(*v1beta1.Coin)
+ case "poktroll.application.Application.service_configs":
+ lv := value.List()
+ clv := lv.(*_Application_3_list)
+ x.ServiceConfigs = *clv.list
+ case "poktroll.application.Application.delegatee_gateway_addresses":
+ lv := value.List()
+ clv := lv.(*_Application_4_list)
+ x.DelegateeGatewayAddresses = *clv.list
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.Application"))
+ }
+ panic(fmt.Errorf("message poktroll.application.Application 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_Application) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.application.Application.stake":
+ if x.Stake == nil {
+ x.Stake = new(v1beta1.Coin)
+ }
+ return protoreflect.ValueOfMessage(x.Stake.ProtoReflect())
+ case "poktroll.application.Application.service_configs":
+ if x.ServiceConfigs == nil {
+ x.ServiceConfigs = []*shared.ApplicationServiceConfig{}
+ }
+ value := &_Application_3_list{list: &x.ServiceConfigs}
+ return protoreflect.ValueOfList(value)
+ case "poktroll.application.Application.delegatee_gateway_addresses":
+ if x.DelegateeGatewayAddresses == nil {
+ x.DelegateeGatewayAddresses = []string{}
+ }
+ value := &_Application_4_list{list: &x.DelegateeGatewayAddresses}
+ return protoreflect.ValueOfList(value)
+ case "poktroll.application.Application.address":
+ panic(fmt.Errorf("field address of message poktroll.application.Application is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.Application"))
+ }
+ panic(fmt.Errorf("message poktroll.application.Application does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_Application) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.application.Application.address":
+ return protoreflect.ValueOfString("")
+ case "poktroll.application.Application.stake":
+ m := new(v1beta1.Coin)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ case "poktroll.application.Application.service_configs":
+ list := []*shared.ApplicationServiceConfig{}
+ return protoreflect.ValueOfList(&_Application_3_list{list: &list})
+ case "poktroll.application.Application.delegatee_gateway_addresses":
+ list := []string{}
+ return protoreflect.ValueOfList(&_Application_4_list{list: &list})
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.Application"))
+ }
+ panic(fmt.Errorf("message poktroll.application.Application does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_Application) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.application.Application", 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_Application) 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_Application) 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_Application) 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_Application) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*Application)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Address)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.Stake != nil {
+ l = options.Size(x.Stake)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if len(x.ServiceConfigs) > 0 {
+ for _, e := range x.ServiceConfigs {
+ l = options.Size(e)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ }
+ if len(x.DelegateeGatewayAddresses) > 0 {
+ for _, s := range x.DelegateeGatewayAddresses {
+ 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().(*Application)
+ 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.DelegateeGatewayAddresses) > 0 {
+ for iNdEx := len(x.DelegateeGatewayAddresses) - 1; iNdEx >= 0; iNdEx-- {
+ i -= len(x.DelegateeGatewayAddresses[iNdEx])
+ copy(dAtA[i:], x.DelegateeGatewayAddresses[iNdEx])
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DelegateeGatewayAddresses[iNdEx])))
+ i--
+ dAtA[i] = 0x22
+ }
+ }
+ if len(x.ServiceConfigs) > 0 {
+ for iNdEx := len(x.ServiceConfigs) - 1; iNdEx >= 0; iNdEx-- {
+ encoded, err := options.Marshal(x.ServiceConfigs[iNdEx])
+ if err != nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, err
+ }
+ i -= len(encoded)
+ copy(dAtA[i:], encoded)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
+ i--
+ dAtA[i] = 0x1a
+ }
+ }
+ if x.Stake != nil {
+ encoded, err := options.Marshal(x.Stake)
+ if err != nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, err
+ }
+ i -= len(encoded)
+ copy(dAtA[i:], encoded)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if len(x.Address) > 0 {
+ i -= len(x.Address)
+ copy(dAtA[i:], x.Address)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address)))
+ i--
+ dAtA[i] = 0xa
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*Application)
+ 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: Application: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Application: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Address = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Stake", 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.Stake == nil {
+ x.Stake = &v1beta1.Coin{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Stake); 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 ServiceConfigs", 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.ServiceConfigs = append(x.ServiceConfigs, &shared.ApplicationServiceConfig{})
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ServiceConfigs[len(x.ServiceConfigs)-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 DelegateeGatewayAddresses", 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.DelegateeGatewayAddresses = append(x.DelegateeGatewayAddresses, string(dAtA[iNdEx:postIndex]))
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.27.0
+// protoc (unknown)
+// source: poktroll/application/application.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)
+)
+
+// Application defines the type used to store an on-chain definition and state for an application
+type Application struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // The Bech32 address of the application using cosmos' ScalarDescriptor to ensure deterministic encoding
+ Stake *v1beta1.Coin `protobuf:"bytes,2,opt,name=stake,proto3" json:"stake,omitempty"` // The total amount of uPOKT the application has staked
+ ServiceConfigs []*shared.ApplicationServiceConfig `protobuf:"bytes,3,rep,name=service_configs,json=serviceConfigs,proto3" json:"service_configs,omitempty"` // The list of services this appliccation is configured to request service for
+ DelegateeGatewayAddresses []string `protobuf:"bytes,4,rep,name=delegatee_gateway_addresses,json=delegateeGatewayAddresses,proto3" json:"delegatee_gateway_addresses,omitempty"` // The Bech32 encoded addresses for all delegatee Gateways, in a non-nullable slice
+}
+
+func (x *Application) Reset() {
+ *x = Application{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_application_application_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *Application) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*Application) ProtoMessage() {}
+
+// Deprecated: Use Application.ProtoReflect.Descriptor instead.
+func (*Application) Descriptor() ([]byte, []int) {
+ return file_poktroll_application_application_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *Application) GetAddress() string {
+ if x != nil {
+ return x.Address
+ }
+ return ""
+}
+
+func (x *Application) GetStake() *v1beta1.Coin {
+ if x != nil {
+ return x.Stake
+ }
+ return nil
+}
+
+func (x *Application) GetServiceConfigs() []*shared.ApplicationServiceConfig {
+ if x != nil {
+ return x.ServiceConfigs
+ }
+ return nil
+}
+
+func (x *Application) GetDelegateeGatewayAddresses() []string {
+ if x != nil {
+ return x.DelegateeGatewayAddresses
+ }
+ return nil
+}
+
+var File_poktroll_application_application_proto protoreflect.FileDescriptor
+
+var file_poktroll_application_application_proto_rawDesc = []byte{
+ 0x0a, 0x26, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x61, 0x70, 0x70, 0x6c, 0x69,
+ 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69,
+ 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f,
+ 0x6c, 0x6c, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x14,
+ 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70,
+ 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73,
+ 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x63, 0x6f, 0x69, 0x6e, 0x2e, 0x70,
+ 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f,
+ 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
+ 0x1d, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64,
+ 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa4,
+ 0x02, 0x0a, 0x0b, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x32,
+ 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42,
+ 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72,
+ 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65,
+ 0x73, 0x73, 0x12, 0x2f, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
+ 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e,
+ 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x52, 0x05, 0x73, 0x74,
+ 0x61, 0x6b, 0x65, 0x12, 0x52, 0x0a, 0x0f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x63,
+ 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x70,
+ 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x41,
+ 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63,
+ 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
+ 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x12, 0x5c, 0x0a, 0x1b, 0x64, 0x65, 0x6c, 0x65, 0x67,
+ 0x61, 0x74, 0x65, 0x65, 0x5f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x5f, 0x61, 0x64, 0x64,
+ 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x42, 0x1c, 0xc8, 0xde,
+ 0x1f, 0x00, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64,
+ 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x19, 0x64, 0x65, 0x6c, 0x65,
+ 0x67, 0x61, 0x74, 0x65, 0x65, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x41, 0x64, 0x64, 0x72,
+ 0x65, 0x73, 0x73, 0x65, 0x73, 0x42, 0xc4, 0x01, 0x0a, 0x18, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x6f,
+ 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69,
+ 0x6f, 0x6e, 0x42, 0x10, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50,
+ 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x25, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64,
+ 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c,
+ 0x6c, 0x2f, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0xa2, 0x02, 0x03,
+ 0x50, 0x41, 0x58, 0xaa, 0x02, 0x14, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x41,
+ 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0xca, 0x02, 0x14, 0x50, 0x6f, 0x6b,
+ 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f,
+ 0x6e, 0xe2, 0x02, 0x20, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x41, 0x70, 0x70,
+ 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61,
+ 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x15, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x3a,
+ 0x3a, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72,
+ 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_poktroll_application_application_proto_rawDescOnce sync.Once
+ file_poktroll_application_application_proto_rawDescData = file_poktroll_application_application_proto_rawDesc
+)
+
+func file_poktroll_application_application_proto_rawDescGZIP() []byte {
+ file_poktroll_application_application_proto_rawDescOnce.Do(func() {
+ file_poktroll_application_application_proto_rawDescData = protoimpl.X.CompressGZIP(file_poktroll_application_application_proto_rawDescData)
+ })
+ return file_poktroll_application_application_proto_rawDescData
+}
+
+var file_poktroll_application_application_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
+var file_poktroll_application_application_proto_goTypes = []interface{}{
+ (*Application)(nil), // 0: poktroll.application.Application
+ (*v1beta1.Coin)(nil), // 1: cosmos.base.v1beta1.Coin
+ (*shared.ApplicationServiceConfig)(nil), // 2: poktroll.shared.ApplicationServiceConfig
+}
+var file_poktroll_application_application_proto_depIdxs = []int32{
+ 1, // 0: poktroll.application.Application.stake:type_name -> cosmos.base.v1beta1.Coin
+ 2, // 1: poktroll.application.Application.service_configs:type_name -> poktroll.shared.ApplicationServiceConfig
+ 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_poktroll_application_application_proto_init() }
+func file_poktroll_application_application_proto_init() {
+ if File_poktroll_application_application_proto != nil {
+ return
+ }
+ if !protoimpl.UnsafeEnabled {
+ file_poktroll_application_application_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*Application); 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_poktroll_application_application_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 1,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_poktroll_application_application_proto_goTypes,
+ DependencyIndexes: file_poktroll_application_application_proto_depIdxs,
+ MessageInfos: file_poktroll_application_application_proto_msgTypes,
+ }.Build()
+ File_poktroll_application_application_proto = out.File
+ file_poktroll_application_application_proto_rawDesc = nil
+ file_poktroll_application_application_proto_goTypes = nil
+ file_poktroll_application_application_proto_depIdxs = nil
+}
diff --git a/api/poktroll/application/event.pulsar.go b/api/poktroll/application/event.pulsar.go
new file mode 100644
index 000000000..755da9625
--- /dev/null
+++ b/api/poktroll/application/event.pulsar.go
@@ -0,0 +1,656 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package application
+
+import (
+ fmt "fmt"
+ _ "github.com/cosmos/cosmos-proto"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ _ "github.com/cosmos/gogoproto/gogoproto"
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoiface "google.golang.org/protobuf/runtime/protoiface"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ io "io"
+ reflect "reflect"
+ sync "sync"
+)
+
+var (
+ md_EventRedelegation protoreflect.MessageDescriptor
+ fd_EventRedelegation_app_address protoreflect.FieldDescriptor
+ fd_EventRedelegation_gateway_address protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_application_event_proto_init()
+ md_EventRedelegation = File_poktroll_application_event_proto.Messages().ByName("EventRedelegation")
+ fd_EventRedelegation_app_address = md_EventRedelegation.Fields().ByName("app_address")
+ fd_EventRedelegation_gateway_address = md_EventRedelegation.Fields().ByName("gateway_address")
+}
+
+var _ protoreflect.Message = (*fastReflection_EventRedelegation)(nil)
+
+type fastReflection_EventRedelegation EventRedelegation
+
+func (x *EventRedelegation) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_EventRedelegation)(x)
+}
+
+func (x *EventRedelegation) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_application_event_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_EventRedelegation_messageType fastReflection_EventRedelegation_messageType
+var _ protoreflect.MessageType = fastReflection_EventRedelegation_messageType{}
+
+type fastReflection_EventRedelegation_messageType struct{}
+
+func (x fastReflection_EventRedelegation_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_EventRedelegation)(nil)
+}
+func (x fastReflection_EventRedelegation_messageType) New() protoreflect.Message {
+ return new(fastReflection_EventRedelegation)
+}
+func (x fastReflection_EventRedelegation_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_EventRedelegation
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_EventRedelegation) Descriptor() protoreflect.MessageDescriptor {
+ return md_EventRedelegation
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_EventRedelegation) Type() protoreflect.MessageType {
+ return _fastReflection_EventRedelegation_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_EventRedelegation) New() protoreflect.Message {
+ return new(fastReflection_EventRedelegation)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_EventRedelegation) Interface() protoreflect.ProtoMessage {
+ return (*EventRedelegation)(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_EventRedelegation) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.AppAddress != "" {
+ value := protoreflect.ValueOfString(x.AppAddress)
+ if !f(fd_EventRedelegation_app_address, value) {
+ return
+ }
+ }
+ if x.GatewayAddress != "" {
+ value := protoreflect.ValueOfString(x.GatewayAddress)
+ if !f(fd_EventRedelegation_gateway_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_EventRedelegation) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.application.EventRedelegation.app_address":
+ return x.AppAddress != ""
+ case "poktroll.application.EventRedelegation.gateway_address":
+ return x.GatewayAddress != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.EventRedelegation"))
+ }
+ panic(fmt.Errorf("message poktroll.application.EventRedelegation 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_EventRedelegation) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.application.EventRedelegation.app_address":
+ x.AppAddress = ""
+ case "poktroll.application.EventRedelegation.gateway_address":
+ x.GatewayAddress = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.EventRedelegation"))
+ }
+ panic(fmt.Errorf("message poktroll.application.EventRedelegation 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_EventRedelegation) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.application.EventRedelegation.app_address":
+ value := x.AppAddress
+ return protoreflect.ValueOfString(value)
+ case "poktroll.application.EventRedelegation.gateway_address":
+ value := x.GatewayAddress
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.EventRedelegation"))
+ }
+ panic(fmt.Errorf("message poktroll.application.EventRedelegation 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_EventRedelegation) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.application.EventRedelegation.app_address":
+ x.AppAddress = value.Interface().(string)
+ case "poktroll.application.EventRedelegation.gateway_address":
+ x.GatewayAddress = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.EventRedelegation"))
+ }
+ panic(fmt.Errorf("message poktroll.application.EventRedelegation 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_EventRedelegation) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.application.EventRedelegation.app_address":
+ panic(fmt.Errorf("field app_address of message poktroll.application.EventRedelegation is not mutable"))
+ case "poktroll.application.EventRedelegation.gateway_address":
+ panic(fmt.Errorf("field gateway_address of message poktroll.application.EventRedelegation is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.EventRedelegation"))
+ }
+ panic(fmt.Errorf("message poktroll.application.EventRedelegation does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_EventRedelegation) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.application.EventRedelegation.app_address":
+ return protoreflect.ValueOfString("")
+ case "poktroll.application.EventRedelegation.gateway_address":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.EventRedelegation"))
+ }
+ panic(fmt.Errorf("message poktroll.application.EventRedelegation does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_EventRedelegation) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.application.EventRedelegation", 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_EventRedelegation) 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_EventRedelegation) 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_EventRedelegation) 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_EventRedelegation) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*EventRedelegation)
+ 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.AppAddress)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.GatewayAddress)
+ 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().(*EventRedelegation)
+ 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.GatewayAddress) > 0 {
+ i -= len(x.GatewayAddress)
+ copy(dAtA[i:], x.GatewayAddress)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.GatewayAddress)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if len(x.AppAddress) > 0 {
+ i -= len(x.AppAddress)
+ copy(dAtA[i:], x.AppAddress)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AppAddress)))
+ 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().(*EventRedelegation)
+ 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: EventRedelegation: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventRedelegation: 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 AppAddress", 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.AppAddress = 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 GatewayAddress", 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.GatewayAddress = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.27.0
+// protoc (unknown)
+// source: poktroll/application/event.proto
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+// EventRedelegation is an event emitted whenever an application changes its
+// delegatee gateways on chain. This is in response to both a DelegateToGateway
+// and UndelegateFromGateway message.
+type EventRedelegation struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // TODO: Check if this tag is relevant for events: (gogoproto.jsontag) = "app_address"
+ AppAddress string `protobuf:"bytes,1,opt,name=app_address,json=appAddress,proto3" json:"app_address,omitempty"` // The Bech32 address of the application, using cosmos' ScalarDescriptor to ensure deterministic encoding
+ GatewayAddress string `protobuf:"bytes,2,opt,name=gateway_address,json=gatewayAddress,proto3" json:"gateway_address,omitempty"` // The Bech32 address of the gateway the application has changed their delegation of, using cosmos' ScalarDescriptor to ensure deterministic encoding
+}
+
+func (x *EventRedelegation) Reset() {
+ *x = EventRedelegation{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_application_event_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *EventRedelegation) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*EventRedelegation) ProtoMessage() {}
+
+// Deprecated: Use EventRedelegation.ProtoReflect.Descriptor instead.
+func (*EventRedelegation) Descriptor() ([]byte, []int) {
+ return file_poktroll_application_event_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *EventRedelegation) GetAppAddress() string {
+ if x != nil {
+ return x.AppAddress
+ }
+ return ""
+}
+
+func (x *EventRedelegation) GetGatewayAddress() string {
+ if x != nil {
+ return x.GatewayAddress
+ }
+ return ""
+}
+
+var File_poktroll_application_event_proto protoreflect.FileDescriptor
+
+var file_poktroll_application_event_proto_rawDesc = []byte{
+ 0x0a, 0x20, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x61, 0x70, 0x70, 0x6c, 0x69,
+ 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f,
+ 0x74, 0x6f, 0x12, 0x14, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x61, 0x70, 0x70,
+ 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 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, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67,
+ 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x91, 0x01, 0x0a, 0x11, 0x45, 0x76,
+ 0x65, 0x6e, 0x74, 0x52, 0x65, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12,
+ 0x39, 0x0a, 0x0b, 0x61, 0x70, 0x70, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01,
+ 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73,
+ 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x0a,
+ 0x61, 0x70, 0x70, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x41, 0x0a, 0x0f, 0x67, 0x61,
+ 0x74, 0x65, 0x77, 0x61, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20,
+ 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e,
+ 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x0e, 0x67,
+ 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x42, 0xbe, 0x01,
+ 0x0a, 0x18, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x61,
+ 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x0a, 0x45, 0x76, 0x65, 0x6e,
+ 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x25, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73,
+ 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72,
+ 0x6f, 0x6c, 0x6c, 0x2f, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0xa2,
+ 0x02, 0x03, 0x50, 0x41, 0x58, 0xaa, 0x02, 0x14, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c,
+ 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0xca, 0x02, 0x14, 0x50,
+ 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74,
+ 0x69, 0x6f, 0x6e, 0xe2, 0x02, 0x20, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x41,
+ 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65,
+ 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x15, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c,
+ 0x6c, 0x3a, 0x3a, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x62, 0x06,
+ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_poktroll_application_event_proto_rawDescOnce sync.Once
+ file_poktroll_application_event_proto_rawDescData = file_poktroll_application_event_proto_rawDesc
+)
+
+func file_poktroll_application_event_proto_rawDescGZIP() []byte {
+ file_poktroll_application_event_proto_rawDescOnce.Do(func() {
+ file_poktroll_application_event_proto_rawDescData = protoimpl.X.CompressGZIP(file_poktroll_application_event_proto_rawDescData)
+ })
+ return file_poktroll_application_event_proto_rawDescData
+}
+
+var file_poktroll_application_event_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
+var file_poktroll_application_event_proto_goTypes = []interface{}{
+ (*EventRedelegation)(nil), // 0: poktroll.application.EventRedelegation
+}
+var file_poktroll_application_event_proto_depIdxs = []int32{
+ 0, // [0:0] is the sub-list for method output_type
+ 0, // [0:0] is the sub-list for method input_type
+ 0, // [0:0] is the sub-list for extension type_name
+ 0, // [0:0] is the sub-list for extension extendee
+ 0, // [0:0] is the sub-list for field type_name
+}
+
+func init() { file_poktroll_application_event_proto_init() }
+func file_poktroll_application_event_proto_init() {
+ if File_poktroll_application_event_proto != nil {
+ return
+ }
+ if !protoimpl.UnsafeEnabled {
+ file_poktroll_application_event_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*EventRedelegation); 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_poktroll_application_event_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 1,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_poktroll_application_event_proto_goTypes,
+ DependencyIndexes: file_poktroll_application_event_proto_depIdxs,
+ MessageInfos: file_poktroll_application_event_proto_msgTypes,
+ }.Build()
+ File_poktroll_application_event_proto = out.File
+ file_poktroll_application_event_proto_rawDesc = nil
+ file_poktroll_application_event_proto_goTypes = nil
+ file_poktroll_application_event_proto_depIdxs = nil
+}
diff --git a/api/poktroll/application/genesis.pulsar.go b/api/poktroll/application/genesis.pulsar.go
new file mode 100644
index 000000000..4f327299b
--- /dev/null
+++ b/api/poktroll/application/genesis.pulsar.go
@@ -0,0 +1,754 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package application
+
+import (
+ _ "cosmossdk.io/api/amino"
+ 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 _ protoreflect.List = (*_GenesisState_2_list)(nil)
+
+type _GenesisState_2_list struct {
+ list *[]*Application
+}
+
+func (x *_GenesisState_2_list) Len() int {
+ if x.list == nil {
+ return 0
+ }
+ return len(*x.list)
+}
+
+func (x *_GenesisState_2_list) Get(i int) protoreflect.Value {
+ return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
+}
+
+func (x *_GenesisState_2_list) Set(i int, value protoreflect.Value) {
+ valueUnwrapped := value.Message()
+ concreteValue := valueUnwrapped.Interface().(*Application)
+ (*x.list)[i] = concreteValue
+}
+
+func (x *_GenesisState_2_list) Append(value protoreflect.Value) {
+ valueUnwrapped := value.Message()
+ concreteValue := valueUnwrapped.Interface().(*Application)
+ *x.list = append(*x.list, concreteValue)
+}
+
+func (x *_GenesisState_2_list) AppendMutable() protoreflect.Value {
+ v := new(Application)
+ *x.list = append(*x.list, v)
+ return protoreflect.ValueOfMessage(v.ProtoReflect())
+}
+
+func (x *_GenesisState_2_list) Truncate(n int) {
+ for i := n; i < len(*x.list); i++ {
+ (*x.list)[i] = nil
+ }
+ *x.list = (*x.list)[:n]
+}
+
+func (x *_GenesisState_2_list) NewElement() protoreflect.Value {
+ v := new(Application)
+ return protoreflect.ValueOfMessage(v.ProtoReflect())
+}
+
+func (x *_GenesisState_2_list) IsValid() bool {
+ return x.list != nil
+}
+
+var (
+ md_GenesisState protoreflect.MessageDescriptor
+ fd_GenesisState_params protoreflect.FieldDescriptor
+ fd_GenesisState_application_list protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_application_genesis_proto_init()
+ md_GenesisState = File_poktroll_application_genesis_proto.Messages().ByName("GenesisState")
+ fd_GenesisState_params = md_GenesisState.Fields().ByName("params")
+ fd_GenesisState_application_list = md_GenesisState.Fields().ByName("application_list")
+}
+
+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_poktroll_application_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 len(x.ApplicationList) != 0 {
+ value := protoreflect.ValueOfList(&_GenesisState_2_list{list: &x.ApplicationList})
+ if !f(fd_GenesisState_application_list, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.GenesisState.params":
+ return x.Params != nil
+ case "poktroll.GenesisState.application_list":
+ return len(x.ApplicationList) != 0
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.GenesisState"))
+ }
+ panic(fmt.Errorf("message poktroll.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 "poktroll.GenesisState.params":
+ x.Params = nil
+ case "poktroll.GenesisState.application_list":
+ x.ApplicationList = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.GenesisState"))
+ }
+ panic(fmt.Errorf("message poktroll.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 "poktroll.GenesisState.params":
+ value := x.Params
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ case "poktroll.GenesisState.application_list":
+ if len(x.ApplicationList) == 0 {
+ return protoreflect.ValueOfList(&_GenesisState_2_list{})
+ }
+ listValue := &_GenesisState_2_list{list: &x.ApplicationList}
+ return protoreflect.ValueOfList(listValue)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.GenesisState"))
+ }
+ panic(fmt.Errorf("message poktroll.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 "poktroll.GenesisState.params":
+ x.Params = value.Message().Interface().(*Params)
+ case "poktroll.GenesisState.application_list":
+ lv := value.List()
+ clv := lv.(*_GenesisState_2_list)
+ x.ApplicationList = *clv.list
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.GenesisState"))
+ }
+ panic(fmt.Errorf("message poktroll.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 "poktroll.GenesisState.params":
+ if x.Params == nil {
+ x.Params = new(Params)
+ }
+ return protoreflect.ValueOfMessage(x.Params.ProtoReflect())
+ case "poktroll.GenesisState.application_list":
+ if x.ApplicationList == nil {
+ x.ApplicationList = []*Application{}
+ }
+ value := &_GenesisState_2_list{list: &x.ApplicationList}
+ return protoreflect.ValueOfList(value)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.GenesisState"))
+ }
+ panic(fmt.Errorf("message poktroll.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 "poktroll.GenesisState.params":
+ m := new(Params)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ case "poktroll.GenesisState.application_list":
+ list := []*Application{}
+ return protoreflect.ValueOfList(&_GenesisState_2_list{list: &list})
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.GenesisState"))
+ }
+ panic(fmt.Errorf("message poktroll.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 poktroll.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 len(x.ApplicationList) > 0 {
+ for _, e := range x.ApplicationList {
+ l = options.Size(e)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*GenesisState)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.ApplicationList) > 0 {
+ for iNdEx := len(x.ApplicationList) - 1; iNdEx >= 0; iNdEx-- {
+ encoded, err := options.Marshal(x.ApplicationList[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.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 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ApplicationList", 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.ApplicationList = append(x.ApplicationList, &Application{})
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ApplicationList[len(x.ApplicationList)-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: poktroll/application/genesis.proto
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+// GenesisState defines the application module's genesis state.
+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"`
+ ApplicationList []*Application `protobuf:"bytes,2,rep,name=application_list,json=applicationList,proto3" json:"application_list,omitempty"`
+}
+
+func (x *GenesisState) Reset() {
+ *x = GenesisState{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_application_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_poktroll_application_genesis_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *GenesisState) GetParams() *Params {
+ if x != nil {
+ return x.Params
+ }
+ return nil
+}
+
+func (x *GenesisState) GetApplicationList() []*Application {
+ if x != nil {
+ return x.ApplicationList
+ }
+ return nil
+}
+
+var File_poktroll_application_genesis_proto protoreflect.FileDescriptor
+
+var file_poktroll_application_genesis_proto_rawDesc = []byte{
+ 0x0a, 0x22, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x61, 0x70, 0x70, 0x6c, 0x69,
+ 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x2e, 0x70,
+ 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x61,
+ 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 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, 0x21, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x61, 0x70,
+ 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73,
+ 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x26, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c,
+ 0x2f, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x61, 0x70, 0x70,
+ 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa3,
+ 0x01, 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12,
+ 0x3f, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
+ 0x1c, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x69,
+ 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 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,
+ 0x12, 0x52, 0x0a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f,
+ 0x6c, 0x69, 0x73, 0x74, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x70, 0x6f, 0x6b,
+ 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f,
+ 0x6e, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x04, 0xc8,
+ 0xde, 0x1f, 0x00, 0x52, 0x0f, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,
+ 0x4c, 0x69, 0x73, 0x74, 0x42, 0xc0, 0x01, 0x0a, 0x18, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x6f, 0x6b,
+ 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f,
+ 0x6e, 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50,
+ 0x01, 0x5a, 0x25, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f,
+ 0x61, 0x70, 0x69, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x61, 0x70, 0x70,
+ 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0xa2, 0x02, 0x03, 0x50, 0x41, 0x58, 0xaa, 0x02,
+ 0x14, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63,
+ 0x61, 0x74, 0x69, 0x6f, 0x6e, 0xca, 0x02, 0x14, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c,
+ 0x5c, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0xe2, 0x02, 0x20, 0x50,
+ 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74,
+ 0x69, 0x6f, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea,
+ 0x02, 0x15, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x3a, 0x3a, 0x41, 0x70, 0x70, 0x6c,
+ 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_poktroll_application_genesis_proto_rawDescOnce sync.Once
+ file_poktroll_application_genesis_proto_rawDescData = file_poktroll_application_genesis_proto_rawDesc
+)
+
+func file_poktroll_application_genesis_proto_rawDescGZIP() []byte {
+ file_poktroll_application_genesis_proto_rawDescOnce.Do(func() {
+ file_poktroll_application_genesis_proto_rawDescData = protoimpl.X.CompressGZIP(file_poktroll_application_genesis_proto_rawDescData)
+ })
+ return file_poktroll_application_genesis_proto_rawDescData
+}
+
+var file_poktroll_application_genesis_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
+var file_poktroll_application_genesis_proto_goTypes = []interface{}{
+ (*GenesisState)(nil), // 0: poktroll.GenesisState
+ (*Params)(nil), // 1: poktroll.Params
+ (*Application)(nil), // 2: poktroll.Application
+}
+var file_poktroll_application_genesis_proto_depIdxs = []int32{
+ 1, // 0: poktroll.GenesisState.params:type_name -> poktroll.Params
+ 2, // 1: poktroll.GenesisState.application_list:type_name -> poktroll.Application
+ 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_poktroll_application_genesis_proto_init() }
+func file_poktroll_application_genesis_proto_init() {
+ if File_poktroll_application_genesis_proto != nil {
+ return
+ }
+ file_poktroll_application_params_proto_init()
+ if !protoimpl.UnsafeEnabled {
+ file_poktroll_application_genesis_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GenesisState); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_poktroll_application_genesis_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 1,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_poktroll_application_genesis_proto_goTypes,
+ DependencyIndexes: file_poktroll_application_genesis_proto_depIdxs,
+ MessageInfos: file_poktroll_application_genesis_proto_msgTypes,
+ }.Build()
+ File_poktroll_application_genesis_proto = out.File
+ file_poktroll_application_genesis_proto_rawDesc = nil
+ file_poktroll_application_genesis_proto_goTypes = nil
+ file_poktroll_application_genesis_proto_depIdxs = nil
+}
diff --git a/api/poktroll/application/module/module.pulsar.go b/api/poktroll/application/module/module.pulsar.go
new file mode 100644
index 000000000..ae818b3ba
--- /dev/null
+++ b/api/poktroll/application/module/module.pulsar.go
@@ -0,0 +1,580 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package module
+
+import (
+ _ "cosmossdk.io/api/cosmos/app/v1alpha1"
+ fmt "fmt"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoiface "google.golang.org/protobuf/runtime/protoiface"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ io "io"
+ reflect "reflect"
+ sync "sync"
+)
+
+var (
+ md_Module protoreflect.MessageDescriptor
+ fd_Module_authority protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_application_module_module_proto_init()
+ md_Module = File_poktroll_application_module_module_proto.Messages().ByName("Module")
+ fd_Module_authority = md_Module.Fields().ByName("authority")
+}
+
+var _ protoreflect.Message = (*fastReflection_Module)(nil)
+
+type fastReflection_Module Module
+
+func (x *Module) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_Module)(x)
+}
+
+func (x *Module) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_application_module_module_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_Module_messageType fastReflection_Module_messageType
+var _ protoreflect.MessageType = fastReflection_Module_messageType{}
+
+type fastReflection_Module_messageType struct{}
+
+func (x fastReflection_Module_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_Module)(nil)
+}
+func (x fastReflection_Module_messageType) New() protoreflect.Message {
+ return new(fastReflection_Module)
+}
+func (x fastReflection_Module_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_Module
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_Module) Descriptor() protoreflect.MessageDescriptor {
+ return md_Module
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_Module) Type() protoreflect.MessageType {
+ return _fastReflection_Module_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_Module) New() protoreflect.Message {
+ return new(fastReflection_Module)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_Module) Interface() protoreflect.ProtoMessage {
+ return (*Module)(x)
+}
+
+// Range iterates over every populated field in an undefined order,
+// calling f for each field descriptor and value encountered.
+// Range returns immediately if f returns false.
+// While iterating, mutating operations may only be performed
+// on the current field descriptor.
+func (x *fastReflection_Module) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Authority != "" {
+ value := protoreflect.ValueOfString(x.Authority)
+ if !f(fd_Module_authority, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_Module) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.application.module.Module.authority":
+ return x.Authority != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.module.Module"))
+ }
+ panic(fmt.Errorf("message poktroll.application.module.Module does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Module) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.application.module.Module.authority":
+ x.Authority = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.module.Module"))
+ }
+ panic(fmt.Errorf("message poktroll.application.module.Module does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_Module) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.application.module.Module.authority":
+ value := x.Authority
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.module.Module"))
+ }
+ panic(fmt.Errorf("message poktroll.application.module.Module does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Module) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.application.module.Module.authority":
+ x.Authority = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.module.Module"))
+ }
+ panic(fmt.Errorf("message poktroll.application.module.Module does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Module) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.application.module.Module.authority":
+ panic(fmt.Errorf("field authority of message poktroll.application.module.Module is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.module.Module"))
+ }
+ panic(fmt.Errorf("message poktroll.application.module.Module does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_Module) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.application.module.Module.authority":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.module.Module"))
+ }
+ panic(fmt.Errorf("message poktroll.application.module.Module does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_Module) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.application.module.Module", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_Module) GetUnknown() protoreflect.RawFields {
+ return x.unknownFields
+}
+
+// SetUnknown stores an entire list of unknown fields.
+// The raw fields must be syntactically valid according to the wire format.
+// An implementation may panic if this is not the case.
+// Once stored, the caller must not mutate the content of the RawFields.
+// An empty RawFields may be passed to clear the fields.
+//
+// SetUnknown is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Module) SetUnknown(fields protoreflect.RawFields) {
+ x.unknownFields = fields
+}
+
+// IsValid reports whether the message is valid.
+//
+// An invalid message is an empty, read-only value.
+//
+// An invalid message often corresponds to a nil pointer of the concrete
+// message type, but the details are implementation dependent.
+// Validity is not part of the protobuf data model, and may not
+// be preserved in marshaling or other operations.
+func (x *fastReflection_Module) IsValid() bool {
+ return x != nil
+}
+
+// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
+// This method may return nil.
+//
+// The returned methods type is identical to
+// "google.golang.org/protobuf/runtime/protoiface".Methods.
+// Consult the protoiface package documentation for details.
+func (x *fastReflection_Module) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*Module)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Authority)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*Module)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Authority) > 0 {
+ i -= len(x.Authority)
+ copy(dAtA[i:], x.Authority)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority)))
+ i--
+ dAtA[i] = 0xa
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*Module)
+ if x == nil {
+ return protoiface.UnmarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Flags: input.Flags,
+ }, nil
+ }
+ options := runtime.UnmarshalInputToOptions(input)
+ _ = options
+ dAtA := input.Buf
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Module: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Module: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Authority = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.27.0
+// protoc (unknown)
+// source: poktroll/application/module/module.proto
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+// Module is the config object for the module.
+type Module struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // authority defines the custom module authority. If not set, defaults to the governance module.
+ Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
+}
+
+func (x *Module) Reset() {
+ *x = Module{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_application_module_module_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *Module) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*Module) ProtoMessage() {}
+
+// Deprecated: Use Module.ProtoReflect.Descriptor instead.
+func (*Module) Descriptor() ([]byte, []int) {
+ return file_poktroll_application_module_module_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *Module) GetAuthority() string {
+ if x != nil {
+ return x.Authority
+ }
+ return ""
+}
+
+var File_poktroll_application_module_module_proto protoreflect.FileDescriptor
+
+var file_poktroll_application_module_module_proto_rawDesc = []byte{
+ 0x0a, 0x28, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x61, 0x70, 0x70, 0x6c, 0x69,
+ 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2f, 0x6d, 0x6f,
+ 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x70, 0x6f, 0x6b, 0x74,
+ 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,
+ 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x1a, 0x20, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f,
+ 0x61, 0x70, 0x70, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x6d, 0x6f, 0x64,
+ 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x5e, 0x0a, 0x06, 0x4d, 0x6f, 0x64,
+ 0x75, 0x6c, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79,
+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74,
+ 0x79, 0x3a, 0x36, 0xba, 0xc0, 0x96, 0xda, 0x01, 0x30, 0x0a, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75,
+ 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f,
+ 0x72, 0x6b, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x78, 0x2f, 0x61, 0x70,
+ 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0xea, 0x01, 0x0a, 0x1f, 0x63, 0x6f,
+ 0x6d, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x69,
+ 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x42, 0x0b, 0x4d,
+ 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2c, 0x63, 0x6f,
+ 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70,
+ 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74,
+ 0x69, 0x6f, 0x6e, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0xa2, 0x02, 0x03, 0x50, 0x41, 0x4d,
+ 0xaa, 0x02, 0x1b, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x41, 0x70, 0x70, 0x6c,
+ 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0xca, 0x02,
+ 0x1b, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63,
+ 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0xe2, 0x02, 0x27, 0x50,
+ 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74,
+ 0x69, 0x6f, 0x6e, 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65,
+ 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1d, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c,
+ 0x6c, 0x3a, 0x3a, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x3a,
+ 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_poktroll_application_module_module_proto_rawDescOnce sync.Once
+ file_poktroll_application_module_module_proto_rawDescData = file_poktroll_application_module_module_proto_rawDesc
+)
+
+func file_poktroll_application_module_module_proto_rawDescGZIP() []byte {
+ file_poktroll_application_module_module_proto_rawDescOnce.Do(func() {
+ file_poktroll_application_module_module_proto_rawDescData = protoimpl.X.CompressGZIP(file_poktroll_application_module_module_proto_rawDescData)
+ })
+ return file_poktroll_application_module_module_proto_rawDescData
+}
+
+var file_poktroll_application_module_module_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
+var file_poktroll_application_module_module_proto_goTypes = []interface{}{
+ (*Module)(nil), // 0: poktroll.application.module.Module
+}
+var file_poktroll_application_module_module_proto_depIdxs = []int32{
+ 0, // [0:0] is the sub-list for method output_type
+ 0, // [0:0] is the sub-list for method input_type
+ 0, // [0:0] is the sub-list for extension type_name
+ 0, // [0:0] is the sub-list for extension extendee
+ 0, // [0:0] is the sub-list for field type_name
+}
+
+func init() { file_poktroll_application_module_module_proto_init() }
+func file_poktroll_application_module_module_proto_init() {
+ if File_poktroll_application_module_module_proto != nil {
+ return
+ }
+ if !protoimpl.UnsafeEnabled {
+ file_poktroll_application_module_module_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*Module); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_poktroll_application_module_module_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 1,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_poktroll_application_module_module_proto_goTypes,
+ DependencyIndexes: file_poktroll_application_module_module_proto_depIdxs,
+ MessageInfos: file_poktroll_application_module_module_proto_msgTypes,
+ }.Build()
+ File_poktroll_application_module_module_proto = out.File
+ file_poktroll_application_module_module_proto_rawDesc = nil
+ file_poktroll_application_module_module_proto_goTypes = nil
+ file_poktroll_application_module_module_proto_depIdxs = nil
+}
diff --git a/api/poktroll/application/params.pulsar.go b/api/poktroll/application/params.pulsar.go
new file mode 100644
index 000000000..4f740c6cb
--- /dev/null
+++ b/api/poktroll/application/params.pulsar.go
@@ -0,0 +1,564 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package application
+
+import (
+ _ "cosmossdk.io/api/amino"
+ 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_Params protoreflect.MessageDescriptor
+ fd_Params_max_delegated_gateways protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_application_params_proto_init()
+ md_Params = File_poktroll_application_params_proto.Messages().ByName("Params")
+ fd_Params_max_delegated_gateways = md_Params.Fields().ByName("max_delegated_gateways")
+}
+
+var _ protoreflect.Message = (*fastReflection_Params)(nil)
+
+type fastReflection_Params Params
+
+func (x *Params) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_Params)(x)
+}
+
+func (x *Params) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_application_params_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_Params_messageType fastReflection_Params_messageType
+var _ protoreflect.MessageType = fastReflection_Params_messageType{}
+
+type fastReflection_Params_messageType struct{}
+
+func (x fastReflection_Params_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_Params)(nil)
+}
+func (x fastReflection_Params_messageType) New() protoreflect.Message {
+ return new(fastReflection_Params)
+}
+func (x fastReflection_Params_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_Params
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_Params) Descriptor() protoreflect.MessageDescriptor {
+ return md_Params
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_Params) Type() protoreflect.MessageType {
+ return _fastReflection_Params_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_Params) New() protoreflect.Message {
+ return new(fastReflection_Params)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_Params) Interface() protoreflect.ProtoMessage {
+ return (*Params)(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_Params) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.MaxDelegatedGateways != uint64(0) {
+ value := protoreflect.ValueOfUint64(x.MaxDelegatedGateways)
+ if !f(fd_Params_max_delegated_gateways, 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_Params) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.application.Params.max_delegated_gateways":
+ return x.MaxDelegatedGateways != uint64(0)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.Params"))
+ }
+ panic(fmt.Errorf("message poktroll.application.Params 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_Params) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.application.Params.max_delegated_gateways":
+ x.MaxDelegatedGateways = uint64(0)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.Params"))
+ }
+ panic(fmt.Errorf("message poktroll.application.Params 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_Params) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.application.Params.max_delegated_gateways":
+ value := x.MaxDelegatedGateways
+ return protoreflect.ValueOfUint64(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.Params"))
+ }
+ panic(fmt.Errorf("message poktroll.application.Params 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_Params) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.application.Params.max_delegated_gateways":
+ x.MaxDelegatedGateways = value.Uint()
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.Params"))
+ }
+ panic(fmt.Errorf("message poktroll.application.Params 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_Params) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.application.Params.max_delegated_gateways":
+ panic(fmt.Errorf("field max_delegated_gateways of message poktroll.application.Params is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.Params"))
+ }
+ panic(fmt.Errorf("message poktroll.application.Params does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// 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 "poktroll.application.Params.max_delegated_gateways":
+ return protoreflect.ValueOfUint64(uint64(0))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.Params"))
+ }
+ panic(fmt.Errorf("message poktroll.application.Params does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_Params) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.application.Params", 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_Params) 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_Params) 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_Params) 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_Params) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*Params)
+ 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.MaxDelegatedGateways != 0 {
+ n += 1 + runtime.Sov(uint64(x.MaxDelegatedGateways))
+ }
+ 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().(*Params)
+ 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.MaxDelegatedGateways != 0 {
+ i = runtime.EncodeVarint(dAtA, i, uint64(x.MaxDelegatedGateways))
+ 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().(*Params)
+ 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: Params: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Params: 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 MaxDelegatedGateways", wireType)
+ }
+ x.MaxDelegatedGateways = 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.MaxDelegatedGateways |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.27.0
+// protoc (unknown)
+// source: poktroll/application/params.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)
+)
+
+// Params defines the parameters for the module.
+type Params struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ MaxDelegatedGateways uint64 `protobuf:"varint,1,opt,name=max_delegated_gateways,json=maxDelegatedGateways,proto3" json:"max_delegated_gateways,omitempty"`
+}
+
+func (x *Params) Reset() {
+ *x = Params{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_application_params_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *Params) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*Params) ProtoMessage() {}
+
+// Deprecated: Use Params.ProtoReflect.Descriptor instead.
+func (*Params) Descriptor() ([]byte, []int) {
+ return file_poktroll_application_params_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *Params) GetMaxDelegatedGateways() uint64 {
+ if x != nil {
+ return x.MaxDelegatedGateways
+ }
+ return 0
+}
+
+var File_poktroll_application_params_proto protoreflect.FileDescriptor
+
+var file_poktroll_application_params_proto_rawDesc = []byte{
+ 0x0a, 0x21, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x61, 0x70, 0x70, 0x6c, 0x69,
+ 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72,
+ 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x61, 0x70,
+ 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 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, 0x89, 0x01, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x57, 0x0a,
+ 0x16, 0x6d, 0x61, 0x78, 0x5f, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x67,
+ 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x42, 0x21, 0xf2,
+ 0xde, 0x1f, 0x1d, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x6d, 0x61, 0x78, 0x5f, 0x64, 0x65, 0x6c,
+ 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x73, 0x22,
+ 0x52, 0x14, 0x6d, 0x61, 0x78, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x47, 0x61,
+ 0x74, 0x65, 0x77, 0x61, 0x79, 0x73, 0x3a, 0x26, 0xe8, 0xa0, 0x1f, 0x01, 0x8a, 0xe7, 0xb0, 0x2a,
+ 0x1d, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x78, 0x2f, 0x61, 0x70, 0x70, 0x6c,
+ 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0xbf,
+ 0x01, 0x0a, 0x18, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e,
+ 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x0b, 0x50, 0x61, 0x72,
+ 0x61, 0x6d, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x25, 0x63, 0x6f, 0x73, 0x6d,
+ 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x6f, 0x6b,
+ 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f,
+ 0x6e, 0xa2, 0x02, 0x03, 0x50, 0x41, 0x58, 0xaa, 0x02, 0x14, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f,
+ 0x6c, 0x6c, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0xca, 0x02,
+ 0x14, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63,
+ 0x61, 0x74, 0x69, 0x6f, 0x6e, 0xe2, 0x02, 0x20, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c,
+ 0x5c, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x47, 0x50, 0x42,
+ 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x15, 0x50, 0x6f, 0x6b, 0x74, 0x72,
+ 0x6f, 0x6c, 0x6c, 0x3a, 0x3a, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,
+ 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_poktroll_application_params_proto_rawDescOnce sync.Once
+ file_poktroll_application_params_proto_rawDescData = file_poktroll_application_params_proto_rawDesc
+)
+
+func file_poktroll_application_params_proto_rawDescGZIP() []byte {
+ file_poktroll_application_params_proto_rawDescOnce.Do(func() {
+ file_poktroll_application_params_proto_rawDescData = protoimpl.X.CompressGZIP(file_poktroll_application_params_proto_rawDescData)
+ })
+ return file_poktroll_application_params_proto_rawDescData
+}
+
+var file_poktroll_application_params_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
+var file_poktroll_application_params_proto_goTypes = []interface{}{
+ (*Params)(nil), // 0: poktroll.application.Params
+}
+var file_poktroll_application_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
+ 0, // [0:0] is the sub-list for extension extendee
+ 0, // [0:0] is the sub-list for field type_name
+}
+
+func init() { file_poktroll_application_params_proto_init() }
+func file_poktroll_application_params_proto_init() {
+ if File_poktroll_application_params_proto != nil {
+ return
+ }
+ if !protoimpl.UnsafeEnabled {
+ file_poktroll_application_params_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*Params); 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_poktroll_application_params_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 1,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_poktroll_application_params_proto_goTypes,
+ DependencyIndexes: file_poktroll_application_params_proto_depIdxs,
+ MessageInfos: file_poktroll_application_params_proto_msgTypes,
+ }.Build()
+ File_poktroll_application_params_proto = out.File
+ file_poktroll_application_params_proto_rawDesc = nil
+ file_poktroll_application_params_proto_goTypes = nil
+ file_poktroll_application_params_proto_depIdxs = nil
+}
diff --git a/api/poktroll/application/query.pulsar.go b/api/poktroll/application/query.pulsar.go
new file mode 100644
index 000000000..b1f59e350
--- /dev/null
+++ b/api/poktroll/application/query.pulsar.go
@@ -0,0 +1,3145 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package application
+
+import (
+ _ "cosmossdk.io/api/amino"
+ v1beta1 "cosmossdk.io/api/cosmos/base/query/v1beta1"
+ _ "cosmossdk.io/api/cosmos/base/v1beta1"
+ fmt "fmt"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ _ "github.com/cosmos/gogoproto/gogoproto"
+
+ _ "google.golang.org/genproto/googleapis/api/annotations"
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoiface "google.golang.org/protobuf/runtime/protoiface"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ io "io"
+ reflect "reflect"
+ sync "sync"
+)
+
+var (
+ md_QueryParamsRequest protoreflect.MessageDescriptor
+)
+
+func init() {
+ file_poktroll_application_query_proto_init()
+ md_QueryParamsRequest = File_poktroll_application_query_proto.Messages().ByName("QueryParamsRequest")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryParamsRequest)(nil)
+
+type fastReflection_QueryParamsRequest QueryParamsRequest
+
+func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryParamsRequest)(x)
+}
+
+func (x *QueryParamsRequest) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_application_query_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryParamsRequest_messageType fastReflection_QueryParamsRequest_messageType
+var _ protoreflect.MessageType = fastReflection_QueryParamsRequest_messageType{}
+
+type fastReflection_QueryParamsRequest_messageType struct{}
+
+func (x fastReflection_QueryParamsRequest_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryParamsRequest)(nil)
+}
+func (x fastReflection_QueryParamsRequest_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryParamsRequest)
+}
+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_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_QueryParamsRequest) Type() protoreflect.MessageType {
+ return _fastReflection_QueryParamsRequest_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+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_QueryParamsRequest) Interface() protoreflect.ProtoMessage {
+ return (*QueryParamsRequest)(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_QueryParamsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_QueryParamsRequest) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.QueryParamsRequest 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_QueryParamsRequest) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.QueryParamsRequest 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_QueryParamsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.QueryParamsRequest 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_QueryParamsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.QueryParamsRequest 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_QueryParamsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.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_QueryParamsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.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_QueryParamsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.QueryParamsRequest", 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_QueryParamsRequest) 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_QueryParamsRequest) 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_QueryParamsRequest) 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_QueryParamsRequest) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryParamsRequest)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*QueryParamsRequest)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*QueryParamsRequest)
+ 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: QueryParamsRequest: 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)
+ }
+ switch fieldNum {
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_QueryParamsResponse protoreflect.MessageDescriptor
+ fd_QueryParamsResponse_params protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_application_query_proto_init()
+ md_QueryParamsResponse = File_poktroll_application_query_proto.Messages().ByName("QueryParamsResponse")
+ fd_QueryParamsResponse_params = md_QueryParamsResponse.Fields().ByName("params")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryParamsResponse)(nil)
+
+type fastReflection_QueryParamsResponse QueryParamsResponse
+
+func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryParamsResponse)(x)
+}
+
+func (x *QueryParamsResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_application_query_proto_msgTypes[1]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryParamsResponse_messageType fastReflection_QueryParamsResponse_messageType
+var _ protoreflect.MessageType = fastReflection_QueryParamsResponse_messageType{}
+
+type fastReflection_QueryParamsResponse_messageType struct{}
+
+func (x fastReflection_QueryParamsResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryParamsResponse)(nil)
+}
+func (x fastReflection_QueryParamsResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryParamsResponse)
+}
+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_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_QueryParamsResponse) Type() protoreflect.MessageType {
+ return _fastReflection_QueryParamsResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+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_QueryParamsResponse) Interface() protoreflect.ProtoMessage {
+ return (*QueryParamsResponse)(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_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
+ }
+ }
+}
+
+// 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_QueryParamsResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.QueryParamsResponse.params":
+ return x.Params != nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.QueryParamsResponse 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_QueryParamsResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.QueryParamsResponse.params":
+ x.Params = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.QueryParamsResponse 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_QueryParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.QueryParamsResponse.params":
+ value := x.Params
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.QueryParamsResponse 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_QueryParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.QueryParamsResponse.params":
+ x.Params = value.Message().Interface().(*Params)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.QueryParamsResponse 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_QueryParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.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: poktroll.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.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_QueryParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.QueryParamsResponse.params":
+ m := new(Params)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.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_QueryParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.QueryParamsResponse", 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_QueryParamsResponse) 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_QueryParamsResponse) 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_QueryParamsResponse) 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_QueryParamsResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryParamsResponse)
+ 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.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().(*QueryParamsResponse)
+ 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.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().(*QueryParamsResponse)
+ 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: QueryParamsResponse: 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)
+ }
+ 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
+ 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_QueryGetApplicationRequest protoreflect.MessageDescriptor
+ fd_QueryGetApplicationRequest_address protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_application_query_proto_init()
+ md_QueryGetApplicationRequest = File_poktroll_application_query_proto.Messages().ByName("QueryGetApplicationRequest")
+ fd_QueryGetApplicationRequest_address = md_QueryGetApplicationRequest.Fields().ByName("address")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryGetApplicationRequest)(nil)
+
+type fastReflection_QueryGetApplicationRequest QueryGetApplicationRequest
+
+func (x *QueryGetApplicationRequest) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryGetApplicationRequest)(x)
+}
+
+func (x *QueryGetApplicationRequest) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_application_query_proto_msgTypes[2]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryGetApplicationRequest_messageType fastReflection_QueryGetApplicationRequest_messageType
+var _ protoreflect.MessageType = fastReflection_QueryGetApplicationRequest_messageType{}
+
+type fastReflection_QueryGetApplicationRequest_messageType struct{}
+
+func (x fastReflection_QueryGetApplicationRequest_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryGetApplicationRequest)(nil)
+}
+func (x fastReflection_QueryGetApplicationRequest_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryGetApplicationRequest)
+}
+func (x fastReflection_QueryGetApplicationRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryGetApplicationRequest
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_QueryGetApplicationRequest) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryGetApplicationRequest
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_QueryGetApplicationRequest) Type() protoreflect.MessageType {
+ return _fastReflection_QueryGetApplicationRequest_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_QueryGetApplicationRequest) New() protoreflect.Message {
+ return new(fastReflection_QueryGetApplicationRequest)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_QueryGetApplicationRequest) Interface() protoreflect.ProtoMessage {
+ return (*QueryGetApplicationRequest)(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_QueryGetApplicationRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Address != "" {
+ value := protoreflect.ValueOfString(x.Address)
+ if !f(fd_QueryGetApplicationRequest_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_QueryGetApplicationRequest) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.QueryGetApplicationRequest.address":
+ return x.Address != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.QueryGetApplicationRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.QueryGetApplicationRequest 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_QueryGetApplicationRequest) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.QueryGetApplicationRequest.address":
+ x.Address = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.QueryGetApplicationRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.QueryGetApplicationRequest 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_QueryGetApplicationRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.QueryGetApplicationRequest.address":
+ value := x.Address
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.QueryGetApplicationRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.QueryGetApplicationRequest 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_QueryGetApplicationRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.QueryGetApplicationRequest.address":
+ x.Address = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.QueryGetApplicationRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.QueryGetApplicationRequest 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_QueryGetApplicationRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.QueryGetApplicationRequest.address":
+ panic(fmt.Errorf("field address of message poktroll.QueryGetApplicationRequest is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.QueryGetApplicationRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.QueryGetApplicationRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_QueryGetApplicationRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.QueryGetApplicationRequest.address":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.QueryGetApplicationRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.QueryGetApplicationRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_QueryGetApplicationRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.QueryGetApplicationRequest", 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_QueryGetApplicationRequest) 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_QueryGetApplicationRequest) 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_QueryGetApplicationRequest) 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_QueryGetApplicationRequest) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryGetApplicationRequest)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Address)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*QueryGetApplicationRequest)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Address) > 0 {
+ i -= len(x.Address)
+ copy(dAtA[i:], x.Address)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address)))
+ i--
+ dAtA[i] = 0xa
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*QueryGetApplicationRequest)
+ 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: QueryGetApplicationRequest: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetApplicationRequest: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Address = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_QueryGetApplicationResponse protoreflect.MessageDescriptor
+ fd_QueryGetApplicationResponse_application protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_application_query_proto_init()
+ md_QueryGetApplicationResponse = File_poktroll_application_query_proto.Messages().ByName("QueryGetApplicationResponse")
+ fd_QueryGetApplicationResponse_application = md_QueryGetApplicationResponse.Fields().ByName("application")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryGetApplicationResponse)(nil)
+
+type fastReflection_QueryGetApplicationResponse QueryGetApplicationResponse
+
+func (x *QueryGetApplicationResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryGetApplicationResponse)(x)
+}
+
+func (x *QueryGetApplicationResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_application_query_proto_msgTypes[3]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryGetApplicationResponse_messageType fastReflection_QueryGetApplicationResponse_messageType
+var _ protoreflect.MessageType = fastReflection_QueryGetApplicationResponse_messageType{}
+
+type fastReflection_QueryGetApplicationResponse_messageType struct{}
+
+func (x fastReflection_QueryGetApplicationResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryGetApplicationResponse)(nil)
+}
+func (x fastReflection_QueryGetApplicationResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryGetApplicationResponse)
+}
+func (x fastReflection_QueryGetApplicationResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryGetApplicationResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_QueryGetApplicationResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryGetApplicationResponse
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_QueryGetApplicationResponse) Type() protoreflect.MessageType {
+ return _fastReflection_QueryGetApplicationResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_QueryGetApplicationResponse) New() protoreflect.Message {
+ return new(fastReflection_QueryGetApplicationResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_QueryGetApplicationResponse) Interface() protoreflect.ProtoMessage {
+ return (*QueryGetApplicationResponse)(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_QueryGetApplicationResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Application != nil {
+ value := protoreflect.ValueOfMessage(x.Application.ProtoReflect())
+ if !f(fd_QueryGetApplicationResponse_application, 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_QueryGetApplicationResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.QueryGetApplicationResponse.application":
+ return x.Application != nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.QueryGetApplicationResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.QueryGetApplicationResponse 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_QueryGetApplicationResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.QueryGetApplicationResponse.application":
+ x.Application = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.QueryGetApplicationResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.QueryGetApplicationResponse 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_QueryGetApplicationResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.QueryGetApplicationResponse.application":
+ value := x.Application
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.QueryGetApplicationResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.QueryGetApplicationResponse 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_QueryGetApplicationResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.QueryGetApplicationResponse.application":
+ x.Application = value.Message().Interface().(*Application)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.QueryGetApplicationResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.QueryGetApplicationResponse 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_QueryGetApplicationResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.QueryGetApplicationResponse.application":
+ if x.Application == nil {
+ x.Application = new(Application)
+ }
+ return protoreflect.ValueOfMessage(x.Application.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.QueryGetApplicationResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.QueryGetApplicationResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_QueryGetApplicationResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.QueryGetApplicationResponse.application":
+ m := new(Application)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.QueryGetApplicationResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.QueryGetApplicationResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_QueryGetApplicationResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.QueryGetApplicationResponse", 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_QueryGetApplicationResponse) 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_QueryGetApplicationResponse) 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_QueryGetApplicationResponse) 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_QueryGetApplicationResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryGetApplicationResponse)
+ 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.Application != nil {
+ l = options.Size(x.Application)
+ 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().(*QueryGetApplicationResponse)
+ 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.Application != nil {
+ encoded, err := options.Marshal(x.Application)
+ 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().(*QueryGetApplicationResponse)
+ 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: QueryGetApplicationResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetApplicationResponse: 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 Application", 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.Application == nil {
+ x.Application = &Application{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Application); 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_QueryAllApplicationsRequest protoreflect.MessageDescriptor
+ fd_QueryAllApplicationsRequest_pagination protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_application_query_proto_init()
+ md_QueryAllApplicationsRequest = File_poktroll_application_query_proto.Messages().ByName("QueryAllApplicationsRequest")
+ fd_QueryAllApplicationsRequest_pagination = md_QueryAllApplicationsRequest.Fields().ByName("pagination")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryAllApplicationsRequest)(nil)
+
+type fastReflection_QueryAllApplicationsRequest QueryAllApplicationsRequest
+
+func (x *QueryAllApplicationsRequest) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryAllApplicationsRequest)(x)
+}
+
+func (x *QueryAllApplicationsRequest) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_application_query_proto_msgTypes[4]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryAllApplicationsRequest_messageType fastReflection_QueryAllApplicationsRequest_messageType
+var _ protoreflect.MessageType = fastReflection_QueryAllApplicationsRequest_messageType{}
+
+type fastReflection_QueryAllApplicationsRequest_messageType struct{}
+
+func (x fastReflection_QueryAllApplicationsRequest_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryAllApplicationsRequest)(nil)
+}
+func (x fastReflection_QueryAllApplicationsRequest_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryAllApplicationsRequest)
+}
+func (x fastReflection_QueryAllApplicationsRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryAllApplicationsRequest
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_QueryAllApplicationsRequest) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryAllApplicationsRequest
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_QueryAllApplicationsRequest) Type() protoreflect.MessageType {
+ return _fastReflection_QueryAllApplicationsRequest_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_QueryAllApplicationsRequest) New() protoreflect.Message {
+ return new(fastReflection_QueryAllApplicationsRequest)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_QueryAllApplicationsRequest) Interface() protoreflect.ProtoMessage {
+ return (*QueryAllApplicationsRequest)(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_QueryAllApplicationsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Pagination != nil {
+ value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
+ if !f(fd_QueryAllApplicationsRequest_pagination, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_QueryAllApplicationsRequest) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.QueryAllApplicationsRequest.pagination":
+ return x.Pagination != nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.QueryAllApplicationsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.QueryAllApplicationsRequest 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_QueryAllApplicationsRequest) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.QueryAllApplicationsRequest.pagination":
+ x.Pagination = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.QueryAllApplicationsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.QueryAllApplicationsRequest 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_QueryAllApplicationsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.QueryAllApplicationsRequest.pagination":
+ value := x.Pagination
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.QueryAllApplicationsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.QueryAllApplicationsRequest 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_QueryAllApplicationsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.QueryAllApplicationsRequest.pagination":
+ x.Pagination = value.Message().Interface().(*v1beta1.PageRequest)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.QueryAllApplicationsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.QueryAllApplicationsRequest 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_QueryAllApplicationsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.QueryAllApplicationsRequest.pagination":
+ if x.Pagination == nil {
+ x.Pagination = new(v1beta1.PageRequest)
+ }
+ return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.QueryAllApplicationsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.QueryAllApplicationsRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_QueryAllApplicationsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.QueryAllApplicationsRequest.pagination":
+ m := new(v1beta1.PageRequest)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.QueryAllApplicationsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.QueryAllApplicationsRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_QueryAllApplicationsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.QueryAllApplicationsRequest", 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_QueryAllApplicationsRequest) 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_QueryAllApplicationsRequest) 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_QueryAllApplicationsRequest) 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_QueryAllApplicationsRequest) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryAllApplicationsRequest)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.Pagination != nil {
+ l = options.Size(x.Pagination)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*QueryAllApplicationsRequest)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if x.Pagination != nil {
+ encoded, err := options.Marshal(x.Pagination)
+ if err != nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, err
+ }
+ i -= len(encoded)
+ copy(dAtA[i:], encoded)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
+ i--
+ dAtA[i] = 0xa
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*QueryAllApplicationsRequest)
+ 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: QueryAllApplicationsRequest: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllApplicationsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if x.Pagination == nil {
+ x.Pagination = &v1beta1.PageRequest{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var _ protoreflect.List = (*_QueryAllApplicationsResponse_1_list)(nil)
+
+type _QueryAllApplicationsResponse_1_list struct {
+ list *[]*Application
+}
+
+func (x *_QueryAllApplicationsResponse_1_list) Len() int {
+ if x.list == nil {
+ return 0
+ }
+ return len(*x.list)
+}
+
+func (x *_QueryAllApplicationsResponse_1_list) Get(i int) protoreflect.Value {
+ return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
+}
+
+func (x *_QueryAllApplicationsResponse_1_list) Set(i int, value protoreflect.Value) {
+ valueUnwrapped := value.Message()
+ concreteValue := valueUnwrapped.Interface().(*Application)
+ (*x.list)[i] = concreteValue
+}
+
+func (x *_QueryAllApplicationsResponse_1_list) Append(value protoreflect.Value) {
+ valueUnwrapped := value.Message()
+ concreteValue := valueUnwrapped.Interface().(*Application)
+ *x.list = append(*x.list, concreteValue)
+}
+
+func (x *_QueryAllApplicationsResponse_1_list) AppendMutable() protoreflect.Value {
+ v := new(Application)
+ *x.list = append(*x.list, v)
+ return protoreflect.ValueOfMessage(v.ProtoReflect())
+}
+
+func (x *_QueryAllApplicationsResponse_1_list) Truncate(n int) {
+ for i := n; i < len(*x.list); i++ {
+ (*x.list)[i] = nil
+ }
+ *x.list = (*x.list)[:n]
+}
+
+func (x *_QueryAllApplicationsResponse_1_list) NewElement() protoreflect.Value {
+ v := new(Application)
+ return protoreflect.ValueOfMessage(v.ProtoReflect())
+}
+
+func (x *_QueryAllApplicationsResponse_1_list) IsValid() bool {
+ return x.list != nil
+}
+
+var (
+ md_QueryAllApplicationsResponse protoreflect.MessageDescriptor
+ fd_QueryAllApplicationsResponse_applications protoreflect.FieldDescriptor
+ fd_QueryAllApplicationsResponse_pagination protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_application_query_proto_init()
+ md_QueryAllApplicationsResponse = File_poktroll_application_query_proto.Messages().ByName("QueryAllApplicationsResponse")
+ fd_QueryAllApplicationsResponse_applications = md_QueryAllApplicationsResponse.Fields().ByName("applications")
+ fd_QueryAllApplicationsResponse_pagination = md_QueryAllApplicationsResponse.Fields().ByName("pagination")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryAllApplicationsResponse)(nil)
+
+type fastReflection_QueryAllApplicationsResponse QueryAllApplicationsResponse
+
+func (x *QueryAllApplicationsResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryAllApplicationsResponse)(x)
+}
+
+func (x *QueryAllApplicationsResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_application_query_proto_msgTypes[5]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryAllApplicationsResponse_messageType fastReflection_QueryAllApplicationsResponse_messageType
+var _ protoreflect.MessageType = fastReflection_QueryAllApplicationsResponse_messageType{}
+
+type fastReflection_QueryAllApplicationsResponse_messageType struct{}
+
+func (x fastReflection_QueryAllApplicationsResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryAllApplicationsResponse)(nil)
+}
+func (x fastReflection_QueryAllApplicationsResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryAllApplicationsResponse)
+}
+func (x fastReflection_QueryAllApplicationsResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryAllApplicationsResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_QueryAllApplicationsResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryAllApplicationsResponse
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_QueryAllApplicationsResponse) Type() protoreflect.MessageType {
+ return _fastReflection_QueryAllApplicationsResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_QueryAllApplicationsResponse) New() protoreflect.Message {
+ return new(fastReflection_QueryAllApplicationsResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_QueryAllApplicationsResponse) Interface() protoreflect.ProtoMessage {
+ return (*QueryAllApplicationsResponse)(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_QueryAllApplicationsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if len(x.Applications) != 0 {
+ value := protoreflect.ValueOfList(&_QueryAllApplicationsResponse_1_list{list: &x.Applications})
+ if !f(fd_QueryAllApplicationsResponse_applications, value) {
+ return
+ }
+ }
+ if x.Pagination != nil {
+ value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
+ if !f(fd_QueryAllApplicationsResponse_pagination, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_QueryAllApplicationsResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.QueryAllApplicationsResponse.applications":
+ return len(x.Applications) != 0
+ case "poktroll.QueryAllApplicationsResponse.pagination":
+ return x.Pagination != nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.QueryAllApplicationsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.QueryAllApplicationsResponse 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_QueryAllApplicationsResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.QueryAllApplicationsResponse.applications":
+ x.Applications = nil
+ case "poktroll.QueryAllApplicationsResponse.pagination":
+ x.Pagination = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.QueryAllApplicationsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.QueryAllApplicationsResponse 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_QueryAllApplicationsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.QueryAllApplicationsResponse.applications":
+ if len(x.Applications) == 0 {
+ return protoreflect.ValueOfList(&_QueryAllApplicationsResponse_1_list{})
+ }
+ listValue := &_QueryAllApplicationsResponse_1_list{list: &x.Applications}
+ return protoreflect.ValueOfList(listValue)
+ case "poktroll.QueryAllApplicationsResponse.pagination":
+ value := x.Pagination
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.QueryAllApplicationsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.QueryAllApplicationsResponse 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_QueryAllApplicationsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.QueryAllApplicationsResponse.applications":
+ lv := value.List()
+ clv := lv.(*_QueryAllApplicationsResponse_1_list)
+ x.Applications = *clv.list
+ case "poktroll.QueryAllApplicationsResponse.pagination":
+ x.Pagination = value.Message().Interface().(*v1beta1.PageResponse)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.QueryAllApplicationsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.QueryAllApplicationsResponse 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_QueryAllApplicationsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.QueryAllApplicationsResponse.applications":
+ if x.Applications == nil {
+ x.Applications = []*Application{}
+ }
+ value := &_QueryAllApplicationsResponse_1_list{list: &x.Applications}
+ return protoreflect.ValueOfList(value)
+ case "poktroll.QueryAllApplicationsResponse.pagination":
+ if x.Pagination == nil {
+ x.Pagination = new(v1beta1.PageResponse)
+ }
+ return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.QueryAllApplicationsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.QueryAllApplicationsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_QueryAllApplicationsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.QueryAllApplicationsResponse.applications":
+ list := []*Application{}
+ return protoreflect.ValueOfList(&_QueryAllApplicationsResponse_1_list{list: &list})
+ case "poktroll.QueryAllApplicationsResponse.pagination":
+ m := new(v1beta1.PageResponse)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.QueryAllApplicationsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.QueryAllApplicationsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_QueryAllApplicationsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.QueryAllApplicationsResponse", 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_QueryAllApplicationsResponse) 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_QueryAllApplicationsResponse) 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_QueryAllApplicationsResponse) 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_QueryAllApplicationsResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryAllApplicationsResponse)
+ 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.Applications) > 0 {
+ for _, e := range x.Applications {
+ l = options.Size(e)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ }
+ if x.Pagination != nil {
+ l = options.Size(x.Pagination)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*QueryAllApplicationsResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if x.Pagination != nil {
+ encoded, err := options.Marshal(x.Pagination)
+ if err != nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, err
+ }
+ i -= len(encoded)
+ copy(dAtA[i:], encoded)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if len(x.Applications) > 0 {
+ for iNdEx := len(x.Applications) - 1; iNdEx >= 0; iNdEx-- {
+ encoded, err := options.Marshal(x.Applications[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().(*QueryAllApplicationsResponse)
+ 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: QueryAllApplicationsResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllApplicationsResponse: 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 Applications", 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.Applications = append(x.Applications, &Application{})
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Applications[len(x.Applications)-1]); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if x.Pagination == nil {
+ x.Pagination = &v1beta1.PageResponse{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.27.0
+// protoc (unknown)
+// source: poktroll/application/query.proto
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+// QueryParamsRequest is request type for the Query/Params RPC method.
+type QueryParamsRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+}
+
+func (x *QueryParamsRequest) Reset() {
+ *x = QueryParamsRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_application_query_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryParamsRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryParamsRequest) ProtoMessage() {}
+
+// Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead.
+func (*QueryParamsRequest) Descriptor() ([]byte, []int) {
+ return file_poktroll_application_query_proto_rawDescGZIP(), []int{0}
+}
+
+// QueryParamsResponse is response type for the Query/Params RPC method.
+type QueryParamsResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // params holds all the parameters of this module.
+ Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
+}
+
+func (x *QueryParamsResponse) Reset() {
+ *x = QueryParamsResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_application_query_proto_msgTypes[1]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryParamsResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryParamsResponse) ProtoMessage() {}
+
+// Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead.
+func (*QueryParamsResponse) Descriptor() ([]byte, []int) {
+ return file_poktroll_application_query_proto_rawDescGZIP(), []int{1}
+}
+
+func (x *QueryParamsResponse) GetParams() *Params {
+ if x != nil {
+ return x.Params
+ }
+ return nil
+}
+
+type QueryGetApplicationRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
+}
+
+func (x *QueryGetApplicationRequest) Reset() {
+ *x = QueryGetApplicationRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_application_query_proto_msgTypes[2]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryGetApplicationRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryGetApplicationRequest) ProtoMessage() {}
+
+// Deprecated: Use QueryGetApplicationRequest.ProtoReflect.Descriptor instead.
+func (*QueryGetApplicationRequest) Descriptor() ([]byte, []int) {
+ return file_poktroll_application_query_proto_rawDescGZIP(), []int{2}
+}
+
+func (x *QueryGetApplicationRequest) GetAddress() string {
+ if x != nil {
+ return x.Address
+ }
+ return ""
+}
+
+type QueryGetApplicationResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Application *Application `protobuf:"bytes,1,opt,name=application,proto3" json:"application,omitempty"`
+}
+
+func (x *QueryGetApplicationResponse) Reset() {
+ *x = QueryGetApplicationResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_application_query_proto_msgTypes[3]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryGetApplicationResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryGetApplicationResponse) ProtoMessage() {}
+
+// Deprecated: Use QueryGetApplicationResponse.ProtoReflect.Descriptor instead.
+func (*QueryGetApplicationResponse) Descriptor() ([]byte, []int) {
+ return file_poktroll_application_query_proto_rawDescGZIP(), []int{3}
+}
+
+func (x *QueryGetApplicationResponse) GetApplication() *Application {
+ if x != nil {
+ return x.Application
+ }
+ return nil
+}
+
+type QueryAllApplicationsRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
+}
+
+func (x *QueryAllApplicationsRequest) Reset() {
+ *x = QueryAllApplicationsRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_application_query_proto_msgTypes[4]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryAllApplicationsRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryAllApplicationsRequest) ProtoMessage() {}
+
+// Deprecated: Use QueryAllApplicationsRequest.ProtoReflect.Descriptor instead.
+func (*QueryAllApplicationsRequest) Descriptor() ([]byte, []int) {
+ return file_poktroll_application_query_proto_rawDescGZIP(), []int{4}
+}
+
+func (x *QueryAllApplicationsRequest) GetPagination() *v1beta1.PageRequest {
+ if x != nil {
+ return x.Pagination
+ }
+ return nil
+}
+
+type QueryAllApplicationsResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Applications []*Application `protobuf:"bytes,1,rep,name=applications,proto3" json:"applications,omitempty"`
+ Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
+}
+
+func (x *QueryAllApplicationsResponse) Reset() {
+ *x = QueryAllApplicationsResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_application_query_proto_msgTypes[5]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryAllApplicationsResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryAllApplicationsResponse) ProtoMessage() {}
+
+// Deprecated: Use QueryAllApplicationsResponse.ProtoReflect.Descriptor instead.
+func (*QueryAllApplicationsResponse) Descriptor() ([]byte, []int) {
+ return file_poktroll_application_query_proto_rawDescGZIP(), []int{5}
+}
+
+func (x *QueryAllApplicationsResponse) GetApplications() []*Application {
+ if x != nil {
+ return x.Applications
+ }
+ return nil
+}
+
+func (x *QueryAllApplicationsResponse) GetPagination() *v1beta1.PageResponse {
+ if x != nil {
+ return x.Pagination
+ }
+ return nil
+}
+
+var File_poktroll_application_query_proto protoreflect.FileDescriptor
+
+var file_poktroll_application_query_proto_rawDesc = []byte{
+ 0x0a, 0x20, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x61, 0x70, 0x70, 0x6c, 0x69,
+ 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f,
+ 0x74, 0x6f, 0x12, 0x14, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x61, 0x70, 0x70,
+ 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 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, 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,
+ 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, 0x1e, 0x63, 0x6f, 0x73,
+ 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
+ 0x2f, 0x63, 0x6f, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x70, 0x6f, 0x6b,
+ 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f,
+ 0x6e, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x26,
+ 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61,
+ 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,
+ 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, 0x56, 0x0a, 0x13,
+ 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
+ 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20,
+ 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x61,
+ 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 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, 0x36, 0x0a, 0x1a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74,
+ 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65,
+ 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20,
+ 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x68, 0x0a, 0x1b,
+ 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74,
+ 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x49, 0x0a, 0x0b, 0x61,
+ 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
+ 0x32, 0x21, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x61, 0x70, 0x70, 0x6c,
+ 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74,
+ 0x69, 0x6f, 0x6e, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0b, 0x61, 0x70, 0x70, 0x6c, 0x69,
+ 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x65, 0x0a, 0x1b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41,
+ 0x6c, 0x6c, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65,
+ 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74,
+ 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d,
+ 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31,
+ 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
+ 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xb4, 0x01,
+ 0x0a, 0x1c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63,
+ 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4b,
+ 0x0a, 0x0c, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01,
+ 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e,
+ 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x41, 0x70, 0x70, 0x6c,
+ 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x61,
+ 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70,
+ 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
+ 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75,
+ 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65,
+ 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61,
+ 0x74, 0x69, 0x6f, 0x6e, 0x32, 0x84, 0x04, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x90,
+ 0x01, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x28, 0x2e, 0x70, 0x6f, 0x6b, 0x74,
+ 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,
+ 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75,
+ 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x61,
+ 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79,
+ 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x31,
+ 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x12, 0x29, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x2d, 0x6e, 0x65,
+ 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x61,
+ 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d,
+ 0x73, 0x12, 0xb4, 0x01, 0x0a, 0x0b, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f,
+ 0x6e, 0x12, 0x30, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x61, 0x70, 0x70,
+ 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65,
+ 0x74, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75,
+ 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x61,
+ 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79,
+ 0x47, 0x65, 0x74, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65,
+ 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x40, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3a, 0x12, 0x38,
+ 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x70, 0x6f,
+ 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69,
+ 0x6f, 0x6e, 0x2f, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x7b,
+ 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x12, 0xb0, 0x01, 0x0a, 0x0f, 0x41, 0x6c, 0x6c,
+ 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x31, 0x2e, 0x70,
+ 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74,
+ 0x69, 0x6f, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x41, 0x70, 0x70, 0x6c,
+ 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
+ 0x32, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x69,
+ 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x41,
+ 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
+ 0x6e, 0x73, 0x65, 0x22, 0x36, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x30, 0x12, 0x2e, 0x2f, 0x70, 0x6f,
+ 0x6b, 0x74, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72,
+ 0x6f, 0x6c, 0x6c, 0x2f, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f,
+ 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0xbe, 0x01, 0x0a, 0x18,
+ 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x61, 0x70, 0x70,
+ 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50,
+ 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x25, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64,
+ 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c,
+ 0x6c, 0x2f, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0xa2, 0x02, 0x03,
+ 0x50, 0x41, 0x58, 0xaa, 0x02, 0x14, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x41,
+ 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0xca, 0x02, 0x14, 0x50, 0x6f, 0x6b,
+ 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f,
+ 0x6e, 0xe2, 0x02, 0x20, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x41, 0x70, 0x70,
+ 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61,
+ 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x15, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x3a,
+ 0x3a, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72,
+ 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_poktroll_application_query_proto_rawDescOnce sync.Once
+ file_poktroll_application_query_proto_rawDescData = file_poktroll_application_query_proto_rawDesc
+)
+
+func file_poktroll_application_query_proto_rawDescGZIP() []byte {
+ file_poktroll_application_query_proto_rawDescOnce.Do(func() {
+ file_poktroll_application_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_poktroll_application_query_proto_rawDescData)
+ })
+ return file_poktroll_application_query_proto_rawDescData
+}
+
+var file_poktroll_application_query_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
+var file_poktroll_application_query_proto_goTypes = []interface{}{
+ (*QueryParamsRequest)(nil), // 0: poktroll.QueryParamsRequest
+ (*QueryParamsResponse)(nil), // 1: poktroll.QueryParamsResponse
+ (*QueryGetApplicationRequest)(nil), // 2: poktroll.QueryGetApplicationRequest
+ (*QueryGetApplicationResponse)(nil), // 3: poktroll.QueryGetApplicationResponse
+ (*QueryAllApplicationsRequest)(nil), // 4: poktroll.QueryAllApplicationsRequest
+ (*QueryAllApplicationsResponse)(nil), // 5: poktroll.QueryAllApplicationsResponse
+ (*Params)(nil), // 6: poktroll.Params
+ (*Application)(nil), // 7: poktroll.Application
+ (*v1beta1.PageRequest)(nil), // 8: cosmos.base.query.v1beta1.PageRequest
+ (*v1beta1.PageResponse)(nil), // 9: cosmos.base.query.v1beta1.PageResponse
+}
+var file_poktroll_application_query_proto_depIdxs = []int32{
+ 6, // 0: poktroll.QueryParamsResponse.params:type_name -> poktroll.Params
+ 7, // 1: poktroll.QueryGetApplicationResponse.application:type_name -> poktroll.Application
+ 8, // 2: poktroll.QueryAllApplicationsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest
+ 7, // 3: poktroll.QueryAllApplicationsResponse.applications:type_name -> poktroll.Application
+ 9, // 4: poktroll.QueryAllApplicationsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse
+ 0, // 5: poktroll.Query.Params:input_type -> poktroll.QueryParamsRequest
+ 2, // 6: poktroll.Query.Application:input_type -> poktroll.QueryGetApplicationRequest
+ 4, // 7: poktroll.Query.AllApplications:input_type -> poktroll.QueryAllApplicationsRequest
+ 1, // 8: poktroll.Query.Params:output_type -> poktroll.QueryParamsResponse
+ 3, // 9: poktroll.Query.Application:output_type -> poktroll.QueryGetApplicationResponse
+ 5, // 10: poktroll.Query.AllApplications:output_type -> poktroll.QueryAllApplicationsResponse
+ 8, // [8:11] is the sub-list for method output_type
+ 5, // [5:8] 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_poktroll_application_query_proto_init() }
+func file_poktroll_application_query_proto_init() {
+ if File_poktroll_application_query_proto != nil {
+ return
+ }
+ file_poktroll_application_params_proto_init()
+ if !protoimpl.UnsafeEnabled {
+ file_poktroll_application_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryParamsRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_application_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryParamsResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_application_query_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryGetApplicationRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_application_query_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryGetApplicationResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_application_query_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryAllApplicationsRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_application_query_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryAllApplicationsResponse); 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_poktroll_application_query_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 6,
+ NumExtensions: 0,
+ NumServices: 1,
+ },
+ GoTypes: file_poktroll_application_query_proto_goTypes,
+ DependencyIndexes: file_poktroll_application_query_proto_depIdxs,
+ MessageInfos: file_poktroll_application_query_proto_msgTypes,
+ }.Build()
+ File_poktroll_application_query_proto = out.File
+ file_poktroll_application_query_proto_rawDesc = nil
+ file_poktroll_application_query_proto_goTypes = nil
+ file_poktroll_application_query_proto_depIdxs = nil
+}
diff --git a/api/poktroll/application/tx.pulsar.go b/api/poktroll/application/tx.pulsar.go
new file mode 100644
index 000000000..001bc03ec
--- /dev/null
+++ b/api/poktroll/application/tx.pulsar.go
@@ -0,0 +1,5015 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package application
+
+import (
+ _ "cosmossdk.io/api/amino"
+ v1beta1 "cosmossdk.io/api/cosmos/base/v1beta1"
+ _ "cosmossdk.io/api/cosmos/msg/v1"
+ fmt "fmt"
+ _ "github.com/cosmos/cosmos-proto"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ _ "github.com/cosmos/gogoproto/gogoproto"
+ shared "github.com/pokt-network/poktroll/api/poktroll/shared"
+ 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_MsgUpdateParams protoreflect.MessageDescriptor
+ fd_MsgUpdateParams_authority protoreflect.FieldDescriptor
+ fd_MsgUpdateParams_params protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_application_tx_proto_init()
+ md_MsgUpdateParams = File_poktroll_application_tx_proto.Messages().ByName("MsgUpdateParams")
+ fd_MsgUpdateParams_authority = md_MsgUpdateParams.Fields().ByName("authority")
+ 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_poktroll_application_tx_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_MsgUpdateParams_messageType fastReflection_MsgUpdateParams_messageType
+var _ protoreflect.MessageType = fastReflection_MsgUpdateParams_messageType{}
+
+type fastReflection_MsgUpdateParams_messageType struct{}
+
+func (x fastReflection_MsgUpdateParams_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_MsgUpdateParams)(nil)
+}
+func (x fastReflection_MsgUpdateParams_messageType) New() protoreflect.Message {
+ return new(fastReflection_MsgUpdateParams)
+}
+func (x fastReflection_MsgUpdateParams_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgUpdateParams
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_MsgUpdateParams) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgUpdateParams
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_MsgUpdateParams) Type() protoreflect.MessageType {
+ return _fastReflection_MsgUpdateParams_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_MsgUpdateParams) New() protoreflect.Message {
+ return new(fastReflection_MsgUpdateParams)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_MsgUpdateParams) Interface() protoreflect.ProtoMessage {
+ return (*MsgUpdateParams)(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_MsgUpdateParams) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Authority != "" {
+ value := protoreflect.ValueOfString(x.Authority)
+ if !f(fd_MsgUpdateParams_authority, value) {
+ return
+ }
+ }
+ if x.Params != nil {
+ value := protoreflect.ValueOfMessage(x.Params.ProtoReflect())
+ if !f(fd_MsgUpdateParams_params, 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_MsgUpdateParams) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.application.MsgUpdateParams.authority":
+ return x.Authority != ""
+ case "poktroll.application.MsgUpdateParams.params":
+ return x.Params != nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgUpdateParams"))
+ }
+ panic(fmt.Errorf("message poktroll.application.MsgUpdateParams 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_MsgUpdateParams) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.application.MsgUpdateParams.authority":
+ x.Authority = ""
+ case "poktroll.application.MsgUpdateParams.params":
+ x.Params = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgUpdateParams"))
+ }
+ panic(fmt.Errorf("message poktroll.application.MsgUpdateParams 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_MsgUpdateParams) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.application.MsgUpdateParams.authority":
+ value := x.Authority
+ return protoreflect.ValueOfString(value)
+ case "poktroll.application.MsgUpdateParams.params":
+ value := x.Params
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgUpdateParams"))
+ }
+ panic(fmt.Errorf("message poktroll.application.MsgUpdateParams 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_MsgUpdateParams) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.application.MsgUpdateParams.authority":
+ x.Authority = value.Interface().(string)
+ case "poktroll.application.MsgUpdateParams.params":
+ x.Params = value.Message().Interface().(*Params)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgUpdateParams"))
+ }
+ panic(fmt.Errorf("message poktroll.application.MsgUpdateParams 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_MsgUpdateParams) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.application.MsgUpdateParams.params":
+ if x.Params == nil {
+ x.Params = new(Params)
+ }
+ return protoreflect.ValueOfMessage(x.Params.ProtoReflect())
+ case "poktroll.application.MsgUpdateParams.authority":
+ panic(fmt.Errorf("field authority of message poktroll.application.MsgUpdateParams is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgUpdateParams"))
+ }
+ panic(fmt.Errorf("message poktroll.application.MsgUpdateParams does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// 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 "poktroll.application.MsgUpdateParams.authority":
+ return protoreflect.ValueOfString("")
+ case "poktroll.application.MsgUpdateParams.params":
+ m := new(Params)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgUpdateParams"))
+ }
+ panic(fmt.Errorf("message poktroll.application.MsgUpdateParams does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_MsgUpdateParams) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.application.MsgUpdateParams", 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_MsgUpdateParams) 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_MsgUpdateParams) 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_MsgUpdateParams) 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_MsgUpdateParams) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*MsgUpdateParams)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Authority)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.Params != nil {
+ l = options.Size(x.Params)
+ 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().(*MsgUpdateParams)
+ 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.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] = 0x12
+ }
+ if len(x.Authority) > 0 {
+ i -= len(x.Authority)
+ copy(dAtA[i:], x.Authority)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority)))
+ i--
+ dAtA[i] = 0xa
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*MsgUpdateParams)
+ 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: MsgUpdateParams: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParams: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Authority = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field 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
+ 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_MsgUpdateParamsResponse protoreflect.MessageDescriptor
+)
+
+func init() {
+ file_poktroll_application_tx_proto_init()
+ md_MsgUpdateParamsResponse = File_poktroll_application_tx_proto.Messages().ByName("MsgUpdateParamsResponse")
+}
+
+var _ protoreflect.Message = (*fastReflection_MsgUpdateParamsResponse)(nil)
+
+type fastReflection_MsgUpdateParamsResponse MsgUpdateParamsResponse
+
+func (x *MsgUpdateParamsResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_MsgUpdateParamsResponse)(x)
+}
+
+func (x *MsgUpdateParamsResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_application_tx_proto_msgTypes[1]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_MsgUpdateParamsResponse_messageType fastReflection_MsgUpdateParamsResponse_messageType
+var _ protoreflect.MessageType = fastReflection_MsgUpdateParamsResponse_messageType{}
+
+type fastReflection_MsgUpdateParamsResponse_messageType struct{}
+
+func (x fastReflection_MsgUpdateParamsResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_MsgUpdateParamsResponse)(nil)
+}
+func (x fastReflection_MsgUpdateParamsResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_MsgUpdateParamsResponse)
+}
+func (x fastReflection_MsgUpdateParamsResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgUpdateParamsResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_MsgUpdateParamsResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgUpdateParamsResponse
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_MsgUpdateParamsResponse) Type() protoreflect.MessageType {
+ return _fastReflection_MsgUpdateParamsResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_MsgUpdateParamsResponse) New() protoreflect.Message {
+ return new(fastReflection_MsgUpdateParamsResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_MsgUpdateParamsResponse) Interface() protoreflect.ProtoMessage {
+ return (*MsgUpdateParamsResponse)(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_MsgUpdateParamsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_MsgUpdateParamsResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgUpdateParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.application.MsgUpdateParamsResponse 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_MsgUpdateParamsResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgUpdateParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.application.MsgUpdateParamsResponse 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_MsgUpdateParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgUpdateParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.application.MsgUpdateParamsResponse 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_MsgUpdateParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgUpdateParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.application.MsgUpdateParamsResponse 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_MsgUpdateParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgUpdateParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.application.MsgUpdateParamsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_MsgUpdateParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgUpdateParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.application.MsgUpdateParamsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_MsgUpdateParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.application.MsgUpdateParamsResponse", 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_MsgUpdateParamsResponse) 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_MsgUpdateParamsResponse) 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_MsgUpdateParamsResponse) 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_MsgUpdateParamsResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*MsgUpdateParamsResponse)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*MsgUpdateParamsResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*MsgUpdateParamsResponse)
+ 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: MsgUpdateParamsResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var _ protoreflect.List = (*_MsgStakeApplication_3_list)(nil)
+
+type _MsgStakeApplication_3_list struct {
+ list *[]*shared.ApplicationServiceConfig
+}
+
+func (x *_MsgStakeApplication_3_list) Len() int {
+ if x.list == nil {
+ return 0
+ }
+ return len(*x.list)
+}
+
+func (x *_MsgStakeApplication_3_list) Get(i int) protoreflect.Value {
+ return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
+}
+
+func (x *_MsgStakeApplication_3_list) Set(i int, value protoreflect.Value) {
+ valueUnwrapped := value.Message()
+ concreteValue := valueUnwrapped.Interface().(*shared.ApplicationServiceConfig)
+ (*x.list)[i] = concreteValue
+}
+
+func (x *_MsgStakeApplication_3_list) Append(value protoreflect.Value) {
+ valueUnwrapped := value.Message()
+ concreteValue := valueUnwrapped.Interface().(*shared.ApplicationServiceConfig)
+ *x.list = append(*x.list, concreteValue)
+}
+
+func (x *_MsgStakeApplication_3_list) AppendMutable() protoreflect.Value {
+ v := new(shared.ApplicationServiceConfig)
+ *x.list = append(*x.list, v)
+ return protoreflect.ValueOfMessage(v.ProtoReflect())
+}
+
+func (x *_MsgStakeApplication_3_list) Truncate(n int) {
+ for i := n; i < len(*x.list); i++ {
+ (*x.list)[i] = nil
+ }
+ *x.list = (*x.list)[:n]
+}
+
+func (x *_MsgStakeApplication_3_list) NewElement() protoreflect.Value {
+ v := new(shared.ApplicationServiceConfig)
+ return protoreflect.ValueOfMessage(v.ProtoReflect())
+}
+
+func (x *_MsgStakeApplication_3_list) IsValid() bool {
+ return x.list != nil
+}
+
+var (
+ md_MsgStakeApplication protoreflect.MessageDescriptor
+ fd_MsgStakeApplication_address protoreflect.FieldDescriptor
+ fd_MsgStakeApplication_stake protoreflect.FieldDescriptor
+ fd_MsgStakeApplication_services protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_application_tx_proto_init()
+ md_MsgStakeApplication = File_poktroll_application_tx_proto.Messages().ByName("MsgStakeApplication")
+ fd_MsgStakeApplication_address = md_MsgStakeApplication.Fields().ByName("address")
+ fd_MsgStakeApplication_stake = md_MsgStakeApplication.Fields().ByName("stake")
+ fd_MsgStakeApplication_services = md_MsgStakeApplication.Fields().ByName("services")
+}
+
+var _ protoreflect.Message = (*fastReflection_MsgStakeApplication)(nil)
+
+type fastReflection_MsgStakeApplication MsgStakeApplication
+
+func (x *MsgStakeApplication) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_MsgStakeApplication)(x)
+}
+
+func (x *MsgStakeApplication) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_application_tx_proto_msgTypes[2]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_MsgStakeApplication_messageType fastReflection_MsgStakeApplication_messageType
+var _ protoreflect.MessageType = fastReflection_MsgStakeApplication_messageType{}
+
+type fastReflection_MsgStakeApplication_messageType struct{}
+
+func (x fastReflection_MsgStakeApplication_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_MsgStakeApplication)(nil)
+}
+func (x fastReflection_MsgStakeApplication_messageType) New() protoreflect.Message {
+ return new(fastReflection_MsgStakeApplication)
+}
+func (x fastReflection_MsgStakeApplication_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgStakeApplication
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_MsgStakeApplication) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgStakeApplication
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_MsgStakeApplication) Type() protoreflect.MessageType {
+ return _fastReflection_MsgStakeApplication_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_MsgStakeApplication) New() protoreflect.Message {
+ return new(fastReflection_MsgStakeApplication)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_MsgStakeApplication) Interface() protoreflect.ProtoMessage {
+ return (*MsgStakeApplication)(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_MsgStakeApplication) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Address != "" {
+ value := protoreflect.ValueOfString(x.Address)
+ if !f(fd_MsgStakeApplication_address, value) {
+ return
+ }
+ }
+ if x.Stake != nil {
+ value := protoreflect.ValueOfMessage(x.Stake.ProtoReflect())
+ if !f(fd_MsgStakeApplication_stake, value) {
+ return
+ }
+ }
+ if len(x.Services) != 0 {
+ value := protoreflect.ValueOfList(&_MsgStakeApplication_3_list{list: &x.Services})
+ if !f(fd_MsgStakeApplication_services, 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_MsgStakeApplication) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.application.MsgStakeApplication.address":
+ return x.Address != ""
+ case "poktroll.application.MsgStakeApplication.stake":
+ return x.Stake != nil
+ case "poktroll.application.MsgStakeApplication.services":
+ return len(x.Services) != 0
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgStakeApplication"))
+ }
+ panic(fmt.Errorf("message poktroll.application.MsgStakeApplication 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_MsgStakeApplication) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.application.MsgStakeApplication.address":
+ x.Address = ""
+ case "poktroll.application.MsgStakeApplication.stake":
+ x.Stake = nil
+ case "poktroll.application.MsgStakeApplication.services":
+ x.Services = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgStakeApplication"))
+ }
+ panic(fmt.Errorf("message poktroll.application.MsgStakeApplication 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_MsgStakeApplication) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.application.MsgStakeApplication.address":
+ value := x.Address
+ return protoreflect.ValueOfString(value)
+ case "poktroll.application.MsgStakeApplication.stake":
+ value := x.Stake
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ case "poktroll.application.MsgStakeApplication.services":
+ if len(x.Services) == 0 {
+ return protoreflect.ValueOfList(&_MsgStakeApplication_3_list{})
+ }
+ listValue := &_MsgStakeApplication_3_list{list: &x.Services}
+ return protoreflect.ValueOfList(listValue)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgStakeApplication"))
+ }
+ panic(fmt.Errorf("message poktroll.application.MsgStakeApplication 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_MsgStakeApplication) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.application.MsgStakeApplication.address":
+ x.Address = value.Interface().(string)
+ case "poktroll.application.MsgStakeApplication.stake":
+ x.Stake = value.Message().Interface().(*v1beta1.Coin)
+ case "poktroll.application.MsgStakeApplication.services":
+ lv := value.List()
+ clv := lv.(*_MsgStakeApplication_3_list)
+ x.Services = *clv.list
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgStakeApplication"))
+ }
+ panic(fmt.Errorf("message poktroll.application.MsgStakeApplication 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_MsgStakeApplication) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.application.MsgStakeApplication.stake":
+ if x.Stake == nil {
+ x.Stake = new(v1beta1.Coin)
+ }
+ return protoreflect.ValueOfMessage(x.Stake.ProtoReflect())
+ case "poktroll.application.MsgStakeApplication.services":
+ if x.Services == nil {
+ x.Services = []*shared.ApplicationServiceConfig{}
+ }
+ value := &_MsgStakeApplication_3_list{list: &x.Services}
+ return protoreflect.ValueOfList(value)
+ case "poktroll.application.MsgStakeApplication.address":
+ panic(fmt.Errorf("field address of message poktroll.application.MsgStakeApplication is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgStakeApplication"))
+ }
+ panic(fmt.Errorf("message poktroll.application.MsgStakeApplication does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_MsgStakeApplication) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.application.MsgStakeApplication.address":
+ return protoreflect.ValueOfString("")
+ case "poktroll.application.MsgStakeApplication.stake":
+ m := new(v1beta1.Coin)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ case "poktroll.application.MsgStakeApplication.services":
+ list := []*shared.ApplicationServiceConfig{}
+ return protoreflect.ValueOfList(&_MsgStakeApplication_3_list{list: &list})
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgStakeApplication"))
+ }
+ panic(fmt.Errorf("message poktroll.application.MsgStakeApplication does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_MsgStakeApplication) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.application.MsgStakeApplication", 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_MsgStakeApplication) 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_MsgStakeApplication) 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_MsgStakeApplication) 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_MsgStakeApplication) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*MsgStakeApplication)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Address)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.Stake != nil {
+ l = options.Size(x.Stake)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if len(x.Services) > 0 {
+ for _, e := range x.Services {
+ 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().(*MsgStakeApplication)
+ 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.Services) > 0 {
+ for iNdEx := len(x.Services) - 1; iNdEx >= 0; iNdEx-- {
+ encoded, err := options.Marshal(x.Services[iNdEx])
+ if err != nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, err
+ }
+ i -= len(encoded)
+ copy(dAtA[i:], encoded)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
+ i--
+ dAtA[i] = 0x1a
+ }
+ }
+ if x.Stake != nil {
+ encoded, err := options.Marshal(x.Stake)
+ if err != nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, err
+ }
+ i -= len(encoded)
+ copy(dAtA[i:], encoded)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if len(x.Address) > 0 {
+ i -= len(x.Address)
+ copy(dAtA[i:], x.Address)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address)))
+ i--
+ dAtA[i] = 0xa
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*MsgStakeApplication)
+ 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: MsgStakeApplication: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgStakeApplication: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Address = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Stake", 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.Stake == nil {
+ x.Stake = &v1beta1.Coin{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Stake); 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 Services", 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.Services = append(x.Services, &shared.ApplicationServiceConfig{})
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Services[len(x.Services)-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_MsgStakeApplicationResponse protoreflect.MessageDescriptor
+)
+
+func init() {
+ file_poktroll_application_tx_proto_init()
+ md_MsgStakeApplicationResponse = File_poktroll_application_tx_proto.Messages().ByName("MsgStakeApplicationResponse")
+}
+
+var _ protoreflect.Message = (*fastReflection_MsgStakeApplicationResponse)(nil)
+
+type fastReflection_MsgStakeApplicationResponse MsgStakeApplicationResponse
+
+func (x *MsgStakeApplicationResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_MsgStakeApplicationResponse)(x)
+}
+
+func (x *MsgStakeApplicationResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_application_tx_proto_msgTypes[3]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_MsgStakeApplicationResponse_messageType fastReflection_MsgStakeApplicationResponse_messageType
+var _ protoreflect.MessageType = fastReflection_MsgStakeApplicationResponse_messageType{}
+
+type fastReflection_MsgStakeApplicationResponse_messageType struct{}
+
+func (x fastReflection_MsgStakeApplicationResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_MsgStakeApplicationResponse)(nil)
+}
+func (x fastReflection_MsgStakeApplicationResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_MsgStakeApplicationResponse)
+}
+func (x fastReflection_MsgStakeApplicationResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgStakeApplicationResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_MsgStakeApplicationResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgStakeApplicationResponse
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_MsgStakeApplicationResponse) Type() protoreflect.MessageType {
+ return _fastReflection_MsgStakeApplicationResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_MsgStakeApplicationResponse) New() protoreflect.Message {
+ return new(fastReflection_MsgStakeApplicationResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_MsgStakeApplicationResponse) Interface() protoreflect.ProtoMessage {
+ return (*MsgStakeApplicationResponse)(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_MsgStakeApplicationResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_MsgStakeApplicationResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgStakeApplicationResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.application.MsgStakeApplicationResponse 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_MsgStakeApplicationResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgStakeApplicationResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.application.MsgStakeApplicationResponse 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_MsgStakeApplicationResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgStakeApplicationResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.application.MsgStakeApplicationResponse 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_MsgStakeApplicationResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgStakeApplicationResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.application.MsgStakeApplicationResponse 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_MsgStakeApplicationResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgStakeApplicationResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.application.MsgStakeApplicationResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_MsgStakeApplicationResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgStakeApplicationResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.application.MsgStakeApplicationResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_MsgStakeApplicationResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.application.MsgStakeApplicationResponse", 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_MsgStakeApplicationResponse) 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_MsgStakeApplicationResponse) 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_MsgStakeApplicationResponse) 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_MsgStakeApplicationResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*MsgStakeApplicationResponse)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*MsgStakeApplicationResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*MsgStakeApplicationResponse)
+ 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: MsgStakeApplicationResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgStakeApplicationResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_MsgUnstakeApplication protoreflect.MessageDescriptor
+ fd_MsgUnstakeApplication_address protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_application_tx_proto_init()
+ md_MsgUnstakeApplication = File_poktroll_application_tx_proto.Messages().ByName("MsgUnstakeApplication")
+ fd_MsgUnstakeApplication_address = md_MsgUnstakeApplication.Fields().ByName("address")
+}
+
+var _ protoreflect.Message = (*fastReflection_MsgUnstakeApplication)(nil)
+
+type fastReflection_MsgUnstakeApplication MsgUnstakeApplication
+
+func (x *MsgUnstakeApplication) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_MsgUnstakeApplication)(x)
+}
+
+func (x *MsgUnstakeApplication) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_application_tx_proto_msgTypes[4]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_MsgUnstakeApplication_messageType fastReflection_MsgUnstakeApplication_messageType
+var _ protoreflect.MessageType = fastReflection_MsgUnstakeApplication_messageType{}
+
+type fastReflection_MsgUnstakeApplication_messageType struct{}
+
+func (x fastReflection_MsgUnstakeApplication_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_MsgUnstakeApplication)(nil)
+}
+func (x fastReflection_MsgUnstakeApplication_messageType) New() protoreflect.Message {
+ return new(fastReflection_MsgUnstakeApplication)
+}
+func (x fastReflection_MsgUnstakeApplication_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgUnstakeApplication
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_MsgUnstakeApplication) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgUnstakeApplication
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_MsgUnstakeApplication) Type() protoreflect.MessageType {
+ return _fastReflection_MsgUnstakeApplication_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_MsgUnstakeApplication) New() protoreflect.Message {
+ return new(fastReflection_MsgUnstakeApplication)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_MsgUnstakeApplication) Interface() protoreflect.ProtoMessage {
+ return (*MsgUnstakeApplication)(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_MsgUnstakeApplication) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Address != "" {
+ value := protoreflect.ValueOfString(x.Address)
+ if !f(fd_MsgUnstakeApplication_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_MsgUnstakeApplication) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.application.MsgUnstakeApplication.address":
+ return x.Address != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgUnstakeApplication"))
+ }
+ panic(fmt.Errorf("message poktroll.application.MsgUnstakeApplication 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_MsgUnstakeApplication) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.application.MsgUnstakeApplication.address":
+ x.Address = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgUnstakeApplication"))
+ }
+ panic(fmt.Errorf("message poktroll.application.MsgUnstakeApplication 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_MsgUnstakeApplication) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.application.MsgUnstakeApplication.address":
+ value := x.Address
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgUnstakeApplication"))
+ }
+ panic(fmt.Errorf("message poktroll.application.MsgUnstakeApplication 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_MsgUnstakeApplication) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.application.MsgUnstakeApplication.address":
+ x.Address = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgUnstakeApplication"))
+ }
+ panic(fmt.Errorf("message poktroll.application.MsgUnstakeApplication 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_MsgUnstakeApplication) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.application.MsgUnstakeApplication.address":
+ panic(fmt.Errorf("field address of message poktroll.application.MsgUnstakeApplication is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgUnstakeApplication"))
+ }
+ panic(fmt.Errorf("message poktroll.application.MsgUnstakeApplication does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_MsgUnstakeApplication) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.application.MsgUnstakeApplication.address":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgUnstakeApplication"))
+ }
+ panic(fmt.Errorf("message poktroll.application.MsgUnstakeApplication does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_MsgUnstakeApplication) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.application.MsgUnstakeApplication", 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_MsgUnstakeApplication) 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_MsgUnstakeApplication) 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_MsgUnstakeApplication) 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_MsgUnstakeApplication) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*MsgUnstakeApplication)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Address)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*MsgUnstakeApplication)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Address) > 0 {
+ i -= len(x.Address)
+ copy(dAtA[i:], x.Address)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address)))
+ i--
+ dAtA[i] = 0xa
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*MsgUnstakeApplication)
+ 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: MsgUnstakeApplication: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUnstakeApplication: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Address = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_MsgUnstakeApplicationResponse protoreflect.MessageDescriptor
+)
+
+func init() {
+ file_poktroll_application_tx_proto_init()
+ md_MsgUnstakeApplicationResponse = File_poktroll_application_tx_proto.Messages().ByName("MsgUnstakeApplicationResponse")
+}
+
+var _ protoreflect.Message = (*fastReflection_MsgUnstakeApplicationResponse)(nil)
+
+type fastReflection_MsgUnstakeApplicationResponse MsgUnstakeApplicationResponse
+
+func (x *MsgUnstakeApplicationResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_MsgUnstakeApplicationResponse)(x)
+}
+
+func (x *MsgUnstakeApplicationResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_application_tx_proto_msgTypes[5]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_MsgUnstakeApplicationResponse_messageType fastReflection_MsgUnstakeApplicationResponse_messageType
+var _ protoreflect.MessageType = fastReflection_MsgUnstakeApplicationResponse_messageType{}
+
+type fastReflection_MsgUnstakeApplicationResponse_messageType struct{}
+
+func (x fastReflection_MsgUnstakeApplicationResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_MsgUnstakeApplicationResponse)(nil)
+}
+func (x fastReflection_MsgUnstakeApplicationResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_MsgUnstakeApplicationResponse)
+}
+func (x fastReflection_MsgUnstakeApplicationResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgUnstakeApplicationResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_MsgUnstakeApplicationResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgUnstakeApplicationResponse
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_MsgUnstakeApplicationResponse) Type() protoreflect.MessageType {
+ return _fastReflection_MsgUnstakeApplicationResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_MsgUnstakeApplicationResponse) New() protoreflect.Message {
+ return new(fastReflection_MsgUnstakeApplicationResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_MsgUnstakeApplicationResponse) Interface() protoreflect.ProtoMessage {
+ return (*MsgUnstakeApplicationResponse)(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_MsgUnstakeApplicationResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_MsgUnstakeApplicationResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgUnstakeApplicationResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.application.MsgUnstakeApplicationResponse 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_MsgUnstakeApplicationResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgUnstakeApplicationResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.application.MsgUnstakeApplicationResponse 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_MsgUnstakeApplicationResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgUnstakeApplicationResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.application.MsgUnstakeApplicationResponse 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_MsgUnstakeApplicationResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgUnstakeApplicationResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.application.MsgUnstakeApplicationResponse 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_MsgUnstakeApplicationResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgUnstakeApplicationResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.application.MsgUnstakeApplicationResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_MsgUnstakeApplicationResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgUnstakeApplicationResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.application.MsgUnstakeApplicationResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_MsgUnstakeApplicationResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.application.MsgUnstakeApplicationResponse", 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_MsgUnstakeApplicationResponse) 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_MsgUnstakeApplicationResponse) 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_MsgUnstakeApplicationResponse) 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_MsgUnstakeApplicationResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*MsgUnstakeApplicationResponse)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*MsgUnstakeApplicationResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*MsgUnstakeApplicationResponse)
+ 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: MsgUnstakeApplicationResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUnstakeApplicationResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_MsgDelegateToGateway protoreflect.MessageDescriptor
+ fd_MsgDelegateToGateway_app_address protoreflect.FieldDescriptor
+ fd_MsgDelegateToGateway_gateway_address protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_application_tx_proto_init()
+ md_MsgDelegateToGateway = File_poktroll_application_tx_proto.Messages().ByName("MsgDelegateToGateway")
+ fd_MsgDelegateToGateway_app_address = md_MsgDelegateToGateway.Fields().ByName("app_address")
+ fd_MsgDelegateToGateway_gateway_address = md_MsgDelegateToGateway.Fields().ByName("gateway_address")
+}
+
+var _ protoreflect.Message = (*fastReflection_MsgDelegateToGateway)(nil)
+
+type fastReflection_MsgDelegateToGateway MsgDelegateToGateway
+
+func (x *MsgDelegateToGateway) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_MsgDelegateToGateway)(x)
+}
+
+func (x *MsgDelegateToGateway) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_application_tx_proto_msgTypes[6]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_MsgDelegateToGateway_messageType fastReflection_MsgDelegateToGateway_messageType
+var _ protoreflect.MessageType = fastReflection_MsgDelegateToGateway_messageType{}
+
+type fastReflection_MsgDelegateToGateway_messageType struct{}
+
+func (x fastReflection_MsgDelegateToGateway_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_MsgDelegateToGateway)(nil)
+}
+func (x fastReflection_MsgDelegateToGateway_messageType) New() protoreflect.Message {
+ return new(fastReflection_MsgDelegateToGateway)
+}
+func (x fastReflection_MsgDelegateToGateway_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgDelegateToGateway
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_MsgDelegateToGateway) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgDelegateToGateway
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_MsgDelegateToGateway) Type() protoreflect.MessageType {
+ return _fastReflection_MsgDelegateToGateway_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_MsgDelegateToGateway) New() protoreflect.Message {
+ return new(fastReflection_MsgDelegateToGateway)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_MsgDelegateToGateway) Interface() protoreflect.ProtoMessage {
+ return (*MsgDelegateToGateway)(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_MsgDelegateToGateway) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.AppAddress != "" {
+ value := protoreflect.ValueOfString(x.AppAddress)
+ if !f(fd_MsgDelegateToGateway_app_address, value) {
+ return
+ }
+ }
+ if x.GatewayAddress != "" {
+ value := protoreflect.ValueOfString(x.GatewayAddress)
+ if !f(fd_MsgDelegateToGateway_gateway_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_MsgDelegateToGateway) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.application.MsgDelegateToGateway.app_address":
+ return x.AppAddress != ""
+ case "poktroll.application.MsgDelegateToGateway.gateway_address":
+ return x.GatewayAddress != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgDelegateToGateway"))
+ }
+ panic(fmt.Errorf("message poktroll.application.MsgDelegateToGateway 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_MsgDelegateToGateway) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.application.MsgDelegateToGateway.app_address":
+ x.AppAddress = ""
+ case "poktroll.application.MsgDelegateToGateway.gateway_address":
+ x.GatewayAddress = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgDelegateToGateway"))
+ }
+ panic(fmt.Errorf("message poktroll.application.MsgDelegateToGateway 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_MsgDelegateToGateway) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.application.MsgDelegateToGateway.app_address":
+ value := x.AppAddress
+ return protoreflect.ValueOfString(value)
+ case "poktroll.application.MsgDelegateToGateway.gateway_address":
+ value := x.GatewayAddress
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgDelegateToGateway"))
+ }
+ panic(fmt.Errorf("message poktroll.application.MsgDelegateToGateway 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_MsgDelegateToGateway) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.application.MsgDelegateToGateway.app_address":
+ x.AppAddress = value.Interface().(string)
+ case "poktroll.application.MsgDelegateToGateway.gateway_address":
+ x.GatewayAddress = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgDelegateToGateway"))
+ }
+ panic(fmt.Errorf("message poktroll.application.MsgDelegateToGateway 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_MsgDelegateToGateway) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.application.MsgDelegateToGateway.app_address":
+ panic(fmt.Errorf("field app_address of message poktroll.application.MsgDelegateToGateway is not mutable"))
+ case "poktroll.application.MsgDelegateToGateway.gateway_address":
+ panic(fmt.Errorf("field gateway_address of message poktroll.application.MsgDelegateToGateway is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgDelegateToGateway"))
+ }
+ panic(fmt.Errorf("message poktroll.application.MsgDelegateToGateway does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_MsgDelegateToGateway) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.application.MsgDelegateToGateway.app_address":
+ return protoreflect.ValueOfString("")
+ case "poktroll.application.MsgDelegateToGateway.gateway_address":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgDelegateToGateway"))
+ }
+ panic(fmt.Errorf("message poktroll.application.MsgDelegateToGateway does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_MsgDelegateToGateway) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.application.MsgDelegateToGateway", 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_MsgDelegateToGateway) 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_MsgDelegateToGateway) 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_MsgDelegateToGateway) 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_MsgDelegateToGateway) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*MsgDelegateToGateway)
+ 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.AppAddress)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.GatewayAddress)
+ 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().(*MsgDelegateToGateway)
+ 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.GatewayAddress) > 0 {
+ i -= len(x.GatewayAddress)
+ copy(dAtA[i:], x.GatewayAddress)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.GatewayAddress)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if len(x.AppAddress) > 0 {
+ i -= len(x.AppAddress)
+ copy(dAtA[i:], x.AppAddress)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AppAddress)))
+ 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().(*MsgDelegateToGateway)
+ 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: MsgDelegateToGateway: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgDelegateToGateway: 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 AppAddress", 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.AppAddress = 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 GatewayAddress", 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.GatewayAddress = 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_MsgDelegateToGatewayResponse protoreflect.MessageDescriptor
+)
+
+func init() {
+ file_poktroll_application_tx_proto_init()
+ md_MsgDelegateToGatewayResponse = File_poktroll_application_tx_proto.Messages().ByName("MsgDelegateToGatewayResponse")
+}
+
+var _ protoreflect.Message = (*fastReflection_MsgDelegateToGatewayResponse)(nil)
+
+type fastReflection_MsgDelegateToGatewayResponse MsgDelegateToGatewayResponse
+
+func (x *MsgDelegateToGatewayResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_MsgDelegateToGatewayResponse)(x)
+}
+
+func (x *MsgDelegateToGatewayResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_application_tx_proto_msgTypes[7]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_MsgDelegateToGatewayResponse_messageType fastReflection_MsgDelegateToGatewayResponse_messageType
+var _ protoreflect.MessageType = fastReflection_MsgDelegateToGatewayResponse_messageType{}
+
+type fastReflection_MsgDelegateToGatewayResponse_messageType struct{}
+
+func (x fastReflection_MsgDelegateToGatewayResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_MsgDelegateToGatewayResponse)(nil)
+}
+func (x fastReflection_MsgDelegateToGatewayResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_MsgDelegateToGatewayResponse)
+}
+func (x fastReflection_MsgDelegateToGatewayResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgDelegateToGatewayResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_MsgDelegateToGatewayResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgDelegateToGatewayResponse
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_MsgDelegateToGatewayResponse) Type() protoreflect.MessageType {
+ return _fastReflection_MsgDelegateToGatewayResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_MsgDelegateToGatewayResponse) New() protoreflect.Message {
+ return new(fastReflection_MsgDelegateToGatewayResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_MsgDelegateToGatewayResponse) Interface() protoreflect.ProtoMessage {
+ return (*MsgDelegateToGatewayResponse)(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_MsgDelegateToGatewayResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_MsgDelegateToGatewayResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgDelegateToGatewayResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.application.MsgDelegateToGatewayResponse 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_MsgDelegateToGatewayResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgDelegateToGatewayResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.application.MsgDelegateToGatewayResponse 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_MsgDelegateToGatewayResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgDelegateToGatewayResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.application.MsgDelegateToGatewayResponse 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_MsgDelegateToGatewayResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgDelegateToGatewayResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.application.MsgDelegateToGatewayResponse 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_MsgDelegateToGatewayResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgDelegateToGatewayResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.application.MsgDelegateToGatewayResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_MsgDelegateToGatewayResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgDelegateToGatewayResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.application.MsgDelegateToGatewayResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_MsgDelegateToGatewayResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.application.MsgDelegateToGatewayResponse", 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_MsgDelegateToGatewayResponse) 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_MsgDelegateToGatewayResponse) 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_MsgDelegateToGatewayResponse) 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_MsgDelegateToGatewayResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*MsgDelegateToGatewayResponse)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*MsgDelegateToGatewayResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*MsgDelegateToGatewayResponse)
+ 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: MsgDelegateToGatewayResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgDelegateToGatewayResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_MsgUndelegateFromGateway protoreflect.MessageDescriptor
+ fd_MsgUndelegateFromGateway_app_address protoreflect.FieldDescriptor
+ fd_MsgUndelegateFromGateway_gateway_address protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_application_tx_proto_init()
+ md_MsgUndelegateFromGateway = File_poktroll_application_tx_proto.Messages().ByName("MsgUndelegateFromGateway")
+ fd_MsgUndelegateFromGateway_app_address = md_MsgUndelegateFromGateway.Fields().ByName("app_address")
+ fd_MsgUndelegateFromGateway_gateway_address = md_MsgUndelegateFromGateway.Fields().ByName("gateway_address")
+}
+
+var _ protoreflect.Message = (*fastReflection_MsgUndelegateFromGateway)(nil)
+
+type fastReflection_MsgUndelegateFromGateway MsgUndelegateFromGateway
+
+func (x *MsgUndelegateFromGateway) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_MsgUndelegateFromGateway)(x)
+}
+
+func (x *MsgUndelegateFromGateway) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_application_tx_proto_msgTypes[8]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_MsgUndelegateFromGateway_messageType fastReflection_MsgUndelegateFromGateway_messageType
+var _ protoreflect.MessageType = fastReflection_MsgUndelegateFromGateway_messageType{}
+
+type fastReflection_MsgUndelegateFromGateway_messageType struct{}
+
+func (x fastReflection_MsgUndelegateFromGateway_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_MsgUndelegateFromGateway)(nil)
+}
+func (x fastReflection_MsgUndelegateFromGateway_messageType) New() protoreflect.Message {
+ return new(fastReflection_MsgUndelegateFromGateway)
+}
+func (x fastReflection_MsgUndelegateFromGateway_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgUndelegateFromGateway
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_MsgUndelegateFromGateway) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgUndelegateFromGateway
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_MsgUndelegateFromGateway) Type() protoreflect.MessageType {
+ return _fastReflection_MsgUndelegateFromGateway_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_MsgUndelegateFromGateway) New() protoreflect.Message {
+ return new(fastReflection_MsgUndelegateFromGateway)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_MsgUndelegateFromGateway) Interface() protoreflect.ProtoMessage {
+ return (*MsgUndelegateFromGateway)(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_MsgUndelegateFromGateway) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.AppAddress != "" {
+ value := protoreflect.ValueOfString(x.AppAddress)
+ if !f(fd_MsgUndelegateFromGateway_app_address, value) {
+ return
+ }
+ }
+ if x.GatewayAddress != "" {
+ value := protoreflect.ValueOfString(x.GatewayAddress)
+ if !f(fd_MsgUndelegateFromGateway_gateway_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_MsgUndelegateFromGateway) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.application.MsgUndelegateFromGateway.app_address":
+ return x.AppAddress != ""
+ case "poktroll.application.MsgUndelegateFromGateway.gateway_address":
+ return x.GatewayAddress != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgUndelegateFromGateway"))
+ }
+ panic(fmt.Errorf("message poktroll.application.MsgUndelegateFromGateway 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_MsgUndelegateFromGateway) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.application.MsgUndelegateFromGateway.app_address":
+ x.AppAddress = ""
+ case "poktroll.application.MsgUndelegateFromGateway.gateway_address":
+ x.GatewayAddress = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgUndelegateFromGateway"))
+ }
+ panic(fmt.Errorf("message poktroll.application.MsgUndelegateFromGateway 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_MsgUndelegateFromGateway) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.application.MsgUndelegateFromGateway.app_address":
+ value := x.AppAddress
+ return protoreflect.ValueOfString(value)
+ case "poktroll.application.MsgUndelegateFromGateway.gateway_address":
+ value := x.GatewayAddress
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgUndelegateFromGateway"))
+ }
+ panic(fmt.Errorf("message poktroll.application.MsgUndelegateFromGateway 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_MsgUndelegateFromGateway) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.application.MsgUndelegateFromGateway.app_address":
+ x.AppAddress = value.Interface().(string)
+ case "poktroll.application.MsgUndelegateFromGateway.gateway_address":
+ x.GatewayAddress = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgUndelegateFromGateway"))
+ }
+ panic(fmt.Errorf("message poktroll.application.MsgUndelegateFromGateway 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_MsgUndelegateFromGateway) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.application.MsgUndelegateFromGateway.app_address":
+ panic(fmt.Errorf("field app_address of message poktroll.application.MsgUndelegateFromGateway is not mutable"))
+ case "poktroll.application.MsgUndelegateFromGateway.gateway_address":
+ panic(fmt.Errorf("field gateway_address of message poktroll.application.MsgUndelegateFromGateway is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgUndelegateFromGateway"))
+ }
+ panic(fmt.Errorf("message poktroll.application.MsgUndelegateFromGateway does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_MsgUndelegateFromGateway) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.application.MsgUndelegateFromGateway.app_address":
+ return protoreflect.ValueOfString("")
+ case "poktroll.application.MsgUndelegateFromGateway.gateway_address":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgUndelegateFromGateway"))
+ }
+ panic(fmt.Errorf("message poktroll.application.MsgUndelegateFromGateway does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_MsgUndelegateFromGateway) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.application.MsgUndelegateFromGateway", 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_MsgUndelegateFromGateway) 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_MsgUndelegateFromGateway) 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_MsgUndelegateFromGateway) 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_MsgUndelegateFromGateway) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*MsgUndelegateFromGateway)
+ 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.AppAddress)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.GatewayAddress)
+ 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().(*MsgUndelegateFromGateway)
+ 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.GatewayAddress) > 0 {
+ i -= len(x.GatewayAddress)
+ copy(dAtA[i:], x.GatewayAddress)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.GatewayAddress)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if len(x.AppAddress) > 0 {
+ i -= len(x.AppAddress)
+ copy(dAtA[i:], x.AppAddress)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AppAddress)))
+ 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().(*MsgUndelegateFromGateway)
+ 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: MsgUndelegateFromGateway: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUndelegateFromGateway: 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 AppAddress", 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.AppAddress = 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 GatewayAddress", 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.GatewayAddress = 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_MsgUndelegateFromGatewayResponse protoreflect.MessageDescriptor
+)
+
+func init() {
+ file_poktroll_application_tx_proto_init()
+ md_MsgUndelegateFromGatewayResponse = File_poktroll_application_tx_proto.Messages().ByName("MsgUndelegateFromGatewayResponse")
+}
+
+var _ protoreflect.Message = (*fastReflection_MsgUndelegateFromGatewayResponse)(nil)
+
+type fastReflection_MsgUndelegateFromGatewayResponse MsgUndelegateFromGatewayResponse
+
+func (x *MsgUndelegateFromGatewayResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_MsgUndelegateFromGatewayResponse)(x)
+}
+
+func (x *MsgUndelegateFromGatewayResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_application_tx_proto_msgTypes[9]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_MsgUndelegateFromGatewayResponse_messageType fastReflection_MsgUndelegateFromGatewayResponse_messageType
+var _ protoreflect.MessageType = fastReflection_MsgUndelegateFromGatewayResponse_messageType{}
+
+type fastReflection_MsgUndelegateFromGatewayResponse_messageType struct{}
+
+func (x fastReflection_MsgUndelegateFromGatewayResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_MsgUndelegateFromGatewayResponse)(nil)
+}
+func (x fastReflection_MsgUndelegateFromGatewayResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_MsgUndelegateFromGatewayResponse)
+}
+func (x fastReflection_MsgUndelegateFromGatewayResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgUndelegateFromGatewayResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_MsgUndelegateFromGatewayResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgUndelegateFromGatewayResponse
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_MsgUndelegateFromGatewayResponse) Type() protoreflect.MessageType {
+ return _fastReflection_MsgUndelegateFromGatewayResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_MsgUndelegateFromGatewayResponse) New() protoreflect.Message {
+ return new(fastReflection_MsgUndelegateFromGatewayResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_MsgUndelegateFromGatewayResponse) Interface() protoreflect.ProtoMessage {
+ return (*MsgUndelegateFromGatewayResponse)(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_MsgUndelegateFromGatewayResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_MsgUndelegateFromGatewayResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgUndelegateFromGatewayResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.application.MsgUndelegateFromGatewayResponse 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_MsgUndelegateFromGatewayResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgUndelegateFromGatewayResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.application.MsgUndelegateFromGatewayResponse 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_MsgUndelegateFromGatewayResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgUndelegateFromGatewayResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.application.MsgUndelegateFromGatewayResponse 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_MsgUndelegateFromGatewayResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgUndelegateFromGatewayResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.application.MsgUndelegateFromGatewayResponse 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_MsgUndelegateFromGatewayResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgUndelegateFromGatewayResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.application.MsgUndelegateFromGatewayResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_MsgUndelegateFromGatewayResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgUndelegateFromGatewayResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.application.MsgUndelegateFromGatewayResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_MsgUndelegateFromGatewayResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.application.MsgUndelegateFromGatewayResponse", 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_MsgUndelegateFromGatewayResponse) 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_MsgUndelegateFromGatewayResponse) 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_MsgUndelegateFromGatewayResponse) 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_MsgUndelegateFromGatewayResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*MsgUndelegateFromGatewayResponse)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*MsgUndelegateFromGatewayResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*MsgUndelegateFromGatewayResponse)
+ 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: MsgUndelegateFromGatewayResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUndelegateFromGatewayResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.27.0
+// protoc (unknown)
+// source: poktroll/application/tx.proto
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+// MsgUpdateParams is the Msg/UpdateParams request type.
+type MsgUpdateParams struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // authority is the address that controls the module (defaults to x/gov unless overwritten).
+ Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
+ // params defines the x/application parameters to update.
+ // NOTE: All parameters must be supplied.
+ Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"`
+}
+
+func (x *MsgUpdateParams) Reset() {
+ *x = MsgUpdateParams{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_application_tx_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *MsgUpdateParams) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*MsgUpdateParams) ProtoMessage() {}
+
+// Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead.
+func (*MsgUpdateParams) Descriptor() ([]byte, []int) {
+ return file_poktroll_application_tx_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *MsgUpdateParams) GetAuthority() string {
+ if x != nil {
+ return x.Authority
+ }
+ return ""
+}
+
+func (x *MsgUpdateParams) GetParams() *Params {
+ if x != nil {
+ return x.Params
+ }
+ return nil
+}
+
+// MsgUpdateParamsResponse defines the response structure for executing a
+// MsgUpdateParams message.
+type MsgUpdateParamsResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+}
+
+func (x *MsgUpdateParamsResponse) Reset() {
+ *x = MsgUpdateParamsResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_application_tx_proto_msgTypes[1]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *MsgUpdateParamsResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*MsgUpdateParamsResponse) ProtoMessage() {}
+
+// Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead.
+func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) {
+ return file_poktroll_application_tx_proto_rawDescGZIP(), []int{1}
+}
+
+type MsgStakeApplication struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // The Bech32 address of the application using cosmos' ScalarDescriptor to ensure deterministic encoding
+ Stake *v1beta1.Coin `protobuf:"bytes,2,opt,name=stake,proto3" json:"stake,omitempty"` // The total amount of uPOKT the application has staked. Must be ≥ to the current amount that the application has staked (if any)
+ Services []*shared.ApplicationServiceConfig `protobuf:"bytes,3,rep,name=services,proto3" json:"services,omitempty"` // The list of services this application is staked to request service for
+}
+
+func (x *MsgStakeApplication) Reset() {
+ *x = MsgStakeApplication{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_application_tx_proto_msgTypes[2]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *MsgStakeApplication) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*MsgStakeApplication) ProtoMessage() {}
+
+// Deprecated: Use MsgStakeApplication.ProtoReflect.Descriptor instead.
+func (*MsgStakeApplication) Descriptor() ([]byte, []int) {
+ return file_poktroll_application_tx_proto_rawDescGZIP(), []int{2}
+}
+
+func (x *MsgStakeApplication) GetAddress() string {
+ if x != nil {
+ return x.Address
+ }
+ return ""
+}
+
+func (x *MsgStakeApplication) GetStake() *v1beta1.Coin {
+ if x != nil {
+ return x.Stake
+ }
+ return nil
+}
+
+func (x *MsgStakeApplication) GetServices() []*shared.ApplicationServiceConfig {
+ if x != nil {
+ return x.Services
+ }
+ return nil
+}
+
+type MsgStakeApplicationResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+}
+
+func (x *MsgStakeApplicationResponse) Reset() {
+ *x = MsgStakeApplicationResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_application_tx_proto_msgTypes[3]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *MsgStakeApplicationResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*MsgStakeApplicationResponse) ProtoMessage() {}
+
+// Deprecated: Use MsgStakeApplicationResponse.ProtoReflect.Descriptor instead.
+func (*MsgStakeApplicationResponse) Descriptor() ([]byte, []int) {
+ return file_poktroll_application_tx_proto_rawDescGZIP(), []int{3}
+}
+
+type MsgUnstakeApplication struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
+}
+
+func (x *MsgUnstakeApplication) Reset() {
+ *x = MsgUnstakeApplication{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_application_tx_proto_msgTypes[4]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *MsgUnstakeApplication) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*MsgUnstakeApplication) ProtoMessage() {}
+
+// Deprecated: Use MsgUnstakeApplication.ProtoReflect.Descriptor instead.
+func (*MsgUnstakeApplication) Descriptor() ([]byte, []int) {
+ return file_poktroll_application_tx_proto_rawDescGZIP(), []int{4}
+}
+
+func (x *MsgUnstakeApplication) GetAddress() string {
+ if x != nil {
+ return x.Address
+ }
+ return ""
+}
+
+type MsgUnstakeApplicationResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+}
+
+func (x *MsgUnstakeApplicationResponse) Reset() {
+ *x = MsgUnstakeApplicationResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_application_tx_proto_msgTypes[5]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *MsgUnstakeApplicationResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*MsgUnstakeApplicationResponse) ProtoMessage() {}
+
+// Deprecated: Use MsgUnstakeApplicationResponse.ProtoReflect.Descriptor instead.
+func (*MsgUnstakeApplicationResponse) Descriptor() ([]byte, []int) {
+ return file_poktroll_application_tx_proto_rawDescGZIP(), []int{5}
+}
+
+type MsgDelegateToGateway struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ AppAddress string `protobuf:"bytes,1,opt,name=app_address,json=appAddress,proto3" json:"app_address,omitempty"` // The Bech32 address of the application using cosmos' ScalarDescriptor to ensure deterministic deterministic encoding using cosmos' ScalarDescriptor to ensure deterministic deterministic encoding
+ GatewayAddress string `protobuf:"bytes,2,opt,name=gateway_address,json=gatewayAddress,proto3" json:"gateway_address,omitempty"` // The Bech32 address of the gateway the application wants to delegate to using cosmos' ScalarDescriptor to ensure deterministic deterministic encoding using cosmos' ScalarDescriptor to ensure deterministic deterministic encoding
+}
+
+func (x *MsgDelegateToGateway) Reset() {
+ *x = MsgDelegateToGateway{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_application_tx_proto_msgTypes[6]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *MsgDelegateToGateway) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*MsgDelegateToGateway) ProtoMessage() {}
+
+// Deprecated: Use MsgDelegateToGateway.ProtoReflect.Descriptor instead.
+func (*MsgDelegateToGateway) Descriptor() ([]byte, []int) {
+ return file_poktroll_application_tx_proto_rawDescGZIP(), []int{6}
+}
+
+func (x *MsgDelegateToGateway) GetAppAddress() string {
+ if x != nil {
+ return x.AppAddress
+ }
+ return ""
+}
+
+func (x *MsgDelegateToGateway) GetGatewayAddress() string {
+ if x != nil {
+ return x.GatewayAddress
+ }
+ return ""
+}
+
+type MsgDelegateToGatewayResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+}
+
+func (x *MsgDelegateToGatewayResponse) Reset() {
+ *x = MsgDelegateToGatewayResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_application_tx_proto_msgTypes[7]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *MsgDelegateToGatewayResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*MsgDelegateToGatewayResponse) ProtoMessage() {}
+
+// Deprecated: Use MsgDelegateToGatewayResponse.ProtoReflect.Descriptor instead.
+func (*MsgDelegateToGatewayResponse) Descriptor() ([]byte, []int) {
+ return file_poktroll_application_tx_proto_rawDescGZIP(), []int{7}
+}
+
+type MsgUndelegateFromGateway struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ AppAddress string `protobuf:"bytes,1,opt,name=app_address,json=appAddress,proto3" json:"app_address,omitempty"` // The Bech32 address of the application using cosmos' ScalarDescriptor to ensure deterministic deterministic encoding using cosmos' ScalarDescriptor to ensure deterministic deterministic encoding
+ GatewayAddress string `protobuf:"bytes,2,opt,name=gateway_address,json=gatewayAddress,proto3" json:"gateway_address,omitempty"` // The Bech32 address of the gateway the application wants to undelegate from using cosmos' ScalarDescriptor to ensure deterministic deterministic encoding using cosmos' ScalarDescriptor to ensure deterministic deterministic encoding
+}
+
+func (x *MsgUndelegateFromGateway) Reset() {
+ *x = MsgUndelegateFromGateway{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_application_tx_proto_msgTypes[8]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *MsgUndelegateFromGateway) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*MsgUndelegateFromGateway) ProtoMessage() {}
+
+// Deprecated: Use MsgUndelegateFromGateway.ProtoReflect.Descriptor instead.
+func (*MsgUndelegateFromGateway) Descriptor() ([]byte, []int) {
+ return file_poktroll_application_tx_proto_rawDescGZIP(), []int{8}
+}
+
+func (x *MsgUndelegateFromGateway) GetAppAddress() string {
+ if x != nil {
+ return x.AppAddress
+ }
+ return ""
+}
+
+func (x *MsgUndelegateFromGateway) GetGatewayAddress() string {
+ if x != nil {
+ return x.GatewayAddress
+ }
+ return ""
+}
+
+type MsgUndelegateFromGatewayResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+}
+
+func (x *MsgUndelegateFromGatewayResponse) Reset() {
+ *x = MsgUndelegateFromGatewayResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_application_tx_proto_msgTypes[9]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *MsgUndelegateFromGatewayResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*MsgUndelegateFromGatewayResponse) ProtoMessage() {}
+
+// Deprecated: Use MsgUndelegateFromGatewayResponse.ProtoReflect.Descriptor instead.
+func (*MsgUndelegateFromGatewayResponse) Descriptor() ([]byte, []int) {
+ return file_poktroll_application_tx_proto_rawDescGZIP(), []int{9}
+}
+
+var File_poktroll_application_tx_proto protoreflect.FileDescriptor
+
+var file_poktroll_application_tx_proto_rawDesc = []byte{
+ 0x0a, 0x1d, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x61, 0x70, 0x70, 0x6c, 0x69,
+ 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x74, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
+ 0x14, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63,
+ 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69,
+ 0x6e, 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, 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65,
+ 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x63, 0x6f, 0x69, 0x6e, 0x2e, 0x70, 0x72,
+ 0x6f, 0x74, 0x6f, 0x1a, 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, 0x21, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x61, 0x70, 0x70,
+ 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e,
+ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f,
+ 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70,
+ 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc5, 0x01, 0x0a, 0x0f, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61,
+ 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x36, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68,
+ 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d,
+ 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53,
+ 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79,
+ 0x12, 0x3f, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
+ 0x32, 0x1c, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x61, 0x70, 0x70, 0x6c,
+ 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 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, 0x3a, 0x39, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74,
+ 0x79, 0x8a, 0xe7, 0xb0, 0x2a, 0x26, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x78,
+ 0x2f, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x4d, 0x73, 0x67,
+ 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x19, 0x0a, 0x17,
+ 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52,
+ 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xcf, 0x01, 0x0a, 0x13, 0x4d, 0x73, 0x67, 0x53,
+ 0x74, 0x61, 0x6b, 0x65, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12,
+ 0x32, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
+ 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64,
+ 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72,
+ 0x65, 0x73, 0x73, 0x12, 0x2f, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x18, 0x02, 0x20, 0x01,
+ 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65,
+ 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x52, 0x05, 0x73,
+ 0x74, 0x61, 0x6b, 0x65, 0x12, 0x45, 0x0a, 0x08, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73,
+ 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c,
+ 0x6c, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61,
+ 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69,
+ 0x67, 0x52, 0x08, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x3a, 0x0c, 0x82, 0xe7, 0xb0,
+ 0x2a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x1d, 0x0a, 0x1b, 0x4d, 0x73, 0x67,
+ 0x53, 0x74, 0x61, 0x6b, 0x65, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,
+ 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3f, 0x0a, 0x15, 0x4d, 0x73, 0x67, 0x55,
+ 0x6e, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f,
+ 0x6e, 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, 0x3a, 0x0c, 0x82, 0xe7, 0xb0,
+ 0x2a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x1f, 0x0a, 0x1d, 0x4d, 0x73, 0x67,
+ 0x55, 0x6e, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69,
+ 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xa6, 0x01, 0x0a, 0x14, 0x4d,
+ 0x73, 0x67, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x54, 0x6f, 0x47, 0x61, 0x74, 0x65,
+ 0x77, 0x61, 0x79, 0x12, 0x39, 0x0a, 0x0b, 0x61, 0x70, 0x70, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65,
+ 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f,
+ 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69,
+ 0x6e, 0x67, 0x52, 0x0a, 0x61, 0x70, 0x70, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x41,
+ 0x0a, 0x0f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73,
+ 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73,
+ 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e,
+ 0x67, 0x52, 0x0e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73,
+ 0x73, 0x3a, 0x10, 0x82, 0xe7, 0xb0, 0x2a, 0x0b, 0x61, 0x70, 0x70, 0x5f, 0x61, 0x64, 0x64, 0x72,
+ 0x65, 0x73, 0x73, 0x22, 0x1e, 0x0a, 0x1c, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61,
+ 0x74, 0x65, 0x54, 0x6f, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f,
+ 0x6e, 0x73, 0x65, 0x22, 0xaa, 0x01, 0x0a, 0x18, 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x64, 0x65, 0x6c,
+ 0x65, 0x67, 0x61, 0x74, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79,
+ 0x12, 0x39, 0x0a, 0x0b, 0x61, 0x70, 0x70, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18,
+ 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f,
+ 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52,
+ 0x0a, 0x61, 0x70, 0x70, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x41, 0x0a, 0x0f, 0x67,
+ 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02,
+ 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73,
+ 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x0e,
+ 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x3a, 0x10,
+ 0x82, 0xe7, 0xb0, 0x2a, 0x0b, 0x61, 0x70, 0x70, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73,
+ 0x22, 0x22, 0x0a, 0x20, 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74,
+ 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x52, 0x65, 0x73, 0x70,
+ 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xd2, 0x04, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x64, 0x0a, 0x0c,
+ 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x25, 0x2e, 0x70,
+ 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74,
+ 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72,
+ 0x61, 0x6d, 0x73, 0x1a, 0x2d, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x61,
+ 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 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, 0x70, 0x0a, 0x10, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x41, 0x70, 0x70, 0x6c, 0x69,
+ 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x29, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c,
+ 0x6c, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x73,
+ 0x67, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f,
+ 0x6e, 0x1a, 0x31, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x61, 0x70, 0x70,
+ 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x74, 0x61, 0x6b,
+ 0x65, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70,
+ 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x76, 0x0a, 0x12, 0x55, 0x6e, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x41,
+ 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2b, 0x2e, 0x70, 0x6f, 0x6b,
+ 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f,
+ 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x41, 0x70, 0x70, 0x6c,
+ 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x33, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f,
+ 0x6c, 0x6c, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4d,
+ 0x73, 0x67, 0x55, 0x6e, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61,
+ 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x73, 0x0a, 0x11,
+ 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x54, 0x6f, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61,
+ 0x79, 0x12, 0x2a, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x61, 0x70, 0x70,
+ 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x6c, 0x65,
+ 0x67, 0x61, 0x74, 0x65, 0x54, 0x6f, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x1a, 0x32, 0x2e,
+ 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61,
+ 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65,
+ 0x54, 0x6f, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
+ 0x65, 0x12, 0x7f, 0x0a, 0x15, 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x46,
+ 0x72, 0x6f, 0x6d, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x12, 0x2e, 0x2e, 0x70, 0x6f, 0x6b,
+ 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f,
+ 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x46,
+ 0x72, 0x6f, 0x6d, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x1a, 0x36, 0x2e, 0x70, 0x6f, 0x6b,
+ 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f,
+ 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x46,
+ 0x72, 0x6f, 0x6d, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
+ 0x73, 0x65, 0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a, 0x01, 0x42, 0xbb, 0x01, 0x0a, 0x18, 0x63, 0x6f,
+ 0x6d, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x69,
+ 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50,
+ 0x01, 0x5a, 0x25, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f,
+ 0x61, 0x70, 0x69, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x61, 0x70, 0x70,
+ 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0xa2, 0x02, 0x03, 0x50, 0x41, 0x58, 0xaa, 0x02,
+ 0x14, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63,
+ 0x61, 0x74, 0x69, 0x6f, 0x6e, 0xca, 0x02, 0x14, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c,
+ 0x5c, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0xe2, 0x02, 0x20, 0x50,
+ 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74,
+ 0x69, 0x6f, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea,
+ 0x02, 0x15, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x3a, 0x3a, 0x41, 0x70, 0x70, 0x6c,
+ 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_poktroll_application_tx_proto_rawDescOnce sync.Once
+ file_poktroll_application_tx_proto_rawDescData = file_poktroll_application_tx_proto_rawDesc
+)
+
+func file_poktroll_application_tx_proto_rawDescGZIP() []byte {
+ file_poktroll_application_tx_proto_rawDescOnce.Do(func() {
+ file_poktroll_application_tx_proto_rawDescData = protoimpl.X.CompressGZIP(file_poktroll_application_tx_proto_rawDescData)
+ })
+ return file_poktroll_application_tx_proto_rawDescData
+}
+
+var file_poktroll_application_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
+var file_poktroll_application_tx_proto_goTypes = []interface{}{
+ (*MsgUpdateParams)(nil), // 0: poktroll.application.MsgUpdateParams
+ (*MsgUpdateParamsResponse)(nil), // 1: poktroll.application.MsgUpdateParamsResponse
+ (*MsgStakeApplication)(nil), // 2: poktroll.application.MsgStakeApplication
+ (*MsgStakeApplicationResponse)(nil), // 3: poktroll.application.MsgStakeApplicationResponse
+ (*MsgUnstakeApplication)(nil), // 4: poktroll.application.MsgUnstakeApplication
+ (*MsgUnstakeApplicationResponse)(nil), // 5: poktroll.application.MsgUnstakeApplicationResponse
+ (*MsgDelegateToGateway)(nil), // 6: poktroll.application.MsgDelegateToGateway
+ (*MsgDelegateToGatewayResponse)(nil), // 7: poktroll.application.MsgDelegateToGatewayResponse
+ (*MsgUndelegateFromGateway)(nil), // 8: poktroll.application.MsgUndelegateFromGateway
+ (*MsgUndelegateFromGatewayResponse)(nil), // 9: poktroll.application.MsgUndelegateFromGatewayResponse
+ (*Params)(nil), // 10: poktroll.application.Params
+ (*v1beta1.Coin)(nil), // 11: cosmos.base.v1beta1.Coin
+ (*shared.ApplicationServiceConfig)(nil), // 12: poktroll.shared.ApplicationServiceConfig
+}
+var file_poktroll_application_tx_proto_depIdxs = []int32{
+ 10, // 0: poktroll.application.MsgUpdateParams.params:type_name -> poktroll.application.Params
+ 11, // 1: poktroll.application.MsgStakeApplication.stake:type_name -> cosmos.base.v1beta1.Coin
+ 12, // 2: poktroll.application.MsgStakeApplication.services:type_name -> poktroll.shared.ApplicationServiceConfig
+ 0, // 3: poktroll.application.Msg.UpdateParams:input_type -> poktroll.application.MsgUpdateParams
+ 2, // 4: poktroll.application.Msg.StakeApplication:input_type -> poktroll.application.MsgStakeApplication
+ 4, // 5: poktroll.application.Msg.UnstakeApplication:input_type -> poktroll.application.MsgUnstakeApplication
+ 6, // 6: poktroll.application.Msg.DelegateToGateway:input_type -> poktroll.application.MsgDelegateToGateway
+ 8, // 7: poktroll.application.Msg.UndelegateFromGateway:input_type -> poktroll.application.MsgUndelegateFromGateway
+ 1, // 8: poktroll.application.Msg.UpdateParams:output_type -> poktroll.application.MsgUpdateParamsResponse
+ 3, // 9: poktroll.application.Msg.StakeApplication:output_type -> poktroll.application.MsgStakeApplicationResponse
+ 5, // 10: poktroll.application.Msg.UnstakeApplication:output_type -> poktroll.application.MsgUnstakeApplicationResponse
+ 7, // 11: poktroll.application.Msg.DelegateToGateway:output_type -> poktroll.application.MsgDelegateToGatewayResponse
+ 9, // 12: poktroll.application.Msg.UndelegateFromGateway:output_type -> poktroll.application.MsgUndelegateFromGatewayResponse
+ 8, // [8:13] is the sub-list for method output_type
+ 3, // [3:8] 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_poktroll_application_tx_proto_init() }
+func file_poktroll_application_tx_proto_init() {
+ if File_poktroll_application_tx_proto != nil {
+ return
+ }
+ file_poktroll_application_params_proto_init()
+ if !protoimpl.UnsafeEnabled {
+ file_poktroll_application_tx_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*MsgUpdateParams); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_application_tx_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*MsgUpdateParamsResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_application_tx_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*MsgStakeApplication); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_application_tx_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*MsgStakeApplicationResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_application_tx_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*MsgUnstakeApplication); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_application_tx_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*MsgUnstakeApplicationResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_application_tx_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*MsgDelegateToGateway); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_application_tx_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*MsgDelegateToGatewayResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_application_tx_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*MsgUndelegateFromGateway); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_application_tx_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*MsgUndelegateFromGatewayResponse); 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_poktroll_application_tx_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 10,
+ NumExtensions: 0,
+ NumServices: 1,
+ },
+ GoTypes: file_poktroll_application_tx_proto_goTypes,
+ DependencyIndexes: file_poktroll_application_tx_proto_depIdxs,
+ MessageInfos: file_poktroll_application_tx_proto_msgTypes,
+ }.Build()
+ File_poktroll_application_tx_proto = out.File
+ file_poktroll_application_tx_proto_rawDesc = nil
+ file_poktroll_application_tx_proto_goTypes = nil
+ file_poktroll_application_tx_proto_depIdxs = nil
+}
diff --git a/api/poktroll/gateway/gateway.pulsar.go b/api/poktroll/gateway/gateway.pulsar.go
new file mode 100644
index 000000000..904d9f9fa
--- /dev/null
+++ b/api/poktroll/gateway/gateway.pulsar.go
@@ -0,0 +1,665 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package gateway
+
+import (
+ v1beta1 "cosmossdk.io/api/cosmos/base/v1beta1"
+ fmt "fmt"
+ _ "github.com/cosmos/cosmos-proto"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoiface "google.golang.org/protobuf/runtime/protoiface"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ io "io"
+ reflect "reflect"
+ sync "sync"
+)
+
+var (
+ md_Gateway protoreflect.MessageDescriptor
+ fd_Gateway_address protoreflect.FieldDescriptor
+ fd_Gateway_stake protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_gateway_gateway_proto_init()
+ md_Gateway = File_poktroll_gateway_gateway_proto.Messages().ByName("Gateway")
+ fd_Gateway_address = md_Gateway.Fields().ByName("address")
+ fd_Gateway_stake = md_Gateway.Fields().ByName("stake")
+}
+
+var _ protoreflect.Message = (*fastReflection_Gateway)(nil)
+
+type fastReflection_Gateway Gateway
+
+func (x *Gateway) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_Gateway)(x)
+}
+
+func (x *Gateway) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_gateway_gateway_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_Gateway_messageType fastReflection_Gateway_messageType
+var _ protoreflect.MessageType = fastReflection_Gateway_messageType{}
+
+type fastReflection_Gateway_messageType struct{}
+
+func (x fastReflection_Gateway_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_Gateway)(nil)
+}
+func (x fastReflection_Gateway_messageType) New() protoreflect.Message {
+ return new(fastReflection_Gateway)
+}
+func (x fastReflection_Gateway_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_Gateway
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_Gateway) Descriptor() protoreflect.MessageDescriptor {
+ return md_Gateway
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_Gateway) Type() protoreflect.MessageType {
+ return _fastReflection_Gateway_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_Gateway) New() protoreflect.Message {
+ return new(fastReflection_Gateway)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_Gateway) Interface() protoreflect.ProtoMessage {
+ return (*Gateway)(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_Gateway) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Address != "" {
+ value := protoreflect.ValueOfString(x.Address)
+ if !f(fd_Gateway_address, value) {
+ return
+ }
+ }
+ if x.Stake != nil {
+ value := protoreflect.ValueOfMessage(x.Stake.ProtoReflect())
+ if !f(fd_Gateway_stake, 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_Gateway) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.gateway.Gateway.address":
+ return x.Address != ""
+ case "poktroll.gateway.Gateway.stake":
+ return x.Stake != nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.Gateway"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.Gateway 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_Gateway) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.gateway.Gateway.address":
+ x.Address = ""
+ case "poktroll.gateway.Gateway.stake":
+ x.Stake = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.Gateway"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.Gateway 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_Gateway) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.gateway.Gateway.address":
+ value := x.Address
+ return protoreflect.ValueOfString(value)
+ case "poktroll.gateway.Gateway.stake":
+ value := x.Stake
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.Gateway"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.Gateway 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_Gateway) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.gateway.Gateway.address":
+ x.Address = value.Interface().(string)
+ case "poktroll.gateway.Gateway.stake":
+ x.Stake = value.Message().Interface().(*v1beta1.Coin)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.Gateway"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.Gateway 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_Gateway) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.gateway.Gateway.stake":
+ if x.Stake == nil {
+ x.Stake = new(v1beta1.Coin)
+ }
+ return protoreflect.ValueOfMessage(x.Stake.ProtoReflect())
+ case "poktroll.gateway.Gateway.address":
+ panic(fmt.Errorf("field address of message poktroll.gateway.Gateway is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.Gateway"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.Gateway does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_Gateway) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.gateway.Gateway.address":
+ return protoreflect.ValueOfString("")
+ case "poktroll.gateway.Gateway.stake":
+ m := new(v1beta1.Coin)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.Gateway"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.Gateway does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_Gateway) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.gateway.Gateway", 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_Gateway) 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_Gateway) 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_Gateway) 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_Gateway) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*Gateway)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Address)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.Stake != nil {
+ l = options.Size(x.Stake)
+ 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().(*Gateway)
+ 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.Stake != nil {
+ encoded, err := options.Marshal(x.Stake)
+ if err != nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, err
+ }
+ i -= len(encoded)
+ copy(dAtA[i:], encoded)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if len(x.Address) > 0 {
+ i -= len(x.Address)
+ copy(dAtA[i:], x.Address)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address)))
+ i--
+ dAtA[i] = 0xa
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*Gateway)
+ 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: Gateway: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Gateway: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Address = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Stake", 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.Stake == nil {
+ x.Stake = &v1beta1.Coin{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Stake); 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: poktroll/gateway/gateway.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 Gateway struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // The Bech32 address of the gateway
+ Stake *v1beta1.Coin `protobuf:"bytes,2,opt,name=stake,proto3" json:"stake,omitempty"` // The total amount of uPOKT the gateway has staked
+}
+
+func (x *Gateway) Reset() {
+ *x = Gateway{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_gateway_gateway_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *Gateway) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*Gateway) ProtoMessage() {}
+
+// Deprecated: Use Gateway.ProtoReflect.Descriptor instead.
+func (*Gateway) Descriptor() ([]byte, []int) {
+ return file_poktroll_gateway_gateway_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *Gateway) GetAddress() string {
+ if x != nil {
+ return x.Address
+ }
+ return ""
+}
+
+func (x *Gateway) GetStake() *v1beta1.Coin {
+ if x != nil {
+ return x.Stake
+ }
+ return nil
+}
+
+var File_poktroll_gateway_gateway_proto protoreflect.FileDescriptor
+
+var file_poktroll_gateway_gateway_proto_rawDesc = []byte{
+ 0x0a, 0x1e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x67, 0x61, 0x74, 0x65, 0x77,
+ 0x61, 0x79, 0x2f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
+ 0x12, 0x10, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77,
+ 0x61, 0x79, 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, 0x1e, 0x63,
+ 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74,
+ 0x61, 0x31, 0x2f, 0x63, 0x6f, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x6e, 0x0a,
+ 0x07, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x12, 0x32, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72,
+ 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63,
+ 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72,
+ 0x69, 0x6e, 0x67, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x2f, 0x0a, 0x05,
+ 0x73, 0x74, 0x61, 0x6b, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f,
+ 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61,
+ 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x52, 0x05, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x42, 0xa8, 0x01,
+ 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x67,
+ 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x42, 0x0c, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x50,
+ 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x21, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64,
+ 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c,
+ 0x6c, 0x2f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0xa2, 0x02, 0x03, 0x50, 0x47, 0x58, 0xaa,
+ 0x02, 0x10, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x47, 0x61, 0x74, 0x65, 0x77,
+ 0x61, 0x79, 0xca, 0x02, 0x10, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x47, 0x61,
+ 0x74, 0x65, 0x77, 0x61, 0x79, 0xe2, 0x02, 0x1c, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c,
+ 0x5c, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61,
+ 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x3a,
+ 0x3a, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_poktroll_gateway_gateway_proto_rawDescOnce sync.Once
+ file_poktroll_gateway_gateway_proto_rawDescData = file_poktroll_gateway_gateway_proto_rawDesc
+)
+
+func file_poktroll_gateway_gateway_proto_rawDescGZIP() []byte {
+ file_poktroll_gateway_gateway_proto_rawDescOnce.Do(func() {
+ file_poktroll_gateway_gateway_proto_rawDescData = protoimpl.X.CompressGZIP(file_poktroll_gateway_gateway_proto_rawDescData)
+ })
+ return file_poktroll_gateway_gateway_proto_rawDescData
+}
+
+var file_poktroll_gateway_gateway_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
+var file_poktroll_gateway_gateway_proto_goTypes = []interface{}{
+ (*Gateway)(nil), // 0: poktroll.gateway.Gateway
+ (*v1beta1.Coin)(nil), // 1: cosmos.base.v1beta1.Coin
+}
+var file_poktroll_gateway_gateway_proto_depIdxs = []int32{
+ 1, // 0: poktroll.gateway.Gateway.stake:type_name -> cosmos.base.v1beta1.Coin
+ 1, // [1:1] is the sub-list for method output_type
+ 1, // [1:1] is the sub-list for method input_type
+ 1, // [1:1] is the sub-list for extension type_name
+ 1, // [1:1] is the sub-list for extension extendee
+ 0, // [0:1] is the sub-list for field type_name
+}
+
+func init() { file_poktroll_gateway_gateway_proto_init() }
+func file_poktroll_gateway_gateway_proto_init() {
+ if File_poktroll_gateway_gateway_proto != nil {
+ return
+ }
+ if !protoimpl.UnsafeEnabled {
+ file_poktroll_gateway_gateway_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*Gateway); 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_poktroll_gateway_gateway_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 1,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_poktroll_gateway_gateway_proto_goTypes,
+ DependencyIndexes: file_poktroll_gateway_gateway_proto_depIdxs,
+ MessageInfos: file_poktroll_gateway_gateway_proto_msgTypes,
+ }.Build()
+ File_poktroll_gateway_gateway_proto = out.File
+ file_poktroll_gateway_gateway_proto_rawDesc = nil
+ file_poktroll_gateway_gateway_proto_goTypes = nil
+ file_poktroll_gateway_gateway_proto_depIdxs = nil
+}
diff --git a/api/poktroll/gateway/genesis.pulsar.go b/api/poktroll/gateway/genesis.pulsar.go
new file mode 100644
index 000000000..d178c96d9
--- /dev/null
+++ b/api/poktroll/gateway/genesis.pulsar.go
@@ -0,0 +1,750 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package gateway
+
+import (
+ _ "cosmossdk.io/api/amino"
+ 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 _ protoreflect.List = (*_GenesisState_2_list)(nil)
+
+type _GenesisState_2_list struct {
+ list *[]*Gateway
+}
+
+func (x *_GenesisState_2_list) Len() int {
+ if x.list == nil {
+ return 0
+ }
+ return len(*x.list)
+}
+
+func (x *_GenesisState_2_list) Get(i int) protoreflect.Value {
+ return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
+}
+
+func (x *_GenesisState_2_list) Set(i int, value protoreflect.Value) {
+ valueUnwrapped := value.Message()
+ concreteValue := valueUnwrapped.Interface().(*Gateway)
+ (*x.list)[i] = concreteValue
+}
+
+func (x *_GenesisState_2_list) Append(value protoreflect.Value) {
+ valueUnwrapped := value.Message()
+ concreteValue := valueUnwrapped.Interface().(*Gateway)
+ *x.list = append(*x.list, concreteValue)
+}
+
+func (x *_GenesisState_2_list) AppendMutable() protoreflect.Value {
+ v := new(Gateway)
+ *x.list = append(*x.list, v)
+ return protoreflect.ValueOfMessage(v.ProtoReflect())
+}
+
+func (x *_GenesisState_2_list) Truncate(n int) {
+ for i := n; i < len(*x.list); i++ {
+ (*x.list)[i] = nil
+ }
+ *x.list = (*x.list)[:n]
+}
+
+func (x *_GenesisState_2_list) NewElement() protoreflect.Value {
+ v := new(Gateway)
+ return protoreflect.ValueOfMessage(v.ProtoReflect())
+}
+
+func (x *_GenesisState_2_list) IsValid() bool {
+ return x.list != nil
+}
+
+var (
+ md_GenesisState protoreflect.MessageDescriptor
+ fd_GenesisState_params protoreflect.FieldDescriptor
+ fd_GenesisState_gateway_list protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_gateway_genesis_proto_init()
+ md_GenesisState = File_poktroll_gateway_genesis_proto.Messages().ByName("GenesisState")
+ fd_GenesisState_params = md_GenesisState.Fields().ByName("params")
+ fd_GenesisState_gateway_list = md_GenesisState.Fields().ByName("gateway_list")
+}
+
+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_poktroll_gateway_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 len(x.GatewayList) != 0 {
+ value := protoreflect.ValueOfList(&_GenesisState_2_list{list: &x.GatewayList})
+ if !f(fd_GenesisState_gateway_list, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.gateway.GenesisState.params":
+ return x.Params != nil
+ case "poktroll.gateway.GenesisState.gateway_list":
+ return len(x.GatewayList) != 0
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.GenesisState"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.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 "poktroll.gateway.GenesisState.params":
+ x.Params = nil
+ case "poktroll.gateway.GenesisState.gateway_list":
+ x.GatewayList = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.GenesisState"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.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 "poktroll.gateway.GenesisState.params":
+ value := x.Params
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ case "poktroll.gateway.GenesisState.gateway_list":
+ if len(x.GatewayList) == 0 {
+ return protoreflect.ValueOfList(&_GenesisState_2_list{})
+ }
+ listValue := &_GenesisState_2_list{list: &x.GatewayList}
+ return protoreflect.ValueOfList(listValue)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.GenesisState"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.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 "poktroll.gateway.GenesisState.params":
+ x.Params = value.Message().Interface().(*Params)
+ case "poktroll.gateway.GenesisState.gateway_list":
+ lv := value.List()
+ clv := lv.(*_GenesisState_2_list)
+ x.GatewayList = *clv.list
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.GenesisState"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.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 "poktroll.gateway.GenesisState.params":
+ if x.Params == nil {
+ x.Params = new(Params)
+ }
+ return protoreflect.ValueOfMessage(x.Params.ProtoReflect())
+ case "poktroll.gateway.GenesisState.gateway_list":
+ if x.GatewayList == nil {
+ x.GatewayList = []*Gateway{}
+ }
+ value := &_GenesisState_2_list{list: &x.GatewayList}
+ return protoreflect.ValueOfList(value)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.GenesisState"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.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 "poktroll.gateway.GenesisState.params":
+ m := new(Params)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ case "poktroll.gateway.GenesisState.gateway_list":
+ list := []*Gateway{}
+ return protoreflect.ValueOfList(&_GenesisState_2_list{list: &list})
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.GenesisState"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.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 poktroll.gateway.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 len(x.GatewayList) > 0 {
+ for _, e := range x.GatewayList {
+ l = options.Size(e)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*GenesisState)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.GatewayList) > 0 {
+ for iNdEx := len(x.GatewayList) - 1; iNdEx >= 0; iNdEx-- {
+ encoded, err := options.Marshal(x.GatewayList[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.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 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GatewayList", 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.GatewayList = append(x.GatewayList, &Gateway{})
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.GatewayList[len(x.GatewayList)-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: poktroll/gateway/genesis.proto
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+// GenesisState defines the gateway module's genesis state.
+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"`
+ GatewayList []*Gateway `protobuf:"bytes,2,rep,name=gateway_list,json=gatewayList,proto3" json:"gateway_list,omitempty"`
+}
+
+func (x *GenesisState) Reset() {
+ *x = GenesisState{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_gateway_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_poktroll_gateway_genesis_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *GenesisState) GetParams() *Params {
+ if x != nil {
+ return x.Params
+ }
+ return nil
+}
+
+func (x *GenesisState) GetGatewayList() []*Gateway {
+ if x != nil {
+ return x.GatewayList
+ }
+ return nil
+}
+
+var File_poktroll_gateway_genesis_proto protoreflect.FileDescriptor
+
+var file_poktroll_gateway_genesis_proto_rawDesc = []byte{
+ 0x0a, 0x1e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x67, 0x61, 0x74, 0x65, 0x77,
+ 0x61, 0x79, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
+ 0x12, 0x10, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77,
+ 0x61, 0x79, 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, 0x1d, 0x70, 0x6f, 0x6b,
+ 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2f, 0x70, 0x61,
+ 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x70, 0x6f, 0x6b, 0x74,
+ 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2f, 0x67, 0x61, 0x74,
+ 0x65, 0x77, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8f, 0x01, 0x0a, 0x0c, 0x47,
+ 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3b, 0x0a, 0x06, 0x70,
+ 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x70, 0x6f,
+ 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 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, 0x12, 0x42, 0x0a, 0x0c, 0x67, 0x61, 0x74, 0x65,
+ 0x77, 0x61, 0x79, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19,
+ 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61,
+ 0x79, 0x2e, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52,
+ 0x0b, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x42, 0xa8, 0x01, 0x0a,
+ 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x67, 0x61,
+ 0x74, 0x65, 0x77, 0x61, 0x79, 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x50, 0x72,
+ 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x21, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b,
+ 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c,
+ 0x2f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0xa2, 0x02, 0x03, 0x50, 0x47, 0x58, 0xaa, 0x02,
+ 0x10, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61,
+ 0x79, 0xca, 0x02, 0x10, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x47, 0x61, 0x74,
+ 0x65, 0x77, 0x61, 0x79, 0xe2, 0x02, 0x1c, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c,
+ 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64,
+ 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x3a, 0x3a,
+ 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_poktroll_gateway_genesis_proto_rawDescOnce sync.Once
+ file_poktroll_gateway_genesis_proto_rawDescData = file_poktroll_gateway_genesis_proto_rawDesc
+)
+
+func file_poktroll_gateway_genesis_proto_rawDescGZIP() []byte {
+ file_poktroll_gateway_genesis_proto_rawDescOnce.Do(func() {
+ file_poktroll_gateway_genesis_proto_rawDescData = protoimpl.X.CompressGZIP(file_poktroll_gateway_genesis_proto_rawDescData)
+ })
+ return file_poktroll_gateway_genesis_proto_rawDescData
+}
+
+var file_poktroll_gateway_genesis_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
+var file_poktroll_gateway_genesis_proto_goTypes = []interface{}{
+ (*GenesisState)(nil), // 0: poktroll.gateway.GenesisState
+ (*Params)(nil), // 1: poktroll.gateway.Params
+ (*Gateway)(nil), // 2: poktroll.gateway.Gateway
+}
+var file_poktroll_gateway_genesis_proto_depIdxs = []int32{
+ 1, // 0: poktroll.gateway.GenesisState.params:type_name -> poktroll.gateway.Params
+ 2, // 1: poktroll.gateway.GenesisState.gateway_list:type_name -> poktroll.gateway.Gateway
+ 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_poktroll_gateway_genesis_proto_init() }
+func file_poktroll_gateway_genesis_proto_init() {
+ if File_poktroll_gateway_genesis_proto != nil {
+ return
+ }
+ file_poktroll_gateway_params_proto_init()
+ file_poktroll_gateway_gateway_proto_init()
+ if !protoimpl.UnsafeEnabled {
+ file_poktroll_gateway_genesis_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GenesisState); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_poktroll_gateway_genesis_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 1,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_poktroll_gateway_genesis_proto_goTypes,
+ DependencyIndexes: file_poktroll_gateway_genesis_proto_depIdxs,
+ MessageInfos: file_poktroll_gateway_genesis_proto_msgTypes,
+ }.Build()
+ File_poktroll_gateway_genesis_proto = out.File
+ file_poktroll_gateway_genesis_proto_rawDesc = nil
+ file_poktroll_gateway_genesis_proto_goTypes = nil
+ file_poktroll_gateway_genesis_proto_depIdxs = nil
+}
diff --git a/api/poktroll/gateway/module/module.pulsar.go b/api/poktroll/gateway/module/module.pulsar.go
new file mode 100644
index 000000000..07c2e332a
--- /dev/null
+++ b/api/poktroll/gateway/module/module.pulsar.go
@@ -0,0 +1,578 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package module
+
+import (
+ _ "cosmossdk.io/api/cosmos/app/v1alpha1"
+ fmt "fmt"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoiface "google.golang.org/protobuf/runtime/protoiface"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ io "io"
+ reflect "reflect"
+ sync "sync"
+)
+
+var (
+ md_Module protoreflect.MessageDescriptor
+ fd_Module_authority protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_gateway_module_module_proto_init()
+ md_Module = File_poktroll_gateway_module_module_proto.Messages().ByName("Module")
+ fd_Module_authority = md_Module.Fields().ByName("authority")
+}
+
+var _ protoreflect.Message = (*fastReflection_Module)(nil)
+
+type fastReflection_Module Module
+
+func (x *Module) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_Module)(x)
+}
+
+func (x *Module) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_gateway_module_module_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_Module_messageType fastReflection_Module_messageType
+var _ protoreflect.MessageType = fastReflection_Module_messageType{}
+
+type fastReflection_Module_messageType struct{}
+
+func (x fastReflection_Module_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_Module)(nil)
+}
+func (x fastReflection_Module_messageType) New() protoreflect.Message {
+ return new(fastReflection_Module)
+}
+func (x fastReflection_Module_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_Module
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_Module) Descriptor() protoreflect.MessageDescriptor {
+ return md_Module
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_Module) Type() protoreflect.MessageType {
+ return _fastReflection_Module_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_Module) New() protoreflect.Message {
+ return new(fastReflection_Module)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_Module) Interface() protoreflect.ProtoMessage {
+ return (*Module)(x)
+}
+
+// Range iterates over every populated field in an undefined order,
+// calling f for each field descriptor and value encountered.
+// Range returns immediately if f returns false.
+// While iterating, mutating operations may only be performed
+// on the current field descriptor.
+func (x *fastReflection_Module) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Authority != "" {
+ value := protoreflect.ValueOfString(x.Authority)
+ if !f(fd_Module_authority, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_Module) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.gateway.module.Module.authority":
+ return x.Authority != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.module.Module"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.module.Module does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Module) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.gateway.module.Module.authority":
+ x.Authority = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.module.Module"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.module.Module does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_Module) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.gateway.module.Module.authority":
+ value := x.Authority
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.module.Module"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.module.Module does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Module) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.gateway.module.Module.authority":
+ x.Authority = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.module.Module"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.module.Module does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Module) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.gateway.module.Module.authority":
+ panic(fmt.Errorf("field authority of message poktroll.gateway.module.Module is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.module.Module"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.module.Module does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_Module) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.gateway.module.Module.authority":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.module.Module"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.module.Module does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_Module) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.gateway.module.Module", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_Module) GetUnknown() protoreflect.RawFields {
+ return x.unknownFields
+}
+
+// SetUnknown stores an entire list of unknown fields.
+// The raw fields must be syntactically valid according to the wire format.
+// An implementation may panic if this is not the case.
+// Once stored, the caller must not mutate the content of the RawFields.
+// An empty RawFields may be passed to clear the fields.
+//
+// SetUnknown is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Module) SetUnknown(fields protoreflect.RawFields) {
+ x.unknownFields = fields
+}
+
+// IsValid reports whether the message is valid.
+//
+// An invalid message is an empty, read-only value.
+//
+// An invalid message often corresponds to a nil pointer of the concrete
+// message type, but the details are implementation dependent.
+// Validity is not part of the protobuf data model, and may not
+// be preserved in marshaling or other operations.
+func (x *fastReflection_Module) IsValid() bool {
+ return x != nil
+}
+
+// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
+// This method may return nil.
+//
+// The returned methods type is identical to
+// "google.golang.org/protobuf/runtime/protoiface".Methods.
+// Consult the protoiface package documentation for details.
+func (x *fastReflection_Module) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*Module)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Authority)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*Module)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Authority) > 0 {
+ i -= len(x.Authority)
+ copy(dAtA[i:], x.Authority)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority)))
+ i--
+ dAtA[i] = 0xa
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*Module)
+ if x == nil {
+ return protoiface.UnmarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Flags: input.Flags,
+ }, nil
+ }
+ options := runtime.UnmarshalInputToOptions(input)
+ _ = options
+ dAtA := input.Buf
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Module: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Module: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Authority = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.27.0
+// protoc (unknown)
+// source: poktroll/gateway/module/module.proto
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+// Module is the config object for the module.
+type Module struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // authority defines the custom module authority. If not set, defaults to the governance module.
+ Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
+}
+
+func (x *Module) Reset() {
+ *x = Module{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_gateway_module_module_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *Module) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*Module) ProtoMessage() {}
+
+// Deprecated: Use Module.ProtoReflect.Descriptor instead.
+func (*Module) Descriptor() ([]byte, []int) {
+ return file_poktroll_gateway_module_module_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *Module) GetAuthority() string {
+ if x != nil {
+ return x.Authority
+ }
+ return ""
+}
+
+var File_poktroll_gateway_module_module_proto protoreflect.FileDescriptor
+
+var file_poktroll_gateway_module_module_proto_rawDesc = []byte{
+ 0x0a, 0x24, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x67, 0x61, 0x74, 0x65, 0x77,
+ 0x61, 0x79, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65,
+ 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c,
+ 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x1a,
+ 0x20, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x76, 0x31, 0x61, 0x6c,
+ 0x70, 0x68, 0x61, 0x31, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
+ 0x6f, 0x22, 0x5a, 0x0a, 0x06, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x61,
+ 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09,
+ 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x3a, 0x32, 0xba, 0xc0, 0x96, 0xda, 0x01,
+ 0x2c, 0x0a, 0x2a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x6f,
+ 0x6b, 0x74, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72,
+ 0x6f, 0x6c, 0x6c, 0x2f, 0x78, 0x2f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x42, 0xd2, 0x01,
+ 0x0a, 0x1b, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x67,
+ 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x42, 0x0b, 0x4d,
+ 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x28, 0x63, 0x6f,
+ 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70,
+ 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2f,
+ 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0xa2, 0x02, 0x03, 0x50, 0x47, 0x4d, 0xaa, 0x02, 0x17, 0x50,
+ 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e,
+ 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0xca, 0x02, 0x17, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c,
+ 0x6c, 0x5c, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65,
+ 0xe2, 0x02, 0x23, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x47, 0x61, 0x74, 0x65,
+ 0x77, 0x61, 0x79, 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65,
+ 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x19, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c,
+ 0x6c, 0x3a, 0x3a, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x3a, 0x3a, 0x4d, 0x6f, 0x64, 0x75,
+ 0x6c, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_poktroll_gateway_module_module_proto_rawDescOnce sync.Once
+ file_poktroll_gateway_module_module_proto_rawDescData = file_poktroll_gateway_module_module_proto_rawDesc
+)
+
+func file_poktroll_gateway_module_module_proto_rawDescGZIP() []byte {
+ file_poktroll_gateway_module_module_proto_rawDescOnce.Do(func() {
+ file_poktroll_gateway_module_module_proto_rawDescData = protoimpl.X.CompressGZIP(file_poktroll_gateway_module_module_proto_rawDescData)
+ })
+ return file_poktroll_gateway_module_module_proto_rawDescData
+}
+
+var file_poktroll_gateway_module_module_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
+var file_poktroll_gateway_module_module_proto_goTypes = []interface{}{
+ (*Module)(nil), // 0: poktroll.gateway.module.Module
+}
+var file_poktroll_gateway_module_module_proto_depIdxs = []int32{
+ 0, // [0:0] is the sub-list for method output_type
+ 0, // [0:0] is the sub-list for method input_type
+ 0, // [0:0] is the sub-list for extension type_name
+ 0, // [0:0] is the sub-list for extension extendee
+ 0, // [0:0] is the sub-list for field type_name
+}
+
+func init() { file_poktroll_gateway_module_module_proto_init() }
+func file_poktroll_gateway_module_module_proto_init() {
+ if File_poktroll_gateway_module_module_proto != nil {
+ return
+ }
+ if !protoimpl.UnsafeEnabled {
+ file_poktroll_gateway_module_module_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*Module); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_poktroll_gateway_module_module_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 1,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_poktroll_gateway_module_module_proto_goTypes,
+ DependencyIndexes: file_poktroll_gateway_module_module_proto_depIdxs,
+ MessageInfos: file_poktroll_gateway_module_module_proto_msgTypes,
+ }.Build()
+ File_poktroll_gateway_module_module_proto = out.File
+ file_poktroll_gateway_module_module_proto_rawDesc = nil
+ file_poktroll_gateway_module_module_proto_goTypes = nil
+ file_poktroll_gateway_module_module_proto_depIdxs = nil
+}
diff --git a/api/poktroll/gateway/params.pulsar.go b/api/poktroll/gateway/params.pulsar.go
new file mode 100644
index 000000000..19969e717
--- /dev/null
+++ b/api/poktroll/gateway/params.pulsar.go
@@ -0,0 +1,499 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package gateway
+
+import (
+ _ "cosmossdk.io/api/amino"
+ 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_Params protoreflect.MessageDescriptor
+)
+
+func init() {
+ file_poktroll_gateway_params_proto_init()
+ md_Params = File_poktroll_gateway_params_proto.Messages().ByName("Params")
+}
+
+var _ protoreflect.Message = (*fastReflection_Params)(nil)
+
+type fastReflection_Params Params
+
+func (x *Params) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_Params)(x)
+}
+
+func (x *Params) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_gateway_params_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_Params_messageType fastReflection_Params_messageType
+var _ protoreflect.MessageType = fastReflection_Params_messageType{}
+
+type fastReflection_Params_messageType struct{}
+
+func (x fastReflection_Params_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_Params)(nil)
+}
+func (x fastReflection_Params_messageType) New() protoreflect.Message {
+ return new(fastReflection_Params)
+}
+func (x fastReflection_Params_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_Params
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_Params) Descriptor() protoreflect.MessageDescriptor {
+ return md_Params
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_Params) Type() protoreflect.MessageType {
+ return _fastReflection_Params_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_Params) New() protoreflect.Message {
+ return new(fastReflection_Params)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_Params) Interface() protoreflect.ProtoMessage {
+ return (*Params)(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_Params) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_Params) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.Params"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.Params 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_Params) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.Params"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.Params 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_Params) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.Params"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.Params 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_Params) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.Params"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.Params 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_Params) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.Params"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.Params does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// 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() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.Params"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.Params does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_Params) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.gateway.Params", 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_Params) 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_Params) 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_Params) 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_Params) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*Params)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*Params)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*Params)
+ 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: Params: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.27.0
+// protoc (unknown)
+// source: poktroll/gateway/params.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)
+)
+
+// Params defines the parameters for the module.
+type Params struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+}
+
+func (x *Params) Reset() {
+ *x = Params{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_gateway_params_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *Params) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*Params) ProtoMessage() {}
+
+// Deprecated: Use Params.ProtoReflect.Descriptor instead.
+func (*Params) Descriptor() ([]byte, []int) {
+ return file_poktroll_gateway_params_proto_rawDescGZIP(), []int{0}
+}
+
+var File_poktroll_gateway_params_proto protoreflect.FileDescriptor
+
+var file_poktroll_gateway_params_proto_rawDesc = []byte{
+ 0x0a, 0x1d, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x67, 0x61, 0x74, 0x65, 0x77,
+ 0x61, 0x79, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
+ 0x10, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61,
+ 0x79, 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, 0x2c, 0x0a, 0x06, 0x50, 0x61,
+ 0x72, 0x61, 0x6d, 0x73, 0x3a, 0x22, 0xe8, 0xa0, 0x1f, 0x01, 0x8a, 0xe7, 0xb0, 0x2a, 0x19, 0x70,
+ 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x78, 0x2f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61,
+ 0x79, 0x2f, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0xa7, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d,
+ 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61,
+ 0x79, 0x42, 0x0b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01,
+ 0x5a, 0x21, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61,
+ 0x70, 0x69, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x67, 0x61, 0x74, 0x65,
+ 0x77, 0x61, 0x79, 0xa2, 0x02, 0x03, 0x50, 0x47, 0x58, 0xaa, 0x02, 0x10, 0x50, 0x6f, 0x6b, 0x74,
+ 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0xca, 0x02, 0x10, 0x50,
+ 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0xe2,
+ 0x02, 0x1c, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x47, 0x61, 0x74, 0x65, 0x77,
+ 0x61, 0x79, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02,
+ 0x11, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x3a, 0x3a, 0x47, 0x61, 0x74, 0x65, 0x77,
+ 0x61, 0x79, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_poktroll_gateway_params_proto_rawDescOnce sync.Once
+ file_poktroll_gateway_params_proto_rawDescData = file_poktroll_gateway_params_proto_rawDesc
+)
+
+func file_poktroll_gateway_params_proto_rawDescGZIP() []byte {
+ file_poktroll_gateway_params_proto_rawDescOnce.Do(func() {
+ file_poktroll_gateway_params_proto_rawDescData = protoimpl.X.CompressGZIP(file_poktroll_gateway_params_proto_rawDescData)
+ })
+ return file_poktroll_gateway_params_proto_rawDescData
+}
+
+var file_poktroll_gateway_params_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
+var file_poktroll_gateway_params_proto_goTypes = []interface{}{
+ (*Params)(nil), // 0: poktroll.gateway.Params
+}
+var file_poktroll_gateway_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
+ 0, // [0:0] is the sub-list for extension extendee
+ 0, // [0:0] is the sub-list for field type_name
+}
+
+func init() { file_poktroll_gateway_params_proto_init() }
+func file_poktroll_gateway_params_proto_init() {
+ if File_poktroll_gateway_params_proto != nil {
+ return
+ }
+ if !protoimpl.UnsafeEnabled {
+ file_poktroll_gateway_params_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*Params); 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_poktroll_gateway_params_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 1,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_poktroll_gateway_params_proto_goTypes,
+ DependencyIndexes: file_poktroll_gateway_params_proto_depIdxs,
+ MessageInfos: file_poktroll_gateway_params_proto_msgTypes,
+ }.Build()
+ File_poktroll_gateway_params_proto = out.File
+ file_poktroll_gateway_params_proto_rawDesc = nil
+ file_poktroll_gateway_params_proto_goTypes = nil
+ file_poktroll_gateway_params_proto_depIdxs = nil
+}
diff --git a/api/poktroll/gateway/query.pulsar.go b/api/poktroll/gateway/query.pulsar.go
new file mode 100644
index 000000000..36691c4cf
--- /dev/null
+++ b/api/poktroll/gateway/query.pulsar.go
@@ -0,0 +1,3137 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package gateway
+
+import (
+ _ "cosmossdk.io/api/amino"
+ v1beta1 "cosmossdk.io/api/cosmos/base/query/v1beta1"
+ _ "cosmossdk.io/api/cosmos/base/v1beta1"
+ fmt "fmt"
+ _ "github.com/cosmos/cosmos-proto"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ _ "github.com/cosmos/gogoproto/gogoproto"
+ _ "google.golang.org/genproto/googleapis/api/annotations"
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoiface "google.golang.org/protobuf/runtime/protoiface"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ io "io"
+ reflect "reflect"
+ sync "sync"
+)
+
+var (
+ md_QueryParamsRequest protoreflect.MessageDescriptor
+)
+
+func init() {
+ file_poktroll_gateway_query_proto_init()
+ md_QueryParamsRequest = File_poktroll_gateway_query_proto.Messages().ByName("QueryParamsRequest")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryParamsRequest)(nil)
+
+type fastReflection_QueryParamsRequest QueryParamsRequest
+
+func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryParamsRequest)(x)
+}
+
+func (x *QueryParamsRequest) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_gateway_query_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryParamsRequest_messageType fastReflection_QueryParamsRequest_messageType
+var _ protoreflect.MessageType = fastReflection_QueryParamsRequest_messageType{}
+
+type fastReflection_QueryParamsRequest_messageType struct{}
+
+func (x fastReflection_QueryParamsRequest_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryParamsRequest)(nil)
+}
+func (x fastReflection_QueryParamsRequest_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryParamsRequest)
+}
+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_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_QueryParamsRequest) Type() protoreflect.MessageType {
+ return _fastReflection_QueryParamsRequest_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+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_QueryParamsRequest) Interface() protoreflect.ProtoMessage {
+ return (*QueryParamsRequest)(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_QueryParamsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_QueryParamsRequest) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.QueryParamsRequest 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_QueryParamsRequest) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.QueryParamsRequest 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_QueryParamsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.QueryParamsRequest 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_QueryParamsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.QueryParamsRequest 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_QueryParamsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.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_QueryParamsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.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_QueryParamsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.gateway.QueryParamsRequest", 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_QueryParamsRequest) 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_QueryParamsRequest) 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_QueryParamsRequest) 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_QueryParamsRequest) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryParamsRequest)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*QueryParamsRequest)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*QueryParamsRequest)
+ 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: QueryParamsRequest: 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)
+ }
+ switch fieldNum {
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_QueryParamsResponse protoreflect.MessageDescriptor
+ fd_QueryParamsResponse_params protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_gateway_query_proto_init()
+ md_QueryParamsResponse = File_poktroll_gateway_query_proto.Messages().ByName("QueryParamsResponse")
+ fd_QueryParamsResponse_params = md_QueryParamsResponse.Fields().ByName("params")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryParamsResponse)(nil)
+
+type fastReflection_QueryParamsResponse QueryParamsResponse
+
+func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryParamsResponse)(x)
+}
+
+func (x *QueryParamsResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_gateway_query_proto_msgTypes[1]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryParamsResponse_messageType fastReflection_QueryParamsResponse_messageType
+var _ protoreflect.MessageType = fastReflection_QueryParamsResponse_messageType{}
+
+type fastReflection_QueryParamsResponse_messageType struct{}
+
+func (x fastReflection_QueryParamsResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryParamsResponse)(nil)
+}
+func (x fastReflection_QueryParamsResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryParamsResponse)
+}
+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_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_QueryParamsResponse) Type() protoreflect.MessageType {
+ return _fastReflection_QueryParamsResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+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_QueryParamsResponse) Interface() protoreflect.ProtoMessage {
+ return (*QueryParamsResponse)(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_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
+ }
+ }
+}
+
+// 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_QueryParamsResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.gateway.QueryParamsResponse.params":
+ return x.Params != nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.QueryParamsResponse 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_QueryParamsResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.gateway.QueryParamsResponse.params":
+ x.Params = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.QueryParamsResponse 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_QueryParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.gateway.QueryParamsResponse.params":
+ value := x.Params
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.QueryParamsResponse 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_QueryParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.gateway.QueryParamsResponse.params":
+ x.Params = value.Message().Interface().(*Params)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.QueryParamsResponse 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_QueryParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.gateway.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: poktroll.gateway.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.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_QueryParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.gateway.QueryParamsResponse.params":
+ m := new(Params)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.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_QueryParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.gateway.QueryParamsResponse", 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_QueryParamsResponse) 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_QueryParamsResponse) 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_QueryParamsResponse) 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_QueryParamsResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryParamsResponse)
+ 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.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().(*QueryParamsResponse)
+ 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.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().(*QueryParamsResponse)
+ 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: QueryParamsResponse: 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)
+ }
+ 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
+ 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_QueryGetGatewayRequest protoreflect.MessageDescriptor
+ fd_QueryGetGatewayRequest_address protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_gateway_query_proto_init()
+ md_QueryGetGatewayRequest = File_poktroll_gateway_query_proto.Messages().ByName("QueryGetGatewayRequest")
+ fd_QueryGetGatewayRequest_address = md_QueryGetGatewayRequest.Fields().ByName("address")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryGetGatewayRequest)(nil)
+
+type fastReflection_QueryGetGatewayRequest QueryGetGatewayRequest
+
+func (x *QueryGetGatewayRequest) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryGetGatewayRequest)(x)
+}
+
+func (x *QueryGetGatewayRequest) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_gateway_query_proto_msgTypes[2]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryGetGatewayRequest_messageType fastReflection_QueryGetGatewayRequest_messageType
+var _ protoreflect.MessageType = fastReflection_QueryGetGatewayRequest_messageType{}
+
+type fastReflection_QueryGetGatewayRequest_messageType struct{}
+
+func (x fastReflection_QueryGetGatewayRequest_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryGetGatewayRequest)(nil)
+}
+func (x fastReflection_QueryGetGatewayRequest_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryGetGatewayRequest)
+}
+func (x fastReflection_QueryGetGatewayRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryGetGatewayRequest
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_QueryGetGatewayRequest) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryGetGatewayRequest
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_QueryGetGatewayRequest) Type() protoreflect.MessageType {
+ return _fastReflection_QueryGetGatewayRequest_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_QueryGetGatewayRequest) New() protoreflect.Message {
+ return new(fastReflection_QueryGetGatewayRequest)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_QueryGetGatewayRequest) Interface() protoreflect.ProtoMessage {
+ return (*QueryGetGatewayRequest)(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_QueryGetGatewayRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Address != "" {
+ value := protoreflect.ValueOfString(x.Address)
+ if !f(fd_QueryGetGatewayRequest_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_QueryGetGatewayRequest) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.gateway.QueryGetGatewayRequest.address":
+ return x.Address != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.QueryGetGatewayRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.QueryGetGatewayRequest 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_QueryGetGatewayRequest) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.gateway.QueryGetGatewayRequest.address":
+ x.Address = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.QueryGetGatewayRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.QueryGetGatewayRequest 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_QueryGetGatewayRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.gateway.QueryGetGatewayRequest.address":
+ value := x.Address
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.QueryGetGatewayRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.QueryGetGatewayRequest 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_QueryGetGatewayRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.gateway.QueryGetGatewayRequest.address":
+ x.Address = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.QueryGetGatewayRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.QueryGetGatewayRequest 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_QueryGetGatewayRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.gateway.QueryGetGatewayRequest.address":
+ panic(fmt.Errorf("field address of message poktroll.gateway.QueryGetGatewayRequest is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.QueryGetGatewayRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.QueryGetGatewayRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_QueryGetGatewayRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.gateway.QueryGetGatewayRequest.address":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.QueryGetGatewayRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.QueryGetGatewayRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_QueryGetGatewayRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.gateway.QueryGetGatewayRequest", 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_QueryGetGatewayRequest) 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_QueryGetGatewayRequest) 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_QueryGetGatewayRequest) 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_QueryGetGatewayRequest) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryGetGatewayRequest)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Address)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*QueryGetGatewayRequest)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Address) > 0 {
+ i -= len(x.Address)
+ copy(dAtA[i:], x.Address)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address)))
+ i--
+ dAtA[i] = 0xa
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*QueryGetGatewayRequest)
+ 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: QueryGetGatewayRequest: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetGatewayRequest: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Address = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_QueryGetGatewayResponse protoreflect.MessageDescriptor
+ fd_QueryGetGatewayResponse_gateway protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_gateway_query_proto_init()
+ md_QueryGetGatewayResponse = File_poktroll_gateway_query_proto.Messages().ByName("QueryGetGatewayResponse")
+ fd_QueryGetGatewayResponse_gateway = md_QueryGetGatewayResponse.Fields().ByName("gateway")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryGetGatewayResponse)(nil)
+
+type fastReflection_QueryGetGatewayResponse QueryGetGatewayResponse
+
+func (x *QueryGetGatewayResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryGetGatewayResponse)(x)
+}
+
+func (x *QueryGetGatewayResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_gateway_query_proto_msgTypes[3]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryGetGatewayResponse_messageType fastReflection_QueryGetGatewayResponse_messageType
+var _ protoreflect.MessageType = fastReflection_QueryGetGatewayResponse_messageType{}
+
+type fastReflection_QueryGetGatewayResponse_messageType struct{}
+
+func (x fastReflection_QueryGetGatewayResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryGetGatewayResponse)(nil)
+}
+func (x fastReflection_QueryGetGatewayResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryGetGatewayResponse)
+}
+func (x fastReflection_QueryGetGatewayResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryGetGatewayResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_QueryGetGatewayResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryGetGatewayResponse
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_QueryGetGatewayResponse) Type() protoreflect.MessageType {
+ return _fastReflection_QueryGetGatewayResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_QueryGetGatewayResponse) New() protoreflect.Message {
+ return new(fastReflection_QueryGetGatewayResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_QueryGetGatewayResponse) Interface() protoreflect.ProtoMessage {
+ return (*QueryGetGatewayResponse)(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_QueryGetGatewayResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Gateway != nil {
+ value := protoreflect.ValueOfMessage(x.Gateway.ProtoReflect())
+ if !f(fd_QueryGetGatewayResponse_gateway, 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_QueryGetGatewayResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.gateway.QueryGetGatewayResponse.gateway":
+ return x.Gateway != nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.QueryGetGatewayResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.QueryGetGatewayResponse 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_QueryGetGatewayResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.gateway.QueryGetGatewayResponse.gateway":
+ x.Gateway = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.QueryGetGatewayResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.QueryGetGatewayResponse 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_QueryGetGatewayResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.gateway.QueryGetGatewayResponse.gateway":
+ value := x.Gateway
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.QueryGetGatewayResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.QueryGetGatewayResponse 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_QueryGetGatewayResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.gateway.QueryGetGatewayResponse.gateway":
+ x.Gateway = value.Message().Interface().(*Gateway)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.QueryGetGatewayResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.QueryGetGatewayResponse 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_QueryGetGatewayResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.gateway.QueryGetGatewayResponse.gateway":
+ if x.Gateway == nil {
+ x.Gateway = new(Gateway)
+ }
+ return protoreflect.ValueOfMessage(x.Gateway.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.QueryGetGatewayResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.QueryGetGatewayResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_QueryGetGatewayResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.gateway.QueryGetGatewayResponse.gateway":
+ m := new(Gateway)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.QueryGetGatewayResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.QueryGetGatewayResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_QueryGetGatewayResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.gateway.QueryGetGatewayResponse", 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_QueryGetGatewayResponse) 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_QueryGetGatewayResponse) 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_QueryGetGatewayResponse) 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_QueryGetGatewayResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryGetGatewayResponse)
+ 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.Gateway != nil {
+ l = options.Size(x.Gateway)
+ 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().(*QueryGetGatewayResponse)
+ 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.Gateway != nil {
+ encoded, err := options.Marshal(x.Gateway)
+ 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().(*QueryGetGatewayResponse)
+ 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: QueryGetGatewayResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetGatewayResponse: 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 Gateway", 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.Gateway == nil {
+ x.Gateway = &Gateway{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Gateway); 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_QueryAllGatewaysRequest protoreflect.MessageDescriptor
+ fd_QueryAllGatewaysRequest_pagination protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_gateway_query_proto_init()
+ md_QueryAllGatewaysRequest = File_poktroll_gateway_query_proto.Messages().ByName("QueryAllGatewaysRequest")
+ fd_QueryAllGatewaysRequest_pagination = md_QueryAllGatewaysRequest.Fields().ByName("pagination")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryAllGatewaysRequest)(nil)
+
+type fastReflection_QueryAllGatewaysRequest QueryAllGatewaysRequest
+
+func (x *QueryAllGatewaysRequest) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryAllGatewaysRequest)(x)
+}
+
+func (x *QueryAllGatewaysRequest) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_gateway_query_proto_msgTypes[4]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryAllGatewaysRequest_messageType fastReflection_QueryAllGatewaysRequest_messageType
+var _ protoreflect.MessageType = fastReflection_QueryAllGatewaysRequest_messageType{}
+
+type fastReflection_QueryAllGatewaysRequest_messageType struct{}
+
+func (x fastReflection_QueryAllGatewaysRequest_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryAllGatewaysRequest)(nil)
+}
+func (x fastReflection_QueryAllGatewaysRequest_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryAllGatewaysRequest)
+}
+func (x fastReflection_QueryAllGatewaysRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryAllGatewaysRequest
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_QueryAllGatewaysRequest) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryAllGatewaysRequest
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_QueryAllGatewaysRequest) Type() protoreflect.MessageType {
+ return _fastReflection_QueryAllGatewaysRequest_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_QueryAllGatewaysRequest) New() protoreflect.Message {
+ return new(fastReflection_QueryAllGatewaysRequest)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_QueryAllGatewaysRequest) Interface() protoreflect.ProtoMessage {
+ return (*QueryAllGatewaysRequest)(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_QueryAllGatewaysRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Pagination != nil {
+ value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
+ if !f(fd_QueryAllGatewaysRequest_pagination, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_QueryAllGatewaysRequest) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.gateway.QueryAllGatewaysRequest.pagination":
+ return x.Pagination != nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.QueryAllGatewaysRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.QueryAllGatewaysRequest 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_QueryAllGatewaysRequest) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.gateway.QueryAllGatewaysRequest.pagination":
+ x.Pagination = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.QueryAllGatewaysRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.QueryAllGatewaysRequest 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_QueryAllGatewaysRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.gateway.QueryAllGatewaysRequest.pagination":
+ value := x.Pagination
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.QueryAllGatewaysRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.QueryAllGatewaysRequest 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_QueryAllGatewaysRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.gateway.QueryAllGatewaysRequest.pagination":
+ x.Pagination = value.Message().Interface().(*v1beta1.PageRequest)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.QueryAllGatewaysRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.QueryAllGatewaysRequest 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_QueryAllGatewaysRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.gateway.QueryAllGatewaysRequest.pagination":
+ if x.Pagination == nil {
+ x.Pagination = new(v1beta1.PageRequest)
+ }
+ return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.QueryAllGatewaysRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.QueryAllGatewaysRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_QueryAllGatewaysRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.gateway.QueryAllGatewaysRequest.pagination":
+ m := new(v1beta1.PageRequest)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.QueryAllGatewaysRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.QueryAllGatewaysRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_QueryAllGatewaysRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.gateway.QueryAllGatewaysRequest", 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_QueryAllGatewaysRequest) 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_QueryAllGatewaysRequest) 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_QueryAllGatewaysRequest) 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_QueryAllGatewaysRequest) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryAllGatewaysRequest)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.Pagination != nil {
+ l = options.Size(x.Pagination)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*QueryAllGatewaysRequest)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if x.Pagination != nil {
+ encoded, err := options.Marshal(x.Pagination)
+ if err != nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, err
+ }
+ i -= len(encoded)
+ copy(dAtA[i:], encoded)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
+ i--
+ dAtA[i] = 0xa
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*QueryAllGatewaysRequest)
+ 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: QueryAllGatewaysRequest: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllGatewaysRequest: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if x.Pagination == nil {
+ x.Pagination = &v1beta1.PageRequest{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var _ protoreflect.List = (*_QueryAllGatewaysResponse_1_list)(nil)
+
+type _QueryAllGatewaysResponse_1_list struct {
+ list *[]*Gateway
+}
+
+func (x *_QueryAllGatewaysResponse_1_list) Len() int {
+ if x.list == nil {
+ return 0
+ }
+ return len(*x.list)
+}
+
+func (x *_QueryAllGatewaysResponse_1_list) Get(i int) protoreflect.Value {
+ return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
+}
+
+func (x *_QueryAllGatewaysResponse_1_list) Set(i int, value protoreflect.Value) {
+ valueUnwrapped := value.Message()
+ concreteValue := valueUnwrapped.Interface().(*Gateway)
+ (*x.list)[i] = concreteValue
+}
+
+func (x *_QueryAllGatewaysResponse_1_list) Append(value protoreflect.Value) {
+ valueUnwrapped := value.Message()
+ concreteValue := valueUnwrapped.Interface().(*Gateway)
+ *x.list = append(*x.list, concreteValue)
+}
+
+func (x *_QueryAllGatewaysResponse_1_list) AppendMutable() protoreflect.Value {
+ v := new(Gateway)
+ *x.list = append(*x.list, v)
+ return protoreflect.ValueOfMessage(v.ProtoReflect())
+}
+
+func (x *_QueryAllGatewaysResponse_1_list) Truncate(n int) {
+ for i := n; i < len(*x.list); i++ {
+ (*x.list)[i] = nil
+ }
+ *x.list = (*x.list)[:n]
+}
+
+func (x *_QueryAllGatewaysResponse_1_list) NewElement() protoreflect.Value {
+ v := new(Gateway)
+ return protoreflect.ValueOfMessage(v.ProtoReflect())
+}
+
+func (x *_QueryAllGatewaysResponse_1_list) IsValid() bool {
+ return x.list != nil
+}
+
+var (
+ md_QueryAllGatewaysResponse protoreflect.MessageDescriptor
+ fd_QueryAllGatewaysResponse_gateways protoreflect.FieldDescriptor
+ fd_QueryAllGatewaysResponse_pagination protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_gateway_query_proto_init()
+ md_QueryAllGatewaysResponse = File_poktroll_gateway_query_proto.Messages().ByName("QueryAllGatewaysResponse")
+ fd_QueryAllGatewaysResponse_gateways = md_QueryAllGatewaysResponse.Fields().ByName("gateways")
+ fd_QueryAllGatewaysResponse_pagination = md_QueryAllGatewaysResponse.Fields().ByName("pagination")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryAllGatewaysResponse)(nil)
+
+type fastReflection_QueryAllGatewaysResponse QueryAllGatewaysResponse
+
+func (x *QueryAllGatewaysResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryAllGatewaysResponse)(x)
+}
+
+func (x *QueryAllGatewaysResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_gateway_query_proto_msgTypes[5]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryAllGatewaysResponse_messageType fastReflection_QueryAllGatewaysResponse_messageType
+var _ protoreflect.MessageType = fastReflection_QueryAllGatewaysResponse_messageType{}
+
+type fastReflection_QueryAllGatewaysResponse_messageType struct{}
+
+func (x fastReflection_QueryAllGatewaysResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryAllGatewaysResponse)(nil)
+}
+func (x fastReflection_QueryAllGatewaysResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryAllGatewaysResponse)
+}
+func (x fastReflection_QueryAllGatewaysResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryAllGatewaysResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_QueryAllGatewaysResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryAllGatewaysResponse
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_QueryAllGatewaysResponse) Type() protoreflect.MessageType {
+ return _fastReflection_QueryAllGatewaysResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_QueryAllGatewaysResponse) New() protoreflect.Message {
+ return new(fastReflection_QueryAllGatewaysResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_QueryAllGatewaysResponse) Interface() protoreflect.ProtoMessage {
+ return (*QueryAllGatewaysResponse)(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_QueryAllGatewaysResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if len(x.Gateways) != 0 {
+ value := protoreflect.ValueOfList(&_QueryAllGatewaysResponse_1_list{list: &x.Gateways})
+ if !f(fd_QueryAllGatewaysResponse_gateways, value) {
+ return
+ }
+ }
+ if x.Pagination != nil {
+ value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
+ if !f(fd_QueryAllGatewaysResponse_pagination, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_QueryAllGatewaysResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.gateway.QueryAllGatewaysResponse.gateways":
+ return len(x.Gateways) != 0
+ case "poktroll.gateway.QueryAllGatewaysResponse.pagination":
+ return x.Pagination != nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.QueryAllGatewaysResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.QueryAllGatewaysResponse 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_QueryAllGatewaysResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.gateway.QueryAllGatewaysResponse.gateways":
+ x.Gateways = nil
+ case "poktroll.gateway.QueryAllGatewaysResponse.pagination":
+ x.Pagination = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.QueryAllGatewaysResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.QueryAllGatewaysResponse 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_QueryAllGatewaysResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.gateway.QueryAllGatewaysResponse.gateways":
+ if len(x.Gateways) == 0 {
+ return protoreflect.ValueOfList(&_QueryAllGatewaysResponse_1_list{})
+ }
+ listValue := &_QueryAllGatewaysResponse_1_list{list: &x.Gateways}
+ return protoreflect.ValueOfList(listValue)
+ case "poktroll.gateway.QueryAllGatewaysResponse.pagination":
+ value := x.Pagination
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.QueryAllGatewaysResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.QueryAllGatewaysResponse 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_QueryAllGatewaysResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.gateway.QueryAllGatewaysResponse.gateways":
+ lv := value.List()
+ clv := lv.(*_QueryAllGatewaysResponse_1_list)
+ x.Gateways = *clv.list
+ case "poktroll.gateway.QueryAllGatewaysResponse.pagination":
+ x.Pagination = value.Message().Interface().(*v1beta1.PageResponse)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.QueryAllGatewaysResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.QueryAllGatewaysResponse 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_QueryAllGatewaysResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.gateway.QueryAllGatewaysResponse.gateways":
+ if x.Gateways == nil {
+ x.Gateways = []*Gateway{}
+ }
+ value := &_QueryAllGatewaysResponse_1_list{list: &x.Gateways}
+ return protoreflect.ValueOfList(value)
+ case "poktroll.gateway.QueryAllGatewaysResponse.pagination":
+ if x.Pagination == nil {
+ x.Pagination = new(v1beta1.PageResponse)
+ }
+ return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.QueryAllGatewaysResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.QueryAllGatewaysResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_QueryAllGatewaysResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.gateway.QueryAllGatewaysResponse.gateways":
+ list := []*Gateway{}
+ return protoreflect.ValueOfList(&_QueryAllGatewaysResponse_1_list{list: &list})
+ case "poktroll.gateway.QueryAllGatewaysResponse.pagination":
+ m := new(v1beta1.PageResponse)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.QueryAllGatewaysResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.QueryAllGatewaysResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_QueryAllGatewaysResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.gateway.QueryAllGatewaysResponse", 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_QueryAllGatewaysResponse) 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_QueryAllGatewaysResponse) 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_QueryAllGatewaysResponse) 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_QueryAllGatewaysResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryAllGatewaysResponse)
+ 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.Gateways) > 0 {
+ for _, e := range x.Gateways {
+ l = options.Size(e)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ }
+ if x.Pagination != nil {
+ l = options.Size(x.Pagination)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*QueryAllGatewaysResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if x.Pagination != nil {
+ encoded, err := options.Marshal(x.Pagination)
+ if err != nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, err
+ }
+ i -= len(encoded)
+ copy(dAtA[i:], encoded)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if len(x.Gateways) > 0 {
+ for iNdEx := len(x.Gateways) - 1; iNdEx >= 0; iNdEx-- {
+ encoded, err := options.Marshal(x.Gateways[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().(*QueryAllGatewaysResponse)
+ 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: QueryAllGatewaysResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllGatewaysResponse: 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 Gateways", 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.Gateways = append(x.Gateways, &Gateway{})
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Gateways[len(x.Gateways)-1]); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if x.Pagination == nil {
+ x.Pagination = &v1beta1.PageResponse{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.27.0
+// protoc (unknown)
+// source: poktroll/gateway/query.proto
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+// QueryParamsRequest is request type for the Query/Params RPC method.
+type QueryParamsRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+}
+
+func (x *QueryParamsRequest) Reset() {
+ *x = QueryParamsRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_gateway_query_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryParamsRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryParamsRequest) ProtoMessage() {}
+
+// Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead.
+func (*QueryParamsRequest) Descriptor() ([]byte, []int) {
+ return file_poktroll_gateway_query_proto_rawDescGZIP(), []int{0}
+}
+
+// QueryParamsResponse is response type for the Query/Params RPC method.
+type QueryParamsResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // params holds all the parameters of this module.
+ Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
+}
+
+func (x *QueryParamsResponse) Reset() {
+ *x = QueryParamsResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_gateway_query_proto_msgTypes[1]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryParamsResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryParamsResponse) ProtoMessage() {}
+
+// Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead.
+func (*QueryParamsResponse) Descriptor() ([]byte, []int) {
+ return file_poktroll_gateway_query_proto_rawDescGZIP(), []int{1}
+}
+
+func (x *QueryParamsResponse) GetParams() *Params {
+ if x != nil {
+ return x.Params
+ }
+ return nil
+}
+
+type QueryGetGatewayRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
+}
+
+func (x *QueryGetGatewayRequest) Reset() {
+ *x = QueryGetGatewayRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_gateway_query_proto_msgTypes[2]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryGetGatewayRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryGetGatewayRequest) ProtoMessage() {}
+
+// Deprecated: Use QueryGetGatewayRequest.ProtoReflect.Descriptor instead.
+func (*QueryGetGatewayRequest) Descriptor() ([]byte, []int) {
+ return file_poktroll_gateway_query_proto_rawDescGZIP(), []int{2}
+}
+
+func (x *QueryGetGatewayRequest) GetAddress() string {
+ if x != nil {
+ return x.Address
+ }
+ return ""
+}
+
+type QueryGetGatewayResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Gateway *Gateway `protobuf:"bytes,1,opt,name=gateway,proto3" json:"gateway,omitempty"`
+}
+
+func (x *QueryGetGatewayResponse) Reset() {
+ *x = QueryGetGatewayResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_gateway_query_proto_msgTypes[3]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryGetGatewayResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryGetGatewayResponse) ProtoMessage() {}
+
+// Deprecated: Use QueryGetGatewayResponse.ProtoReflect.Descriptor instead.
+func (*QueryGetGatewayResponse) Descriptor() ([]byte, []int) {
+ return file_poktroll_gateway_query_proto_rawDescGZIP(), []int{3}
+}
+
+func (x *QueryGetGatewayResponse) GetGateway() *Gateway {
+ if x != nil {
+ return x.Gateway
+ }
+ return nil
+}
+
+type QueryAllGatewaysRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
+}
+
+func (x *QueryAllGatewaysRequest) Reset() {
+ *x = QueryAllGatewaysRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_gateway_query_proto_msgTypes[4]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryAllGatewaysRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryAllGatewaysRequest) ProtoMessage() {}
+
+// Deprecated: Use QueryAllGatewaysRequest.ProtoReflect.Descriptor instead.
+func (*QueryAllGatewaysRequest) Descriptor() ([]byte, []int) {
+ return file_poktroll_gateway_query_proto_rawDescGZIP(), []int{4}
+}
+
+func (x *QueryAllGatewaysRequest) GetPagination() *v1beta1.PageRequest {
+ if x != nil {
+ return x.Pagination
+ }
+ return nil
+}
+
+type QueryAllGatewaysResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Gateways []*Gateway `protobuf:"bytes,1,rep,name=gateways,proto3" json:"gateways,omitempty"`
+ Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
+}
+
+func (x *QueryAllGatewaysResponse) Reset() {
+ *x = QueryAllGatewaysResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_gateway_query_proto_msgTypes[5]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryAllGatewaysResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryAllGatewaysResponse) ProtoMessage() {}
+
+// Deprecated: Use QueryAllGatewaysResponse.ProtoReflect.Descriptor instead.
+func (*QueryAllGatewaysResponse) Descriptor() ([]byte, []int) {
+ return file_poktroll_gateway_query_proto_rawDescGZIP(), []int{5}
+}
+
+func (x *QueryAllGatewaysResponse) GetGateways() []*Gateway {
+ if x != nil {
+ return x.Gateways
+ }
+ return nil
+}
+
+func (x *QueryAllGatewaysResponse) GetPagination() *v1beta1.PageResponse {
+ if x != nil {
+ return x.Pagination
+ }
+ return nil
+}
+
+var File_poktroll_gateway_query_proto protoreflect.FileDescriptor
+
+var file_poktroll_gateway_query_proto_rawDesc = []byte{
+ 0x0a, 0x1c, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x67, 0x61, 0x74, 0x65, 0x77,
+ 0x61, 0x79, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10,
+ 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79,
+ 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 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, 0x14,
+ 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70,
+ 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69,
+ 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f,
+ 0x74, 0x6f, 0x1a, 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, 0x1e,
+ 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65,
+ 0x74, 0x61, 0x31, 0x2f, 0x63, 0x6f, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d,
+ 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79,
+ 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x70,
+ 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2f,
+ 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 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, 0x52, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61,
+ 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3b, 0x0a, 0x06, 0x70, 0x61,
+ 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x70, 0x6f, 0x6b,
+ 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 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, 0x32, 0x0a, 0x16, 0x51, 0x75, 0x65, 0x72, 0x79,
+ 0x47, 0x65, 0x74, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
+ 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01,
+ 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x54, 0x0a, 0x17, 0x51,
+ 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x52, 0x65,
+ 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x07, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61,
+ 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f,
+ 0x6c, 0x6c, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x47, 0x61, 0x74, 0x65, 0x77,
+ 0x61, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x07, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61,
+ 0x79, 0x22, 0x61, 0x0a, 0x17, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x47, 0x61, 0x74,
+ 0x65, 0x77, 0x61, 0x79, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a,
+ 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
+ 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71,
+ 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67,
+ 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61,
+ 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa0, 0x01, 0x0a, 0x18, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c,
+ 0x6c, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
+ 0x65, 0x12, 0x3b, 0x0a, 0x08, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x73, 0x18, 0x01, 0x20,
+ 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x67,
+ 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x42, 0x04,
+ 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x08, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x73, 0x12, 0x47,
+ 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01,
+ 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65,
+ 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50,
+ 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67,
+ 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x32, 0xc0, 0x03, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72,
+ 0x79, 0x12, 0x84, 0x01, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x24, 0x2e, 0x70,
+ 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e,
+ 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
+ 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x67, 0x61,
+ 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d,
+ 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2d, 0x82, 0xd3, 0xe4, 0x93, 0x02,
+ 0x27, 0x12, 0x25, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b,
+ 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61,
+ 0x79, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x98, 0x01, 0x0a, 0x07, 0x47, 0x61, 0x74,
+ 0x65, 0x77, 0x61, 0x79, 0x12, 0x28, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e,
+ 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74,
+ 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29,
+ 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61,
+ 0x79, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61,
+ 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x38, 0x82, 0xd3, 0xe4, 0x93, 0x02,
+ 0x32, 0x12, 0x30, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b,
+ 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61,
+ 0x79, 0x2f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65,
+ 0x73, 0x73, 0x7d, 0x12, 0x94, 0x01, 0x0a, 0x0b, 0x41, 0x6c, 0x6c, 0x47, 0x61, 0x74, 0x65, 0x77,
+ 0x61, 0x79, 0x73, 0x12, 0x29, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x67,
+ 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x47,
+ 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a,
+ 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61,
+ 0x79, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61,
+ 0x79, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2e, 0x82, 0xd3, 0xe4, 0x93,
+ 0x02, 0x28, 0x12, 0x26, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72,
+ 0x6b, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x67, 0x61, 0x74, 0x65, 0x77,
+ 0x61, 0x79, 0x2f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x42, 0xa6, 0x01, 0x0a, 0x14, 0x63,
+ 0x6f, 0x6d, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x67, 0x61, 0x74, 0x65,
+ 0x77, 0x61, 0x79, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50,
+ 0x01, 0x5a, 0x21, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f,
+ 0x61, 0x70, 0x69, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x67, 0x61, 0x74,
+ 0x65, 0x77, 0x61, 0x79, 0xa2, 0x02, 0x03, 0x50, 0x47, 0x58, 0xaa, 0x02, 0x10, 0x50, 0x6f, 0x6b,
+ 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0xca, 0x02, 0x10,
+ 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79,
+ 0xe2, 0x02, 0x1c, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x47, 0x61, 0x74, 0x65,
+ 0x77, 0x61, 0x79, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea,
+ 0x02, 0x11, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x3a, 0x3a, 0x47, 0x61, 0x74, 0x65,
+ 0x77, 0x61, 0x79, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_poktroll_gateway_query_proto_rawDescOnce sync.Once
+ file_poktroll_gateway_query_proto_rawDescData = file_poktroll_gateway_query_proto_rawDesc
+)
+
+func file_poktroll_gateway_query_proto_rawDescGZIP() []byte {
+ file_poktroll_gateway_query_proto_rawDescOnce.Do(func() {
+ file_poktroll_gateway_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_poktroll_gateway_query_proto_rawDescData)
+ })
+ return file_poktroll_gateway_query_proto_rawDescData
+}
+
+var file_poktroll_gateway_query_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
+var file_poktroll_gateway_query_proto_goTypes = []interface{}{
+ (*QueryParamsRequest)(nil), // 0: poktroll.gateway.QueryParamsRequest
+ (*QueryParamsResponse)(nil), // 1: poktroll.gateway.QueryParamsResponse
+ (*QueryGetGatewayRequest)(nil), // 2: poktroll.gateway.QueryGetGatewayRequest
+ (*QueryGetGatewayResponse)(nil), // 3: poktroll.gateway.QueryGetGatewayResponse
+ (*QueryAllGatewaysRequest)(nil), // 4: poktroll.gateway.QueryAllGatewaysRequest
+ (*QueryAllGatewaysResponse)(nil), // 5: poktroll.gateway.QueryAllGatewaysResponse
+ (*Params)(nil), // 6: poktroll.gateway.Params
+ (*Gateway)(nil), // 7: poktroll.gateway.Gateway
+ (*v1beta1.PageRequest)(nil), // 8: cosmos.base.query.v1beta1.PageRequest
+ (*v1beta1.PageResponse)(nil), // 9: cosmos.base.query.v1beta1.PageResponse
+}
+var file_poktroll_gateway_query_proto_depIdxs = []int32{
+ 6, // 0: poktroll.gateway.QueryParamsResponse.params:type_name -> poktroll.gateway.Params
+ 7, // 1: poktroll.gateway.QueryGetGatewayResponse.gateway:type_name -> poktroll.gateway.Gateway
+ 8, // 2: poktroll.gateway.QueryAllGatewaysRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest
+ 7, // 3: poktroll.gateway.QueryAllGatewaysResponse.gateways:type_name -> poktroll.gateway.Gateway
+ 9, // 4: poktroll.gateway.QueryAllGatewaysResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse
+ 0, // 5: poktroll.gateway.Query.Params:input_type -> poktroll.gateway.QueryParamsRequest
+ 2, // 6: poktroll.gateway.Query.Gateway:input_type -> poktroll.gateway.QueryGetGatewayRequest
+ 4, // 7: poktroll.gateway.Query.AllGateways:input_type -> poktroll.gateway.QueryAllGatewaysRequest
+ 1, // 8: poktroll.gateway.Query.Params:output_type -> poktroll.gateway.QueryParamsResponse
+ 3, // 9: poktroll.gateway.Query.Gateway:output_type -> poktroll.gateway.QueryGetGatewayResponse
+ 5, // 10: poktroll.gateway.Query.AllGateways:output_type -> poktroll.gateway.QueryAllGatewaysResponse
+ 8, // [8:11] is the sub-list for method output_type
+ 5, // [5:8] 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_poktroll_gateway_query_proto_init() }
+func file_poktroll_gateway_query_proto_init() {
+ if File_poktroll_gateway_query_proto != nil {
+ return
+ }
+ file_poktroll_gateway_params_proto_init()
+ file_poktroll_gateway_gateway_proto_init()
+ if !protoimpl.UnsafeEnabled {
+ file_poktroll_gateway_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryParamsRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_gateway_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryParamsResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_gateway_query_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryGetGatewayRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_gateway_query_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryGetGatewayResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_gateway_query_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryAllGatewaysRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_gateway_query_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryAllGatewaysResponse); 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_poktroll_gateway_query_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 6,
+ NumExtensions: 0,
+ NumServices: 1,
+ },
+ GoTypes: file_poktroll_gateway_query_proto_goTypes,
+ DependencyIndexes: file_poktroll_gateway_query_proto_depIdxs,
+ MessageInfos: file_poktroll_gateway_query_proto_msgTypes,
+ }.Build()
+ File_poktroll_gateway_query_proto = out.File
+ file_poktroll_gateway_query_proto_rawDesc = nil
+ file_poktroll_gateway_query_proto_goTypes = nil
+ file_poktroll_gateway_query_proto_depIdxs = nil
+}
diff --git a/api/poktroll/gateway/tx.pulsar.go b/api/poktroll/gateway/tx.pulsar.go
new file mode 100644
index 000000000..0a23aed5c
--- /dev/null
+++ b/api/poktroll/gateway/tx.pulsar.go
@@ -0,0 +1,2940 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package gateway
+
+import (
+ _ "cosmossdk.io/api/amino"
+ v1beta1 "cosmossdk.io/api/cosmos/base/v1beta1"
+ _ "cosmossdk.io/api/cosmos/msg/v1"
+ fmt "fmt"
+ _ "github.com/cosmos/cosmos-proto"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ _ "github.com/cosmos/gogoproto/gogoproto"
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoiface "google.golang.org/protobuf/runtime/protoiface"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ io "io"
+ reflect "reflect"
+ sync "sync"
+)
+
+var (
+ md_MsgUpdateParams protoreflect.MessageDescriptor
+ fd_MsgUpdateParams_authority protoreflect.FieldDescriptor
+ fd_MsgUpdateParams_params protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_gateway_tx_proto_init()
+ md_MsgUpdateParams = File_poktroll_gateway_tx_proto.Messages().ByName("MsgUpdateParams")
+ fd_MsgUpdateParams_authority = md_MsgUpdateParams.Fields().ByName("authority")
+ 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_poktroll_gateway_tx_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_MsgUpdateParams_messageType fastReflection_MsgUpdateParams_messageType
+var _ protoreflect.MessageType = fastReflection_MsgUpdateParams_messageType{}
+
+type fastReflection_MsgUpdateParams_messageType struct{}
+
+func (x fastReflection_MsgUpdateParams_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_MsgUpdateParams)(nil)
+}
+func (x fastReflection_MsgUpdateParams_messageType) New() protoreflect.Message {
+ return new(fastReflection_MsgUpdateParams)
+}
+func (x fastReflection_MsgUpdateParams_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgUpdateParams
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_MsgUpdateParams) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgUpdateParams
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_MsgUpdateParams) Type() protoreflect.MessageType {
+ return _fastReflection_MsgUpdateParams_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_MsgUpdateParams) New() protoreflect.Message {
+ return new(fastReflection_MsgUpdateParams)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_MsgUpdateParams) Interface() protoreflect.ProtoMessage {
+ return (*MsgUpdateParams)(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_MsgUpdateParams) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Authority != "" {
+ value := protoreflect.ValueOfString(x.Authority)
+ if !f(fd_MsgUpdateParams_authority, value) {
+ return
+ }
+ }
+ if x.Params != nil {
+ value := protoreflect.ValueOfMessage(x.Params.ProtoReflect())
+ if !f(fd_MsgUpdateParams_params, 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_MsgUpdateParams) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.gateway.MsgUpdateParams.authority":
+ return x.Authority != ""
+ case "poktroll.gateway.MsgUpdateParams.params":
+ return x.Params != nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.MsgUpdateParams"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.MsgUpdateParams 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_MsgUpdateParams) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.gateway.MsgUpdateParams.authority":
+ x.Authority = ""
+ case "poktroll.gateway.MsgUpdateParams.params":
+ x.Params = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.MsgUpdateParams"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.MsgUpdateParams 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_MsgUpdateParams) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.gateway.MsgUpdateParams.authority":
+ value := x.Authority
+ return protoreflect.ValueOfString(value)
+ case "poktroll.gateway.MsgUpdateParams.params":
+ value := x.Params
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.MsgUpdateParams"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.MsgUpdateParams 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_MsgUpdateParams) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.gateway.MsgUpdateParams.authority":
+ x.Authority = value.Interface().(string)
+ case "poktroll.gateway.MsgUpdateParams.params":
+ x.Params = value.Message().Interface().(*Params)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.MsgUpdateParams"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.MsgUpdateParams 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_MsgUpdateParams) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.gateway.MsgUpdateParams.params":
+ if x.Params == nil {
+ x.Params = new(Params)
+ }
+ return protoreflect.ValueOfMessage(x.Params.ProtoReflect())
+ case "poktroll.gateway.MsgUpdateParams.authority":
+ panic(fmt.Errorf("field authority of message poktroll.gateway.MsgUpdateParams is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.MsgUpdateParams"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.MsgUpdateParams does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// 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 "poktroll.gateway.MsgUpdateParams.authority":
+ return protoreflect.ValueOfString("")
+ case "poktroll.gateway.MsgUpdateParams.params":
+ m := new(Params)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.MsgUpdateParams"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.MsgUpdateParams does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_MsgUpdateParams) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.gateway.MsgUpdateParams", 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_MsgUpdateParams) 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_MsgUpdateParams) 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_MsgUpdateParams) 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_MsgUpdateParams) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*MsgUpdateParams)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Authority)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.Params != nil {
+ l = options.Size(x.Params)
+ 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().(*MsgUpdateParams)
+ 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.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] = 0x12
+ }
+ if len(x.Authority) > 0 {
+ i -= len(x.Authority)
+ copy(dAtA[i:], x.Authority)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority)))
+ i--
+ dAtA[i] = 0xa
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*MsgUpdateParams)
+ 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: MsgUpdateParams: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParams: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Authority = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field 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
+ 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_MsgUpdateParamsResponse protoreflect.MessageDescriptor
+)
+
+func init() {
+ file_poktroll_gateway_tx_proto_init()
+ md_MsgUpdateParamsResponse = File_poktroll_gateway_tx_proto.Messages().ByName("MsgUpdateParamsResponse")
+}
+
+var _ protoreflect.Message = (*fastReflection_MsgUpdateParamsResponse)(nil)
+
+type fastReflection_MsgUpdateParamsResponse MsgUpdateParamsResponse
+
+func (x *MsgUpdateParamsResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_MsgUpdateParamsResponse)(x)
+}
+
+func (x *MsgUpdateParamsResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_gateway_tx_proto_msgTypes[1]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_MsgUpdateParamsResponse_messageType fastReflection_MsgUpdateParamsResponse_messageType
+var _ protoreflect.MessageType = fastReflection_MsgUpdateParamsResponse_messageType{}
+
+type fastReflection_MsgUpdateParamsResponse_messageType struct{}
+
+func (x fastReflection_MsgUpdateParamsResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_MsgUpdateParamsResponse)(nil)
+}
+func (x fastReflection_MsgUpdateParamsResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_MsgUpdateParamsResponse)
+}
+func (x fastReflection_MsgUpdateParamsResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgUpdateParamsResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_MsgUpdateParamsResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgUpdateParamsResponse
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_MsgUpdateParamsResponse) Type() protoreflect.MessageType {
+ return _fastReflection_MsgUpdateParamsResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_MsgUpdateParamsResponse) New() protoreflect.Message {
+ return new(fastReflection_MsgUpdateParamsResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_MsgUpdateParamsResponse) Interface() protoreflect.ProtoMessage {
+ return (*MsgUpdateParamsResponse)(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_MsgUpdateParamsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_MsgUpdateParamsResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.MsgUpdateParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.MsgUpdateParamsResponse 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_MsgUpdateParamsResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.MsgUpdateParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.MsgUpdateParamsResponse 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_MsgUpdateParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.MsgUpdateParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.MsgUpdateParamsResponse 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_MsgUpdateParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.MsgUpdateParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.MsgUpdateParamsResponse 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_MsgUpdateParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.MsgUpdateParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.MsgUpdateParamsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_MsgUpdateParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.MsgUpdateParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.MsgUpdateParamsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_MsgUpdateParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.gateway.MsgUpdateParamsResponse", 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_MsgUpdateParamsResponse) 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_MsgUpdateParamsResponse) 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_MsgUpdateParamsResponse) 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_MsgUpdateParamsResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*MsgUpdateParamsResponse)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*MsgUpdateParamsResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*MsgUpdateParamsResponse)
+ 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: MsgUpdateParamsResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_MsgStakeGateway protoreflect.MessageDescriptor
+ fd_MsgStakeGateway_address protoreflect.FieldDescriptor
+ fd_MsgStakeGateway_stake protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_gateway_tx_proto_init()
+ md_MsgStakeGateway = File_poktroll_gateway_tx_proto.Messages().ByName("MsgStakeGateway")
+ fd_MsgStakeGateway_address = md_MsgStakeGateway.Fields().ByName("address")
+ fd_MsgStakeGateway_stake = md_MsgStakeGateway.Fields().ByName("stake")
+}
+
+var _ protoreflect.Message = (*fastReflection_MsgStakeGateway)(nil)
+
+type fastReflection_MsgStakeGateway MsgStakeGateway
+
+func (x *MsgStakeGateway) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_MsgStakeGateway)(x)
+}
+
+func (x *MsgStakeGateway) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_gateway_tx_proto_msgTypes[2]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_MsgStakeGateway_messageType fastReflection_MsgStakeGateway_messageType
+var _ protoreflect.MessageType = fastReflection_MsgStakeGateway_messageType{}
+
+type fastReflection_MsgStakeGateway_messageType struct{}
+
+func (x fastReflection_MsgStakeGateway_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_MsgStakeGateway)(nil)
+}
+func (x fastReflection_MsgStakeGateway_messageType) New() protoreflect.Message {
+ return new(fastReflection_MsgStakeGateway)
+}
+func (x fastReflection_MsgStakeGateway_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgStakeGateway
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_MsgStakeGateway) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgStakeGateway
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_MsgStakeGateway) Type() protoreflect.MessageType {
+ return _fastReflection_MsgStakeGateway_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_MsgStakeGateway) New() protoreflect.Message {
+ return new(fastReflection_MsgStakeGateway)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_MsgStakeGateway) Interface() protoreflect.ProtoMessage {
+ return (*MsgStakeGateway)(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_MsgStakeGateway) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Address != "" {
+ value := protoreflect.ValueOfString(x.Address)
+ if !f(fd_MsgStakeGateway_address, value) {
+ return
+ }
+ }
+ if x.Stake != nil {
+ value := protoreflect.ValueOfMessage(x.Stake.ProtoReflect())
+ if !f(fd_MsgStakeGateway_stake, 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_MsgStakeGateway) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.gateway.MsgStakeGateway.address":
+ return x.Address != ""
+ case "poktroll.gateway.MsgStakeGateway.stake":
+ return x.Stake != nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.MsgStakeGateway"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.MsgStakeGateway 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_MsgStakeGateway) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.gateway.MsgStakeGateway.address":
+ x.Address = ""
+ case "poktroll.gateway.MsgStakeGateway.stake":
+ x.Stake = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.MsgStakeGateway"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.MsgStakeGateway 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_MsgStakeGateway) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.gateway.MsgStakeGateway.address":
+ value := x.Address
+ return protoreflect.ValueOfString(value)
+ case "poktroll.gateway.MsgStakeGateway.stake":
+ value := x.Stake
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.MsgStakeGateway"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.MsgStakeGateway 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_MsgStakeGateway) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.gateway.MsgStakeGateway.address":
+ x.Address = value.Interface().(string)
+ case "poktroll.gateway.MsgStakeGateway.stake":
+ x.Stake = value.Message().Interface().(*v1beta1.Coin)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.MsgStakeGateway"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.MsgStakeGateway 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_MsgStakeGateway) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.gateway.MsgStakeGateway.stake":
+ if x.Stake == nil {
+ x.Stake = new(v1beta1.Coin)
+ }
+ return protoreflect.ValueOfMessage(x.Stake.ProtoReflect())
+ case "poktroll.gateway.MsgStakeGateway.address":
+ panic(fmt.Errorf("field address of message poktroll.gateway.MsgStakeGateway is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.MsgStakeGateway"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.MsgStakeGateway does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_MsgStakeGateway) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.gateway.MsgStakeGateway.address":
+ return protoreflect.ValueOfString("")
+ case "poktroll.gateway.MsgStakeGateway.stake":
+ m := new(v1beta1.Coin)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.MsgStakeGateway"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.MsgStakeGateway does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_MsgStakeGateway) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.gateway.MsgStakeGateway", 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_MsgStakeGateway) 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_MsgStakeGateway) 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_MsgStakeGateway) 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_MsgStakeGateway) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*MsgStakeGateway)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Address)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.Stake != nil {
+ l = options.Size(x.Stake)
+ 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().(*MsgStakeGateway)
+ 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.Stake != nil {
+ encoded, err := options.Marshal(x.Stake)
+ if err != nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, err
+ }
+ i -= len(encoded)
+ copy(dAtA[i:], encoded)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if len(x.Address) > 0 {
+ i -= len(x.Address)
+ copy(dAtA[i:], x.Address)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address)))
+ i--
+ dAtA[i] = 0xa
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*MsgStakeGateway)
+ 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: MsgStakeGateway: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgStakeGateway: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Address = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Stake", 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.Stake == nil {
+ x.Stake = &v1beta1.Coin{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Stake); 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_MsgStakeGatewayResponse protoreflect.MessageDescriptor
+)
+
+func init() {
+ file_poktroll_gateway_tx_proto_init()
+ md_MsgStakeGatewayResponse = File_poktroll_gateway_tx_proto.Messages().ByName("MsgStakeGatewayResponse")
+}
+
+var _ protoreflect.Message = (*fastReflection_MsgStakeGatewayResponse)(nil)
+
+type fastReflection_MsgStakeGatewayResponse MsgStakeGatewayResponse
+
+func (x *MsgStakeGatewayResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_MsgStakeGatewayResponse)(x)
+}
+
+func (x *MsgStakeGatewayResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_gateway_tx_proto_msgTypes[3]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_MsgStakeGatewayResponse_messageType fastReflection_MsgStakeGatewayResponse_messageType
+var _ protoreflect.MessageType = fastReflection_MsgStakeGatewayResponse_messageType{}
+
+type fastReflection_MsgStakeGatewayResponse_messageType struct{}
+
+func (x fastReflection_MsgStakeGatewayResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_MsgStakeGatewayResponse)(nil)
+}
+func (x fastReflection_MsgStakeGatewayResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_MsgStakeGatewayResponse)
+}
+func (x fastReflection_MsgStakeGatewayResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgStakeGatewayResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_MsgStakeGatewayResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgStakeGatewayResponse
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_MsgStakeGatewayResponse) Type() protoreflect.MessageType {
+ return _fastReflection_MsgStakeGatewayResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_MsgStakeGatewayResponse) New() protoreflect.Message {
+ return new(fastReflection_MsgStakeGatewayResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_MsgStakeGatewayResponse) Interface() protoreflect.ProtoMessage {
+ return (*MsgStakeGatewayResponse)(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_MsgStakeGatewayResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_MsgStakeGatewayResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.MsgStakeGatewayResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.MsgStakeGatewayResponse 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_MsgStakeGatewayResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.MsgStakeGatewayResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.MsgStakeGatewayResponse 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_MsgStakeGatewayResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.MsgStakeGatewayResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.MsgStakeGatewayResponse 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_MsgStakeGatewayResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.MsgStakeGatewayResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.MsgStakeGatewayResponse 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_MsgStakeGatewayResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.MsgStakeGatewayResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.MsgStakeGatewayResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_MsgStakeGatewayResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.MsgStakeGatewayResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.MsgStakeGatewayResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_MsgStakeGatewayResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.gateway.MsgStakeGatewayResponse", 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_MsgStakeGatewayResponse) 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_MsgStakeGatewayResponse) 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_MsgStakeGatewayResponse) 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_MsgStakeGatewayResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*MsgStakeGatewayResponse)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*MsgStakeGatewayResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*MsgStakeGatewayResponse)
+ 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: MsgStakeGatewayResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgStakeGatewayResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_MsgUnstakeGateway protoreflect.MessageDescriptor
+ fd_MsgUnstakeGateway_address protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_gateway_tx_proto_init()
+ md_MsgUnstakeGateway = File_poktroll_gateway_tx_proto.Messages().ByName("MsgUnstakeGateway")
+ fd_MsgUnstakeGateway_address = md_MsgUnstakeGateway.Fields().ByName("address")
+}
+
+var _ protoreflect.Message = (*fastReflection_MsgUnstakeGateway)(nil)
+
+type fastReflection_MsgUnstakeGateway MsgUnstakeGateway
+
+func (x *MsgUnstakeGateway) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_MsgUnstakeGateway)(x)
+}
+
+func (x *MsgUnstakeGateway) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_gateway_tx_proto_msgTypes[4]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_MsgUnstakeGateway_messageType fastReflection_MsgUnstakeGateway_messageType
+var _ protoreflect.MessageType = fastReflection_MsgUnstakeGateway_messageType{}
+
+type fastReflection_MsgUnstakeGateway_messageType struct{}
+
+func (x fastReflection_MsgUnstakeGateway_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_MsgUnstakeGateway)(nil)
+}
+func (x fastReflection_MsgUnstakeGateway_messageType) New() protoreflect.Message {
+ return new(fastReflection_MsgUnstakeGateway)
+}
+func (x fastReflection_MsgUnstakeGateway_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgUnstakeGateway
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_MsgUnstakeGateway) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgUnstakeGateway
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_MsgUnstakeGateway) Type() protoreflect.MessageType {
+ return _fastReflection_MsgUnstakeGateway_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_MsgUnstakeGateway) New() protoreflect.Message {
+ return new(fastReflection_MsgUnstakeGateway)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_MsgUnstakeGateway) Interface() protoreflect.ProtoMessage {
+ return (*MsgUnstakeGateway)(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_MsgUnstakeGateway) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Address != "" {
+ value := protoreflect.ValueOfString(x.Address)
+ if !f(fd_MsgUnstakeGateway_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_MsgUnstakeGateway) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.gateway.MsgUnstakeGateway.address":
+ return x.Address != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.MsgUnstakeGateway"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.MsgUnstakeGateway 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_MsgUnstakeGateway) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.gateway.MsgUnstakeGateway.address":
+ x.Address = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.MsgUnstakeGateway"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.MsgUnstakeGateway 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_MsgUnstakeGateway) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.gateway.MsgUnstakeGateway.address":
+ value := x.Address
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.MsgUnstakeGateway"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.MsgUnstakeGateway 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_MsgUnstakeGateway) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.gateway.MsgUnstakeGateway.address":
+ x.Address = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.MsgUnstakeGateway"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.MsgUnstakeGateway 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_MsgUnstakeGateway) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.gateway.MsgUnstakeGateway.address":
+ panic(fmt.Errorf("field address of message poktroll.gateway.MsgUnstakeGateway is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.MsgUnstakeGateway"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.MsgUnstakeGateway does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_MsgUnstakeGateway) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.gateway.MsgUnstakeGateway.address":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.MsgUnstakeGateway"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.MsgUnstakeGateway does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_MsgUnstakeGateway) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.gateway.MsgUnstakeGateway", 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_MsgUnstakeGateway) 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_MsgUnstakeGateway) 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_MsgUnstakeGateway) 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_MsgUnstakeGateway) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*MsgUnstakeGateway)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Address)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*MsgUnstakeGateway)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Address) > 0 {
+ i -= len(x.Address)
+ copy(dAtA[i:], x.Address)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address)))
+ i--
+ dAtA[i] = 0xa
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*MsgUnstakeGateway)
+ 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: MsgUnstakeGateway: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUnstakeGateway: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Address = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_MsgUnstakeGatewayResponse protoreflect.MessageDescriptor
+)
+
+func init() {
+ file_poktroll_gateway_tx_proto_init()
+ md_MsgUnstakeGatewayResponse = File_poktroll_gateway_tx_proto.Messages().ByName("MsgUnstakeGatewayResponse")
+}
+
+var _ protoreflect.Message = (*fastReflection_MsgUnstakeGatewayResponse)(nil)
+
+type fastReflection_MsgUnstakeGatewayResponse MsgUnstakeGatewayResponse
+
+func (x *MsgUnstakeGatewayResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_MsgUnstakeGatewayResponse)(x)
+}
+
+func (x *MsgUnstakeGatewayResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_gateway_tx_proto_msgTypes[5]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_MsgUnstakeGatewayResponse_messageType fastReflection_MsgUnstakeGatewayResponse_messageType
+var _ protoreflect.MessageType = fastReflection_MsgUnstakeGatewayResponse_messageType{}
+
+type fastReflection_MsgUnstakeGatewayResponse_messageType struct{}
+
+func (x fastReflection_MsgUnstakeGatewayResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_MsgUnstakeGatewayResponse)(nil)
+}
+func (x fastReflection_MsgUnstakeGatewayResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_MsgUnstakeGatewayResponse)
+}
+func (x fastReflection_MsgUnstakeGatewayResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgUnstakeGatewayResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_MsgUnstakeGatewayResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgUnstakeGatewayResponse
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_MsgUnstakeGatewayResponse) Type() protoreflect.MessageType {
+ return _fastReflection_MsgUnstakeGatewayResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_MsgUnstakeGatewayResponse) New() protoreflect.Message {
+ return new(fastReflection_MsgUnstakeGatewayResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_MsgUnstakeGatewayResponse) Interface() protoreflect.ProtoMessage {
+ return (*MsgUnstakeGatewayResponse)(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_MsgUnstakeGatewayResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_MsgUnstakeGatewayResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.MsgUnstakeGatewayResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.MsgUnstakeGatewayResponse 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_MsgUnstakeGatewayResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.MsgUnstakeGatewayResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.MsgUnstakeGatewayResponse 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_MsgUnstakeGatewayResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.MsgUnstakeGatewayResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.MsgUnstakeGatewayResponse 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_MsgUnstakeGatewayResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.MsgUnstakeGatewayResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.MsgUnstakeGatewayResponse 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_MsgUnstakeGatewayResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.MsgUnstakeGatewayResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.MsgUnstakeGatewayResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_MsgUnstakeGatewayResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.gateway.MsgUnstakeGatewayResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.gateway.MsgUnstakeGatewayResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_MsgUnstakeGatewayResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.gateway.MsgUnstakeGatewayResponse", 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_MsgUnstakeGatewayResponse) 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_MsgUnstakeGatewayResponse) 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_MsgUnstakeGatewayResponse) 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_MsgUnstakeGatewayResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*MsgUnstakeGatewayResponse)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*MsgUnstakeGatewayResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*MsgUnstakeGatewayResponse)
+ 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: MsgUnstakeGatewayResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUnstakeGatewayResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.27.0
+// protoc (unknown)
+// source: poktroll/gateway/tx.proto
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+// MsgUpdateParams is the Msg/UpdateParams request type.
+type MsgUpdateParams struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // authority is the address that controls the module (defaults to x/gov unless overwritten).
+ Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
+ // params defines the x/gateway parameters to update.
+ // NOTE: All parameters must be supplied.
+ Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"`
+}
+
+func (x *MsgUpdateParams) Reset() {
+ *x = MsgUpdateParams{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_gateway_tx_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *MsgUpdateParams) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*MsgUpdateParams) ProtoMessage() {}
+
+// Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead.
+func (*MsgUpdateParams) Descriptor() ([]byte, []int) {
+ return file_poktroll_gateway_tx_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *MsgUpdateParams) GetAuthority() string {
+ if x != nil {
+ return x.Authority
+ }
+ return ""
+}
+
+func (x *MsgUpdateParams) GetParams() *Params {
+ if x != nil {
+ return x.Params
+ }
+ return nil
+}
+
+// MsgUpdateParamsResponse defines the response structure for executing a
+// MsgUpdateParams message.
+type MsgUpdateParamsResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+}
+
+func (x *MsgUpdateParamsResponse) Reset() {
+ *x = MsgUpdateParamsResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_gateway_tx_proto_msgTypes[1]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *MsgUpdateParamsResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*MsgUpdateParamsResponse) ProtoMessage() {}
+
+// Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead.
+func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) {
+ return file_poktroll_gateway_tx_proto_rawDescGZIP(), []int{1}
+}
+
+type MsgStakeGateway struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // The Bech32 address of the gateway
+ Stake *v1beta1.Coin `protobuf:"bytes,2,opt,name=stake,proto3" json:"stake,omitempty"` // The total amount of uPOKT the gateway is staking. Must be ≥ to the current amount that the gateway has staked (if any)
+}
+
+func (x *MsgStakeGateway) Reset() {
+ *x = MsgStakeGateway{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_gateway_tx_proto_msgTypes[2]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *MsgStakeGateway) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*MsgStakeGateway) ProtoMessage() {}
+
+// Deprecated: Use MsgStakeGateway.ProtoReflect.Descriptor instead.
+func (*MsgStakeGateway) Descriptor() ([]byte, []int) {
+ return file_poktroll_gateway_tx_proto_rawDescGZIP(), []int{2}
+}
+
+func (x *MsgStakeGateway) GetAddress() string {
+ if x != nil {
+ return x.Address
+ }
+ return ""
+}
+
+func (x *MsgStakeGateway) GetStake() *v1beta1.Coin {
+ if x != nil {
+ return x.Stake
+ }
+ return nil
+}
+
+type MsgStakeGatewayResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+}
+
+func (x *MsgStakeGatewayResponse) Reset() {
+ *x = MsgStakeGatewayResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_gateway_tx_proto_msgTypes[3]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *MsgStakeGatewayResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*MsgStakeGatewayResponse) ProtoMessage() {}
+
+// Deprecated: Use MsgStakeGatewayResponse.ProtoReflect.Descriptor instead.
+func (*MsgStakeGatewayResponse) Descriptor() ([]byte, []int) {
+ return file_poktroll_gateway_tx_proto_rawDescGZIP(), []int{3}
+}
+
+type MsgUnstakeGateway struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // The Bech32 address of the gateway
+}
+
+func (x *MsgUnstakeGateway) Reset() {
+ *x = MsgUnstakeGateway{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_gateway_tx_proto_msgTypes[4]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *MsgUnstakeGateway) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*MsgUnstakeGateway) ProtoMessage() {}
+
+// Deprecated: Use MsgUnstakeGateway.ProtoReflect.Descriptor instead.
+func (*MsgUnstakeGateway) Descriptor() ([]byte, []int) {
+ return file_poktroll_gateway_tx_proto_rawDescGZIP(), []int{4}
+}
+
+func (x *MsgUnstakeGateway) GetAddress() string {
+ if x != nil {
+ return x.Address
+ }
+ return ""
+}
+
+type MsgUnstakeGatewayResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+}
+
+func (x *MsgUnstakeGatewayResponse) Reset() {
+ *x = MsgUnstakeGatewayResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_gateway_tx_proto_msgTypes[5]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *MsgUnstakeGatewayResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*MsgUnstakeGatewayResponse) ProtoMessage() {}
+
+// Deprecated: Use MsgUnstakeGatewayResponse.ProtoReflect.Descriptor instead.
+func (*MsgUnstakeGatewayResponse) Descriptor() ([]byte, []int) {
+ return file_poktroll_gateway_tx_proto_rawDescGZIP(), []int{5}
+}
+
+var File_poktroll_gateway_tx_proto protoreflect.FileDescriptor
+
+var file_poktroll_gateway_tx_proto_rawDesc = []byte{
+ 0x0a, 0x19, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x67, 0x61, 0x74, 0x65, 0x77,
+ 0x61, 0x79, 0x2f, 0x74, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x70, 0x6f, 0x6b,
+ 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x1a, 0x11, 0x61,
+ 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
+ 0x1a, 0x17, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x6d, 0x73, 0x67, 0x2f, 0x76, 0x31, 0x2f,
+ 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 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, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f,
+ 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x63, 0x6f, 0x73, 0x6d,
+ 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f,
+ 0x63, 0x6f, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x70, 0x6f, 0x6b, 0x74,
+ 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2f, 0x70, 0x61, 0x72,
+ 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xbd, 0x01, 0x0a, 0x0f, 0x4d, 0x73,
+ 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x36, 0x0a,
+ 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
+ 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64,
+ 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68,
+ 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x3b, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18,
+ 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c,
+ 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 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, 0x3a, 0x35, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69,
+ 0x74, 0x79, 0x8a, 0xe7, 0xb0, 0x2a, 0x22, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f,
+ 0x78, 0x2f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2f, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64,
+ 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x19, 0x0a, 0x17, 0x4d, 0x73, 0x67,
+ 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70,
+ 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x84, 0x01, 0x0a, 0x0f, 0x4d, 0x73, 0x67, 0x53, 0x74, 0x61, 0x6b,
+ 0x65, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x12, 0x32, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72,
+ 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63,
+ 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72,
+ 0x69, 0x6e, 0x67, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x2f, 0x0a, 0x05,
+ 0x73, 0x74, 0x61, 0x6b, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f,
+ 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61,
+ 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x52, 0x05, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x3a, 0x0c, 0x82,
+ 0xe7, 0xb0, 0x2a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x19, 0x0a, 0x17, 0x4d,
+ 0x73, 0x67, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x52, 0x65,
+ 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x55, 0x0a, 0x11, 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x73,
+ 0x74, 0x61, 0x6b, 0x65, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x12, 0x32, 0x0a, 0x07, 0x61,
+ 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4,
+ 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73,
+ 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x3a,
+ 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x1b, 0x0a,
+ 0x19, 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x47, 0x61, 0x74, 0x65, 0x77,
+ 0x61, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xac, 0x02, 0x0a, 0x03, 0x4d,
+ 0x73, 0x67, 0x12, 0x5c, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61,
+ 0x6d, 0x73, 0x12, 0x21, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x67, 0x61,
+ 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50,
+ 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x29, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c,
+ 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 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, 0x5c, 0x0a, 0x0c, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79,
+ 0x12, 0x21, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x67, 0x61, 0x74, 0x65,
+ 0x77, 0x61, 0x79, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x47, 0x61, 0x74, 0x65,
+ 0x77, 0x61, 0x79, 0x1a, 0x29, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x67,
+ 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x47,
+ 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x62,
+ 0x0a, 0x0e, 0x55, 0x6e, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79,
+ 0x12, 0x23, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x67, 0x61, 0x74, 0x65,
+ 0x77, 0x61, 0x79, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x47, 0x61,
+ 0x74, 0x65, 0x77, 0x61, 0x79, 0x1a, 0x2b, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c,
+ 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x73, 0x74,
+ 0x61, 0x6b, 0x65, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
+ 0x73, 0x65, 0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a, 0x01, 0x42, 0xa3, 0x01, 0x0a, 0x14, 0x63, 0x6f,
+ 0x6d, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77,
+ 0x61, 0x79, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x21, 0x63,
+ 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f,
+ 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79,
+ 0xa2, 0x02, 0x03, 0x50, 0x47, 0x58, 0xaa, 0x02, 0x10, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c,
+ 0x6c, 0x2e, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0xca, 0x02, 0x10, 0x50, 0x6f, 0x6b, 0x74,
+ 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0xe2, 0x02, 0x1c, 0x50,
+ 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x5c,
+ 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x50, 0x6f,
+ 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x3a, 0x3a, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x62,
+ 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_poktroll_gateway_tx_proto_rawDescOnce sync.Once
+ file_poktroll_gateway_tx_proto_rawDescData = file_poktroll_gateway_tx_proto_rawDesc
+)
+
+func file_poktroll_gateway_tx_proto_rawDescGZIP() []byte {
+ file_poktroll_gateway_tx_proto_rawDescOnce.Do(func() {
+ file_poktroll_gateway_tx_proto_rawDescData = protoimpl.X.CompressGZIP(file_poktroll_gateway_tx_proto_rawDescData)
+ })
+ return file_poktroll_gateway_tx_proto_rawDescData
+}
+
+var file_poktroll_gateway_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
+var file_poktroll_gateway_tx_proto_goTypes = []interface{}{
+ (*MsgUpdateParams)(nil), // 0: poktroll.gateway.MsgUpdateParams
+ (*MsgUpdateParamsResponse)(nil), // 1: poktroll.gateway.MsgUpdateParamsResponse
+ (*MsgStakeGateway)(nil), // 2: poktroll.gateway.MsgStakeGateway
+ (*MsgStakeGatewayResponse)(nil), // 3: poktroll.gateway.MsgStakeGatewayResponse
+ (*MsgUnstakeGateway)(nil), // 4: poktroll.gateway.MsgUnstakeGateway
+ (*MsgUnstakeGatewayResponse)(nil), // 5: poktroll.gateway.MsgUnstakeGatewayResponse
+ (*Params)(nil), // 6: poktroll.gateway.Params
+ (*v1beta1.Coin)(nil), // 7: cosmos.base.v1beta1.Coin
+}
+var file_poktroll_gateway_tx_proto_depIdxs = []int32{
+ 6, // 0: poktroll.gateway.MsgUpdateParams.params:type_name -> poktroll.gateway.Params
+ 7, // 1: poktroll.gateway.MsgStakeGateway.stake:type_name -> cosmos.base.v1beta1.Coin
+ 0, // 2: poktroll.gateway.Msg.UpdateParams:input_type -> poktroll.gateway.MsgUpdateParams
+ 2, // 3: poktroll.gateway.Msg.StakeGateway:input_type -> poktroll.gateway.MsgStakeGateway
+ 4, // 4: poktroll.gateway.Msg.UnstakeGateway:input_type -> poktroll.gateway.MsgUnstakeGateway
+ 1, // 5: poktroll.gateway.Msg.UpdateParams:output_type -> poktroll.gateway.MsgUpdateParamsResponse
+ 3, // 6: poktroll.gateway.Msg.StakeGateway:output_type -> poktroll.gateway.MsgStakeGatewayResponse
+ 5, // 7: poktroll.gateway.Msg.UnstakeGateway:output_type -> poktroll.gateway.MsgUnstakeGatewayResponse
+ 5, // [5:8] is the sub-list for method output_type
+ 2, // [2:5] 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_poktroll_gateway_tx_proto_init() }
+func file_poktroll_gateway_tx_proto_init() {
+ if File_poktroll_gateway_tx_proto != nil {
+ return
+ }
+ file_poktroll_gateway_params_proto_init()
+ if !protoimpl.UnsafeEnabled {
+ file_poktroll_gateway_tx_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*MsgUpdateParams); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_gateway_tx_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*MsgUpdateParamsResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_gateway_tx_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*MsgStakeGateway); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_gateway_tx_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*MsgStakeGatewayResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_gateway_tx_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*MsgUnstakeGateway); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_gateway_tx_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*MsgUnstakeGatewayResponse); 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_poktroll_gateway_tx_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 6,
+ NumExtensions: 0,
+ NumServices: 1,
+ },
+ GoTypes: file_poktroll_gateway_tx_proto_goTypes,
+ DependencyIndexes: file_poktroll_gateway_tx_proto_depIdxs,
+ MessageInfos: file_poktroll_gateway_tx_proto_msgTypes,
+ }.Build()
+ File_poktroll_gateway_tx_proto = out.File
+ file_poktroll_gateway_tx_proto_rawDesc = nil
+ file_poktroll_gateway_tx_proto_goTypes = nil
+ file_poktroll_gateway_tx_proto_depIdxs = nil
+}
diff --git a/api/poktroll/proof/claim.pulsar.go b/api/poktroll/proof/claim.pulsar.go
new file mode 100644
index 000000000..859f2619f
--- /dev/null
+++ b/api/poktroll/proof/claim.pulsar.go
@@ -0,0 +1,745 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package proof
+
+import (
+ fmt "fmt"
+ _ "github.com/cosmos/cosmos-proto"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ session "github.com/pokt-network/poktroll/api/poktroll/session"
+ 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_Claim protoreflect.MessageDescriptor
+ fd_Claim_supplier_address protoreflect.FieldDescriptor
+ fd_Claim_session_header protoreflect.FieldDescriptor
+ fd_Claim_root_hash protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_proof_claim_proto_init()
+ md_Claim = File_poktroll_proof_claim_proto.Messages().ByName("Claim")
+ fd_Claim_supplier_address = md_Claim.Fields().ByName("supplier_address")
+ fd_Claim_session_header = md_Claim.Fields().ByName("session_header")
+ fd_Claim_root_hash = md_Claim.Fields().ByName("root_hash")
+}
+
+var _ protoreflect.Message = (*fastReflection_Claim)(nil)
+
+type fastReflection_Claim Claim
+
+func (x *Claim) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_Claim)(x)
+}
+
+func (x *Claim) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_proof_claim_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_Claim_messageType fastReflection_Claim_messageType
+var _ protoreflect.MessageType = fastReflection_Claim_messageType{}
+
+type fastReflection_Claim_messageType struct{}
+
+func (x fastReflection_Claim_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_Claim)(nil)
+}
+func (x fastReflection_Claim_messageType) New() protoreflect.Message {
+ return new(fastReflection_Claim)
+}
+func (x fastReflection_Claim_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_Claim
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_Claim) Descriptor() protoreflect.MessageDescriptor {
+ return md_Claim
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_Claim) Type() protoreflect.MessageType {
+ return _fastReflection_Claim_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_Claim) New() protoreflect.Message {
+ return new(fastReflection_Claim)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_Claim) Interface() protoreflect.ProtoMessage {
+ return (*Claim)(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_Claim) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.SupplierAddress != "" {
+ value := protoreflect.ValueOfString(x.SupplierAddress)
+ if !f(fd_Claim_supplier_address, value) {
+ return
+ }
+ }
+ if x.SessionHeader != nil {
+ value := protoreflect.ValueOfMessage(x.SessionHeader.ProtoReflect())
+ if !f(fd_Claim_session_header, value) {
+ return
+ }
+ }
+ if len(x.RootHash) != 0 {
+ value := protoreflect.ValueOfBytes(x.RootHash)
+ if !f(fd_Claim_root_hash, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_Claim) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.proof.Claim.supplier_address":
+ return x.SupplierAddress != ""
+ case "poktroll.proof.Claim.session_header":
+ return x.SessionHeader != nil
+ case "poktroll.proof.Claim.root_hash":
+ return len(x.RootHash) != 0
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.Claim"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.Claim 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_Claim) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.proof.Claim.supplier_address":
+ x.SupplierAddress = ""
+ case "poktroll.proof.Claim.session_header":
+ x.SessionHeader = nil
+ case "poktroll.proof.Claim.root_hash":
+ x.RootHash = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.Claim"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.Claim 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_Claim) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.proof.Claim.supplier_address":
+ value := x.SupplierAddress
+ return protoreflect.ValueOfString(value)
+ case "poktroll.proof.Claim.session_header":
+ value := x.SessionHeader
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ case "poktroll.proof.Claim.root_hash":
+ value := x.RootHash
+ return protoreflect.ValueOfBytes(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.Claim"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.Claim 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_Claim) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.proof.Claim.supplier_address":
+ x.SupplierAddress = value.Interface().(string)
+ case "poktroll.proof.Claim.session_header":
+ x.SessionHeader = value.Message().Interface().(*session.SessionHeader)
+ case "poktroll.proof.Claim.root_hash":
+ x.RootHash = value.Bytes()
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.Claim"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.Claim 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_Claim) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.proof.Claim.session_header":
+ if x.SessionHeader == nil {
+ x.SessionHeader = new(session.SessionHeader)
+ }
+ return protoreflect.ValueOfMessage(x.SessionHeader.ProtoReflect())
+ case "poktroll.proof.Claim.supplier_address":
+ panic(fmt.Errorf("field supplier_address of message poktroll.proof.Claim is not mutable"))
+ case "poktroll.proof.Claim.root_hash":
+ panic(fmt.Errorf("field root_hash of message poktroll.proof.Claim is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.Claim"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.Claim does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_Claim) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.proof.Claim.supplier_address":
+ return protoreflect.ValueOfString("")
+ case "poktroll.proof.Claim.session_header":
+ m := new(session.SessionHeader)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ case "poktroll.proof.Claim.root_hash":
+ return protoreflect.ValueOfBytes(nil)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.Claim"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.Claim does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_Claim) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.proof.Claim", 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_Claim) 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_Claim) 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_Claim) 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_Claim) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*Claim)
+ 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.SupplierAddress)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.SessionHeader != nil {
+ l = options.Size(x.SessionHeader)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.RootHash)
+ 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().(*Claim)
+ 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.RootHash) > 0 {
+ i -= len(x.RootHash)
+ copy(dAtA[i:], x.RootHash)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.RootHash)))
+ i--
+ dAtA[i] = 0x1a
+ }
+ if x.SessionHeader != nil {
+ encoded, err := options.Marshal(x.SessionHeader)
+ 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.SupplierAddress) > 0 {
+ i -= len(x.SupplierAddress)
+ copy(dAtA[i:], x.SupplierAddress)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.SupplierAddress)))
+ 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().(*Claim)
+ 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: Claim: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Claim: 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 SupplierAddress", 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.SupplierAddress = 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 SessionHeader", 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.SessionHeader == nil {
+ x.SessionHeader = &session.SessionHeader{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.SessionHeader); 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 RootHash", 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.RootHash = append(x.RootHash[:0], dAtA[iNdEx:postIndex]...)
+ if x.RootHash == nil {
+ x.RootHash = []byte{}
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.27.0
+// protoc (unknown)
+// source: poktroll/proof/claim.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)
+)
+
+// Claim is the serialized object stored on-chain for claims pending to be proven
+type Claim struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ SupplierAddress string `protobuf:"bytes,1,opt,name=supplier_address,json=supplierAddress,proto3" json:"supplier_address,omitempty"` // the address of the supplier that submitted this claim
+ // The session header of the session that this claim is for.
+ SessionHeader *session.SessionHeader `protobuf:"bytes,2,opt,name=session_header,json=sessionHeader,proto3" json:"session_header,omitempty"`
+ // Root hash returned from smt.SMST#Root().
+ RootHash []byte `protobuf:"bytes,3,opt,name=root_hash,json=rootHash,proto3" json:"root_hash,omitempty"`
+}
+
+func (x *Claim) Reset() {
+ *x = Claim{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_proof_claim_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *Claim) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*Claim) ProtoMessage() {}
+
+// Deprecated: Use Claim.ProtoReflect.Descriptor instead.
+func (*Claim) Descriptor() ([]byte, []int) {
+ return file_poktroll_proof_claim_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *Claim) GetSupplierAddress() string {
+ if x != nil {
+ return x.SupplierAddress
+ }
+ return ""
+}
+
+func (x *Claim) GetSessionHeader() *session.SessionHeader {
+ if x != nil {
+ return x.SessionHeader
+ }
+ return nil
+}
+
+func (x *Claim) GetRootHash() []byte {
+ if x != nil {
+ return x.RootHash
+ }
+ return nil
+}
+
+var File_poktroll_proof_claim_proto protoreflect.FileDescriptor
+
+var file_poktroll_proof_claim_proto_rawDesc = []byte{
+ 0x0a, 0x1a, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x6f, 0x66,
+ 0x2f, 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x70, 0x6f,
+ 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x6f, 0x66, 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, 0x1e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c,
+ 0x6c, 0x2f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f,
+ 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb1, 0x01, 0x0a, 0x05, 0x43, 0x6c, 0x61, 0x69,
+ 0x6d, 0x12, 0x43, 0x0a, 0x10, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x5f, 0x61, 0x64,
+ 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d,
+ 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53,
+ 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x0f, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x41,
+ 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x46, 0x0a, 0x0e, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f,
+ 0x6e, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f,
+ 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f,
+ 0x6e, 0x2e, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52,
+ 0x0d, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x1b,
+ 0x0a, 0x09, 0x72, 0x6f, 0x6f, 0x74, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28,
+ 0x0c, 0x52, 0x08, 0x72, 0x6f, 0x6f, 0x74, 0x48, 0x61, 0x73, 0x68, 0x42, 0x9a, 0x01, 0x0a, 0x12,
+ 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x70, 0x72, 0x6f,
+ 0x6f, 0x66, 0x42, 0x0a, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01,
+ 0x5a, 0x1f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61,
+ 0x70, 0x69, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x6f,
+ 0x66, 0xa2, 0x02, 0x03, 0x50, 0x50, 0x58, 0xaa, 0x02, 0x0e, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f,
+ 0x6c, 0x6c, 0x2e, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0xca, 0x02, 0x0e, 0x50, 0x6f, 0x6b, 0x74, 0x72,
+ 0x6f, 0x6c, 0x6c, 0x5c, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0xe2, 0x02, 0x1a, 0x50, 0x6f, 0x6b, 0x74,
+ 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65,
+ 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c,
+ 0x6c, 0x3a, 0x3a, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_poktroll_proof_claim_proto_rawDescOnce sync.Once
+ file_poktroll_proof_claim_proto_rawDescData = file_poktroll_proof_claim_proto_rawDesc
+)
+
+func file_poktroll_proof_claim_proto_rawDescGZIP() []byte {
+ file_poktroll_proof_claim_proto_rawDescOnce.Do(func() {
+ file_poktroll_proof_claim_proto_rawDescData = protoimpl.X.CompressGZIP(file_poktroll_proof_claim_proto_rawDescData)
+ })
+ return file_poktroll_proof_claim_proto_rawDescData
+}
+
+var file_poktroll_proof_claim_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
+var file_poktroll_proof_claim_proto_goTypes = []interface{}{
+ (*Claim)(nil), // 0: poktroll.proof.Claim
+ (*session.SessionHeader)(nil), // 1: poktroll.session.SessionHeader
+}
+var file_poktroll_proof_claim_proto_depIdxs = []int32{
+ 1, // 0: poktroll.proof.Claim.session_header:type_name -> poktroll.session.SessionHeader
+ 1, // [1:1] is the sub-list for method output_type
+ 1, // [1:1] is the sub-list for method input_type
+ 1, // [1:1] is the sub-list for extension type_name
+ 1, // [1:1] is the sub-list for extension extendee
+ 0, // [0:1] is the sub-list for field type_name
+}
+
+func init() { file_poktroll_proof_claim_proto_init() }
+func file_poktroll_proof_claim_proto_init() {
+ if File_poktroll_proof_claim_proto != nil {
+ return
+ }
+ if !protoimpl.UnsafeEnabled {
+ file_poktroll_proof_claim_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*Claim); 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_poktroll_proof_claim_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 1,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_poktroll_proof_claim_proto_goTypes,
+ DependencyIndexes: file_poktroll_proof_claim_proto_depIdxs,
+ MessageInfos: file_poktroll_proof_claim_proto_msgTypes,
+ }.Build()
+ File_poktroll_proof_claim_proto = out.File
+ file_poktroll_proof_claim_proto_rawDesc = nil
+ file_poktroll_proof_claim_proto_goTypes = nil
+ file_poktroll_proof_claim_proto_depIdxs = nil
+}
diff --git a/api/poktroll/proof/genesis.pulsar.go b/api/poktroll/proof/genesis.pulsar.go
new file mode 100644
index 000000000..fceb8f8a3
--- /dev/null
+++ b/api/poktroll/proof/genesis.pulsar.go
@@ -0,0 +1,903 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package proof
+
+import (
+ _ "cosmossdk.io/api/amino"
+ 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 _ protoreflect.List = (*_GenesisState_2_list)(nil)
+
+type _GenesisState_2_list struct {
+ list *[]*Claim
+}
+
+func (x *_GenesisState_2_list) Len() int {
+ if x.list == nil {
+ return 0
+ }
+ return len(*x.list)
+}
+
+func (x *_GenesisState_2_list) Get(i int) protoreflect.Value {
+ return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
+}
+
+func (x *_GenesisState_2_list) Set(i int, value protoreflect.Value) {
+ valueUnwrapped := value.Message()
+ concreteValue := valueUnwrapped.Interface().(*Claim)
+ (*x.list)[i] = concreteValue
+}
+
+func (x *_GenesisState_2_list) Append(value protoreflect.Value) {
+ valueUnwrapped := value.Message()
+ concreteValue := valueUnwrapped.Interface().(*Claim)
+ *x.list = append(*x.list, concreteValue)
+}
+
+func (x *_GenesisState_2_list) AppendMutable() protoreflect.Value {
+ v := new(Claim)
+ *x.list = append(*x.list, v)
+ return protoreflect.ValueOfMessage(v.ProtoReflect())
+}
+
+func (x *_GenesisState_2_list) Truncate(n int) {
+ for i := n; i < len(*x.list); i++ {
+ (*x.list)[i] = nil
+ }
+ *x.list = (*x.list)[:n]
+}
+
+func (x *_GenesisState_2_list) NewElement() protoreflect.Value {
+ v := new(Claim)
+ return protoreflect.ValueOfMessage(v.ProtoReflect())
+}
+
+func (x *_GenesisState_2_list) IsValid() bool {
+ return x.list != nil
+}
+
+var _ protoreflect.List = (*_GenesisState_3_list)(nil)
+
+type _GenesisState_3_list struct {
+ list *[]*Proof
+}
+
+func (x *_GenesisState_3_list) Len() int {
+ if x.list == nil {
+ return 0
+ }
+ return len(*x.list)
+}
+
+func (x *_GenesisState_3_list) Get(i int) protoreflect.Value {
+ return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
+}
+
+func (x *_GenesisState_3_list) Set(i int, value protoreflect.Value) {
+ valueUnwrapped := value.Message()
+ concreteValue := valueUnwrapped.Interface().(*Proof)
+ (*x.list)[i] = concreteValue
+}
+
+func (x *_GenesisState_3_list) Append(value protoreflect.Value) {
+ valueUnwrapped := value.Message()
+ concreteValue := valueUnwrapped.Interface().(*Proof)
+ *x.list = append(*x.list, concreteValue)
+}
+
+func (x *_GenesisState_3_list) AppendMutable() protoreflect.Value {
+ v := new(Proof)
+ *x.list = append(*x.list, v)
+ return protoreflect.ValueOfMessage(v.ProtoReflect())
+}
+
+func (x *_GenesisState_3_list) Truncate(n int) {
+ for i := n; i < len(*x.list); i++ {
+ (*x.list)[i] = nil
+ }
+ *x.list = (*x.list)[:n]
+}
+
+func (x *_GenesisState_3_list) NewElement() protoreflect.Value {
+ v := new(Proof)
+ return protoreflect.ValueOfMessage(v.ProtoReflect())
+}
+
+func (x *_GenesisState_3_list) IsValid() bool {
+ return x.list != nil
+}
+
+var (
+ md_GenesisState protoreflect.MessageDescriptor
+ fd_GenesisState_params protoreflect.FieldDescriptor
+ fd_GenesisState_claim_list protoreflect.FieldDescriptor
+ fd_GenesisState_proof_list protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_proof_genesis_proto_init()
+ md_GenesisState = File_poktroll_proof_genesis_proto.Messages().ByName("GenesisState")
+ fd_GenesisState_params = md_GenesisState.Fields().ByName("params")
+ fd_GenesisState_claim_list = md_GenesisState.Fields().ByName("claim_list")
+ fd_GenesisState_proof_list = md_GenesisState.Fields().ByName("proof_list")
+}
+
+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_poktroll_proof_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 len(x.ClaimList) != 0 {
+ value := protoreflect.ValueOfList(&_GenesisState_2_list{list: &x.ClaimList})
+ if !f(fd_GenesisState_claim_list, value) {
+ return
+ }
+ }
+ if len(x.ProofList) != 0 {
+ value := protoreflect.ValueOfList(&_GenesisState_3_list{list: &x.ProofList})
+ if !f(fd_GenesisState_proof_list, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.proof.GenesisState.params":
+ return x.Params != nil
+ case "poktroll.proof.GenesisState.claim_list":
+ return len(x.ClaimList) != 0
+ case "poktroll.proof.GenesisState.proof_list":
+ return len(x.ProofList) != 0
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.GenesisState"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.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 "poktroll.proof.GenesisState.params":
+ x.Params = nil
+ case "poktroll.proof.GenesisState.claim_list":
+ x.ClaimList = nil
+ case "poktroll.proof.GenesisState.proof_list":
+ x.ProofList = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.GenesisState"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.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 "poktroll.proof.GenesisState.params":
+ value := x.Params
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ case "poktroll.proof.GenesisState.claim_list":
+ if len(x.ClaimList) == 0 {
+ return protoreflect.ValueOfList(&_GenesisState_2_list{})
+ }
+ listValue := &_GenesisState_2_list{list: &x.ClaimList}
+ return protoreflect.ValueOfList(listValue)
+ case "poktroll.proof.GenesisState.proof_list":
+ if len(x.ProofList) == 0 {
+ return protoreflect.ValueOfList(&_GenesisState_3_list{})
+ }
+ listValue := &_GenesisState_3_list{list: &x.ProofList}
+ return protoreflect.ValueOfList(listValue)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.GenesisState"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.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 "poktroll.proof.GenesisState.params":
+ x.Params = value.Message().Interface().(*Params)
+ case "poktroll.proof.GenesisState.claim_list":
+ lv := value.List()
+ clv := lv.(*_GenesisState_2_list)
+ x.ClaimList = *clv.list
+ case "poktroll.proof.GenesisState.proof_list":
+ lv := value.List()
+ clv := lv.(*_GenesisState_3_list)
+ x.ProofList = *clv.list
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.GenesisState"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.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 "poktroll.proof.GenesisState.params":
+ if x.Params == nil {
+ x.Params = new(Params)
+ }
+ return protoreflect.ValueOfMessage(x.Params.ProtoReflect())
+ case "poktroll.proof.GenesisState.claim_list":
+ if x.ClaimList == nil {
+ x.ClaimList = []*Claim{}
+ }
+ value := &_GenesisState_2_list{list: &x.ClaimList}
+ return protoreflect.ValueOfList(value)
+ case "poktroll.proof.GenesisState.proof_list":
+ if x.ProofList == nil {
+ x.ProofList = []*Proof{}
+ }
+ value := &_GenesisState_3_list{list: &x.ProofList}
+ return protoreflect.ValueOfList(value)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.GenesisState"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.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 "poktroll.proof.GenesisState.params":
+ m := new(Params)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ case "poktroll.proof.GenesisState.claim_list":
+ list := []*Claim{}
+ return protoreflect.ValueOfList(&_GenesisState_2_list{list: &list})
+ case "poktroll.proof.GenesisState.proof_list":
+ list := []*Proof{}
+ return protoreflect.ValueOfList(&_GenesisState_3_list{list: &list})
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.GenesisState"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.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 poktroll.proof.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 len(x.ClaimList) > 0 {
+ for _, e := range x.ClaimList {
+ l = options.Size(e)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ }
+ if len(x.ProofList) > 0 {
+ for _, e := range x.ProofList {
+ l = options.Size(e)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*GenesisState)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.ProofList) > 0 {
+ for iNdEx := len(x.ProofList) - 1; iNdEx >= 0; iNdEx-- {
+ encoded, err := options.Marshal(x.ProofList[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.ClaimList) > 0 {
+ for iNdEx := len(x.ClaimList) - 1; iNdEx >= 0; iNdEx-- {
+ encoded, err := options.Marshal(x.ClaimList[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.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 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ClaimList", 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.ClaimList = append(x.ClaimList, &Claim{})
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ClaimList[len(x.ClaimList)-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 ProofList", 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.ProofList = append(x.ProofList, &Proof{})
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ProofList[len(x.ProofList)-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: poktroll/proof/genesis.proto
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+// GenesisState defines the proof module's genesis state.
+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"`
+ ClaimList []*Claim `protobuf:"bytes,2,rep,name=claim_list,json=claimList,proto3" json:"claim_list,omitempty"`
+ ProofList []*Proof `protobuf:"bytes,3,rep,name=proof_list,json=proofList,proto3" json:"proof_list,omitempty"`
+}
+
+func (x *GenesisState) Reset() {
+ *x = GenesisState{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_proof_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_poktroll_proof_genesis_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *GenesisState) GetParams() *Params {
+ if x != nil {
+ return x.Params
+ }
+ return nil
+}
+
+func (x *GenesisState) GetClaimList() []*Claim {
+ if x != nil {
+ return x.ClaimList
+ }
+ return nil
+}
+
+func (x *GenesisState) GetProofList() []*Proof {
+ if x != nil {
+ return x.ProofList
+ }
+ return nil
+}
+
+var File_poktroll_proof_genesis_proto protoreflect.FileDescriptor
+
+var file_poktroll_proof_genesis_proto_rawDesc = []byte{
+ 0x0a, 0x1c, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x6f, 0x66,
+ 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e,
+ 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x6f, 0x66, 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, 0x1b, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c,
+ 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70,
+ 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x70,
+ 0x72, 0x6f, 0x6f, 0x66, 0x2f, 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
+ 0x1a, 0x1a, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x6f, 0x66,
+ 0x2f, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc1, 0x01, 0x0a,
+ 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x39, 0x0a,
+ 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e,
+ 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x6f, 0x66, 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, 0x12, 0x3a, 0x0a, 0x0a, 0x63, 0x6c, 0x61, 0x69,
+ 0x6d, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70,
+ 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x2e, 0x43, 0x6c,
+ 0x61, 0x69, 0x6d, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x09, 0x63, 0x6c, 0x61, 0x69, 0x6d,
+ 0x4c, 0x69, 0x73, 0x74, 0x12, 0x3a, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x5f, 0x6c, 0x69,
+ 0x73, 0x74, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72,
+ 0x6f, 0x6c, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x2e, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x42,
+ 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x4c, 0x69, 0x73, 0x74,
+ 0x42, 0x9c, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c,
+ 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73,
+ 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x1f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73,
+ 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f,
+ 0x6c, 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0xa2, 0x02, 0x03, 0x50, 0x50, 0x58, 0xaa, 0x02,
+ 0x0e, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0xca,
+ 0x02, 0x0e, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x50, 0x72, 0x6f, 0x6f, 0x66,
+ 0xe2, 0x02, 0x1a, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x50, 0x72, 0x6f, 0x6f,
+ 0x66, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f,
+ 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x3a, 0x3a, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x62,
+ 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_poktroll_proof_genesis_proto_rawDescOnce sync.Once
+ file_poktroll_proof_genesis_proto_rawDescData = file_poktroll_proof_genesis_proto_rawDesc
+)
+
+func file_poktroll_proof_genesis_proto_rawDescGZIP() []byte {
+ file_poktroll_proof_genesis_proto_rawDescOnce.Do(func() {
+ file_poktroll_proof_genesis_proto_rawDescData = protoimpl.X.CompressGZIP(file_poktroll_proof_genesis_proto_rawDescData)
+ })
+ return file_poktroll_proof_genesis_proto_rawDescData
+}
+
+var file_poktroll_proof_genesis_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
+var file_poktroll_proof_genesis_proto_goTypes = []interface{}{
+ (*GenesisState)(nil), // 0: poktroll.proof.GenesisState
+ (*Params)(nil), // 1: poktroll.proof.Params
+ (*Claim)(nil), // 2: poktroll.proof.Claim
+ (*Proof)(nil), // 3: poktroll.proof.Proof
+}
+var file_poktroll_proof_genesis_proto_depIdxs = []int32{
+ 1, // 0: poktroll.proof.GenesisState.params:type_name -> poktroll.proof.Params
+ 2, // 1: poktroll.proof.GenesisState.claim_list:type_name -> poktroll.proof.Claim
+ 3, // 2: poktroll.proof.GenesisState.proof_list:type_name -> poktroll.proof.Proof
+ 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_poktroll_proof_genesis_proto_init() }
+func file_poktroll_proof_genesis_proto_init() {
+ if File_poktroll_proof_genesis_proto != nil {
+ return
+ }
+ file_poktroll_proof_params_proto_init()
+ file_poktroll_proof_claim_proto_init()
+ file_poktroll_proof_proof_proto_init()
+ if !protoimpl.UnsafeEnabled {
+ file_poktroll_proof_genesis_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GenesisState); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_poktroll_proof_genesis_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 1,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_poktroll_proof_genesis_proto_goTypes,
+ DependencyIndexes: file_poktroll_proof_genesis_proto_depIdxs,
+ MessageInfos: file_poktroll_proof_genesis_proto_msgTypes,
+ }.Build()
+ File_poktroll_proof_genesis_proto = out.File
+ file_poktroll_proof_genesis_proto_rawDesc = nil
+ file_poktroll_proof_genesis_proto_goTypes = nil
+ file_poktroll_proof_genesis_proto_depIdxs = nil
+}
diff --git a/api/poktroll/proof/module/module.pulsar.go b/api/poktroll/proof/module/module.pulsar.go
new file mode 100644
index 000000000..609885d8e
--- /dev/null
+++ b/api/poktroll/proof/module/module.pulsar.go
@@ -0,0 +1,577 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package module
+
+import (
+ _ "cosmossdk.io/api/cosmos/app/v1alpha1"
+ fmt "fmt"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoiface "google.golang.org/protobuf/runtime/protoiface"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ io "io"
+ reflect "reflect"
+ sync "sync"
+)
+
+var (
+ md_Module protoreflect.MessageDescriptor
+ fd_Module_authority protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_proof_module_module_proto_init()
+ md_Module = File_poktroll_proof_module_module_proto.Messages().ByName("Module")
+ fd_Module_authority = md_Module.Fields().ByName("authority")
+}
+
+var _ protoreflect.Message = (*fastReflection_Module)(nil)
+
+type fastReflection_Module Module
+
+func (x *Module) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_Module)(x)
+}
+
+func (x *Module) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_proof_module_module_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_Module_messageType fastReflection_Module_messageType
+var _ protoreflect.MessageType = fastReflection_Module_messageType{}
+
+type fastReflection_Module_messageType struct{}
+
+func (x fastReflection_Module_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_Module)(nil)
+}
+func (x fastReflection_Module_messageType) New() protoreflect.Message {
+ return new(fastReflection_Module)
+}
+func (x fastReflection_Module_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_Module
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_Module) Descriptor() protoreflect.MessageDescriptor {
+ return md_Module
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_Module) Type() protoreflect.MessageType {
+ return _fastReflection_Module_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_Module) New() protoreflect.Message {
+ return new(fastReflection_Module)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_Module) Interface() protoreflect.ProtoMessage {
+ return (*Module)(x)
+}
+
+// Range iterates over every populated field in an undefined order,
+// calling f for each field descriptor and value encountered.
+// Range returns immediately if f returns false.
+// While iterating, mutating operations may only be performed
+// on the current field descriptor.
+func (x *fastReflection_Module) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Authority != "" {
+ value := protoreflect.ValueOfString(x.Authority)
+ if !f(fd_Module_authority, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_Module) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.proof.module.Module.authority":
+ return x.Authority != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.module.Module"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.module.Module does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Module) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.proof.module.Module.authority":
+ x.Authority = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.module.Module"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.module.Module does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_Module) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.proof.module.Module.authority":
+ value := x.Authority
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.module.Module"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.module.Module does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Module) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.proof.module.Module.authority":
+ x.Authority = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.module.Module"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.module.Module does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Module) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.proof.module.Module.authority":
+ panic(fmt.Errorf("field authority of message poktroll.proof.module.Module is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.module.Module"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.module.Module does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_Module) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.proof.module.Module.authority":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.module.Module"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.module.Module does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_Module) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.proof.module.Module", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_Module) GetUnknown() protoreflect.RawFields {
+ return x.unknownFields
+}
+
+// SetUnknown stores an entire list of unknown fields.
+// The raw fields must be syntactically valid according to the wire format.
+// An implementation may panic if this is not the case.
+// Once stored, the caller must not mutate the content of the RawFields.
+// An empty RawFields may be passed to clear the fields.
+//
+// SetUnknown is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Module) SetUnknown(fields protoreflect.RawFields) {
+ x.unknownFields = fields
+}
+
+// IsValid reports whether the message is valid.
+//
+// An invalid message is an empty, read-only value.
+//
+// An invalid message often corresponds to a nil pointer of the concrete
+// message type, but the details are implementation dependent.
+// Validity is not part of the protobuf data model, and may not
+// be preserved in marshaling or other operations.
+func (x *fastReflection_Module) IsValid() bool {
+ return x != nil
+}
+
+// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
+// This method may return nil.
+//
+// The returned methods type is identical to
+// "google.golang.org/protobuf/runtime/protoiface".Methods.
+// Consult the protoiface package documentation for details.
+func (x *fastReflection_Module) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*Module)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Authority)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*Module)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Authority) > 0 {
+ i -= len(x.Authority)
+ copy(dAtA[i:], x.Authority)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority)))
+ i--
+ dAtA[i] = 0xa
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*Module)
+ if x == nil {
+ return protoiface.UnmarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Flags: input.Flags,
+ }, nil
+ }
+ options := runtime.UnmarshalInputToOptions(input)
+ _ = options
+ dAtA := input.Buf
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Module: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Module: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Authority = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.27.0
+// protoc (unknown)
+// source: poktroll/proof/module/module.proto
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+// Module is the config object for the module.
+type Module struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // authority defines the custom module authority. If not set, defaults to the governance module.
+ Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
+}
+
+func (x *Module) Reset() {
+ *x = Module{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_proof_module_module_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *Module) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*Module) ProtoMessage() {}
+
+// Deprecated: Use Module.ProtoReflect.Descriptor instead.
+func (*Module) Descriptor() ([]byte, []int) {
+ return file_poktroll_proof_module_module_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *Module) GetAuthority() string {
+ if x != nil {
+ return x.Authority
+ }
+ return ""
+}
+
+var File_poktroll_proof_module_module_proto protoreflect.FileDescriptor
+
+var file_poktroll_proof_module_module_proto_rawDesc = []byte{
+ 0x0a, 0x22, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x6f, 0x66,
+ 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x70,
+ 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x70,
+ 0x72, 0x6f, 0x6f, 0x66, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x1a, 0x20, 0x63, 0x6f, 0x73,
+ 0x6d, 0x6f, 0x73, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31,
+ 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x58, 0x0a,
+ 0x06, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f,
+ 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68,
+ 0x6f, 0x72, 0x69, 0x74, 0x79, 0x3a, 0x30, 0xba, 0xc0, 0x96, 0xda, 0x01, 0x2a, 0x0a, 0x28, 0x67,
+ 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x2d, 0x6e,
+ 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f,
+ 0x78, 0x2f, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x42, 0xc6, 0x01, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e,
+ 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x2e, 0x6d,
+ 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x42, 0x0b, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x72, 0x6f,
+ 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x26, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e,
+ 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f,
+ 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0xa2, 0x02, 0x03, 0x50,
+ 0x50, 0x4d, 0xaa, 0x02, 0x15, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x50, 0x72,
+ 0x6f, 0x6f, 0x66, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0xca, 0x02, 0x15, 0x50, 0x6f, 0x6b,
+ 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x5c, 0x4d, 0x6f, 0x64, 0x75,
+ 0x6c, 0x65, 0xe2, 0x02, 0x21, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x50, 0x72,
+ 0x6f, 0x6f, 0x66, 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65,
+ 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x17, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c,
+ 0x6c, 0x3a, 0x3a, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x3a, 0x3a, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65,
+ 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_poktroll_proof_module_module_proto_rawDescOnce sync.Once
+ file_poktroll_proof_module_module_proto_rawDescData = file_poktroll_proof_module_module_proto_rawDesc
+)
+
+func file_poktroll_proof_module_module_proto_rawDescGZIP() []byte {
+ file_poktroll_proof_module_module_proto_rawDescOnce.Do(func() {
+ file_poktroll_proof_module_module_proto_rawDescData = protoimpl.X.CompressGZIP(file_poktroll_proof_module_module_proto_rawDescData)
+ })
+ return file_poktroll_proof_module_module_proto_rawDescData
+}
+
+var file_poktroll_proof_module_module_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
+var file_poktroll_proof_module_module_proto_goTypes = []interface{}{
+ (*Module)(nil), // 0: poktroll.proof.module.Module
+}
+var file_poktroll_proof_module_module_proto_depIdxs = []int32{
+ 0, // [0:0] is the sub-list for method output_type
+ 0, // [0:0] is the sub-list for method input_type
+ 0, // [0:0] is the sub-list for extension type_name
+ 0, // [0:0] is the sub-list for extension extendee
+ 0, // [0:0] is the sub-list for field type_name
+}
+
+func init() { file_poktroll_proof_module_module_proto_init() }
+func file_poktroll_proof_module_module_proto_init() {
+ if File_poktroll_proof_module_module_proto != nil {
+ return
+ }
+ if !protoimpl.UnsafeEnabled {
+ file_poktroll_proof_module_module_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*Module); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_poktroll_proof_module_module_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 1,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_poktroll_proof_module_module_proto_goTypes,
+ DependencyIndexes: file_poktroll_proof_module_module_proto_depIdxs,
+ MessageInfos: file_poktroll_proof_module_module_proto_msgTypes,
+ }.Build()
+ File_poktroll_proof_module_module_proto = out.File
+ file_poktroll_proof_module_module_proto_rawDesc = nil
+ file_poktroll_proof_module_module_proto_goTypes = nil
+ file_poktroll_proof_module_module_proto_depIdxs = nil
+}
diff --git a/api/poktroll/proof/params.pulsar.go b/api/poktroll/proof/params.pulsar.go
new file mode 100644
index 000000000..bdc15b658
--- /dev/null
+++ b/api/poktroll/proof/params.pulsar.go
@@ -0,0 +1,498 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package proof
+
+import (
+ _ "cosmossdk.io/api/amino"
+ 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_Params protoreflect.MessageDescriptor
+)
+
+func init() {
+ file_poktroll_proof_params_proto_init()
+ md_Params = File_poktroll_proof_params_proto.Messages().ByName("Params")
+}
+
+var _ protoreflect.Message = (*fastReflection_Params)(nil)
+
+type fastReflection_Params Params
+
+func (x *Params) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_Params)(x)
+}
+
+func (x *Params) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_proof_params_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_Params_messageType fastReflection_Params_messageType
+var _ protoreflect.MessageType = fastReflection_Params_messageType{}
+
+type fastReflection_Params_messageType struct{}
+
+func (x fastReflection_Params_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_Params)(nil)
+}
+func (x fastReflection_Params_messageType) New() protoreflect.Message {
+ return new(fastReflection_Params)
+}
+func (x fastReflection_Params_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_Params
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_Params) Descriptor() protoreflect.MessageDescriptor {
+ return md_Params
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_Params) Type() protoreflect.MessageType {
+ return _fastReflection_Params_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_Params) New() protoreflect.Message {
+ return new(fastReflection_Params)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_Params) Interface() protoreflect.ProtoMessage {
+ return (*Params)(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_Params) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_Params) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.Params"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.Params 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_Params) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.Params"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.Params 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_Params) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.Params"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.Params 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_Params) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.Params"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.Params 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_Params) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.Params"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.Params does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// 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() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.Params"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.Params does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_Params) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.proof.Params", 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_Params) 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_Params) 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_Params) 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_Params) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*Params)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*Params)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*Params)
+ 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: Params: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.27.0
+// protoc (unknown)
+// source: poktroll/proof/params.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)
+)
+
+// Params defines the parameters for the module.
+type Params struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+}
+
+func (x *Params) Reset() {
+ *x = Params{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_proof_params_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *Params) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*Params) ProtoMessage() {}
+
+// Deprecated: Use Params.ProtoReflect.Descriptor instead.
+func (*Params) Descriptor() ([]byte, []int) {
+ return file_poktroll_proof_params_proto_rawDescGZIP(), []int{0}
+}
+
+var File_poktroll_proof_params_proto protoreflect.FileDescriptor
+
+var file_poktroll_proof_params_proto_rawDesc = []byte{
+ 0x0a, 0x1b, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x6f, 0x66,
+ 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x70,
+ 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x6f, 0x66, 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, 0x2a, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73,
+ 0x3a, 0x20, 0xe8, 0xa0, 0x1f, 0x01, 0x8a, 0xe7, 0xb0, 0x2a, 0x17, 0x70, 0x6f, 0x6b, 0x74, 0x72,
+ 0x6f, 0x6c, 0x6c, 0x2f, 0x78, 0x2f, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x2f, 0x50, 0x61, 0x72, 0x61,
+ 0x6d, 0x73, 0x42, 0x9b, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72,
+ 0x6f, 0x6c, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x42, 0x0b, 0x50, 0x61, 0x72, 0x61, 0x6d,
+ 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x1f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73,
+ 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72,
+ 0x6f, 0x6c, 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0xa2, 0x02, 0x03, 0x50, 0x50, 0x58, 0xaa,
+ 0x02, 0x0e, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x50, 0x72, 0x6f, 0x6f, 0x66,
+ 0xca, 0x02, 0x0e, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x50, 0x72, 0x6f, 0x6f,
+ 0x66, 0xe2, 0x02, 0x1a, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x50, 0x72, 0x6f,
+ 0x6f, 0x66, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02,
+ 0x0f, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x3a, 0x3a, 0x50, 0x72, 0x6f, 0x6f, 0x66,
+ 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_poktroll_proof_params_proto_rawDescOnce sync.Once
+ file_poktroll_proof_params_proto_rawDescData = file_poktroll_proof_params_proto_rawDesc
+)
+
+func file_poktroll_proof_params_proto_rawDescGZIP() []byte {
+ file_poktroll_proof_params_proto_rawDescOnce.Do(func() {
+ file_poktroll_proof_params_proto_rawDescData = protoimpl.X.CompressGZIP(file_poktroll_proof_params_proto_rawDescData)
+ })
+ return file_poktroll_proof_params_proto_rawDescData
+}
+
+var file_poktroll_proof_params_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
+var file_poktroll_proof_params_proto_goTypes = []interface{}{
+ (*Params)(nil), // 0: poktroll.proof.Params
+}
+var file_poktroll_proof_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
+ 0, // [0:0] is the sub-list for extension extendee
+ 0, // [0:0] is the sub-list for field type_name
+}
+
+func init() { file_poktroll_proof_params_proto_init() }
+func file_poktroll_proof_params_proto_init() {
+ if File_poktroll_proof_params_proto != nil {
+ return
+ }
+ if !protoimpl.UnsafeEnabled {
+ file_poktroll_proof_params_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*Params); 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_poktroll_proof_params_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 1,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_poktroll_proof_params_proto_goTypes,
+ DependencyIndexes: file_poktroll_proof_params_proto_depIdxs,
+ MessageInfos: file_poktroll_proof_params_proto_msgTypes,
+ }.Build()
+ File_poktroll_proof_params_proto = out.File
+ file_poktroll_proof_params_proto_rawDesc = nil
+ file_poktroll_proof_params_proto_goTypes = nil
+ file_poktroll_proof_params_proto_depIdxs = nil
+}
diff --git a/api/poktroll/proof/proof.pulsar.go b/api/poktroll/proof/proof.pulsar.go
new file mode 100644
index 000000000..9fd048a47
--- /dev/null
+++ b/api/poktroll/proof/proof.pulsar.go
@@ -0,0 +1,746 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package proof
+
+import (
+ fmt "fmt"
+ _ "github.com/cosmos/cosmos-proto"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ session "github.com/pokt-network/poktroll/api/poktroll/session"
+ 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_Proof protoreflect.MessageDescriptor
+ fd_Proof_supplier_address protoreflect.FieldDescriptor
+ fd_Proof_session_header protoreflect.FieldDescriptor
+ fd_Proof_closest_merkle_proof protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_proof_proof_proto_init()
+ md_Proof = File_poktroll_proof_proof_proto.Messages().ByName("Proof")
+ fd_Proof_supplier_address = md_Proof.Fields().ByName("supplier_address")
+ fd_Proof_session_header = md_Proof.Fields().ByName("session_header")
+ fd_Proof_closest_merkle_proof = md_Proof.Fields().ByName("closest_merkle_proof")
+}
+
+var _ protoreflect.Message = (*fastReflection_Proof)(nil)
+
+type fastReflection_Proof Proof
+
+func (x *Proof) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_Proof)(x)
+}
+
+func (x *Proof) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_proof_proof_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_Proof_messageType fastReflection_Proof_messageType
+var _ protoreflect.MessageType = fastReflection_Proof_messageType{}
+
+type fastReflection_Proof_messageType struct{}
+
+func (x fastReflection_Proof_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_Proof)(nil)
+}
+func (x fastReflection_Proof_messageType) New() protoreflect.Message {
+ return new(fastReflection_Proof)
+}
+func (x fastReflection_Proof_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_Proof
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_Proof) Descriptor() protoreflect.MessageDescriptor {
+ return md_Proof
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_Proof) Type() protoreflect.MessageType {
+ return _fastReflection_Proof_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_Proof) New() protoreflect.Message {
+ return new(fastReflection_Proof)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_Proof) Interface() protoreflect.ProtoMessage {
+ return (*Proof)(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_Proof) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.SupplierAddress != "" {
+ value := protoreflect.ValueOfString(x.SupplierAddress)
+ if !f(fd_Proof_supplier_address, value) {
+ return
+ }
+ }
+ if x.SessionHeader != nil {
+ value := protoreflect.ValueOfMessage(x.SessionHeader.ProtoReflect())
+ if !f(fd_Proof_session_header, value) {
+ return
+ }
+ }
+ if len(x.ClosestMerkleProof) != 0 {
+ value := protoreflect.ValueOfBytes(x.ClosestMerkleProof)
+ if !f(fd_Proof_closest_merkle_proof, 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_Proof) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.proof.Proof.supplier_address":
+ return x.SupplierAddress != ""
+ case "poktroll.proof.Proof.session_header":
+ return x.SessionHeader != nil
+ case "poktroll.proof.Proof.closest_merkle_proof":
+ return len(x.ClosestMerkleProof) != 0
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.Proof"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.Proof 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_Proof) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.proof.Proof.supplier_address":
+ x.SupplierAddress = ""
+ case "poktroll.proof.Proof.session_header":
+ x.SessionHeader = nil
+ case "poktroll.proof.Proof.closest_merkle_proof":
+ x.ClosestMerkleProof = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.Proof"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.Proof 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_Proof) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.proof.Proof.supplier_address":
+ value := x.SupplierAddress
+ return protoreflect.ValueOfString(value)
+ case "poktroll.proof.Proof.session_header":
+ value := x.SessionHeader
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ case "poktroll.proof.Proof.closest_merkle_proof":
+ value := x.ClosestMerkleProof
+ return protoreflect.ValueOfBytes(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.Proof"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.Proof 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_Proof) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.proof.Proof.supplier_address":
+ x.SupplierAddress = value.Interface().(string)
+ case "poktroll.proof.Proof.session_header":
+ x.SessionHeader = value.Message().Interface().(*session.SessionHeader)
+ case "poktroll.proof.Proof.closest_merkle_proof":
+ x.ClosestMerkleProof = value.Bytes()
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.Proof"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.Proof 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_Proof) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.proof.Proof.session_header":
+ if x.SessionHeader == nil {
+ x.SessionHeader = new(session.SessionHeader)
+ }
+ return protoreflect.ValueOfMessage(x.SessionHeader.ProtoReflect())
+ case "poktroll.proof.Proof.supplier_address":
+ panic(fmt.Errorf("field supplier_address of message poktroll.proof.Proof is not mutable"))
+ case "poktroll.proof.Proof.closest_merkle_proof":
+ panic(fmt.Errorf("field closest_merkle_proof of message poktroll.proof.Proof is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.Proof"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.Proof does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_Proof) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.proof.Proof.supplier_address":
+ return protoreflect.ValueOfString("")
+ case "poktroll.proof.Proof.session_header":
+ m := new(session.SessionHeader)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ case "poktroll.proof.Proof.closest_merkle_proof":
+ return protoreflect.ValueOfBytes(nil)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.Proof"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.Proof does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_Proof) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.proof.Proof", 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_Proof) 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_Proof) 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_Proof) 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_Proof) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*Proof)
+ 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.SupplierAddress)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.SessionHeader != nil {
+ l = options.Size(x.SessionHeader)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.ClosestMerkleProof)
+ 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().(*Proof)
+ 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.ClosestMerkleProof) > 0 {
+ i -= len(x.ClosestMerkleProof)
+ copy(dAtA[i:], x.ClosestMerkleProof)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ClosestMerkleProof)))
+ i--
+ dAtA[i] = 0x1a
+ }
+ if x.SessionHeader != nil {
+ encoded, err := options.Marshal(x.SessionHeader)
+ 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.SupplierAddress) > 0 {
+ i -= len(x.SupplierAddress)
+ copy(dAtA[i:], x.SupplierAddress)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.SupplierAddress)))
+ 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().(*Proof)
+ 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: Proof: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Proof: 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 SupplierAddress", 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.SupplierAddress = 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 SessionHeader", 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.SessionHeader == nil {
+ x.SessionHeader = &session.SessionHeader{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.SessionHeader); 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 ClosestMerkleProof", 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.ClosestMerkleProof = append(x.ClosestMerkleProof[:0], dAtA[iNdEx:postIndex]...)
+ if x.ClosestMerkleProof == nil {
+ x.ClosestMerkleProof = []byte{}
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.27.0
+// protoc (unknown)
+// source: poktroll/proof/proof.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 Proof struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ SupplierAddress string `protobuf:"bytes,1,opt,name=supplier_address,json=supplierAddress,proto3" json:"supplier_address,omitempty"`
+ // The session header of the session that this claim is for.
+ SessionHeader *session.SessionHeader `protobuf:"bytes,2,opt,name=session_header,json=sessionHeader,proto3" json:"session_header,omitempty"`
+ // The serialized SMST proof from the `#ClosestProof()` method.
+ ClosestMerkleProof []byte `protobuf:"bytes,3,opt,name=closest_merkle_proof,json=closestMerkleProof,proto3" json:"closest_merkle_proof,omitempty"`
+}
+
+func (x *Proof) Reset() {
+ *x = Proof{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_proof_proof_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *Proof) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*Proof) ProtoMessage() {}
+
+// Deprecated: Use Proof.ProtoReflect.Descriptor instead.
+func (*Proof) Descriptor() ([]byte, []int) {
+ return file_poktroll_proof_proof_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *Proof) GetSupplierAddress() string {
+ if x != nil {
+ return x.SupplierAddress
+ }
+ return ""
+}
+
+func (x *Proof) GetSessionHeader() *session.SessionHeader {
+ if x != nil {
+ return x.SessionHeader
+ }
+ return nil
+}
+
+func (x *Proof) GetClosestMerkleProof() []byte {
+ if x != nil {
+ return x.ClosestMerkleProof
+ }
+ return nil
+}
+
+var File_poktroll_proof_proof_proto protoreflect.FileDescriptor
+
+var file_poktroll_proof_proof_proto_rawDesc = []byte{
+ 0x0a, 0x1a, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x6f, 0x66,
+ 0x2f, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x70, 0x6f,
+ 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x6f, 0x66, 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, 0x1e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c,
+ 0x6c, 0x2f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f,
+ 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc6, 0x01, 0x0a, 0x05, 0x50, 0x72, 0x6f, 0x6f,
+ 0x66, 0x12, 0x43, 0x0a, 0x10, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x5f, 0x61, 0x64,
+ 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d,
+ 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53,
+ 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x0f, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x41,
+ 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x46, 0x0a, 0x0e, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f,
+ 0x6e, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f,
+ 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f,
+ 0x6e, 0x2e, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52,
+ 0x0d, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x30,
+ 0x0a, 0x14, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x73, 0x74, 0x5f, 0x6d, 0x65, 0x72, 0x6b, 0x6c, 0x65,
+ 0x5f, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x12, 0x63, 0x6c,
+ 0x6f, 0x73, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x72, 0x6b, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x6f, 0x66,
+ 0x42, 0x9a, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c,
+ 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x42, 0x0a, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x50, 0x72,
+ 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x1f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b,
+ 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c,
+ 0x2f, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0xa2, 0x02, 0x03, 0x50, 0x50, 0x58, 0xaa, 0x02, 0x0e, 0x50,
+ 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0xca, 0x02, 0x0e,
+ 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0xe2, 0x02,
+ 0x1a, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x5c,
+ 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x50, 0x6f,
+ 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x3a, 0x3a, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x62, 0x06, 0x70,
+ 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_poktroll_proof_proof_proto_rawDescOnce sync.Once
+ file_poktroll_proof_proof_proto_rawDescData = file_poktroll_proof_proof_proto_rawDesc
+)
+
+func file_poktroll_proof_proof_proto_rawDescGZIP() []byte {
+ file_poktroll_proof_proof_proto_rawDescOnce.Do(func() {
+ file_poktroll_proof_proof_proto_rawDescData = protoimpl.X.CompressGZIP(file_poktroll_proof_proof_proto_rawDescData)
+ })
+ return file_poktroll_proof_proof_proto_rawDescData
+}
+
+var file_poktroll_proof_proof_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
+var file_poktroll_proof_proof_proto_goTypes = []interface{}{
+ (*Proof)(nil), // 0: poktroll.proof.Proof
+ (*session.SessionHeader)(nil), // 1: poktroll.session.SessionHeader
+}
+var file_poktroll_proof_proof_proto_depIdxs = []int32{
+ 1, // 0: poktroll.proof.Proof.session_header:type_name -> poktroll.session.SessionHeader
+ 1, // [1:1] is the sub-list for method output_type
+ 1, // [1:1] is the sub-list for method input_type
+ 1, // [1:1] is the sub-list for extension type_name
+ 1, // [1:1] is the sub-list for extension extendee
+ 0, // [0:1] is the sub-list for field type_name
+}
+
+func init() { file_poktroll_proof_proof_proto_init() }
+func file_poktroll_proof_proof_proto_init() {
+ if File_poktroll_proof_proof_proto != nil {
+ return
+ }
+ if !protoimpl.UnsafeEnabled {
+ file_poktroll_proof_proof_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*Proof); 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_poktroll_proof_proof_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 1,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_poktroll_proof_proof_proto_goTypes,
+ DependencyIndexes: file_poktroll_proof_proof_proto_depIdxs,
+ MessageInfos: file_poktroll_proof_proof_proto_msgTypes,
+ }.Build()
+ File_poktroll_proof_proof_proto = out.File
+ file_poktroll_proof_proof_proto_rawDesc = nil
+ file_poktroll_proof_proof_proto_goTypes = nil
+ file_poktroll_proof_proof_proto_depIdxs = nil
+}
diff --git a/api/poktroll/proof/query.pulsar.go b/api/poktroll/proof/query.pulsar.go
new file mode 100644
index 000000000..4b4f62c39
--- /dev/null
+++ b/api/poktroll/proof/query.pulsar.go
@@ -0,0 +1,6012 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package proof
+
+import (
+ _ "cosmossdk.io/api/amino"
+ v1beta1 "cosmossdk.io/api/cosmos/base/query/v1beta1"
+ fmt "fmt"
+ _ "github.com/cosmos/cosmos-proto"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ _ "github.com/cosmos/gogoproto/gogoproto"
+ _ "google.golang.org/genproto/googleapis/api/annotations"
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoiface "google.golang.org/protobuf/runtime/protoiface"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ io "io"
+ reflect "reflect"
+ sync "sync"
+)
+
+var (
+ md_QueryParamsRequest protoreflect.MessageDescriptor
+)
+
+func init() {
+ file_poktroll_proof_query_proto_init()
+ md_QueryParamsRequest = File_poktroll_proof_query_proto.Messages().ByName("QueryParamsRequest")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryParamsRequest)(nil)
+
+type fastReflection_QueryParamsRequest QueryParamsRequest
+
+func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryParamsRequest)(x)
+}
+
+func (x *QueryParamsRequest) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_proof_query_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryParamsRequest_messageType fastReflection_QueryParamsRequest_messageType
+var _ protoreflect.MessageType = fastReflection_QueryParamsRequest_messageType{}
+
+type fastReflection_QueryParamsRequest_messageType struct{}
+
+func (x fastReflection_QueryParamsRequest_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryParamsRequest)(nil)
+}
+func (x fastReflection_QueryParamsRequest_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryParamsRequest)
+}
+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_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_QueryParamsRequest) Type() protoreflect.MessageType {
+ return _fastReflection_QueryParamsRequest_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+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_QueryParamsRequest) Interface() protoreflect.ProtoMessage {
+ return (*QueryParamsRequest)(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_QueryParamsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_QueryParamsRequest) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.QueryParamsRequest 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_QueryParamsRequest) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.QueryParamsRequest 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_QueryParamsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.QueryParamsRequest 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_QueryParamsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.QueryParamsRequest 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_QueryParamsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.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_QueryParamsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.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_QueryParamsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.proof.QueryParamsRequest", 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_QueryParamsRequest) 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_QueryParamsRequest) 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_QueryParamsRequest) 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_QueryParamsRequest) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryParamsRequest)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*QueryParamsRequest)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*QueryParamsRequest)
+ 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: QueryParamsRequest: 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)
+ }
+ switch fieldNum {
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_QueryParamsResponse protoreflect.MessageDescriptor
+ fd_QueryParamsResponse_params protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_proof_query_proto_init()
+ md_QueryParamsResponse = File_poktroll_proof_query_proto.Messages().ByName("QueryParamsResponse")
+ fd_QueryParamsResponse_params = md_QueryParamsResponse.Fields().ByName("params")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryParamsResponse)(nil)
+
+type fastReflection_QueryParamsResponse QueryParamsResponse
+
+func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryParamsResponse)(x)
+}
+
+func (x *QueryParamsResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_proof_query_proto_msgTypes[1]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryParamsResponse_messageType fastReflection_QueryParamsResponse_messageType
+var _ protoreflect.MessageType = fastReflection_QueryParamsResponse_messageType{}
+
+type fastReflection_QueryParamsResponse_messageType struct{}
+
+func (x fastReflection_QueryParamsResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryParamsResponse)(nil)
+}
+func (x fastReflection_QueryParamsResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryParamsResponse)
+}
+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_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_QueryParamsResponse) Type() protoreflect.MessageType {
+ return _fastReflection_QueryParamsResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+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_QueryParamsResponse) Interface() protoreflect.ProtoMessage {
+ return (*QueryParamsResponse)(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_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
+ }
+ }
+}
+
+// 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_QueryParamsResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.proof.QueryParamsResponse.params":
+ return x.Params != nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.QueryParamsResponse 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_QueryParamsResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.proof.QueryParamsResponse.params":
+ x.Params = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.QueryParamsResponse 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_QueryParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.proof.QueryParamsResponse.params":
+ value := x.Params
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.QueryParamsResponse 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_QueryParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.proof.QueryParamsResponse.params":
+ x.Params = value.Message().Interface().(*Params)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.QueryParamsResponse 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_QueryParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.proof.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: poktroll.proof.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.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_QueryParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.proof.QueryParamsResponse.params":
+ m := new(Params)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.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_QueryParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.proof.QueryParamsResponse", 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_QueryParamsResponse) 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_QueryParamsResponse) 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_QueryParamsResponse) 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_QueryParamsResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryParamsResponse)
+ 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.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().(*QueryParamsResponse)
+ 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.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().(*QueryParamsResponse)
+ 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: QueryParamsResponse: 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)
+ }
+ 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
+ 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_QueryGetClaimRequest protoreflect.MessageDescriptor
+ fd_QueryGetClaimRequest_session_id protoreflect.FieldDescriptor
+ fd_QueryGetClaimRequest_supplier_address protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_proof_query_proto_init()
+ md_QueryGetClaimRequest = File_poktroll_proof_query_proto.Messages().ByName("QueryGetClaimRequest")
+ fd_QueryGetClaimRequest_session_id = md_QueryGetClaimRequest.Fields().ByName("session_id")
+ fd_QueryGetClaimRequest_supplier_address = md_QueryGetClaimRequest.Fields().ByName("supplier_address")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryGetClaimRequest)(nil)
+
+type fastReflection_QueryGetClaimRequest QueryGetClaimRequest
+
+func (x *QueryGetClaimRequest) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryGetClaimRequest)(x)
+}
+
+func (x *QueryGetClaimRequest) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_proof_query_proto_msgTypes[2]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryGetClaimRequest_messageType fastReflection_QueryGetClaimRequest_messageType
+var _ protoreflect.MessageType = fastReflection_QueryGetClaimRequest_messageType{}
+
+type fastReflection_QueryGetClaimRequest_messageType struct{}
+
+func (x fastReflection_QueryGetClaimRequest_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryGetClaimRequest)(nil)
+}
+func (x fastReflection_QueryGetClaimRequest_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryGetClaimRequest)
+}
+func (x fastReflection_QueryGetClaimRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryGetClaimRequest
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_QueryGetClaimRequest) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryGetClaimRequest
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_QueryGetClaimRequest) Type() protoreflect.MessageType {
+ return _fastReflection_QueryGetClaimRequest_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_QueryGetClaimRequest) New() protoreflect.Message {
+ return new(fastReflection_QueryGetClaimRequest)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_QueryGetClaimRequest) Interface() protoreflect.ProtoMessage {
+ return (*QueryGetClaimRequest)(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_QueryGetClaimRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.SessionId != "" {
+ value := protoreflect.ValueOfString(x.SessionId)
+ if !f(fd_QueryGetClaimRequest_session_id, value) {
+ return
+ }
+ }
+ if x.SupplierAddress != "" {
+ value := protoreflect.ValueOfString(x.SupplierAddress)
+ if !f(fd_QueryGetClaimRequest_supplier_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_QueryGetClaimRequest) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.proof.QueryGetClaimRequest.session_id":
+ return x.SessionId != ""
+ case "poktroll.proof.QueryGetClaimRequest.supplier_address":
+ return x.SupplierAddress != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.QueryGetClaimRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.QueryGetClaimRequest 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_QueryGetClaimRequest) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.proof.QueryGetClaimRequest.session_id":
+ x.SessionId = ""
+ case "poktroll.proof.QueryGetClaimRequest.supplier_address":
+ x.SupplierAddress = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.QueryGetClaimRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.QueryGetClaimRequest 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_QueryGetClaimRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.proof.QueryGetClaimRequest.session_id":
+ value := x.SessionId
+ return protoreflect.ValueOfString(value)
+ case "poktroll.proof.QueryGetClaimRequest.supplier_address":
+ value := x.SupplierAddress
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.QueryGetClaimRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.QueryGetClaimRequest 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_QueryGetClaimRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.proof.QueryGetClaimRequest.session_id":
+ x.SessionId = value.Interface().(string)
+ case "poktroll.proof.QueryGetClaimRequest.supplier_address":
+ x.SupplierAddress = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.QueryGetClaimRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.QueryGetClaimRequest 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_QueryGetClaimRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.proof.QueryGetClaimRequest.session_id":
+ panic(fmt.Errorf("field session_id of message poktroll.proof.QueryGetClaimRequest is not mutable"))
+ case "poktroll.proof.QueryGetClaimRequest.supplier_address":
+ panic(fmt.Errorf("field supplier_address of message poktroll.proof.QueryGetClaimRequest is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.QueryGetClaimRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.QueryGetClaimRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_QueryGetClaimRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.proof.QueryGetClaimRequest.session_id":
+ return protoreflect.ValueOfString("")
+ case "poktroll.proof.QueryGetClaimRequest.supplier_address":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.QueryGetClaimRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.QueryGetClaimRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_QueryGetClaimRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.proof.QueryGetClaimRequest", 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_QueryGetClaimRequest) 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_QueryGetClaimRequest) 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_QueryGetClaimRequest) 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_QueryGetClaimRequest) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryGetClaimRequest)
+ 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.SessionId)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.SupplierAddress)
+ 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().(*QueryGetClaimRequest)
+ 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.SupplierAddress) > 0 {
+ i -= len(x.SupplierAddress)
+ copy(dAtA[i:], x.SupplierAddress)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.SupplierAddress)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if len(x.SessionId) > 0 {
+ i -= len(x.SessionId)
+ copy(dAtA[i:], x.SessionId)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.SessionId)))
+ 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().(*QueryGetClaimRequest)
+ 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: QueryGetClaimRequest: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetClaimRequest: 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 SessionId", 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.SessionId = 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 SupplierAddress", 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.SupplierAddress = 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_QueryGetClaimResponse protoreflect.MessageDescriptor
+ fd_QueryGetClaimResponse_claim protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_proof_query_proto_init()
+ md_QueryGetClaimResponse = File_poktroll_proof_query_proto.Messages().ByName("QueryGetClaimResponse")
+ fd_QueryGetClaimResponse_claim = md_QueryGetClaimResponse.Fields().ByName("claim")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryGetClaimResponse)(nil)
+
+type fastReflection_QueryGetClaimResponse QueryGetClaimResponse
+
+func (x *QueryGetClaimResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryGetClaimResponse)(x)
+}
+
+func (x *QueryGetClaimResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_proof_query_proto_msgTypes[3]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryGetClaimResponse_messageType fastReflection_QueryGetClaimResponse_messageType
+var _ protoreflect.MessageType = fastReflection_QueryGetClaimResponse_messageType{}
+
+type fastReflection_QueryGetClaimResponse_messageType struct{}
+
+func (x fastReflection_QueryGetClaimResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryGetClaimResponse)(nil)
+}
+func (x fastReflection_QueryGetClaimResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryGetClaimResponse)
+}
+func (x fastReflection_QueryGetClaimResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryGetClaimResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_QueryGetClaimResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryGetClaimResponse
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_QueryGetClaimResponse) Type() protoreflect.MessageType {
+ return _fastReflection_QueryGetClaimResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_QueryGetClaimResponse) New() protoreflect.Message {
+ return new(fastReflection_QueryGetClaimResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_QueryGetClaimResponse) Interface() protoreflect.ProtoMessage {
+ return (*QueryGetClaimResponse)(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_QueryGetClaimResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Claim != nil {
+ value := protoreflect.ValueOfMessage(x.Claim.ProtoReflect())
+ if !f(fd_QueryGetClaimResponse_claim, 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_QueryGetClaimResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.proof.QueryGetClaimResponse.claim":
+ return x.Claim != nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.QueryGetClaimResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.QueryGetClaimResponse 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_QueryGetClaimResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.proof.QueryGetClaimResponse.claim":
+ x.Claim = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.QueryGetClaimResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.QueryGetClaimResponse 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_QueryGetClaimResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.proof.QueryGetClaimResponse.claim":
+ value := x.Claim
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.QueryGetClaimResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.QueryGetClaimResponse 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_QueryGetClaimResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.proof.QueryGetClaimResponse.claim":
+ x.Claim = value.Message().Interface().(*Claim)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.QueryGetClaimResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.QueryGetClaimResponse 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_QueryGetClaimResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.proof.QueryGetClaimResponse.claim":
+ if x.Claim == nil {
+ x.Claim = new(Claim)
+ }
+ return protoreflect.ValueOfMessage(x.Claim.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.QueryGetClaimResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.QueryGetClaimResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_QueryGetClaimResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.proof.QueryGetClaimResponse.claim":
+ m := new(Claim)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.QueryGetClaimResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.QueryGetClaimResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_QueryGetClaimResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.proof.QueryGetClaimResponse", 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_QueryGetClaimResponse) 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_QueryGetClaimResponse) 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_QueryGetClaimResponse) 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_QueryGetClaimResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryGetClaimResponse)
+ 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.Claim != nil {
+ l = options.Size(x.Claim)
+ 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().(*QueryGetClaimResponse)
+ 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.Claim != nil {
+ encoded, err := options.Marshal(x.Claim)
+ 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().(*QueryGetClaimResponse)
+ 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: QueryGetClaimResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetClaimResponse: 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 Claim", 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.Claim == nil {
+ x.Claim = &Claim{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Claim); 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_QueryAllClaimsRequest protoreflect.MessageDescriptor
+ fd_QueryAllClaimsRequest_pagination protoreflect.FieldDescriptor
+ fd_QueryAllClaimsRequest_supplier_address protoreflect.FieldDescriptor
+ fd_QueryAllClaimsRequest_session_id protoreflect.FieldDescriptor
+ fd_QueryAllClaimsRequest_session_end_height protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_proof_query_proto_init()
+ md_QueryAllClaimsRequest = File_poktroll_proof_query_proto.Messages().ByName("QueryAllClaimsRequest")
+ fd_QueryAllClaimsRequest_pagination = md_QueryAllClaimsRequest.Fields().ByName("pagination")
+ fd_QueryAllClaimsRequest_supplier_address = md_QueryAllClaimsRequest.Fields().ByName("supplier_address")
+ fd_QueryAllClaimsRequest_session_id = md_QueryAllClaimsRequest.Fields().ByName("session_id")
+ fd_QueryAllClaimsRequest_session_end_height = md_QueryAllClaimsRequest.Fields().ByName("session_end_height")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryAllClaimsRequest)(nil)
+
+type fastReflection_QueryAllClaimsRequest QueryAllClaimsRequest
+
+func (x *QueryAllClaimsRequest) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryAllClaimsRequest)(x)
+}
+
+func (x *QueryAllClaimsRequest) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_proof_query_proto_msgTypes[4]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryAllClaimsRequest_messageType fastReflection_QueryAllClaimsRequest_messageType
+var _ protoreflect.MessageType = fastReflection_QueryAllClaimsRequest_messageType{}
+
+type fastReflection_QueryAllClaimsRequest_messageType struct{}
+
+func (x fastReflection_QueryAllClaimsRequest_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryAllClaimsRequest)(nil)
+}
+func (x fastReflection_QueryAllClaimsRequest_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryAllClaimsRequest)
+}
+func (x fastReflection_QueryAllClaimsRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryAllClaimsRequest
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_QueryAllClaimsRequest) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryAllClaimsRequest
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_QueryAllClaimsRequest) Type() protoreflect.MessageType {
+ return _fastReflection_QueryAllClaimsRequest_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_QueryAllClaimsRequest) New() protoreflect.Message {
+ return new(fastReflection_QueryAllClaimsRequest)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_QueryAllClaimsRequest) Interface() protoreflect.ProtoMessage {
+ return (*QueryAllClaimsRequest)(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_QueryAllClaimsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Pagination != nil {
+ value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
+ if !f(fd_QueryAllClaimsRequest_pagination, value) {
+ return
+ }
+ }
+ if x.Filter != nil {
+ switch o := x.Filter.(type) {
+ case *QueryAllClaimsRequest_SupplierAddress:
+ v := o.SupplierAddress
+ value := protoreflect.ValueOfString(v)
+ if !f(fd_QueryAllClaimsRequest_supplier_address, value) {
+ return
+ }
+ case *QueryAllClaimsRequest_SessionId:
+ v := o.SessionId
+ value := protoreflect.ValueOfString(v)
+ if !f(fd_QueryAllClaimsRequest_session_id, value) {
+ return
+ }
+ case *QueryAllClaimsRequest_SessionEndHeight:
+ v := o.SessionEndHeight
+ value := protoreflect.ValueOfUint64(v)
+ if !f(fd_QueryAllClaimsRequest_session_end_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_QueryAllClaimsRequest) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.proof.QueryAllClaimsRequest.pagination":
+ return x.Pagination != nil
+ case "poktroll.proof.QueryAllClaimsRequest.supplier_address":
+ if x.Filter == nil {
+ return false
+ } else if _, ok := x.Filter.(*QueryAllClaimsRequest_SupplierAddress); ok {
+ return true
+ } else {
+ return false
+ }
+ case "poktroll.proof.QueryAllClaimsRequest.session_id":
+ if x.Filter == nil {
+ return false
+ } else if _, ok := x.Filter.(*QueryAllClaimsRequest_SessionId); ok {
+ return true
+ } else {
+ return false
+ }
+ case "poktroll.proof.QueryAllClaimsRequest.session_end_height":
+ if x.Filter == nil {
+ return false
+ } else if _, ok := x.Filter.(*QueryAllClaimsRequest_SessionEndHeight); ok {
+ return true
+ } else {
+ return false
+ }
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.QueryAllClaimsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.QueryAllClaimsRequest 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_QueryAllClaimsRequest) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.proof.QueryAllClaimsRequest.pagination":
+ x.Pagination = nil
+ case "poktroll.proof.QueryAllClaimsRequest.supplier_address":
+ x.Filter = nil
+ case "poktroll.proof.QueryAllClaimsRequest.session_id":
+ x.Filter = nil
+ case "poktroll.proof.QueryAllClaimsRequest.session_end_height":
+ x.Filter = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.QueryAllClaimsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.QueryAllClaimsRequest 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_QueryAllClaimsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.proof.QueryAllClaimsRequest.pagination":
+ value := x.Pagination
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ case "poktroll.proof.QueryAllClaimsRequest.supplier_address":
+ if x.Filter == nil {
+ return protoreflect.ValueOfString("")
+ } else if v, ok := x.Filter.(*QueryAllClaimsRequest_SupplierAddress); ok {
+ return protoreflect.ValueOfString(v.SupplierAddress)
+ } else {
+ return protoreflect.ValueOfString("")
+ }
+ case "poktroll.proof.QueryAllClaimsRequest.session_id":
+ if x.Filter == nil {
+ return protoreflect.ValueOfString("")
+ } else if v, ok := x.Filter.(*QueryAllClaimsRequest_SessionId); ok {
+ return protoreflect.ValueOfString(v.SessionId)
+ } else {
+ return protoreflect.ValueOfString("")
+ }
+ case "poktroll.proof.QueryAllClaimsRequest.session_end_height":
+ if x.Filter == nil {
+ return protoreflect.ValueOfUint64(uint64(0))
+ } else if v, ok := x.Filter.(*QueryAllClaimsRequest_SessionEndHeight); ok {
+ return protoreflect.ValueOfUint64(v.SessionEndHeight)
+ } else {
+ return protoreflect.ValueOfUint64(uint64(0))
+ }
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.QueryAllClaimsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.QueryAllClaimsRequest 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_QueryAllClaimsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.proof.QueryAllClaimsRequest.pagination":
+ x.Pagination = value.Message().Interface().(*v1beta1.PageRequest)
+ case "poktroll.proof.QueryAllClaimsRequest.supplier_address":
+ cv := value.Interface().(string)
+ x.Filter = &QueryAllClaimsRequest_SupplierAddress{SupplierAddress: cv}
+ case "poktroll.proof.QueryAllClaimsRequest.session_id":
+ cv := value.Interface().(string)
+ x.Filter = &QueryAllClaimsRequest_SessionId{SessionId: cv}
+ case "poktroll.proof.QueryAllClaimsRequest.session_end_height":
+ cv := value.Uint()
+ x.Filter = &QueryAllClaimsRequest_SessionEndHeight{SessionEndHeight: cv}
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.QueryAllClaimsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.QueryAllClaimsRequest 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_QueryAllClaimsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.proof.QueryAllClaimsRequest.pagination":
+ if x.Pagination == nil {
+ x.Pagination = new(v1beta1.PageRequest)
+ }
+ return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
+ case "poktroll.proof.QueryAllClaimsRequest.supplier_address":
+ panic(fmt.Errorf("field supplier_address of message poktroll.proof.QueryAllClaimsRequest is not mutable"))
+ case "poktroll.proof.QueryAllClaimsRequest.session_id":
+ panic(fmt.Errorf("field session_id of message poktroll.proof.QueryAllClaimsRequest is not mutable"))
+ case "poktroll.proof.QueryAllClaimsRequest.session_end_height":
+ panic(fmt.Errorf("field session_end_height of message poktroll.proof.QueryAllClaimsRequest is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.QueryAllClaimsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.QueryAllClaimsRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_QueryAllClaimsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.proof.QueryAllClaimsRequest.pagination":
+ m := new(v1beta1.PageRequest)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ case "poktroll.proof.QueryAllClaimsRequest.supplier_address":
+ return protoreflect.ValueOfString("")
+ case "poktroll.proof.QueryAllClaimsRequest.session_id":
+ return protoreflect.ValueOfString("")
+ case "poktroll.proof.QueryAllClaimsRequest.session_end_height":
+ return protoreflect.ValueOfUint64(uint64(0))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.QueryAllClaimsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.QueryAllClaimsRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_QueryAllClaimsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ case "poktroll.proof.QueryAllClaimsRequest.filter":
+ if x.Filter == nil {
+ return nil
+ }
+ switch x.Filter.(type) {
+ case *QueryAllClaimsRequest_SupplierAddress:
+ return x.Descriptor().Fields().ByName("supplier_address")
+ case *QueryAllClaimsRequest_SessionId:
+ return x.Descriptor().Fields().ByName("session_id")
+ case *QueryAllClaimsRequest_SessionEndHeight:
+ return x.Descriptor().Fields().ByName("session_end_height")
+ }
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.proof.QueryAllClaimsRequest", 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_QueryAllClaimsRequest) 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_QueryAllClaimsRequest) 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_QueryAllClaimsRequest) 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_QueryAllClaimsRequest) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryAllClaimsRequest)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.Pagination != nil {
+ l = options.Size(x.Pagination)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ switch x := x.Filter.(type) {
+ case *QueryAllClaimsRequest_SupplierAddress:
+ if x == nil {
+ break
+ }
+ l = len(x.SupplierAddress)
+ n += 1 + l + runtime.Sov(uint64(l))
+ case *QueryAllClaimsRequest_SessionId:
+ if x == nil {
+ break
+ }
+ l = len(x.SessionId)
+ n += 1 + l + runtime.Sov(uint64(l))
+ case *QueryAllClaimsRequest_SessionEndHeight:
+ if x == nil {
+ break
+ }
+ n += 1 + runtime.Sov(uint64(x.SessionEndHeight))
+ }
+ 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().(*QueryAllClaimsRequest)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ switch x := x.Filter.(type) {
+ case *QueryAllClaimsRequest_SupplierAddress:
+ i -= len(x.SupplierAddress)
+ copy(dAtA[i:], x.SupplierAddress)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.SupplierAddress)))
+ i--
+ dAtA[i] = 0x12
+ case *QueryAllClaimsRequest_SessionId:
+ i -= len(x.SessionId)
+ copy(dAtA[i:], x.SessionId)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.SessionId)))
+ i--
+ dAtA[i] = 0x1a
+ case *QueryAllClaimsRequest_SessionEndHeight:
+ i = runtime.EncodeVarint(dAtA, i, uint64(x.SessionEndHeight))
+ i--
+ dAtA[i] = 0x20
+ }
+ if x.Pagination != nil {
+ encoded, err := options.Marshal(x.Pagination)
+ if err != nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, err
+ }
+ i -= len(encoded)
+ copy(dAtA[i:], encoded)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
+ i--
+ dAtA[i] = 0xa
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*QueryAllClaimsRequest)
+ 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: QueryAllClaimsRequest: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllClaimsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if x.Pagination == nil {
+ x.Pagination = &v1beta1.PageRequest{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SupplierAddress", 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.Filter = &QueryAllClaimsRequest_SupplierAddress{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 SessionId", 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.Filter = &QueryAllClaimsRequest_SessionId{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 SessionEndHeight", wireType)
+ }
+ 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.Filter = &QueryAllClaimsRequest_SessionEndHeight{v}
+ 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 = (*_QueryAllClaimsResponse_1_list)(nil)
+
+type _QueryAllClaimsResponse_1_list struct {
+ list *[]*Claim
+}
+
+func (x *_QueryAllClaimsResponse_1_list) Len() int {
+ if x.list == nil {
+ return 0
+ }
+ return len(*x.list)
+}
+
+func (x *_QueryAllClaimsResponse_1_list) Get(i int) protoreflect.Value {
+ return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
+}
+
+func (x *_QueryAllClaimsResponse_1_list) Set(i int, value protoreflect.Value) {
+ valueUnwrapped := value.Message()
+ concreteValue := valueUnwrapped.Interface().(*Claim)
+ (*x.list)[i] = concreteValue
+}
+
+func (x *_QueryAllClaimsResponse_1_list) Append(value protoreflect.Value) {
+ valueUnwrapped := value.Message()
+ concreteValue := valueUnwrapped.Interface().(*Claim)
+ *x.list = append(*x.list, concreteValue)
+}
+
+func (x *_QueryAllClaimsResponse_1_list) AppendMutable() protoreflect.Value {
+ v := new(Claim)
+ *x.list = append(*x.list, v)
+ return protoreflect.ValueOfMessage(v.ProtoReflect())
+}
+
+func (x *_QueryAllClaimsResponse_1_list) Truncate(n int) {
+ for i := n; i < len(*x.list); i++ {
+ (*x.list)[i] = nil
+ }
+ *x.list = (*x.list)[:n]
+}
+
+func (x *_QueryAllClaimsResponse_1_list) NewElement() protoreflect.Value {
+ v := new(Claim)
+ return protoreflect.ValueOfMessage(v.ProtoReflect())
+}
+
+func (x *_QueryAllClaimsResponse_1_list) IsValid() bool {
+ return x.list != nil
+}
+
+var (
+ md_QueryAllClaimsResponse protoreflect.MessageDescriptor
+ fd_QueryAllClaimsResponse_claims protoreflect.FieldDescriptor
+ fd_QueryAllClaimsResponse_pagination protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_proof_query_proto_init()
+ md_QueryAllClaimsResponse = File_poktroll_proof_query_proto.Messages().ByName("QueryAllClaimsResponse")
+ fd_QueryAllClaimsResponse_claims = md_QueryAllClaimsResponse.Fields().ByName("claims")
+ fd_QueryAllClaimsResponse_pagination = md_QueryAllClaimsResponse.Fields().ByName("pagination")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryAllClaimsResponse)(nil)
+
+type fastReflection_QueryAllClaimsResponse QueryAllClaimsResponse
+
+func (x *QueryAllClaimsResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryAllClaimsResponse)(x)
+}
+
+func (x *QueryAllClaimsResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_proof_query_proto_msgTypes[5]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryAllClaimsResponse_messageType fastReflection_QueryAllClaimsResponse_messageType
+var _ protoreflect.MessageType = fastReflection_QueryAllClaimsResponse_messageType{}
+
+type fastReflection_QueryAllClaimsResponse_messageType struct{}
+
+func (x fastReflection_QueryAllClaimsResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryAllClaimsResponse)(nil)
+}
+func (x fastReflection_QueryAllClaimsResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryAllClaimsResponse)
+}
+func (x fastReflection_QueryAllClaimsResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryAllClaimsResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_QueryAllClaimsResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryAllClaimsResponse
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_QueryAllClaimsResponse) Type() protoreflect.MessageType {
+ return _fastReflection_QueryAllClaimsResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_QueryAllClaimsResponse) New() protoreflect.Message {
+ return new(fastReflection_QueryAllClaimsResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_QueryAllClaimsResponse) Interface() protoreflect.ProtoMessage {
+ return (*QueryAllClaimsResponse)(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_QueryAllClaimsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if len(x.Claims) != 0 {
+ value := protoreflect.ValueOfList(&_QueryAllClaimsResponse_1_list{list: &x.Claims})
+ if !f(fd_QueryAllClaimsResponse_claims, value) {
+ return
+ }
+ }
+ if x.Pagination != nil {
+ value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
+ if !f(fd_QueryAllClaimsResponse_pagination, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_QueryAllClaimsResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.proof.QueryAllClaimsResponse.claims":
+ return len(x.Claims) != 0
+ case "poktroll.proof.QueryAllClaimsResponse.pagination":
+ return x.Pagination != nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.QueryAllClaimsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.QueryAllClaimsResponse 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_QueryAllClaimsResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.proof.QueryAllClaimsResponse.claims":
+ x.Claims = nil
+ case "poktroll.proof.QueryAllClaimsResponse.pagination":
+ x.Pagination = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.QueryAllClaimsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.QueryAllClaimsResponse 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_QueryAllClaimsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.proof.QueryAllClaimsResponse.claims":
+ if len(x.Claims) == 0 {
+ return protoreflect.ValueOfList(&_QueryAllClaimsResponse_1_list{})
+ }
+ listValue := &_QueryAllClaimsResponse_1_list{list: &x.Claims}
+ return protoreflect.ValueOfList(listValue)
+ case "poktroll.proof.QueryAllClaimsResponse.pagination":
+ value := x.Pagination
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.QueryAllClaimsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.QueryAllClaimsResponse 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_QueryAllClaimsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.proof.QueryAllClaimsResponse.claims":
+ lv := value.List()
+ clv := lv.(*_QueryAllClaimsResponse_1_list)
+ x.Claims = *clv.list
+ case "poktroll.proof.QueryAllClaimsResponse.pagination":
+ x.Pagination = value.Message().Interface().(*v1beta1.PageResponse)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.QueryAllClaimsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.QueryAllClaimsResponse 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_QueryAllClaimsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.proof.QueryAllClaimsResponse.claims":
+ if x.Claims == nil {
+ x.Claims = []*Claim{}
+ }
+ value := &_QueryAllClaimsResponse_1_list{list: &x.Claims}
+ return protoreflect.ValueOfList(value)
+ case "poktroll.proof.QueryAllClaimsResponse.pagination":
+ if x.Pagination == nil {
+ x.Pagination = new(v1beta1.PageResponse)
+ }
+ return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.QueryAllClaimsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.QueryAllClaimsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_QueryAllClaimsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.proof.QueryAllClaimsResponse.claims":
+ list := []*Claim{}
+ return protoreflect.ValueOfList(&_QueryAllClaimsResponse_1_list{list: &list})
+ case "poktroll.proof.QueryAllClaimsResponse.pagination":
+ m := new(v1beta1.PageResponse)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.QueryAllClaimsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.QueryAllClaimsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_QueryAllClaimsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.proof.QueryAllClaimsResponse", 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_QueryAllClaimsResponse) 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_QueryAllClaimsResponse) 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_QueryAllClaimsResponse) 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_QueryAllClaimsResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryAllClaimsResponse)
+ 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.Claims) > 0 {
+ for _, e := range x.Claims {
+ l = options.Size(e)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ }
+ if x.Pagination != nil {
+ l = options.Size(x.Pagination)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*QueryAllClaimsResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if x.Pagination != nil {
+ encoded, err := options.Marshal(x.Pagination)
+ if err != nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, err
+ }
+ i -= len(encoded)
+ copy(dAtA[i:], encoded)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if len(x.Claims) > 0 {
+ for iNdEx := len(x.Claims) - 1; iNdEx >= 0; iNdEx-- {
+ encoded, err := options.Marshal(x.Claims[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().(*QueryAllClaimsResponse)
+ 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: QueryAllClaimsResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllClaimsResponse: 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 Claims", 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.Claims = append(x.Claims, &Claim{})
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Claims[len(x.Claims)-1]); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if x.Pagination == nil {
+ x.Pagination = &v1beta1.PageResponse{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_QueryGetProofRequest protoreflect.MessageDescriptor
+ fd_QueryGetProofRequest_session_id protoreflect.FieldDescriptor
+ fd_QueryGetProofRequest_supplier_address protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_proof_query_proto_init()
+ md_QueryGetProofRequest = File_poktroll_proof_query_proto.Messages().ByName("QueryGetProofRequest")
+ fd_QueryGetProofRequest_session_id = md_QueryGetProofRequest.Fields().ByName("session_id")
+ fd_QueryGetProofRequest_supplier_address = md_QueryGetProofRequest.Fields().ByName("supplier_address")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryGetProofRequest)(nil)
+
+type fastReflection_QueryGetProofRequest QueryGetProofRequest
+
+func (x *QueryGetProofRequest) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryGetProofRequest)(x)
+}
+
+func (x *QueryGetProofRequest) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_proof_query_proto_msgTypes[6]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryGetProofRequest_messageType fastReflection_QueryGetProofRequest_messageType
+var _ protoreflect.MessageType = fastReflection_QueryGetProofRequest_messageType{}
+
+type fastReflection_QueryGetProofRequest_messageType struct{}
+
+func (x fastReflection_QueryGetProofRequest_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryGetProofRequest)(nil)
+}
+func (x fastReflection_QueryGetProofRequest_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryGetProofRequest)
+}
+func (x fastReflection_QueryGetProofRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryGetProofRequest
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_QueryGetProofRequest) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryGetProofRequest
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_QueryGetProofRequest) Type() protoreflect.MessageType {
+ return _fastReflection_QueryGetProofRequest_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_QueryGetProofRequest) New() protoreflect.Message {
+ return new(fastReflection_QueryGetProofRequest)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_QueryGetProofRequest) Interface() protoreflect.ProtoMessage {
+ return (*QueryGetProofRequest)(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_QueryGetProofRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.SessionId != "" {
+ value := protoreflect.ValueOfString(x.SessionId)
+ if !f(fd_QueryGetProofRequest_session_id, value) {
+ return
+ }
+ }
+ if x.SupplierAddress != "" {
+ value := protoreflect.ValueOfString(x.SupplierAddress)
+ if !f(fd_QueryGetProofRequest_supplier_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_QueryGetProofRequest) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.proof.QueryGetProofRequest.session_id":
+ return x.SessionId != ""
+ case "poktroll.proof.QueryGetProofRequest.supplier_address":
+ return x.SupplierAddress != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.QueryGetProofRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.QueryGetProofRequest 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_QueryGetProofRequest) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.proof.QueryGetProofRequest.session_id":
+ x.SessionId = ""
+ case "poktroll.proof.QueryGetProofRequest.supplier_address":
+ x.SupplierAddress = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.QueryGetProofRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.QueryGetProofRequest 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_QueryGetProofRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.proof.QueryGetProofRequest.session_id":
+ value := x.SessionId
+ return protoreflect.ValueOfString(value)
+ case "poktroll.proof.QueryGetProofRequest.supplier_address":
+ value := x.SupplierAddress
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.QueryGetProofRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.QueryGetProofRequest 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_QueryGetProofRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.proof.QueryGetProofRequest.session_id":
+ x.SessionId = value.Interface().(string)
+ case "poktroll.proof.QueryGetProofRequest.supplier_address":
+ x.SupplierAddress = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.QueryGetProofRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.QueryGetProofRequest 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_QueryGetProofRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.proof.QueryGetProofRequest.session_id":
+ panic(fmt.Errorf("field session_id of message poktroll.proof.QueryGetProofRequest is not mutable"))
+ case "poktroll.proof.QueryGetProofRequest.supplier_address":
+ panic(fmt.Errorf("field supplier_address of message poktroll.proof.QueryGetProofRequest is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.QueryGetProofRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.QueryGetProofRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_QueryGetProofRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.proof.QueryGetProofRequest.session_id":
+ return protoreflect.ValueOfString("")
+ case "poktroll.proof.QueryGetProofRequest.supplier_address":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.QueryGetProofRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.QueryGetProofRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_QueryGetProofRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.proof.QueryGetProofRequest", 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_QueryGetProofRequest) 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_QueryGetProofRequest) 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_QueryGetProofRequest) 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_QueryGetProofRequest) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryGetProofRequest)
+ 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.SessionId)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.SupplierAddress)
+ 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().(*QueryGetProofRequest)
+ 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.SupplierAddress) > 0 {
+ i -= len(x.SupplierAddress)
+ copy(dAtA[i:], x.SupplierAddress)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.SupplierAddress)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if len(x.SessionId) > 0 {
+ i -= len(x.SessionId)
+ copy(dAtA[i:], x.SessionId)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.SessionId)))
+ 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().(*QueryGetProofRequest)
+ 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: QueryGetProofRequest: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetProofRequest: 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 SessionId", 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.SessionId = 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 SupplierAddress", 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.SupplierAddress = 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_QueryGetProofResponse protoreflect.MessageDescriptor
+ fd_QueryGetProofResponse_proof protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_proof_query_proto_init()
+ md_QueryGetProofResponse = File_poktroll_proof_query_proto.Messages().ByName("QueryGetProofResponse")
+ fd_QueryGetProofResponse_proof = md_QueryGetProofResponse.Fields().ByName("proof")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryGetProofResponse)(nil)
+
+type fastReflection_QueryGetProofResponse QueryGetProofResponse
+
+func (x *QueryGetProofResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryGetProofResponse)(x)
+}
+
+func (x *QueryGetProofResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_proof_query_proto_msgTypes[7]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryGetProofResponse_messageType fastReflection_QueryGetProofResponse_messageType
+var _ protoreflect.MessageType = fastReflection_QueryGetProofResponse_messageType{}
+
+type fastReflection_QueryGetProofResponse_messageType struct{}
+
+func (x fastReflection_QueryGetProofResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryGetProofResponse)(nil)
+}
+func (x fastReflection_QueryGetProofResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryGetProofResponse)
+}
+func (x fastReflection_QueryGetProofResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryGetProofResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_QueryGetProofResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryGetProofResponse
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_QueryGetProofResponse) Type() protoreflect.MessageType {
+ return _fastReflection_QueryGetProofResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_QueryGetProofResponse) New() protoreflect.Message {
+ return new(fastReflection_QueryGetProofResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_QueryGetProofResponse) Interface() protoreflect.ProtoMessage {
+ return (*QueryGetProofResponse)(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_QueryGetProofResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Proof != nil {
+ value := protoreflect.ValueOfMessage(x.Proof.ProtoReflect())
+ if !f(fd_QueryGetProofResponse_proof, 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_QueryGetProofResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.proof.QueryGetProofResponse.proof":
+ return x.Proof != nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.QueryGetProofResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.QueryGetProofResponse 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_QueryGetProofResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.proof.QueryGetProofResponse.proof":
+ x.Proof = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.QueryGetProofResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.QueryGetProofResponse 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_QueryGetProofResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.proof.QueryGetProofResponse.proof":
+ value := x.Proof
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.QueryGetProofResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.QueryGetProofResponse 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_QueryGetProofResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.proof.QueryGetProofResponse.proof":
+ x.Proof = value.Message().Interface().(*Proof)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.QueryGetProofResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.QueryGetProofResponse 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_QueryGetProofResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.proof.QueryGetProofResponse.proof":
+ if x.Proof == nil {
+ x.Proof = new(Proof)
+ }
+ return protoreflect.ValueOfMessage(x.Proof.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.QueryGetProofResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.QueryGetProofResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_QueryGetProofResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.proof.QueryGetProofResponse.proof":
+ m := new(Proof)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.QueryGetProofResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.QueryGetProofResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_QueryGetProofResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.proof.QueryGetProofResponse", 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_QueryGetProofResponse) 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_QueryGetProofResponse) 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_QueryGetProofResponse) 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_QueryGetProofResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryGetProofResponse)
+ 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.Proof != nil {
+ l = options.Size(x.Proof)
+ 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().(*QueryGetProofResponse)
+ 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.Proof != nil {
+ encoded, err := options.Marshal(x.Proof)
+ 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().(*QueryGetProofResponse)
+ 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: QueryGetProofResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetProofResponse: 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 Proof", 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.Proof == nil {
+ x.Proof = &Proof{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Proof); 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_QueryAllProofsRequest protoreflect.MessageDescriptor
+ fd_QueryAllProofsRequest_pagination protoreflect.FieldDescriptor
+ fd_QueryAllProofsRequest_supplier_address protoreflect.FieldDescriptor
+ fd_QueryAllProofsRequest_session_id protoreflect.FieldDescriptor
+ fd_QueryAllProofsRequest_session_end_height protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_proof_query_proto_init()
+ md_QueryAllProofsRequest = File_poktroll_proof_query_proto.Messages().ByName("QueryAllProofsRequest")
+ fd_QueryAllProofsRequest_pagination = md_QueryAllProofsRequest.Fields().ByName("pagination")
+ fd_QueryAllProofsRequest_supplier_address = md_QueryAllProofsRequest.Fields().ByName("supplier_address")
+ fd_QueryAllProofsRequest_session_id = md_QueryAllProofsRequest.Fields().ByName("session_id")
+ fd_QueryAllProofsRequest_session_end_height = md_QueryAllProofsRequest.Fields().ByName("session_end_height")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryAllProofsRequest)(nil)
+
+type fastReflection_QueryAllProofsRequest QueryAllProofsRequest
+
+func (x *QueryAllProofsRequest) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryAllProofsRequest)(x)
+}
+
+func (x *QueryAllProofsRequest) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_proof_query_proto_msgTypes[8]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryAllProofsRequest_messageType fastReflection_QueryAllProofsRequest_messageType
+var _ protoreflect.MessageType = fastReflection_QueryAllProofsRequest_messageType{}
+
+type fastReflection_QueryAllProofsRequest_messageType struct{}
+
+func (x fastReflection_QueryAllProofsRequest_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryAllProofsRequest)(nil)
+}
+func (x fastReflection_QueryAllProofsRequest_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryAllProofsRequest)
+}
+func (x fastReflection_QueryAllProofsRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryAllProofsRequest
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_QueryAllProofsRequest) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryAllProofsRequest
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_QueryAllProofsRequest) Type() protoreflect.MessageType {
+ return _fastReflection_QueryAllProofsRequest_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_QueryAllProofsRequest) New() protoreflect.Message {
+ return new(fastReflection_QueryAllProofsRequest)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_QueryAllProofsRequest) Interface() protoreflect.ProtoMessage {
+ return (*QueryAllProofsRequest)(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_QueryAllProofsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Pagination != nil {
+ value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
+ if !f(fd_QueryAllProofsRequest_pagination, value) {
+ return
+ }
+ }
+ if x.Filter != nil {
+ switch o := x.Filter.(type) {
+ case *QueryAllProofsRequest_SupplierAddress:
+ v := o.SupplierAddress
+ value := protoreflect.ValueOfString(v)
+ if !f(fd_QueryAllProofsRequest_supplier_address, value) {
+ return
+ }
+ case *QueryAllProofsRequest_SessionId:
+ v := o.SessionId
+ value := protoreflect.ValueOfString(v)
+ if !f(fd_QueryAllProofsRequest_session_id, value) {
+ return
+ }
+ case *QueryAllProofsRequest_SessionEndHeight:
+ v := o.SessionEndHeight
+ value := protoreflect.ValueOfUint64(v)
+ if !f(fd_QueryAllProofsRequest_session_end_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_QueryAllProofsRequest) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.proof.QueryAllProofsRequest.pagination":
+ return x.Pagination != nil
+ case "poktroll.proof.QueryAllProofsRequest.supplier_address":
+ if x.Filter == nil {
+ return false
+ } else if _, ok := x.Filter.(*QueryAllProofsRequest_SupplierAddress); ok {
+ return true
+ } else {
+ return false
+ }
+ case "poktroll.proof.QueryAllProofsRequest.session_id":
+ if x.Filter == nil {
+ return false
+ } else if _, ok := x.Filter.(*QueryAllProofsRequest_SessionId); ok {
+ return true
+ } else {
+ return false
+ }
+ case "poktroll.proof.QueryAllProofsRequest.session_end_height":
+ if x.Filter == nil {
+ return false
+ } else if _, ok := x.Filter.(*QueryAllProofsRequest_SessionEndHeight); ok {
+ return true
+ } else {
+ return false
+ }
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.QueryAllProofsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.QueryAllProofsRequest 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_QueryAllProofsRequest) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.proof.QueryAllProofsRequest.pagination":
+ x.Pagination = nil
+ case "poktroll.proof.QueryAllProofsRequest.supplier_address":
+ x.Filter = nil
+ case "poktroll.proof.QueryAllProofsRequest.session_id":
+ x.Filter = nil
+ case "poktroll.proof.QueryAllProofsRequest.session_end_height":
+ x.Filter = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.QueryAllProofsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.QueryAllProofsRequest 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_QueryAllProofsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.proof.QueryAllProofsRequest.pagination":
+ value := x.Pagination
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ case "poktroll.proof.QueryAllProofsRequest.supplier_address":
+ if x.Filter == nil {
+ return protoreflect.ValueOfString("")
+ } else if v, ok := x.Filter.(*QueryAllProofsRequest_SupplierAddress); ok {
+ return protoreflect.ValueOfString(v.SupplierAddress)
+ } else {
+ return protoreflect.ValueOfString("")
+ }
+ case "poktroll.proof.QueryAllProofsRequest.session_id":
+ if x.Filter == nil {
+ return protoreflect.ValueOfString("")
+ } else if v, ok := x.Filter.(*QueryAllProofsRequest_SessionId); ok {
+ return protoreflect.ValueOfString(v.SessionId)
+ } else {
+ return protoreflect.ValueOfString("")
+ }
+ case "poktroll.proof.QueryAllProofsRequest.session_end_height":
+ if x.Filter == nil {
+ return protoreflect.ValueOfUint64(uint64(0))
+ } else if v, ok := x.Filter.(*QueryAllProofsRequest_SessionEndHeight); ok {
+ return protoreflect.ValueOfUint64(v.SessionEndHeight)
+ } else {
+ return protoreflect.ValueOfUint64(uint64(0))
+ }
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.QueryAllProofsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.QueryAllProofsRequest 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_QueryAllProofsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.proof.QueryAllProofsRequest.pagination":
+ x.Pagination = value.Message().Interface().(*v1beta1.PageRequest)
+ case "poktroll.proof.QueryAllProofsRequest.supplier_address":
+ cv := value.Interface().(string)
+ x.Filter = &QueryAllProofsRequest_SupplierAddress{SupplierAddress: cv}
+ case "poktroll.proof.QueryAllProofsRequest.session_id":
+ cv := value.Interface().(string)
+ x.Filter = &QueryAllProofsRequest_SessionId{SessionId: cv}
+ case "poktroll.proof.QueryAllProofsRequest.session_end_height":
+ cv := value.Uint()
+ x.Filter = &QueryAllProofsRequest_SessionEndHeight{SessionEndHeight: cv}
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.QueryAllProofsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.QueryAllProofsRequest 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_QueryAllProofsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.proof.QueryAllProofsRequest.pagination":
+ if x.Pagination == nil {
+ x.Pagination = new(v1beta1.PageRequest)
+ }
+ return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
+ case "poktroll.proof.QueryAllProofsRequest.supplier_address":
+ panic(fmt.Errorf("field supplier_address of message poktroll.proof.QueryAllProofsRequest is not mutable"))
+ case "poktroll.proof.QueryAllProofsRequest.session_id":
+ panic(fmt.Errorf("field session_id of message poktroll.proof.QueryAllProofsRequest is not mutable"))
+ case "poktroll.proof.QueryAllProofsRequest.session_end_height":
+ panic(fmt.Errorf("field session_end_height of message poktroll.proof.QueryAllProofsRequest is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.QueryAllProofsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.QueryAllProofsRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_QueryAllProofsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.proof.QueryAllProofsRequest.pagination":
+ m := new(v1beta1.PageRequest)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ case "poktroll.proof.QueryAllProofsRequest.supplier_address":
+ return protoreflect.ValueOfString("")
+ case "poktroll.proof.QueryAllProofsRequest.session_id":
+ return protoreflect.ValueOfString("")
+ case "poktroll.proof.QueryAllProofsRequest.session_end_height":
+ return protoreflect.ValueOfUint64(uint64(0))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.QueryAllProofsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.QueryAllProofsRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_QueryAllProofsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ case "poktroll.proof.QueryAllProofsRequest.filter":
+ if x.Filter == nil {
+ return nil
+ }
+ switch x.Filter.(type) {
+ case *QueryAllProofsRequest_SupplierAddress:
+ return x.Descriptor().Fields().ByName("supplier_address")
+ case *QueryAllProofsRequest_SessionId:
+ return x.Descriptor().Fields().ByName("session_id")
+ case *QueryAllProofsRequest_SessionEndHeight:
+ return x.Descriptor().Fields().ByName("session_end_height")
+ }
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.proof.QueryAllProofsRequest", 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_QueryAllProofsRequest) 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_QueryAllProofsRequest) 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_QueryAllProofsRequest) 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_QueryAllProofsRequest) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryAllProofsRequest)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.Pagination != nil {
+ l = options.Size(x.Pagination)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ switch x := x.Filter.(type) {
+ case *QueryAllProofsRequest_SupplierAddress:
+ if x == nil {
+ break
+ }
+ l = len(x.SupplierAddress)
+ n += 1 + l + runtime.Sov(uint64(l))
+ case *QueryAllProofsRequest_SessionId:
+ if x == nil {
+ break
+ }
+ l = len(x.SessionId)
+ n += 1 + l + runtime.Sov(uint64(l))
+ case *QueryAllProofsRequest_SessionEndHeight:
+ if x == nil {
+ break
+ }
+ n += 1 + runtime.Sov(uint64(x.SessionEndHeight))
+ }
+ 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().(*QueryAllProofsRequest)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ switch x := x.Filter.(type) {
+ case *QueryAllProofsRequest_SupplierAddress:
+ i -= len(x.SupplierAddress)
+ copy(dAtA[i:], x.SupplierAddress)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.SupplierAddress)))
+ i--
+ dAtA[i] = 0x12
+ case *QueryAllProofsRequest_SessionId:
+ i -= len(x.SessionId)
+ copy(dAtA[i:], x.SessionId)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.SessionId)))
+ i--
+ dAtA[i] = 0x1a
+ case *QueryAllProofsRequest_SessionEndHeight:
+ i = runtime.EncodeVarint(dAtA, i, uint64(x.SessionEndHeight))
+ i--
+ dAtA[i] = 0x20
+ }
+ if x.Pagination != nil {
+ encoded, err := options.Marshal(x.Pagination)
+ if err != nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, err
+ }
+ i -= len(encoded)
+ copy(dAtA[i:], encoded)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
+ i--
+ dAtA[i] = 0xa
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*QueryAllProofsRequest)
+ 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: QueryAllProofsRequest: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllProofsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if x.Pagination == nil {
+ x.Pagination = &v1beta1.PageRequest{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SupplierAddress", 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.Filter = &QueryAllProofsRequest_SupplierAddress{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 SessionId", 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.Filter = &QueryAllProofsRequest_SessionId{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 SessionEndHeight", wireType)
+ }
+ 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.Filter = &QueryAllProofsRequest_SessionEndHeight{v}
+ 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 = (*_QueryAllProofsResponse_1_list)(nil)
+
+type _QueryAllProofsResponse_1_list struct {
+ list *[]*Proof
+}
+
+func (x *_QueryAllProofsResponse_1_list) Len() int {
+ if x.list == nil {
+ return 0
+ }
+ return len(*x.list)
+}
+
+func (x *_QueryAllProofsResponse_1_list) Get(i int) protoreflect.Value {
+ return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
+}
+
+func (x *_QueryAllProofsResponse_1_list) Set(i int, value protoreflect.Value) {
+ valueUnwrapped := value.Message()
+ concreteValue := valueUnwrapped.Interface().(*Proof)
+ (*x.list)[i] = concreteValue
+}
+
+func (x *_QueryAllProofsResponse_1_list) Append(value protoreflect.Value) {
+ valueUnwrapped := value.Message()
+ concreteValue := valueUnwrapped.Interface().(*Proof)
+ *x.list = append(*x.list, concreteValue)
+}
+
+func (x *_QueryAllProofsResponse_1_list) AppendMutable() protoreflect.Value {
+ v := new(Proof)
+ *x.list = append(*x.list, v)
+ return protoreflect.ValueOfMessage(v.ProtoReflect())
+}
+
+func (x *_QueryAllProofsResponse_1_list) Truncate(n int) {
+ for i := n; i < len(*x.list); i++ {
+ (*x.list)[i] = nil
+ }
+ *x.list = (*x.list)[:n]
+}
+
+func (x *_QueryAllProofsResponse_1_list) NewElement() protoreflect.Value {
+ v := new(Proof)
+ return protoreflect.ValueOfMessage(v.ProtoReflect())
+}
+
+func (x *_QueryAllProofsResponse_1_list) IsValid() bool {
+ return x.list != nil
+}
+
+var (
+ md_QueryAllProofsResponse protoreflect.MessageDescriptor
+ fd_QueryAllProofsResponse_proofs protoreflect.FieldDescriptor
+ fd_QueryAllProofsResponse_pagination protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_proof_query_proto_init()
+ md_QueryAllProofsResponse = File_poktroll_proof_query_proto.Messages().ByName("QueryAllProofsResponse")
+ fd_QueryAllProofsResponse_proofs = md_QueryAllProofsResponse.Fields().ByName("proofs")
+ fd_QueryAllProofsResponse_pagination = md_QueryAllProofsResponse.Fields().ByName("pagination")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryAllProofsResponse)(nil)
+
+type fastReflection_QueryAllProofsResponse QueryAllProofsResponse
+
+func (x *QueryAllProofsResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryAllProofsResponse)(x)
+}
+
+func (x *QueryAllProofsResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_proof_query_proto_msgTypes[9]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryAllProofsResponse_messageType fastReflection_QueryAllProofsResponse_messageType
+var _ protoreflect.MessageType = fastReflection_QueryAllProofsResponse_messageType{}
+
+type fastReflection_QueryAllProofsResponse_messageType struct{}
+
+func (x fastReflection_QueryAllProofsResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryAllProofsResponse)(nil)
+}
+func (x fastReflection_QueryAllProofsResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryAllProofsResponse)
+}
+func (x fastReflection_QueryAllProofsResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryAllProofsResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_QueryAllProofsResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryAllProofsResponse
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_QueryAllProofsResponse) Type() protoreflect.MessageType {
+ return _fastReflection_QueryAllProofsResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_QueryAllProofsResponse) New() protoreflect.Message {
+ return new(fastReflection_QueryAllProofsResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_QueryAllProofsResponse) Interface() protoreflect.ProtoMessage {
+ return (*QueryAllProofsResponse)(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_QueryAllProofsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if len(x.Proofs) != 0 {
+ value := protoreflect.ValueOfList(&_QueryAllProofsResponse_1_list{list: &x.Proofs})
+ if !f(fd_QueryAllProofsResponse_proofs, value) {
+ return
+ }
+ }
+ if x.Pagination != nil {
+ value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
+ if !f(fd_QueryAllProofsResponse_pagination, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_QueryAllProofsResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.proof.QueryAllProofsResponse.proofs":
+ return len(x.Proofs) != 0
+ case "poktroll.proof.QueryAllProofsResponse.pagination":
+ return x.Pagination != nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.QueryAllProofsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.QueryAllProofsResponse 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_QueryAllProofsResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.proof.QueryAllProofsResponse.proofs":
+ x.Proofs = nil
+ case "poktroll.proof.QueryAllProofsResponse.pagination":
+ x.Pagination = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.QueryAllProofsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.QueryAllProofsResponse 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_QueryAllProofsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.proof.QueryAllProofsResponse.proofs":
+ if len(x.Proofs) == 0 {
+ return protoreflect.ValueOfList(&_QueryAllProofsResponse_1_list{})
+ }
+ listValue := &_QueryAllProofsResponse_1_list{list: &x.Proofs}
+ return protoreflect.ValueOfList(listValue)
+ case "poktroll.proof.QueryAllProofsResponse.pagination":
+ value := x.Pagination
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.QueryAllProofsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.QueryAllProofsResponse 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_QueryAllProofsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.proof.QueryAllProofsResponse.proofs":
+ lv := value.List()
+ clv := lv.(*_QueryAllProofsResponse_1_list)
+ x.Proofs = *clv.list
+ case "poktroll.proof.QueryAllProofsResponse.pagination":
+ x.Pagination = value.Message().Interface().(*v1beta1.PageResponse)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.QueryAllProofsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.QueryAllProofsResponse 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_QueryAllProofsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.proof.QueryAllProofsResponse.proofs":
+ if x.Proofs == nil {
+ x.Proofs = []*Proof{}
+ }
+ value := &_QueryAllProofsResponse_1_list{list: &x.Proofs}
+ return protoreflect.ValueOfList(value)
+ case "poktroll.proof.QueryAllProofsResponse.pagination":
+ if x.Pagination == nil {
+ x.Pagination = new(v1beta1.PageResponse)
+ }
+ return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.QueryAllProofsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.QueryAllProofsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_QueryAllProofsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.proof.QueryAllProofsResponse.proofs":
+ list := []*Proof{}
+ return protoreflect.ValueOfList(&_QueryAllProofsResponse_1_list{list: &list})
+ case "poktroll.proof.QueryAllProofsResponse.pagination":
+ m := new(v1beta1.PageResponse)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.QueryAllProofsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.QueryAllProofsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_QueryAllProofsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.proof.QueryAllProofsResponse", 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_QueryAllProofsResponse) 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_QueryAllProofsResponse) 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_QueryAllProofsResponse) 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_QueryAllProofsResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryAllProofsResponse)
+ 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.Proofs) > 0 {
+ for _, e := range x.Proofs {
+ l = options.Size(e)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ }
+ if x.Pagination != nil {
+ l = options.Size(x.Pagination)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*QueryAllProofsResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if x.Pagination != nil {
+ encoded, err := options.Marshal(x.Pagination)
+ if err != nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, err
+ }
+ i -= len(encoded)
+ copy(dAtA[i:], encoded)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if len(x.Proofs) > 0 {
+ for iNdEx := len(x.Proofs) - 1; iNdEx >= 0; iNdEx-- {
+ encoded, err := options.Marshal(x.Proofs[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().(*QueryAllProofsResponse)
+ 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: QueryAllProofsResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllProofsResponse: 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 Proofs", 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.Proofs = append(x.Proofs, &Proof{})
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Proofs[len(x.Proofs)-1]); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if x.Pagination == nil {
+ x.Pagination = &v1beta1.PageResponse{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.27.0
+// protoc (unknown)
+// source: poktroll/proof/query.proto
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+// QueryParamsRequest is request type for the Query/Params RPC method.
+type QueryParamsRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+}
+
+func (x *QueryParamsRequest) Reset() {
+ *x = QueryParamsRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_proof_query_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryParamsRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryParamsRequest) ProtoMessage() {}
+
+// Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead.
+func (*QueryParamsRequest) Descriptor() ([]byte, []int) {
+ return file_poktroll_proof_query_proto_rawDescGZIP(), []int{0}
+}
+
+// QueryParamsResponse is response type for the Query/Params RPC method.
+type QueryParamsResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // params holds all the parameters of this module.
+ Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
+}
+
+func (x *QueryParamsResponse) Reset() {
+ *x = QueryParamsResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_proof_query_proto_msgTypes[1]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryParamsResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryParamsResponse) ProtoMessage() {}
+
+// Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead.
+func (*QueryParamsResponse) Descriptor() ([]byte, []int) {
+ return file_poktroll_proof_query_proto_rawDescGZIP(), []int{1}
+}
+
+func (x *QueryParamsResponse) GetParams() *Params {
+ if x != nil {
+ return x.Params
+ }
+ return nil
+}
+
+type QueryGetClaimRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
+ SupplierAddress string `protobuf:"bytes,2,opt,name=supplier_address,json=supplierAddress,proto3" json:"supplier_address,omitempty"`
+}
+
+func (x *QueryGetClaimRequest) Reset() {
+ *x = QueryGetClaimRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_proof_query_proto_msgTypes[2]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryGetClaimRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryGetClaimRequest) ProtoMessage() {}
+
+// Deprecated: Use QueryGetClaimRequest.ProtoReflect.Descriptor instead.
+func (*QueryGetClaimRequest) Descriptor() ([]byte, []int) {
+ return file_poktroll_proof_query_proto_rawDescGZIP(), []int{2}
+}
+
+func (x *QueryGetClaimRequest) GetSessionId() string {
+ if x != nil {
+ return x.SessionId
+ }
+ return ""
+}
+
+func (x *QueryGetClaimRequest) GetSupplierAddress() string {
+ if x != nil {
+ return x.SupplierAddress
+ }
+ return ""
+}
+
+type QueryGetClaimResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Claim *Claim `protobuf:"bytes,1,opt,name=claim,proto3" json:"claim,omitempty"`
+}
+
+func (x *QueryGetClaimResponse) Reset() {
+ *x = QueryGetClaimResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_proof_query_proto_msgTypes[3]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryGetClaimResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryGetClaimResponse) ProtoMessage() {}
+
+// Deprecated: Use QueryGetClaimResponse.ProtoReflect.Descriptor instead.
+func (*QueryGetClaimResponse) Descriptor() ([]byte, []int) {
+ return file_poktroll_proof_query_proto_rawDescGZIP(), []int{3}
+}
+
+func (x *QueryGetClaimResponse) GetClaim() *Claim {
+ if x != nil {
+ return x.Claim
+ }
+ return nil
+}
+
+type QueryAllClaimsRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
+ // Types that are assignable to Filter:
+ //
+ // *QueryAllClaimsRequest_SupplierAddress
+ // *QueryAllClaimsRequest_SessionId
+ // *QueryAllClaimsRequest_SessionEndHeight
+ Filter isQueryAllClaimsRequest_Filter `protobuf_oneof:"filter"`
+}
+
+func (x *QueryAllClaimsRequest) Reset() {
+ *x = QueryAllClaimsRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_proof_query_proto_msgTypes[4]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryAllClaimsRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryAllClaimsRequest) ProtoMessage() {}
+
+// Deprecated: Use QueryAllClaimsRequest.ProtoReflect.Descriptor instead.
+func (*QueryAllClaimsRequest) Descriptor() ([]byte, []int) {
+ return file_poktroll_proof_query_proto_rawDescGZIP(), []int{4}
+}
+
+func (x *QueryAllClaimsRequest) GetPagination() *v1beta1.PageRequest {
+ if x != nil {
+ return x.Pagination
+ }
+ return nil
+}
+
+func (x *QueryAllClaimsRequest) GetFilter() isQueryAllClaimsRequest_Filter {
+ if x != nil {
+ return x.Filter
+ }
+ return nil
+}
+
+func (x *QueryAllClaimsRequest) GetSupplierAddress() string {
+ if x, ok := x.GetFilter().(*QueryAllClaimsRequest_SupplierAddress); ok {
+ return x.SupplierAddress
+ }
+ return ""
+}
+
+func (x *QueryAllClaimsRequest) GetSessionId() string {
+ if x, ok := x.GetFilter().(*QueryAllClaimsRequest_SessionId); ok {
+ return x.SessionId
+ }
+ return ""
+}
+
+func (x *QueryAllClaimsRequest) GetSessionEndHeight() uint64 {
+ if x, ok := x.GetFilter().(*QueryAllClaimsRequest_SessionEndHeight); ok {
+ return x.SessionEndHeight
+ }
+ return 0
+}
+
+type isQueryAllClaimsRequest_Filter interface {
+ isQueryAllClaimsRequest_Filter()
+}
+
+type QueryAllClaimsRequest_SupplierAddress struct {
+ SupplierAddress string `protobuf:"bytes,2,opt,name=supplier_address,json=supplierAddress,proto3,oneof"`
+}
+
+type QueryAllClaimsRequest_SessionId struct {
+ SessionId string `protobuf:"bytes,3,opt,name=session_id,json=sessionId,proto3,oneof"`
+}
+
+type QueryAllClaimsRequest_SessionEndHeight struct {
+ SessionEndHeight uint64 `protobuf:"varint,4,opt,name=session_end_height,json=sessionEndHeight,proto3,oneof"`
+}
+
+func (*QueryAllClaimsRequest_SupplierAddress) isQueryAllClaimsRequest_Filter() {}
+
+func (*QueryAllClaimsRequest_SessionId) isQueryAllClaimsRequest_Filter() {}
+
+func (*QueryAllClaimsRequest_SessionEndHeight) isQueryAllClaimsRequest_Filter() {}
+
+type QueryAllClaimsResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Claims []*Claim `protobuf:"bytes,1,rep,name=claims,proto3" json:"claims,omitempty"`
+ Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
+}
+
+func (x *QueryAllClaimsResponse) Reset() {
+ *x = QueryAllClaimsResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_proof_query_proto_msgTypes[5]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryAllClaimsResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryAllClaimsResponse) ProtoMessage() {}
+
+// Deprecated: Use QueryAllClaimsResponse.ProtoReflect.Descriptor instead.
+func (*QueryAllClaimsResponse) Descriptor() ([]byte, []int) {
+ return file_poktroll_proof_query_proto_rawDescGZIP(), []int{5}
+}
+
+func (x *QueryAllClaimsResponse) GetClaims() []*Claim {
+ if x != nil {
+ return x.Claims
+ }
+ return nil
+}
+
+func (x *QueryAllClaimsResponse) GetPagination() *v1beta1.PageResponse {
+ if x != nil {
+ return x.Pagination
+ }
+ return nil
+}
+
+type QueryGetProofRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
+ SupplierAddress string `protobuf:"bytes,2,opt,name=supplier_address,json=supplierAddress,proto3" json:"supplier_address,omitempty"`
+}
+
+func (x *QueryGetProofRequest) Reset() {
+ *x = QueryGetProofRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_proof_query_proto_msgTypes[6]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryGetProofRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryGetProofRequest) ProtoMessage() {}
+
+// Deprecated: Use QueryGetProofRequest.ProtoReflect.Descriptor instead.
+func (*QueryGetProofRequest) Descriptor() ([]byte, []int) {
+ return file_poktroll_proof_query_proto_rawDescGZIP(), []int{6}
+}
+
+func (x *QueryGetProofRequest) GetSessionId() string {
+ if x != nil {
+ return x.SessionId
+ }
+ return ""
+}
+
+func (x *QueryGetProofRequest) GetSupplierAddress() string {
+ if x != nil {
+ return x.SupplierAddress
+ }
+ return ""
+}
+
+type QueryGetProofResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Proof *Proof `protobuf:"bytes,1,opt,name=proof,proto3" json:"proof,omitempty"`
+}
+
+func (x *QueryGetProofResponse) Reset() {
+ *x = QueryGetProofResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_proof_query_proto_msgTypes[7]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryGetProofResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryGetProofResponse) ProtoMessage() {}
+
+// Deprecated: Use QueryGetProofResponse.ProtoReflect.Descriptor instead.
+func (*QueryGetProofResponse) Descriptor() ([]byte, []int) {
+ return file_poktroll_proof_query_proto_rawDescGZIP(), []int{7}
+}
+
+func (x *QueryGetProofResponse) GetProof() *Proof {
+ if x != nil {
+ return x.Proof
+ }
+ return nil
+}
+
+type QueryAllProofsRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
+ // Types that are assignable to Filter:
+ //
+ // *QueryAllProofsRequest_SupplierAddress
+ // *QueryAllProofsRequest_SessionId
+ // *QueryAllProofsRequest_SessionEndHeight
+ Filter isQueryAllProofsRequest_Filter `protobuf_oneof:"filter"`
+}
+
+func (x *QueryAllProofsRequest) Reset() {
+ *x = QueryAllProofsRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_proof_query_proto_msgTypes[8]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryAllProofsRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryAllProofsRequest) ProtoMessage() {}
+
+// Deprecated: Use QueryAllProofsRequest.ProtoReflect.Descriptor instead.
+func (*QueryAllProofsRequest) Descriptor() ([]byte, []int) {
+ return file_poktroll_proof_query_proto_rawDescGZIP(), []int{8}
+}
+
+func (x *QueryAllProofsRequest) GetPagination() *v1beta1.PageRequest {
+ if x != nil {
+ return x.Pagination
+ }
+ return nil
+}
+
+func (x *QueryAllProofsRequest) GetFilter() isQueryAllProofsRequest_Filter {
+ if x != nil {
+ return x.Filter
+ }
+ return nil
+}
+
+func (x *QueryAllProofsRequest) GetSupplierAddress() string {
+ if x, ok := x.GetFilter().(*QueryAllProofsRequest_SupplierAddress); ok {
+ return x.SupplierAddress
+ }
+ return ""
+}
+
+func (x *QueryAllProofsRequest) GetSessionId() string {
+ if x, ok := x.GetFilter().(*QueryAllProofsRequest_SessionId); ok {
+ return x.SessionId
+ }
+ return ""
+}
+
+func (x *QueryAllProofsRequest) GetSessionEndHeight() uint64 {
+ if x, ok := x.GetFilter().(*QueryAllProofsRequest_SessionEndHeight); ok {
+ return x.SessionEndHeight
+ }
+ return 0
+}
+
+type isQueryAllProofsRequest_Filter interface {
+ isQueryAllProofsRequest_Filter()
+}
+
+type QueryAllProofsRequest_SupplierAddress struct {
+ SupplierAddress string `protobuf:"bytes,2,opt,name=supplier_address,json=supplierAddress,proto3,oneof"`
+}
+
+type QueryAllProofsRequest_SessionId struct {
+ SessionId string `protobuf:"bytes,3,opt,name=session_id,json=sessionId,proto3,oneof"`
+}
+
+type QueryAllProofsRequest_SessionEndHeight struct {
+ SessionEndHeight uint64 `protobuf:"varint,4,opt,name=session_end_height,json=sessionEndHeight,proto3,oneof"`
+}
+
+func (*QueryAllProofsRequest_SupplierAddress) isQueryAllProofsRequest_Filter() {}
+
+func (*QueryAllProofsRequest_SessionId) isQueryAllProofsRequest_Filter() {}
+
+func (*QueryAllProofsRequest_SessionEndHeight) isQueryAllProofsRequest_Filter() {}
+
+type QueryAllProofsResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Proofs []*Proof `protobuf:"bytes,1,rep,name=proofs,proto3" json:"proofs,omitempty"`
+ Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
+}
+
+func (x *QueryAllProofsResponse) Reset() {
+ *x = QueryAllProofsResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_proof_query_proto_msgTypes[9]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryAllProofsResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryAllProofsResponse) ProtoMessage() {}
+
+// Deprecated: Use QueryAllProofsResponse.ProtoReflect.Descriptor instead.
+func (*QueryAllProofsResponse) Descriptor() ([]byte, []int) {
+ return file_poktroll_proof_query_proto_rawDescGZIP(), []int{9}
+}
+
+func (x *QueryAllProofsResponse) GetProofs() []*Proof {
+ if x != nil {
+ return x.Proofs
+ }
+ return nil
+}
+
+func (x *QueryAllProofsResponse) GetPagination() *v1beta1.PageResponse {
+ if x != nil {
+ return x.Pagination
+ }
+ return nil
+}
+
+var File_poktroll_proof_query_proto protoreflect.FileDescriptor
+
+var file_poktroll_proof_query_proto_rawDesc = []byte{
+ 0x0a, 0x1a, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x6f, 0x66,
+ 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x70, 0x6f,
+ 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x6f, 0x66, 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, 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, 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, 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, 0x1b, 0x70, 0x6f, 0x6b, 0x74,
+ 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d,
+ 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c,
+ 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x2f, 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x2e, 0x70, 0x72,
+ 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x70, 0x72,
+ 0x6f, 0x6f, 0x66, 0x2f, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,
+ 0x14, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65,
+ 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x50, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61,
+ 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x06,
+ 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x70,
+ 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x6f, 0x66, 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, 0x7a, 0x0a, 0x14, 0x51, 0x75, 0x65, 0x72, 0x79,
+ 0x47, 0x65, 0x74, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
+ 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20,
+ 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x43,
+ 0x0a, 0x10, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65,
+ 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f,
+ 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69,
+ 0x6e, 0x67, 0x52, 0x0f, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72,
+ 0x65, 0x73, 0x73, 0x22, 0x4a, 0x0a, 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x43,
+ 0x6c, 0x61, 0x69, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x31, 0x0a, 0x05,
+ 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70, 0x6f,
+ 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x2e, 0x43, 0x6c, 0x61,
+ 0x69, 0x6d, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x05, 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x22,
+ 0xe7, 0x01, 0x0a, 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x43, 0x6c, 0x61, 0x69,
+ 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67,
+ 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e,
+ 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72,
+ 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65,
+ 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f,
+ 0x6e, 0x12, 0x2b, 0x0a, 0x10, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x5f, 0x61, 0x64,
+ 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0f, 0x73,
+ 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1f,
+ 0x0a, 0x0a, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01,
+ 0x28, 0x09, 0x48, 0x00, 0x52, 0x09, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12,
+ 0x2e, 0x0a, 0x12, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x65, 0x6e, 0x64, 0x5f, 0x68,
+ 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x48, 0x00, 0x52, 0x10, 0x73,
+ 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x64, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x42,
+ 0x08, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x22, 0x96, 0x01, 0x0a, 0x16, 0x51, 0x75,
+ 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70,
+ 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x33, 0x0a, 0x06, 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x73, 0x18, 0x01,
+ 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e,
+ 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x2e, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x42, 0x04, 0xc8, 0xde, 0x1f,
+ 0x00, 0x52, 0x06, 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67,
+ 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e,
+ 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72,
+ 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65,
+ 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69,
+ 0x6f, 0x6e, 0x22, 0x7a, 0x0a, 0x14, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x50, 0x72,
+ 0x6f, 0x6f, 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65,
+ 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09,
+ 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x43, 0x0a, 0x10, 0x73, 0x75, 0x70,
+ 0x70, 0x6c, 0x69, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20,
+ 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e,
+ 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x0f, 0x73,
+ 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x4a,
+ 0x0a, 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x52,
+ 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x31, 0x0a, 0x05, 0x70, 0x72, 0x6f, 0x6f, 0x66,
+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c,
+ 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x2e, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x42, 0x04, 0xc8,
+ 0xde, 0x1f, 0x00, 0x52, 0x05, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x22, 0xe7, 0x01, 0x0a, 0x15, 0x51,
+ 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x73, 0x52, 0x65, 0x71,
+ 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69,
+ 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f,
+ 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62,
+ 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
+ 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2b, 0x0a, 0x10,
+ 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73,
+ 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0f, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69,
+ 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1f, 0x0a, 0x0a, 0x73, 0x65, 0x73,
+ 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52,
+ 0x09, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x2e, 0x0a, 0x12, 0x73, 0x65,
+ 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x65, 0x6e, 0x64, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74,
+ 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x48, 0x00, 0x52, 0x10, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f,
+ 0x6e, 0x45, 0x6e, 0x64, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x42, 0x08, 0x0a, 0x06, 0x66, 0x69,
+ 0x6c, 0x74, 0x65, 0x72, 0x22, 0x96, 0x01, 0x0a, 0x16, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c,
+ 0x6c, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
+ 0x33, 0x0a, 0x06, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
+ 0x15, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x6f, 0x66,
+ 0x2e, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x70, 0x72,
+ 0x6f, 0x6f, 0x66, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69,
+ 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f,
+ 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62,
+ 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
+ 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x32, 0xdf, 0x05,
+ 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x7e, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d,
+ 0x73, 0x12, 0x22, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x70, 0x72, 0x6f,
+ 0x6f, 0x66, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65,
+ 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c,
+ 0x2e, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61,
+ 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2b, 0x82, 0xd3, 0xe4, 0x93,
+ 0x02, 0x25, 0x12, 0x23, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72,
+ 0x6b, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x6f, 0x66,
+ 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0xa0, 0x01, 0x0a, 0x05, 0x43, 0x6c, 0x61, 0x69,
+ 0x6d, 0x12, 0x24, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x70, 0x72, 0x6f,
+ 0x6f, 0x66, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x61, 0x69, 0x6d,
+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f,
+ 0x6c, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65,
+ 0x74, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4a,
+ 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x44, 0x12, 0x42, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x2d, 0x6e, 0x65,
+ 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x70,
+ 0x72, 0x6f, 0x6f, 0x66, 0x2f, 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x2f, 0x7b, 0x73, 0x65, 0x73, 0x73,
+ 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x7b, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65,
+ 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x12, 0x86, 0x01, 0x0a, 0x09, 0x41,
+ 0x6c, 0x6c, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x73, 0x12, 0x25, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72,
+ 0x6f, 0x6c, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41,
+ 0x6c, 0x6c, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
+ 0x26, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x6f, 0x66,
+ 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x73, 0x52,
+ 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x12,
+ 0x22, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x70,
+ 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x2f, 0x63, 0x6c,
+ 0x61, 0x69, 0x6d, 0x12, 0xa0, 0x01, 0x0a, 0x05, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x12, 0x24, 0x2e,
+ 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x2e, 0x51,
+ 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x52, 0x65, 0x71, 0x75,
+ 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x70,
+ 0x72, 0x6f, 0x6f, 0x66, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f,
+ 0x6f, 0x66, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4a, 0x82, 0xd3, 0xe4, 0x93,
+ 0x02, 0x44, 0x12, 0x42, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72,
+ 0x6b, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x6f, 0x66,
+ 0x2f, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x2f, 0x7b, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f,
+ 0x69, 0x64, 0x7d, 0x2f, 0x7b, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x5f, 0x61, 0x64,
+ 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x12, 0x86, 0x01, 0x0a, 0x09, 0x41, 0x6c, 0x6c, 0x50, 0x72,
+ 0x6f, 0x6f, 0x66, 0x73, 0x12, 0x25, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e,
+ 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x50, 0x72,
+ 0x6f, 0x6f, 0x66, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x70, 0x6f,
+ 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x2e, 0x51, 0x75, 0x65,
+ 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
+ 0x6e, 0x73, 0x65, 0x22, 0x2a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x12, 0x22, 0x2f, 0x70, 0x6f,
+ 0x6b, 0x74, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72,
+ 0x6f, 0x6c, 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x2f, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x42,
+ 0x9a, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c,
+ 0x2e, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f,
+ 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x1f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e,
+ 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f,
+ 0x70, 0x72, 0x6f, 0x6f, 0x66, 0xa2, 0x02, 0x03, 0x50, 0x50, 0x58, 0xaa, 0x02, 0x0e, 0x50, 0x6f,
+ 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0xca, 0x02, 0x0e, 0x50,
+ 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0xe2, 0x02, 0x1a,
+ 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x5c, 0x47,
+ 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x50, 0x6f, 0x6b,
+ 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x3a, 0x3a, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x62, 0x06, 0x70, 0x72,
+ 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_poktroll_proof_query_proto_rawDescOnce sync.Once
+ file_poktroll_proof_query_proto_rawDescData = file_poktroll_proof_query_proto_rawDesc
+)
+
+func file_poktroll_proof_query_proto_rawDescGZIP() []byte {
+ file_poktroll_proof_query_proto_rawDescOnce.Do(func() {
+ file_poktroll_proof_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_poktroll_proof_query_proto_rawDescData)
+ })
+ return file_poktroll_proof_query_proto_rawDescData
+}
+
+var file_poktroll_proof_query_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
+var file_poktroll_proof_query_proto_goTypes = []interface{}{
+ (*QueryParamsRequest)(nil), // 0: poktroll.proof.QueryParamsRequest
+ (*QueryParamsResponse)(nil), // 1: poktroll.proof.QueryParamsResponse
+ (*QueryGetClaimRequest)(nil), // 2: poktroll.proof.QueryGetClaimRequest
+ (*QueryGetClaimResponse)(nil), // 3: poktroll.proof.QueryGetClaimResponse
+ (*QueryAllClaimsRequest)(nil), // 4: poktroll.proof.QueryAllClaimsRequest
+ (*QueryAllClaimsResponse)(nil), // 5: poktroll.proof.QueryAllClaimsResponse
+ (*QueryGetProofRequest)(nil), // 6: poktroll.proof.QueryGetProofRequest
+ (*QueryGetProofResponse)(nil), // 7: poktroll.proof.QueryGetProofResponse
+ (*QueryAllProofsRequest)(nil), // 8: poktroll.proof.QueryAllProofsRequest
+ (*QueryAllProofsResponse)(nil), // 9: poktroll.proof.QueryAllProofsResponse
+ (*Params)(nil), // 10: poktroll.proof.Params
+ (*Claim)(nil), // 11: poktroll.proof.Claim
+ (*v1beta1.PageRequest)(nil), // 12: cosmos.base.query.v1beta1.PageRequest
+ (*v1beta1.PageResponse)(nil), // 13: cosmos.base.query.v1beta1.PageResponse
+ (*Proof)(nil), // 14: poktroll.proof.Proof
+}
+var file_poktroll_proof_query_proto_depIdxs = []int32{
+ 10, // 0: poktroll.proof.QueryParamsResponse.params:type_name -> poktroll.proof.Params
+ 11, // 1: poktroll.proof.QueryGetClaimResponse.claim:type_name -> poktroll.proof.Claim
+ 12, // 2: poktroll.proof.QueryAllClaimsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest
+ 11, // 3: poktroll.proof.QueryAllClaimsResponse.claims:type_name -> poktroll.proof.Claim
+ 13, // 4: poktroll.proof.QueryAllClaimsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse
+ 14, // 5: poktroll.proof.QueryGetProofResponse.proof:type_name -> poktroll.proof.Proof
+ 12, // 6: poktroll.proof.QueryAllProofsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest
+ 14, // 7: poktroll.proof.QueryAllProofsResponse.proofs:type_name -> poktroll.proof.Proof
+ 13, // 8: poktroll.proof.QueryAllProofsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse
+ 0, // 9: poktroll.proof.Query.Params:input_type -> poktroll.proof.QueryParamsRequest
+ 2, // 10: poktroll.proof.Query.Claim:input_type -> poktroll.proof.QueryGetClaimRequest
+ 4, // 11: poktroll.proof.Query.AllClaims:input_type -> poktroll.proof.QueryAllClaimsRequest
+ 6, // 12: poktroll.proof.Query.Proof:input_type -> poktroll.proof.QueryGetProofRequest
+ 8, // 13: poktroll.proof.Query.AllProofs:input_type -> poktroll.proof.QueryAllProofsRequest
+ 1, // 14: poktroll.proof.Query.Params:output_type -> poktroll.proof.QueryParamsResponse
+ 3, // 15: poktroll.proof.Query.Claim:output_type -> poktroll.proof.QueryGetClaimResponse
+ 5, // 16: poktroll.proof.Query.AllClaims:output_type -> poktroll.proof.QueryAllClaimsResponse
+ 7, // 17: poktroll.proof.Query.Proof:output_type -> poktroll.proof.QueryGetProofResponse
+ 9, // 18: poktroll.proof.Query.AllProofs:output_type -> poktroll.proof.QueryAllProofsResponse
+ 14, // [14:19] is the sub-list for method output_type
+ 9, // [9:14] is the sub-list for method input_type
+ 9, // [9:9] is the sub-list for extension type_name
+ 9, // [9:9] is the sub-list for extension extendee
+ 0, // [0:9] is the sub-list for field type_name
+}
+
+func init() { file_poktroll_proof_query_proto_init() }
+func file_poktroll_proof_query_proto_init() {
+ if File_poktroll_proof_query_proto != nil {
+ return
+ }
+ file_poktroll_proof_params_proto_init()
+ file_poktroll_proof_claim_proto_init()
+ file_poktroll_proof_proof_proto_init()
+ if !protoimpl.UnsafeEnabled {
+ file_poktroll_proof_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryParamsRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_proof_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryParamsResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_proof_query_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryGetClaimRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_proof_query_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryGetClaimResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_proof_query_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryAllClaimsRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_proof_query_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryAllClaimsResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_proof_query_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryGetProofRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_proof_query_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryGetProofResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_proof_query_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryAllProofsRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_proof_query_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryAllProofsResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ file_poktroll_proof_query_proto_msgTypes[4].OneofWrappers = []interface{}{
+ (*QueryAllClaimsRequest_SupplierAddress)(nil),
+ (*QueryAllClaimsRequest_SessionId)(nil),
+ (*QueryAllClaimsRequest_SessionEndHeight)(nil),
+ }
+ file_poktroll_proof_query_proto_msgTypes[8].OneofWrappers = []interface{}{
+ (*QueryAllProofsRequest_SupplierAddress)(nil),
+ (*QueryAllProofsRequest_SessionId)(nil),
+ (*QueryAllProofsRequest_SessionEndHeight)(nil),
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_poktroll_proof_query_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 10,
+ NumExtensions: 0,
+ NumServices: 1,
+ },
+ GoTypes: file_poktroll_proof_query_proto_goTypes,
+ DependencyIndexes: file_poktroll_proof_query_proto_depIdxs,
+ MessageInfos: file_poktroll_proof_query_proto_msgTypes,
+ }.Build()
+ File_poktroll_proof_query_proto = out.File
+ file_poktroll_proof_query_proto_rawDesc = nil
+ file_poktroll_proof_query_proto_goTypes = nil
+ file_poktroll_proof_query_proto_depIdxs = nil
+}
diff --git a/api/poktroll/proof/tx.pulsar.go b/api/poktroll/proof/tx.pulsar.go
new file mode 100644
index 000000000..b204eb808
--- /dev/null
+++ b/api/poktroll/proof/tx.pulsar.go
@@ -0,0 +1,3190 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package proof
+
+import (
+ _ "cosmossdk.io/api/amino"
+ _ "cosmossdk.io/api/cosmos/msg/v1"
+ fmt "fmt"
+ _ "github.com/cosmos/cosmos-proto"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ _ "github.com/cosmos/gogoproto/gogoproto"
+ session "github.com/pokt-network/poktroll/api/poktroll/session"
+ _ "github.com/pokt-network/poktroll/api/poktroll/shared"
+ 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_MsgUpdateParams protoreflect.MessageDescriptor
+ fd_MsgUpdateParams_authority protoreflect.FieldDescriptor
+ fd_MsgUpdateParams_params protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_proof_tx_proto_init()
+ md_MsgUpdateParams = File_poktroll_proof_tx_proto.Messages().ByName("MsgUpdateParams")
+ fd_MsgUpdateParams_authority = md_MsgUpdateParams.Fields().ByName("authority")
+ 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_poktroll_proof_tx_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_MsgUpdateParams_messageType fastReflection_MsgUpdateParams_messageType
+var _ protoreflect.MessageType = fastReflection_MsgUpdateParams_messageType{}
+
+type fastReflection_MsgUpdateParams_messageType struct{}
+
+func (x fastReflection_MsgUpdateParams_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_MsgUpdateParams)(nil)
+}
+func (x fastReflection_MsgUpdateParams_messageType) New() protoreflect.Message {
+ return new(fastReflection_MsgUpdateParams)
+}
+func (x fastReflection_MsgUpdateParams_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgUpdateParams
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_MsgUpdateParams) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgUpdateParams
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_MsgUpdateParams) Type() protoreflect.MessageType {
+ return _fastReflection_MsgUpdateParams_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_MsgUpdateParams) New() protoreflect.Message {
+ return new(fastReflection_MsgUpdateParams)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_MsgUpdateParams) Interface() protoreflect.ProtoMessage {
+ return (*MsgUpdateParams)(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_MsgUpdateParams) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Authority != "" {
+ value := protoreflect.ValueOfString(x.Authority)
+ if !f(fd_MsgUpdateParams_authority, value) {
+ return
+ }
+ }
+ if x.Params != nil {
+ value := protoreflect.ValueOfMessage(x.Params.ProtoReflect())
+ if !f(fd_MsgUpdateParams_params, 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_MsgUpdateParams) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.proof.MsgUpdateParams.authority":
+ return x.Authority != ""
+ case "poktroll.proof.MsgUpdateParams.params":
+ return x.Params != nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.MsgUpdateParams"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.MsgUpdateParams 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_MsgUpdateParams) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.proof.MsgUpdateParams.authority":
+ x.Authority = ""
+ case "poktroll.proof.MsgUpdateParams.params":
+ x.Params = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.MsgUpdateParams"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.MsgUpdateParams 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_MsgUpdateParams) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.proof.MsgUpdateParams.authority":
+ value := x.Authority
+ return protoreflect.ValueOfString(value)
+ case "poktroll.proof.MsgUpdateParams.params":
+ value := x.Params
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.MsgUpdateParams"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.MsgUpdateParams 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_MsgUpdateParams) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.proof.MsgUpdateParams.authority":
+ x.Authority = value.Interface().(string)
+ case "poktroll.proof.MsgUpdateParams.params":
+ x.Params = value.Message().Interface().(*Params)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.MsgUpdateParams"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.MsgUpdateParams 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_MsgUpdateParams) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.proof.MsgUpdateParams.params":
+ if x.Params == nil {
+ x.Params = new(Params)
+ }
+ return protoreflect.ValueOfMessage(x.Params.ProtoReflect())
+ case "poktroll.proof.MsgUpdateParams.authority":
+ panic(fmt.Errorf("field authority of message poktroll.proof.MsgUpdateParams is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.MsgUpdateParams"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.MsgUpdateParams does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// 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 "poktroll.proof.MsgUpdateParams.authority":
+ return protoreflect.ValueOfString("")
+ case "poktroll.proof.MsgUpdateParams.params":
+ m := new(Params)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.MsgUpdateParams"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.MsgUpdateParams does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_MsgUpdateParams) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.proof.MsgUpdateParams", 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_MsgUpdateParams) 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_MsgUpdateParams) 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_MsgUpdateParams) 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_MsgUpdateParams) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*MsgUpdateParams)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Authority)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.Params != nil {
+ l = options.Size(x.Params)
+ 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().(*MsgUpdateParams)
+ 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.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] = 0x12
+ }
+ if len(x.Authority) > 0 {
+ i -= len(x.Authority)
+ copy(dAtA[i:], x.Authority)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority)))
+ i--
+ dAtA[i] = 0xa
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*MsgUpdateParams)
+ 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: MsgUpdateParams: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParams: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Authority = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field 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
+ 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_MsgUpdateParamsResponse protoreflect.MessageDescriptor
+)
+
+func init() {
+ file_poktroll_proof_tx_proto_init()
+ md_MsgUpdateParamsResponse = File_poktroll_proof_tx_proto.Messages().ByName("MsgUpdateParamsResponse")
+}
+
+var _ protoreflect.Message = (*fastReflection_MsgUpdateParamsResponse)(nil)
+
+type fastReflection_MsgUpdateParamsResponse MsgUpdateParamsResponse
+
+func (x *MsgUpdateParamsResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_MsgUpdateParamsResponse)(x)
+}
+
+func (x *MsgUpdateParamsResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_proof_tx_proto_msgTypes[1]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_MsgUpdateParamsResponse_messageType fastReflection_MsgUpdateParamsResponse_messageType
+var _ protoreflect.MessageType = fastReflection_MsgUpdateParamsResponse_messageType{}
+
+type fastReflection_MsgUpdateParamsResponse_messageType struct{}
+
+func (x fastReflection_MsgUpdateParamsResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_MsgUpdateParamsResponse)(nil)
+}
+func (x fastReflection_MsgUpdateParamsResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_MsgUpdateParamsResponse)
+}
+func (x fastReflection_MsgUpdateParamsResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgUpdateParamsResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_MsgUpdateParamsResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgUpdateParamsResponse
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_MsgUpdateParamsResponse) Type() protoreflect.MessageType {
+ return _fastReflection_MsgUpdateParamsResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_MsgUpdateParamsResponse) New() protoreflect.Message {
+ return new(fastReflection_MsgUpdateParamsResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_MsgUpdateParamsResponse) Interface() protoreflect.ProtoMessage {
+ return (*MsgUpdateParamsResponse)(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_MsgUpdateParamsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_MsgUpdateParamsResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.MsgUpdateParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.MsgUpdateParamsResponse 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_MsgUpdateParamsResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.MsgUpdateParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.MsgUpdateParamsResponse 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_MsgUpdateParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.MsgUpdateParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.MsgUpdateParamsResponse 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_MsgUpdateParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.MsgUpdateParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.MsgUpdateParamsResponse 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_MsgUpdateParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.MsgUpdateParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.MsgUpdateParamsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_MsgUpdateParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.MsgUpdateParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.MsgUpdateParamsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_MsgUpdateParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.proof.MsgUpdateParamsResponse", 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_MsgUpdateParamsResponse) 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_MsgUpdateParamsResponse) 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_MsgUpdateParamsResponse) 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_MsgUpdateParamsResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*MsgUpdateParamsResponse)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*MsgUpdateParamsResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*MsgUpdateParamsResponse)
+ 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: MsgUpdateParamsResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_MsgCreateClaim protoreflect.MessageDescriptor
+ fd_MsgCreateClaim_supplier_address protoreflect.FieldDescriptor
+ fd_MsgCreateClaim_session_header protoreflect.FieldDescriptor
+ fd_MsgCreateClaim_root_hash protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_proof_tx_proto_init()
+ md_MsgCreateClaim = File_poktroll_proof_tx_proto.Messages().ByName("MsgCreateClaim")
+ fd_MsgCreateClaim_supplier_address = md_MsgCreateClaim.Fields().ByName("supplier_address")
+ fd_MsgCreateClaim_session_header = md_MsgCreateClaim.Fields().ByName("session_header")
+ fd_MsgCreateClaim_root_hash = md_MsgCreateClaim.Fields().ByName("root_hash")
+}
+
+var _ protoreflect.Message = (*fastReflection_MsgCreateClaim)(nil)
+
+type fastReflection_MsgCreateClaim MsgCreateClaim
+
+func (x *MsgCreateClaim) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_MsgCreateClaim)(x)
+}
+
+func (x *MsgCreateClaim) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_proof_tx_proto_msgTypes[2]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_MsgCreateClaim_messageType fastReflection_MsgCreateClaim_messageType
+var _ protoreflect.MessageType = fastReflection_MsgCreateClaim_messageType{}
+
+type fastReflection_MsgCreateClaim_messageType struct{}
+
+func (x fastReflection_MsgCreateClaim_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_MsgCreateClaim)(nil)
+}
+func (x fastReflection_MsgCreateClaim_messageType) New() protoreflect.Message {
+ return new(fastReflection_MsgCreateClaim)
+}
+func (x fastReflection_MsgCreateClaim_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgCreateClaim
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_MsgCreateClaim) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgCreateClaim
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_MsgCreateClaim) Type() protoreflect.MessageType {
+ return _fastReflection_MsgCreateClaim_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_MsgCreateClaim) New() protoreflect.Message {
+ return new(fastReflection_MsgCreateClaim)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_MsgCreateClaim) Interface() protoreflect.ProtoMessage {
+ return (*MsgCreateClaim)(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_MsgCreateClaim) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.SupplierAddress != "" {
+ value := protoreflect.ValueOfString(x.SupplierAddress)
+ if !f(fd_MsgCreateClaim_supplier_address, value) {
+ return
+ }
+ }
+ if x.SessionHeader != nil {
+ value := protoreflect.ValueOfMessage(x.SessionHeader.ProtoReflect())
+ if !f(fd_MsgCreateClaim_session_header, value) {
+ return
+ }
+ }
+ if len(x.RootHash) != 0 {
+ value := protoreflect.ValueOfBytes(x.RootHash)
+ if !f(fd_MsgCreateClaim_root_hash, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_MsgCreateClaim) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.proof.MsgCreateClaim.supplier_address":
+ return x.SupplierAddress != ""
+ case "poktroll.proof.MsgCreateClaim.session_header":
+ return x.SessionHeader != nil
+ case "poktroll.proof.MsgCreateClaim.root_hash":
+ return len(x.RootHash) != 0
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.MsgCreateClaim"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.MsgCreateClaim 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_MsgCreateClaim) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.proof.MsgCreateClaim.supplier_address":
+ x.SupplierAddress = ""
+ case "poktroll.proof.MsgCreateClaim.session_header":
+ x.SessionHeader = nil
+ case "poktroll.proof.MsgCreateClaim.root_hash":
+ x.RootHash = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.MsgCreateClaim"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.MsgCreateClaim 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_MsgCreateClaim) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.proof.MsgCreateClaim.supplier_address":
+ value := x.SupplierAddress
+ return protoreflect.ValueOfString(value)
+ case "poktroll.proof.MsgCreateClaim.session_header":
+ value := x.SessionHeader
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ case "poktroll.proof.MsgCreateClaim.root_hash":
+ value := x.RootHash
+ return protoreflect.ValueOfBytes(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.MsgCreateClaim"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.MsgCreateClaim 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_MsgCreateClaim) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.proof.MsgCreateClaim.supplier_address":
+ x.SupplierAddress = value.Interface().(string)
+ case "poktroll.proof.MsgCreateClaim.session_header":
+ x.SessionHeader = value.Message().Interface().(*session.SessionHeader)
+ case "poktroll.proof.MsgCreateClaim.root_hash":
+ x.RootHash = value.Bytes()
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.MsgCreateClaim"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.MsgCreateClaim 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_MsgCreateClaim) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.proof.MsgCreateClaim.session_header":
+ if x.SessionHeader == nil {
+ x.SessionHeader = new(session.SessionHeader)
+ }
+ return protoreflect.ValueOfMessage(x.SessionHeader.ProtoReflect())
+ case "poktroll.proof.MsgCreateClaim.supplier_address":
+ panic(fmt.Errorf("field supplier_address of message poktroll.proof.MsgCreateClaim is not mutable"))
+ case "poktroll.proof.MsgCreateClaim.root_hash":
+ panic(fmt.Errorf("field root_hash of message poktroll.proof.MsgCreateClaim is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.MsgCreateClaim"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.MsgCreateClaim does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_MsgCreateClaim) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.proof.MsgCreateClaim.supplier_address":
+ return protoreflect.ValueOfString("")
+ case "poktroll.proof.MsgCreateClaim.session_header":
+ m := new(session.SessionHeader)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ case "poktroll.proof.MsgCreateClaim.root_hash":
+ return protoreflect.ValueOfBytes(nil)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.MsgCreateClaim"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.MsgCreateClaim does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_MsgCreateClaim) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.proof.MsgCreateClaim", 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_MsgCreateClaim) 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_MsgCreateClaim) 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_MsgCreateClaim) 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_MsgCreateClaim) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*MsgCreateClaim)
+ 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.SupplierAddress)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.SessionHeader != nil {
+ l = options.Size(x.SessionHeader)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.RootHash)
+ 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().(*MsgCreateClaim)
+ 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.RootHash) > 0 {
+ i -= len(x.RootHash)
+ copy(dAtA[i:], x.RootHash)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.RootHash)))
+ i--
+ dAtA[i] = 0x1a
+ }
+ if x.SessionHeader != nil {
+ encoded, err := options.Marshal(x.SessionHeader)
+ 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.SupplierAddress) > 0 {
+ i -= len(x.SupplierAddress)
+ copy(dAtA[i:], x.SupplierAddress)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.SupplierAddress)))
+ 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().(*MsgCreateClaim)
+ 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: MsgCreateClaim: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateClaim: 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 SupplierAddress", 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.SupplierAddress = 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 SessionHeader", 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.SessionHeader == nil {
+ x.SessionHeader = &session.SessionHeader{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.SessionHeader); 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 RootHash", 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.RootHash = append(x.RootHash[:0], dAtA[iNdEx:postIndex]...)
+ if x.RootHash == nil {
+ x.RootHash = []byte{}
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_MsgCreateClaimResponse protoreflect.MessageDescriptor
+)
+
+func init() {
+ file_poktroll_proof_tx_proto_init()
+ md_MsgCreateClaimResponse = File_poktroll_proof_tx_proto.Messages().ByName("MsgCreateClaimResponse")
+}
+
+var _ protoreflect.Message = (*fastReflection_MsgCreateClaimResponse)(nil)
+
+type fastReflection_MsgCreateClaimResponse MsgCreateClaimResponse
+
+func (x *MsgCreateClaimResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_MsgCreateClaimResponse)(x)
+}
+
+func (x *MsgCreateClaimResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_proof_tx_proto_msgTypes[3]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_MsgCreateClaimResponse_messageType fastReflection_MsgCreateClaimResponse_messageType
+var _ protoreflect.MessageType = fastReflection_MsgCreateClaimResponse_messageType{}
+
+type fastReflection_MsgCreateClaimResponse_messageType struct{}
+
+func (x fastReflection_MsgCreateClaimResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_MsgCreateClaimResponse)(nil)
+}
+func (x fastReflection_MsgCreateClaimResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_MsgCreateClaimResponse)
+}
+func (x fastReflection_MsgCreateClaimResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgCreateClaimResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_MsgCreateClaimResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgCreateClaimResponse
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_MsgCreateClaimResponse) Type() protoreflect.MessageType {
+ return _fastReflection_MsgCreateClaimResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_MsgCreateClaimResponse) New() protoreflect.Message {
+ return new(fastReflection_MsgCreateClaimResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_MsgCreateClaimResponse) Interface() protoreflect.ProtoMessage {
+ return (*MsgCreateClaimResponse)(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_MsgCreateClaimResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_MsgCreateClaimResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.MsgCreateClaimResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.MsgCreateClaimResponse 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_MsgCreateClaimResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.MsgCreateClaimResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.MsgCreateClaimResponse 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_MsgCreateClaimResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.MsgCreateClaimResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.MsgCreateClaimResponse 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_MsgCreateClaimResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.MsgCreateClaimResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.MsgCreateClaimResponse 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_MsgCreateClaimResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.MsgCreateClaimResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.MsgCreateClaimResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_MsgCreateClaimResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.MsgCreateClaimResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.MsgCreateClaimResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_MsgCreateClaimResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.proof.MsgCreateClaimResponse", 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_MsgCreateClaimResponse) 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_MsgCreateClaimResponse) 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_MsgCreateClaimResponse) 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_MsgCreateClaimResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*MsgCreateClaimResponse)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*MsgCreateClaimResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*MsgCreateClaimResponse)
+ 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: MsgCreateClaimResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateClaimResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_MsgSubmitProof protoreflect.MessageDescriptor
+ fd_MsgSubmitProof_supplier_address protoreflect.FieldDescriptor
+ fd_MsgSubmitProof_session_header protoreflect.FieldDescriptor
+ fd_MsgSubmitProof_proof protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_proof_tx_proto_init()
+ md_MsgSubmitProof = File_poktroll_proof_tx_proto.Messages().ByName("MsgSubmitProof")
+ fd_MsgSubmitProof_supplier_address = md_MsgSubmitProof.Fields().ByName("supplier_address")
+ fd_MsgSubmitProof_session_header = md_MsgSubmitProof.Fields().ByName("session_header")
+ fd_MsgSubmitProof_proof = md_MsgSubmitProof.Fields().ByName("proof")
+}
+
+var _ protoreflect.Message = (*fastReflection_MsgSubmitProof)(nil)
+
+type fastReflection_MsgSubmitProof MsgSubmitProof
+
+func (x *MsgSubmitProof) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_MsgSubmitProof)(x)
+}
+
+func (x *MsgSubmitProof) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_proof_tx_proto_msgTypes[4]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_MsgSubmitProof_messageType fastReflection_MsgSubmitProof_messageType
+var _ protoreflect.MessageType = fastReflection_MsgSubmitProof_messageType{}
+
+type fastReflection_MsgSubmitProof_messageType struct{}
+
+func (x fastReflection_MsgSubmitProof_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_MsgSubmitProof)(nil)
+}
+func (x fastReflection_MsgSubmitProof_messageType) New() protoreflect.Message {
+ return new(fastReflection_MsgSubmitProof)
+}
+func (x fastReflection_MsgSubmitProof_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgSubmitProof
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_MsgSubmitProof) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgSubmitProof
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_MsgSubmitProof) Type() protoreflect.MessageType {
+ return _fastReflection_MsgSubmitProof_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_MsgSubmitProof) New() protoreflect.Message {
+ return new(fastReflection_MsgSubmitProof)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_MsgSubmitProof) Interface() protoreflect.ProtoMessage {
+ return (*MsgSubmitProof)(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_MsgSubmitProof) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.SupplierAddress != "" {
+ value := protoreflect.ValueOfString(x.SupplierAddress)
+ if !f(fd_MsgSubmitProof_supplier_address, value) {
+ return
+ }
+ }
+ if x.SessionHeader != nil {
+ value := protoreflect.ValueOfMessage(x.SessionHeader.ProtoReflect())
+ if !f(fd_MsgSubmitProof_session_header, value) {
+ return
+ }
+ }
+ if len(x.Proof) != 0 {
+ value := protoreflect.ValueOfBytes(x.Proof)
+ if !f(fd_MsgSubmitProof_proof, 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_MsgSubmitProof) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.proof.MsgSubmitProof.supplier_address":
+ return x.SupplierAddress != ""
+ case "poktroll.proof.MsgSubmitProof.session_header":
+ return x.SessionHeader != nil
+ case "poktroll.proof.MsgSubmitProof.proof":
+ return len(x.Proof) != 0
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.MsgSubmitProof"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.MsgSubmitProof 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_MsgSubmitProof) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.proof.MsgSubmitProof.supplier_address":
+ x.SupplierAddress = ""
+ case "poktroll.proof.MsgSubmitProof.session_header":
+ x.SessionHeader = nil
+ case "poktroll.proof.MsgSubmitProof.proof":
+ x.Proof = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.MsgSubmitProof"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.MsgSubmitProof 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_MsgSubmitProof) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.proof.MsgSubmitProof.supplier_address":
+ value := x.SupplierAddress
+ return protoreflect.ValueOfString(value)
+ case "poktroll.proof.MsgSubmitProof.session_header":
+ value := x.SessionHeader
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ case "poktroll.proof.MsgSubmitProof.proof":
+ value := x.Proof
+ return protoreflect.ValueOfBytes(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.MsgSubmitProof"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.MsgSubmitProof 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_MsgSubmitProof) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.proof.MsgSubmitProof.supplier_address":
+ x.SupplierAddress = value.Interface().(string)
+ case "poktroll.proof.MsgSubmitProof.session_header":
+ x.SessionHeader = value.Message().Interface().(*session.SessionHeader)
+ case "poktroll.proof.MsgSubmitProof.proof":
+ x.Proof = value.Bytes()
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.MsgSubmitProof"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.MsgSubmitProof 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_MsgSubmitProof) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.proof.MsgSubmitProof.session_header":
+ if x.SessionHeader == nil {
+ x.SessionHeader = new(session.SessionHeader)
+ }
+ return protoreflect.ValueOfMessage(x.SessionHeader.ProtoReflect())
+ case "poktroll.proof.MsgSubmitProof.supplier_address":
+ panic(fmt.Errorf("field supplier_address of message poktroll.proof.MsgSubmitProof is not mutable"))
+ case "poktroll.proof.MsgSubmitProof.proof":
+ panic(fmt.Errorf("field proof of message poktroll.proof.MsgSubmitProof is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.MsgSubmitProof"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.MsgSubmitProof does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_MsgSubmitProof) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.proof.MsgSubmitProof.supplier_address":
+ return protoreflect.ValueOfString("")
+ case "poktroll.proof.MsgSubmitProof.session_header":
+ m := new(session.SessionHeader)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ case "poktroll.proof.MsgSubmitProof.proof":
+ return protoreflect.ValueOfBytes(nil)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.MsgSubmitProof"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.MsgSubmitProof does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_MsgSubmitProof) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.proof.MsgSubmitProof", 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_MsgSubmitProof) 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_MsgSubmitProof) 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_MsgSubmitProof) 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_MsgSubmitProof) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*MsgSubmitProof)
+ 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.SupplierAddress)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.SessionHeader != nil {
+ l = options.Size(x.SessionHeader)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.Proof)
+ 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().(*MsgSubmitProof)
+ 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.Proof) > 0 {
+ i -= len(x.Proof)
+ copy(dAtA[i:], x.Proof)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Proof)))
+ i--
+ dAtA[i] = 0x1a
+ }
+ if x.SessionHeader != nil {
+ encoded, err := options.Marshal(x.SessionHeader)
+ 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.SupplierAddress) > 0 {
+ i -= len(x.SupplierAddress)
+ copy(dAtA[i:], x.SupplierAddress)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.SupplierAddress)))
+ 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().(*MsgSubmitProof)
+ 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: MsgSubmitProof: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSubmitProof: 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 SupplierAddress", 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.SupplierAddress = 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 SessionHeader", 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.SessionHeader == nil {
+ x.SessionHeader = &session.SessionHeader{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.SessionHeader); 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 Proof", 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.Proof = append(x.Proof[:0], dAtA[iNdEx:postIndex]...)
+ if x.Proof == nil {
+ x.Proof = []byte{}
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_MsgSubmitProofResponse protoreflect.MessageDescriptor
+)
+
+func init() {
+ file_poktroll_proof_tx_proto_init()
+ md_MsgSubmitProofResponse = File_poktroll_proof_tx_proto.Messages().ByName("MsgSubmitProofResponse")
+}
+
+var _ protoreflect.Message = (*fastReflection_MsgSubmitProofResponse)(nil)
+
+type fastReflection_MsgSubmitProofResponse MsgSubmitProofResponse
+
+func (x *MsgSubmitProofResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_MsgSubmitProofResponse)(x)
+}
+
+func (x *MsgSubmitProofResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_proof_tx_proto_msgTypes[5]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_MsgSubmitProofResponse_messageType fastReflection_MsgSubmitProofResponse_messageType
+var _ protoreflect.MessageType = fastReflection_MsgSubmitProofResponse_messageType{}
+
+type fastReflection_MsgSubmitProofResponse_messageType struct{}
+
+func (x fastReflection_MsgSubmitProofResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_MsgSubmitProofResponse)(nil)
+}
+func (x fastReflection_MsgSubmitProofResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_MsgSubmitProofResponse)
+}
+func (x fastReflection_MsgSubmitProofResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgSubmitProofResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_MsgSubmitProofResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgSubmitProofResponse
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_MsgSubmitProofResponse) Type() protoreflect.MessageType {
+ return _fastReflection_MsgSubmitProofResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_MsgSubmitProofResponse) New() protoreflect.Message {
+ return new(fastReflection_MsgSubmitProofResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_MsgSubmitProofResponse) Interface() protoreflect.ProtoMessage {
+ return (*MsgSubmitProofResponse)(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_MsgSubmitProofResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_MsgSubmitProofResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.MsgSubmitProofResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.MsgSubmitProofResponse 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_MsgSubmitProofResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.MsgSubmitProofResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.MsgSubmitProofResponse 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_MsgSubmitProofResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.MsgSubmitProofResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.MsgSubmitProofResponse 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_MsgSubmitProofResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.MsgSubmitProofResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.MsgSubmitProofResponse 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_MsgSubmitProofResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.MsgSubmitProofResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.MsgSubmitProofResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_MsgSubmitProofResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.proof.MsgSubmitProofResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.proof.MsgSubmitProofResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_MsgSubmitProofResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.proof.MsgSubmitProofResponse", 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_MsgSubmitProofResponse) 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_MsgSubmitProofResponse) 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_MsgSubmitProofResponse) 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_MsgSubmitProofResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*MsgSubmitProofResponse)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*MsgSubmitProofResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*MsgSubmitProofResponse)
+ 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: MsgSubmitProofResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSubmitProofResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.27.0
+// protoc (unknown)
+// source: poktroll/proof/tx.proto
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+// MsgUpdateParams is the Msg/UpdateParams request type.
+type MsgUpdateParams struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // authority is the address that controls the module (defaults to x/gov unless overwritten).
+ Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
+ // params defines the x/proof parameters to update.
+ // NOTE: All parameters must be supplied.
+ Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"`
+}
+
+func (x *MsgUpdateParams) Reset() {
+ *x = MsgUpdateParams{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_proof_tx_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *MsgUpdateParams) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*MsgUpdateParams) ProtoMessage() {}
+
+// Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead.
+func (*MsgUpdateParams) Descriptor() ([]byte, []int) {
+ return file_poktroll_proof_tx_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *MsgUpdateParams) GetAuthority() string {
+ if x != nil {
+ return x.Authority
+ }
+ return ""
+}
+
+func (x *MsgUpdateParams) GetParams() *Params {
+ if x != nil {
+ return x.Params
+ }
+ return nil
+}
+
+// MsgUpdateParamsResponse defines the response structure for executing a
+// MsgUpdateParams message.
+type MsgUpdateParamsResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+}
+
+func (x *MsgUpdateParamsResponse) Reset() {
+ *x = MsgUpdateParamsResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_proof_tx_proto_msgTypes[1]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *MsgUpdateParamsResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*MsgUpdateParamsResponse) ProtoMessage() {}
+
+// Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead.
+func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) {
+ return file_poktroll_proof_tx_proto_rawDescGZIP(), []int{1}
+}
+
+type MsgCreateClaim struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ SupplierAddress string `protobuf:"bytes,1,opt,name=supplier_address,json=supplierAddress,proto3" json:"supplier_address,omitempty"`
+ SessionHeader *session.SessionHeader `protobuf:"bytes,2,opt,name=session_header,json=sessionHeader,proto3" json:"session_header,omitempty"`
+ // root returned from smt.SMST#Root()
+ RootHash []byte `protobuf:"bytes,3,opt,name=root_hash,json=rootHash,proto3" json:"root_hash,omitempty"`
+}
+
+func (x *MsgCreateClaim) Reset() {
+ *x = MsgCreateClaim{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_proof_tx_proto_msgTypes[2]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *MsgCreateClaim) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*MsgCreateClaim) ProtoMessage() {}
+
+// Deprecated: Use MsgCreateClaim.ProtoReflect.Descriptor instead.
+func (*MsgCreateClaim) Descriptor() ([]byte, []int) {
+ return file_poktroll_proof_tx_proto_rawDescGZIP(), []int{2}
+}
+
+func (x *MsgCreateClaim) GetSupplierAddress() string {
+ if x != nil {
+ return x.SupplierAddress
+ }
+ return ""
+}
+
+func (x *MsgCreateClaim) GetSessionHeader() *session.SessionHeader {
+ if x != nil {
+ return x.SessionHeader
+ }
+ return nil
+}
+
+func (x *MsgCreateClaim) GetRootHash() []byte {
+ if x != nil {
+ return x.RootHash
+ }
+ return nil
+}
+
+type MsgCreateClaimResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+}
+
+func (x *MsgCreateClaimResponse) Reset() {
+ *x = MsgCreateClaimResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_proof_tx_proto_msgTypes[3]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *MsgCreateClaimResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*MsgCreateClaimResponse) ProtoMessage() {}
+
+// Deprecated: Use MsgCreateClaimResponse.ProtoReflect.Descriptor instead.
+func (*MsgCreateClaimResponse) Descriptor() ([]byte, []int) {
+ return file_poktroll_proof_tx_proto_rawDescGZIP(), []int{3}
+}
+
+type MsgSubmitProof struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ SupplierAddress string `protobuf:"bytes,1,opt,name=supplier_address,json=supplierAddress,proto3" json:"supplier_address,omitempty"`
+ SessionHeader *session.SessionHeader `protobuf:"bytes,2,opt,name=session_header,json=sessionHeader,proto3" json:"session_header,omitempty"`
+ // serialized version of *smt.SparseMerkleClosestProof
+ Proof []byte `protobuf:"bytes,3,opt,name=proof,proto3" json:"proof,omitempty"`
+}
+
+func (x *MsgSubmitProof) Reset() {
+ *x = MsgSubmitProof{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_proof_tx_proto_msgTypes[4]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *MsgSubmitProof) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*MsgSubmitProof) ProtoMessage() {}
+
+// Deprecated: Use MsgSubmitProof.ProtoReflect.Descriptor instead.
+func (*MsgSubmitProof) Descriptor() ([]byte, []int) {
+ return file_poktroll_proof_tx_proto_rawDescGZIP(), []int{4}
+}
+
+func (x *MsgSubmitProof) GetSupplierAddress() string {
+ if x != nil {
+ return x.SupplierAddress
+ }
+ return ""
+}
+
+func (x *MsgSubmitProof) GetSessionHeader() *session.SessionHeader {
+ if x != nil {
+ return x.SessionHeader
+ }
+ return nil
+}
+
+func (x *MsgSubmitProof) GetProof() []byte {
+ if x != nil {
+ return x.Proof
+ }
+ return nil
+}
+
+type MsgSubmitProofResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+}
+
+func (x *MsgSubmitProofResponse) Reset() {
+ *x = MsgSubmitProofResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_proof_tx_proto_msgTypes[5]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *MsgSubmitProofResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*MsgSubmitProofResponse) ProtoMessage() {}
+
+// Deprecated: Use MsgSubmitProofResponse.ProtoReflect.Descriptor instead.
+func (*MsgSubmitProofResponse) Descriptor() ([]byte, []int) {
+ return file_poktroll_proof_tx_proto_rawDescGZIP(), []int{5}
+}
+
+var File_poktroll_proof_tx_proto protoreflect.FileDescriptor
+
+var file_poktroll_proof_tx_proto_rawDesc = []byte{
+ 0x0a, 0x17, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x6f, 0x66,
+ 0x2f, 0x74, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x70, 0x6f, 0x6b, 0x74, 0x72,
+ 0x6f, 0x6c, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f,
+ 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x63, 0x6f,
+ 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x6d, 0x73, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x73, 0x67, 0x2e,
+ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 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, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f,
+ 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c,
+ 0x2f, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72,
+ 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x65,
+ 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72,
+ 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x68,
+ 0x61, 0x72, 0x65, 0x64, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f,
+ 0x74, 0x6f, 0x22, 0xb9, 0x01, 0x0a, 0x0f, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
+ 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x36, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72,
+ 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63,
+ 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72,
+ 0x69, 0x6e, 0x67, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x39,
+ 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16,
+ 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x6f, 0x66, 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, 0x3a, 0x33, 0x82, 0xe7, 0xb0, 0x2a, 0x09,
+ 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x8a, 0xe7, 0xb0, 0x2a, 0x20, 0x70, 0x6f,
+ 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x78, 0x2f, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x2f, 0x4d,
+ 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x19,
+ 0x0a, 0x17, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d,
+ 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xd1, 0x01, 0x0a, 0x0e, 0x4d, 0x73,
+ 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x12, 0x43, 0x0a, 0x10,
+ 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73,
+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d,
+ 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67,
+ 0x52, 0x0f, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73,
+ 0x73, 0x12, 0x46, 0x0a, 0x0e, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x68, 0x65, 0x61,
+ 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x70, 0x6f, 0x6b, 0x74,
+ 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x65, 0x73,
+ 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x0d, 0x73, 0x65, 0x73, 0x73,
+ 0x69, 0x6f, 0x6e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x6f, 0x6f,
+ 0x74, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x72, 0x6f,
+ 0x6f, 0x74, 0x48, 0x61, 0x73, 0x68, 0x3a, 0x15, 0x82, 0xe7, 0xb0, 0x2a, 0x10, 0x73, 0x75, 0x70,
+ 0x70, 0x6c, 0x69, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x18, 0x0a,
+ 0x16, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x52,
+ 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xca, 0x01, 0x0a, 0x0e, 0x4d, 0x73, 0x67, 0x53,
+ 0x75, 0x62, 0x6d, 0x69, 0x74, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x12, 0x43, 0x0a, 0x10, 0x73, 0x75,
+ 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01,
+ 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73,
+ 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x0f,
+ 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12,
+ 0x46, 0x0a, 0x0e, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65,
+ 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f,
+ 0x6c, 0x6c, 0x2e, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x65, 0x73, 0x73, 0x69,
+ 0x6f, 0x6e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x0d, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f,
+ 0x6e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x6f, 0x6f, 0x66,
+ 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x3a, 0x15, 0x82,
+ 0xe7, 0xb0, 0x2a, 0x10, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64,
+ 0x72, 0x65, 0x73, 0x73, 0x22, 0x18, 0x0a, 0x16, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69,
+ 0x74, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0x94,
+ 0x02, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x58, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
+ 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x1f, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c,
+ 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74,
+ 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x27, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f,
+ 0x6c, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x6f, 0x66, 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, 0x55, 0x0a, 0x0b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x12,
+ 0x1e, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x6f, 0x66,
+ 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x1a,
+ 0x26, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x6f, 0x66,
+ 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x52,
+ 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x55, 0x0a, 0x0b, 0x53, 0x75, 0x62, 0x6d, 0x69,
+ 0x74, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x12, 0x1e, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c,
+ 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69,
+ 0x74, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x1a, 0x26, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c,
+ 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69,
+ 0x74, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x05,
+ 0x80, 0xe7, 0xb0, 0x2a, 0x01, 0x42, 0x97, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x6f,
+ 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x42, 0x07, 0x54, 0x78,
+ 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x1f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73,
+ 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f,
+ 0x6c, 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0xa2, 0x02, 0x03, 0x50, 0x50, 0x58, 0xaa, 0x02,
+ 0x0e, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0xca,
+ 0x02, 0x0e, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x50, 0x72, 0x6f, 0x6f, 0x66,
+ 0xe2, 0x02, 0x1a, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x50, 0x72, 0x6f, 0x6f,
+ 0x66, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f,
+ 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x3a, 0x3a, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x62,
+ 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_poktroll_proof_tx_proto_rawDescOnce sync.Once
+ file_poktroll_proof_tx_proto_rawDescData = file_poktroll_proof_tx_proto_rawDesc
+)
+
+func file_poktroll_proof_tx_proto_rawDescGZIP() []byte {
+ file_poktroll_proof_tx_proto_rawDescOnce.Do(func() {
+ file_poktroll_proof_tx_proto_rawDescData = protoimpl.X.CompressGZIP(file_poktroll_proof_tx_proto_rawDescData)
+ })
+ return file_poktroll_proof_tx_proto_rawDescData
+}
+
+var file_poktroll_proof_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
+var file_poktroll_proof_tx_proto_goTypes = []interface{}{
+ (*MsgUpdateParams)(nil), // 0: poktroll.proof.MsgUpdateParams
+ (*MsgUpdateParamsResponse)(nil), // 1: poktroll.proof.MsgUpdateParamsResponse
+ (*MsgCreateClaim)(nil), // 2: poktroll.proof.MsgCreateClaim
+ (*MsgCreateClaimResponse)(nil), // 3: poktroll.proof.MsgCreateClaimResponse
+ (*MsgSubmitProof)(nil), // 4: poktroll.proof.MsgSubmitProof
+ (*MsgSubmitProofResponse)(nil), // 5: poktroll.proof.MsgSubmitProofResponse
+ (*Params)(nil), // 6: poktroll.proof.Params
+ (*session.SessionHeader)(nil), // 7: poktroll.session.SessionHeader
+}
+var file_poktroll_proof_tx_proto_depIdxs = []int32{
+ 6, // 0: poktroll.proof.MsgUpdateParams.params:type_name -> poktroll.proof.Params
+ 7, // 1: poktroll.proof.MsgCreateClaim.session_header:type_name -> poktroll.session.SessionHeader
+ 7, // 2: poktroll.proof.MsgSubmitProof.session_header:type_name -> poktroll.session.SessionHeader
+ 0, // 3: poktroll.proof.Msg.UpdateParams:input_type -> poktroll.proof.MsgUpdateParams
+ 2, // 4: poktroll.proof.Msg.CreateClaim:input_type -> poktroll.proof.MsgCreateClaim
+ 4, // 5: poktroll.proof.Msg.SubmitProof:input_type -> poktroll.proof.MsgSubmitProof
+ 1, // 6: poktroll.proof.Msg.UpdateParams:output_type -> poktroll.proof.MsgUpdateParamsResponse
+ 3, // 7: poktroll.proof.Msg.CreateClaim:output_type -> poktroll.proof.MsgCreateClaimResponse
+ 5, // 8: poktroll.proof.Msg.SubmitProof:output_type -> poktroll.proof.MsgSubmitProofResponse
+ 6, // [6:9] is the sub-list for method output_type
+ 3, // [3:6] 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_poktroll_proof_tx_proto_init() }
+func file_poktroll_proof_tx_proto_init() {
+ if File_poktroll_proof_tx_proto != nil {
+ return
+ }
+ file_poktroll_proof_params_proto_init()
+ if !protoimpl.UnsafeEnabled {
+ file_poktroll_proof_tx_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*MsgUpdateParams); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_proof_tx_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*MsgUpdateParamsResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_proof_tx_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*MsgCreateClaim); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_proof_tx_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*MsgCreateClaimResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_proof_tx_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*MsgSubmitProof); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_proof_tx_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*MsgSubmitProofResponse); 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_poktroll_proof_tx_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 6,
+ NumExtensions: 0,
+ NumServices: 1,
+ },
+ GoTypes: file_poktroll_proof_tx_proto_goTypes,
+ DependencyIndexes: file_poktroll_proof_tx_proto_depIdxs,
+ MessageInfos: file_poktroll_proof_tx_proto_msgTypes,
+ }.Build()
+ File_poktroll_proof_tx_proto = out.File
+ file_poktroll_proof_tx_proto_rawDesc = nil
+ file_poktroll_proof_tx_proto_goTypes = nil
+ file_poktroll_proof_tx_proto_depIdxs = nil
+}
diff --git a/api/poktroll/service/genesis.pulsar.go b/api/poktroll/service/genesis.pulsar.go
new file mode 100644
index 000000000..576428f97
--- /dev/null
+++ b/api/poktroll/service/genesis.pulsar.go
@@ -0,0 +1,750 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package service
+
+import (
+ _ "cosmossdk.io/api/amino"
+ fmt "fmt"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ _ "github.com/cosmos/gogoproto/gogoproto"
+ shared "github.com/pokt-network/poktroll/api/poktroll/shared"
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoiface "google.golang.org/protobuf/runtime/protoiface"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ io "io"
+ reflect "reflect"
+ sync "sync"
+)
+
+var _ protoreflect.List = (*_GenesisState_2_list)(nil)
+
+type _GenesisState_2_list struct {
+ list *[]*shared.Service
+}
+
+func (x *_GenesisState_2_list) Len() int {
+ if x.list == nil {
+ return 0
+ }
+ return len(*x.list)
+}
+
+func (x *_GenesisState_2_list) Get(i int) protoreflect.Value {
+ return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
+}
+
+func (x *_GenesisState_2_list) Set(i int, value protoreflect.Value) {
+ valueUnwrapped := value.Message()
+ concreteValue := valueUnwrapped.Interface().(*shared.Service)
+ (*x.list)[i] = concreteValue
+}
+
+func (x *_GenesisState_2_list) Append(value protoreflect.Value) {
+ valueUnwrapped := value.Message()
+ concreteValue := valueUnwrapped.Interface().(*shared.Service)
+ *x.list = append(*x.list, concreteValue)
+}
+
+func (x *_GenesisState_2_list) AppendMutable() protoreflect.Value {
+ v := new(shared.Service)
+ *x.list = append(*x.list, v)
+ return protoreflect.ValueOfMessage(v.ProtoReflect())
+}
+
+func (x *_GenesisState_2_list) Truncate(n int) {
+ for i := n; i < len(*x.list); i++ {
+ (*x.list)[i] = nil
+ }
+ *x.list = (*x.list)[:n]
+}
+
+func (x *_GenesisState_2_list) NewElement() protoreflect.Value {
+ v := new(shared.Service)
+ return protoreflect.ValueOfMessage(v.ProtoReflect())
+}
+
+func (x *_GenesisState_2_list) IsValid() bool {
+ return x.list != nil
+}
+
+var (
+ md_GenesisState protoreflect.MessageDescriptor
+ fd_GenesisState_params protoreflect.FieldDescriptor
+ fd_GenesisState_service_list protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_service_genesis_proto_init()
+ md_GenesisState = File_poktroll_service_genesis_proto.Messages().ByName("GenesisState")
+ fd_GenesisState_params = md_GenesisState.Fields().ByName("params")
+ fd_GenesisState_service_list = md_GenesisState.Fields().ByName("service_list")
+}
+
+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_poktroll_service_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 len(x.ServiceList) != 0 {
+ value := protoreflect.ValueOfList(&_GenesisState_2_list{list: &x.ServiceList})
+ if !f(fd_GenesisState_service_list, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.service.GenesisState.params":
+ return x.Params != nil
+ case "poktroll.service.GenesisState.service_list":
+ return len(x.ServiceList) != 0
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.GenesisState"))
+ }
+ panic(fmt.Errorf("message poktroll.service.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 "poktroll.service.GenesisState.params":
+ x.Params = nil
+ case "poktroll.service.GenesisState.service_list":
+ x.ServiceList = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.GenesisState"))
+ }
+ panic(fmt.Errorf("message poktroll.service.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 "poktroll.service.GenesisState.params":
+ value := x.Params
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ case "poktroll.service.GenesisState.service_list":
+ if len(x.ServiceList) == 0 {
+ return protoreflect.ValueOfList(&_GenesisState_2_list{})
+ }
+ listValue := &_GenesisState_2_list{list: &x.ServiceList}
+ return protoreflect.ValueOfList(listValue)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.GenesisState"))
+ }
+ panic(fmt.Errorf("message poktroll.service.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 "poktroll.service.GenesisState.params":
+ x.Params = value.Message().Interface().(*Params)
+ case "poktroll.service.GenesisState.service_list":
+ lv := value.List()
+ clv := lv.(*_GenesisState_2_list)
+ x.ServiceList = *clv.list
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.GenesisState"))
+ }
+ panic(fmt.Errorf("message poktroll.service.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 "poktroll.service.GenesisState.params":
+ if x.Params == nil {
+ x.Params = new(Params)
+ }
+ return protoreflect.ValueOfMessage(x.Params.ProtoReflect())
+ case "poktroll.service.GenesisState.service_list":
+ if x.ServiceList == nil {
+ x.ServiceList = []*shared.Service{}
+ }
+ value := &_GenesisState_2_list{list: &x.ServiceList}
+ return protoreflect.ValueOfList(value)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.GenesisState"))
+ }
+ panic(fmt.Errorf("message poktroll.service.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 "poktroll.service.GenesisState.params":
+ m := new(Params)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ case "poktroll.service.GenesisState.service_list":
+ list := []*shared.Service{}
+ return protoreflect.ValueOfList(&_GenesisState_2_list{list: &list})
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.GenesisState"))
+ }
+ panic(fmt.Errorf("message poktroll.service.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 poktroll.service.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 len(x.ServiceList) > 0 {
+ for _, e := range x.ServiceList {
+ l = options.Size(e)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*GenesisState)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.ServiceList) > 0 {
+ for iNdEx := len(x.ServiceList) - 1; iNdEx >= 0; iNdEx-- {
+ encoded, err := options.Marshal(x.ServiceList[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.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 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ServiceList", 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.ServiceList = append(x.ServiceList, &shared.Service{})
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ServiceList[len(x.ServiceList)-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: poktroll/service/genesis.proto
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+// GenesisState defines the service module's genesis state.
+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"`
+ ServiceList []*shared.Service `protobuf:"bytes,2,rep,name=service_list,json=serviceList,proto3" json:"service_list,omitempty"`
+}
+
+func (x *GenesisState) Reset() {
+ *x = GenesisState{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_service_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_poktroll_service_genesis_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *GenesisState) GetParams() *Params {
+ if x != nil {
+ return x.Params
+ }
+ return nil
+}
+
+func (x *GenesisState) GetServiceList() []*shared.Service {
+ if x != nil {
+ return x.ServiceList
+ }
+ return nil
+}
+
+var File_poktroll_service_genesis_proto protoreflect.FileDescriptor
+
+var file_poktroll_service_genesis_proto_rawDesc = []byte{
+ 0x0a, 0x1e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69,
+ 0x63, 0x65, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
+ 0x12, 0x10, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69,
+ 0x63, 0x65, 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, 0x1d, 0x70, 0x6f, 0x6b,
+ 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x70, 0x61,
+ 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x70, 0x6f, 0x6b, 0x74,
+ 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2f, 0x73, 0x65, 0x72, 0x76,
+ 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8e, 0x01, 0x0a, 0x0c, 0x47, 0x65,
+ 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3b, 0x0a, 0x06, 0x70, 0x61,
+ 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x70, 0x6f, 0x6b,
+ 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 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, 0x12, 0x41, 0x0a, 0x0c, 0x73, 0x65, 0x72, 0x76, 0x69,
+ 0x63, 0x65, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e,
+ 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e,
+ 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0b, 0x73,
+ 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x42, 0xa8, 0x01, 0x0a, 0x14, 0x63,
+ 0x6f, 0x6d, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76,
+ 0x69, 0x63, 0x65, 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x50, 0x72, 0x6f, 0x74,
+ 0x6f, 0x50, 0x01, 0x5a, 0x21, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69,
+ 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73,
+ 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xa2, 0x02, 0x03, 0x50, 0x53, 0x58, 0xaa, 0x02, 0x10, 0x50,
+ 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xca,
+ 0x02, 0x10, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x53, 0x65, 0x72, 0x76, 0x69,
+ 0x63, 0x65, 0xe2, 0x02, 0x1c, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x53, 0x65,
+ 0x72, 0x76, 0x69, 0x63, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,
+ 0x61, 0xea, 0x02, 0x11, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x3a, 0x3a, 0x53, 0x65,
+ 0x72, 0x76, 0x69, 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_poktroll_service_genesis_proto_rawDescOnce sync.Once
+ file_poktroll_service_genesis_proto_rawDescData = file_poktroll_service_genesis_proto_rawDesc
+)
+
+func file_poktroll_service_genesis_proto_rawDescGZIP() []byte {
+ file_poktroll_service_genesis_proto_rawDescOnce.Do(func() {
+ file_poktroll_service_genesis_proto_rawDescData = protoimpl.X.CompressGZIP(file_poktroll_service_genesis_proto_rawDescData)
+ })
+ return file_poktroll_service_genesis_proto_rawDescData
+}
+
+var file_poktroll_service_genesis_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
+var file_poktroll_service_genesis_proto_goTypes = []interface{}{
+ (*GenesisState)(nil), // 0: poktroll.service.GenesisState
+ (*Params)(nil), // 1: poktroll.service.Params
+ (*shared.Service)(nil), // 2: poktroll.shared.Service
+}
+var file_poktroll_service_genesis_proto_depIdxs = []int32{
+ 1, // 0: poktroll.service.GenesisState.params:type_name -> poktroll.service.Params
+ 2, // 1: poktroll.service.GenesisState.service_list:type_name -> poktroll.shared.Service
+ 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_poktroll_service_genesis_proto_init() }
+func file_poktroll_service_genesis_proto_init() {
+ if File_poktroll_service_genesis_proto != nil {
+ return
+ }
+ file_poktroll_service_params_proto_init()
+ if !protoimpl.UnsafeEnabled {
+ file_poktroll_service_genesis_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GenesisState); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_poktroll_service_genesis_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 1,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_poktroll_service_genesis_proto_goTypes,
+ DependencyIndexes: file_poktroll_service_genesis_proto_depIdxs,
+ MessageInfos: file_poktroll_service_genesis_proto_msgTypes,
+ }.Build()
+ File_poktroll_service_genesis_proto = out.File
+ file_poktroll_service_genesis_proto_rawDesc = nil
+ file_poktroll_service_genesis_proto_goTypes = nil
+ file_poktroll_service_genesis_proto_depIdxs = nil
+}
diff --git a/api/poktroll/service/module/module.pulsar.go b/api/poktroll/service/module/module.pulsar.go
new file mode 100644
index 000000000..a7217c244
--- /dev/null
+++ b/api/poktroll/service/module/module.pulsar.go
@@ -0,0 +1,578 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package module
+
+import (
+ _ "cosmossdk.io/api/cosmos/app/v1alpha1"
+ fmt "fmt"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoiface "google.golang.org/protobuf/runtime/protoiface"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ io "io"
+ reflect "reflect"
+ sync "sync"
+)
+
+var (
+ md_Module protoreflect.MessageDescriptor
+ fd_Module_authority protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_service_module_module_proto_init()
+ md_Module = File_poktroll_service_module_module_proto.Messages().ByName("Module")
+ fd_Module_authority = md_Module.Fields().ByName("authority")
+}
+
+var _ protoreflect.Message = (*fastReflection_Module)(nil)
+
+type fastReflection_Module Module
+
+func (x *Module) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_Module)(x)
+}
+
+func (x *Module) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_service_module_module_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_Module_messageType fastReflection_Module_messageType
+var _ protoreflect.MessageType = fastReflection_Module_messageType{}
+
+type fastReflection_Module_messageType struct{}
+
+func (x fastReflection_Module_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_Module)(nil)
+}
+func (x fastReflection_Module_messageType) New() protoreflect.Message {
+ return new(fastReflection_Module)
+}
+func (x fastReflection_Module_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_Module
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_Module) Descriptor() protoreflect.MessageDescriptor {
+ return md_Module
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_Module) Type() protoreflect.MessageType {
+ return _fastReflection_Module_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_Module) New() protoreflect.Message {
+ return new(fastReflection_Module)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_Module) Interface() protoreflect.ProtoMessage {
+ return (*Module)(x)
+}
+
+// Range iterates over every populated field in an undefined order,
+// calling f for each field descriptor and value encountered.
+// Range returns immediately if f returns false.
+// While iterating, mutating operations may only be performed
+// on the current field descriptor.
+func (x *fastReflection_Module) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Authority != "" {
+ value := protoreflect.ValueOfString(x.Authority)
+ if !f(fd_Module_authority, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_Module) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.service.module.Module.authority":
+ return x.Authority != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.module.Module"))
+ }
+ panic(fmt.Errorf("message poktroll.service.module.Module does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Module) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.service.module.Module.authority":
+ x.Authority = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.module.Module"))
+ }
+ panic(fmt.Errorf("message poktroll.service.module.Module does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_Module) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.service.module.Module.authority":
+ value := x.Authority
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.module.Module"))
+ }
+ panic(fmt.Errorf("message poktroll.service.module.Module does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Module) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.service.module.Module.authority":
+ x.Authority = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.module.Module"))
+ }
+ panic(fmt.Errorf("message poktroll.service.module.Module does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Module) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.service.module.Module.authority":
+ panic(fmt.Errorf("field authority of message poktroll.service.module.Module is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.module.Module"))
+ }
+ panic(fmt.Errorf("message poktroll.service.module.Module does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_Module) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.service.module.Module.authority":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.module.Module"))
+ }
+ panic(fmt.Errorf("message poktroll.service.module.Module does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_Module) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.service.module.Module", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_Module) GetUnknown() protoreflect.RawFields {
+ return x.unknownFields
+}
+
+// SetUnknown stores an entire list of unknown fields.
+// The raw fields must be syntactically valid according to the wire format.
+// An implementation may panic if this is not the case.
+// Once stored, the caller must not mutate the content of the RawFields.
+// An empty RawFields may be passed to clear the fields.
+//
+// SetUnknown is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Module) SetUnknown(fields protoreflect.RawFields) {
+ x.unknownFields = fields
+}
+
+// IsValid reports whether the message is valid.
+//
+// An invalid message is an empty, read-only value.
+//
+// An invalid message often corresponds to a nil pointer of the concrete
+// message type, but the details are implementation dependent.
+// Validity is not part of the protobuf data model, and may not
+// be preserved in marshaling or other operations.
+func (x *fastReflection_Module) IsValid() bool {
+ return x != nil
+}
+
+// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
+// This method may return nil.
+//
+// The returned methods type is identical to
+// "google.golang.org/protobuf/runtime/protoiface".Methods.
+// Consult the protoiface package documentation for details.
+func (x *fastReflection_Module) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*Module)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Authority)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*Module)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Authority) > 0 {
+ i -= len(x.Authority)
+ copy(dAtA[i:], x.Authority)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority)))
+ i--
+ dAtA[i] = 0xa
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*Module)
+ if x == nil {
+ return protoiface.UnmarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Flags: input.Flags,
+ }, nil
+ }
+ options := runtime.UnmarshalInputToOptions(input)
+ _ = options
+ dAtA := input.Buf
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Module: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Module: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Authority = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.27.0
+// protoc (unknown)
+// source: poktroll/service/module/module.proto
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+// Module is the config object for the module.
+type Module struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // authority defines the custom module authority. If not set, defaults to the governance module.
+ Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
+}
+
+func (x *Module) Reset() {
+ *x = Module{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_service_module_module_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *Module) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*Module) ProtoMessage() {}
+
+// Deprecated: Use Module.ProtoReflect.Descriptor instead.
+func (*Module) Descriptor() ([]byte, []int) {
+ return file_poktroll_service_module_module_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *Module) GetAuthority() string {
+ if x != nil {
+ return x.Authority
+ }
+ return ""
+}
+
+var File_poktroll_service_module_module_proto protoreflect.FileDescriptor
+
+var file_poktroll_service_module_module_proto_rawDesc = []byte{
+ 0x0a, 0x24, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69,
+ 0x63, 0x65, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65,
+ 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c,
+ 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x1a,
+ 0x20, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x76, 0x31, 0x61, 0x6c,
+ 0x70, 0x68, 0x61, 0x31, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
+ 0x6f, 0x22, 0x5a, 0x0a, 0x06, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x61,
+ 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09,
+ 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x3a, 0x32, 0xba, 0xc0, 0x96, 0xda, 0x01,
+ 0x2c, 0x0a, 0x2a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x6f,
+ 0x6b, 0x74, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72,
+ 0x6f, 0x6c, 0x6c, 0x2f, 0x78, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x42, 0xd2, 0x01,
+ 0x0a, 0x1b, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73,
+ 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x42, 0x0b, 0x4d,
+ 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x28, 0x63, 0x6f,
+ 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70,
+ 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f,
+ 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0xa2, 0x02, 0x03, 0x50, 0x53, 0x4d, 0xaa, 0x02, 0x17, 0x50,
+ 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e,
+ 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0xca, 0x02, 0x17, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c,
+ 0x6c, 0x5c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65,
+ 0xe2, 0x02, 0x23, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x53, 0x65, 0x72, 0x76,
+ 0x69, 0x63, 0x65, 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65,
+ 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x19, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c,
+ 0x6c, 0x3a, 0x3a, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x3a, 0x3a, 0x4d, 0x6f, 0x64, 0x75,
+ 0x6c, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_poktroll_service_module_module_proto_rawDescOnce sync.Once
+ file_poktroll_service_module_module_proto_rawDescData = file_poktroll_service_module_module_proto_rawDesc
+)
+
+func file_poktroll_service_module_module_proto_rawDescGZIP() []byte {
+ file_poktroll_service_module_module_proto_rawDescOnce.Do(func() {
+ file_poktroll_service_module_module_proto_rawDescData = protoimpl.X.CompressGZIP(file_poktroll_service_module_module_proto_rawDescData)
+ })
+ return file_poktroll_service_module_module_proto_rawDescData
+}
+
+var file_poktroll_service_module_module_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
+var file_poktroll_service_module_module_proto_goTypes = []interface{}{
+ (*Module)(nil), // 0: poktroll.service.module.Module
+}
+var file_poktroll_service_module_module_proto_depIdxs = []int32{
+ 0, // [0:0] is the sub-list for method output_type
+ 0, // [0:0] is the sub-list for method input_type
+ 0, // [0:0] is the sub-list for extension type_name
+ 0, // [0:0] is the sub-list for extension extendee
+ 0, // [0:0] is the sub-list for field type_name
+}
+
+func init() { file_poktroll_service_module_module_proto_init() }
+func file_poktroll_service_module_module_proto_init() {
+ if File_poktroll_service_module_module_proto != nil {
+ return
+ }
+ if !protoimpl.UnsafeEnabled {
+ file_poktroll_service_module_module_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*Module); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_poktroll_service_module_module_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 1,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_poktroll_service_module_module_proto_goTypes,
+ DependencyIndexes: file_poktroll_service_module_module_proto_depIdxs,
+ MessageInfos: file_poktroll_service_module_module_proto_msgTypes,
+ }.Build()
+ File_poktroll_service_module_module_proto = out.File
+ file_poktroll_service_module_module_proto_rawDesc = nil
+ file_poktroll_service_module_module_proto_goTypes = nil
+ file_poktroll_service_module_module_proto_depIdxs = nil
+}
diff --git a/api/poktroll/service/params.pulsar.go b/api/poktroll/service/params.pulsar.go
new file mode 100644
index 000000000..346acdd52
--- /dev/null
+++ b/api/poktroll/service/params.pulsar.go
@@ -0,0 +1,563 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package service
+
+import (
+ _ "cosmossdk.io/api/amino"
+ 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_Params protoreflect.MessageDescriptor
+ fd_Params_add_service_fee protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_service_params_proto_init()
+ md_Params = File_poktroll_service_params_proto.Messages().ByName("Params")
+ fd_Params_add_service_fee = md_Params.Fields().ByName("add_service_fee")
+}
+
+var _ protoreflect.Message = (*fastReflection_Params)(nil)
+
+type fastReflection_Params Params
+
+func (x *Params) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_Params)(x)
+}
+
+func (x *Params) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_service_params_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_Params_messageType fastReflection_Params_messageType
+var _ protoreflect.MessageType = fastReflection_Params_messageType{}
+
+type fastReflection_Params_messageType struct{}
+
+func (x fastReflection_Params_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_Params)(nil)
+}
+func (x fastReflection_Params_messageType) New() protoreflect.Message {
+ return new(fastReflection_Params)
+}
+func (x fastReflection_Params_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_Params
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_Params) Descriptor() protoreflect.MessageDescriptor {
+ return md_Params
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_Params) Type() protoreflect.MessageType {
+ return _fastReflection_Params_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_Params) New() protoreflect.Message {
+ return new(fastReflection_Params)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_Params) Interface() protoreflect.ProtoMessage {
+ return (*Params)(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_Params) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.AddServiceFee != uint64(0) {
+ value := protoreflect.ValueOfUint64(x.AddServiceFee)
+ if !f(fd_Params_add_service_fee, 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_Params) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.service.Params.add_service_fee":
+ return x.AddServiceFee != uint64(0)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.Params"))
+ }
+ panic(fmt.Errorf("message poktroll.service.Params 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_Params) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.service.Params.add_service_fee":
+ x.AddServiceFee = uint64(0)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.Params"))
+ }
+ panic(fmt.Errorf("message poktroll.service.Params 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_Params) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.service.Params.add_service_fee":
+ value := x.AddServiceFee
+ return protoreflect.ValueOfUint64(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.Params"))
+ }
+ panic(fmt.Errorf("message poktroll.service.Params 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_Params) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.service.Params.add_service_fee":
+ x.AddServiceFee = value.Uint()
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.Params"))
+ }
+ panic(fmt.Errorf("message poktroll.service.Params 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_Params) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.service.Params.add_service_fee":
+ panic(fmt.Errorf("field add_service_fee of message poktroll.service.Params is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.Params"))
+ }
+ panic(fmt.Errorf("message poktroll.service.Params does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// 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 "poktroll.service.Params.add_service_fee":
+ return protoreflect.ValueOfUint64(uint64(0))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.Params"))
+ }
+ panic(fmt.Errorf("message poktroll.service.Params does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_Params) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.service.Params", 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_Params) 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_Params) 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_Params) 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_Params) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*Params)
+ 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.AddServiceFee != 0 {
+ n += 1 + runtime.Sov(uint64(x.AddServiceFee))
+ }
+ 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().(*Params)
+ 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.AddServiceFee != 0 {
+ i = runtime.EncodeVarint(dAtA, i, uint64(x.AddServiceFee))
+ 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().(*Params)
+ 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: Params: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Params: 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 AddServiceFee", wireType)
+ }
+ x.AddServiceFee = 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.AddServiceFee |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.27.0
+// protoc (unknown)
+// source: poktroll/service/params.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)
+)
+
+// Params defines the parameters for the module.
+type Params struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // The amount of uPOKT required to add a new service.
+ // This will be deducted from the signer's account balance,
+ // and transferred to the pocket network foundation.
+ AddServiceFee uint64 `protobuf:"varint,1,opt,name=add_service_fee,json=addServiceFee,proto3" json:"add_service_fee,omitempty"`
+}
+
+func (x *Params) Reset() {
+ *x = Params{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_service_params_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *Params) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*Params) ProtoMessage() {}
+
+// Deprecated: Use Params.ProtoReflect.Descriptor instead.
+func (*Params) Descriptor() ([]byte, []int) {
+ return file_poktroll_service_params_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *Params) GetAddServiceFee() uint64 {
+ if x != nil {
+ return x.AddServiceFee
+ }
+ return 0
+}
+
+var File_poktroll_service_params_proto protoreflect.FileDescriptor
+
+var file_poktroll_service_params_proto_rawDesc = []byte{
+ 0x0a, 0x1d, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69,
+ 0x63, 0x65, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
+ 0x10, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
+ 0x65, 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, 0x70, 0x0a, 0x06, 0x50, 0x61,
+ 0x72, 0x61, 0x6d, 0x73, 0x12, 0x42, 0x0a, 0x0f, 0x61, 0x64, 0x64, 0x5f, 0x73, 0x65, 0x72, 0x76,
+ 0x69, 0x63, 0x65, 0x5f, 0x66, 0x65, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x42, 0x1a, 0xf2,
+ 0xde, 0x1f, 0x16, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x61, 0x64, 0x64, 0x5f, 0x73, 0x65, 0x72,
+ 0x76, 0x69, 0x63, 0x65, 0x5f, 0x66, 0x65, 0x65, 0x22, 0x52, 0x0d, 0x61, 0x64, 0x64, 0x53, 0x65,
+ 0x72, 0x76, 0x69, 0x63, 0x65, 0x46, 0x65, 0x65, 0x3a, 0x22, 0xe8, 0xa0, 0x1f, 0x01, 0x8a, 0xe7,
+ 0xb0, 0x2a, 0x19, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x78, 0x2f, 0x73, 0x65,
+ 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0xa7, 0x01, 0x0a,
+ 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x65,
+ 0x72, 0x76, 0x69, 0x63, 0x65, 0x42, 0x0b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x50, 0x72, 0x6f,
+ 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x21, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e,
+ 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f,
+ 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xa2, 0x02, 0x03, 0x50, 0x53, 0x58, 0xaa, 0x02, 0x10,
+ 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
+ 0xca, 0x02, 0x10, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x53, 0x65, 0x72, 0x76,
+ 0x69, 0x63, 0x65, 0xe2, 0x02, 0x1c, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x53,
+ 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61,
+ 0x74, 0x61, 0xea, 0x02, 0x11, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x3a, 0x3a, 0x53,
+ 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_poktroll_service_params_proto_rawDescOnce sync.Once
+ file_poktroll_service_params_proto_rawDescData = file_poktroll_service_params_proto_rawDesc
+)
+
+func file_poktroll_service_params_proto_rawDescGZIP() []byte {
+ file_poktroll_service_params_proto_rawDescOnce.Do(func() {
+ file_poktroll_service_params_proto_rawDescData = protoimpl.X.CompressGZIP(file_poktroll_service_params_proto_rawDescData)
+ })
+ return file_poktroll_service_params_proto_rawDescData
+}
+
+var file_poktroll_service_params_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
+var file_poktroll_service_params_proto_goTypes = []interface{}{
+ (*Params)(nil), // 0: poktroll.service.Params
+}
+var file_poktroll_service_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
+ 0, // [0:0] is the sub-list for extension extendee
+ 0, // [0:0] is the sub-list for field type_name
+}
+
+func init() { file_poktroll_service_params_proto_init() }
+func file_poktroll_service_params_proto_init() {
+ if File_poktroll_service_params_proto != nil {
+ return
+ }
+ if !protoimpl.UnsafeEnabled {
+ file_poktroll_service_params_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*Params); 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_poktroll_service_params_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 1,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_poktroll_service_params_proto_goTypes,
+ DependencyIndexes: file_poktroll_service_params_proto_depIdxs,
+ MessageInfos: file_poktroll_service_params_proto_msgTypes,
+ }.Build()
+ File_poktroll_service_params_proto = out.File
+ file_poktroll_service_params_proto_rawDesc = nil
+ file_poktroll_service_params_proto_goTypes = nil
+ file_poktroll_service_params_proto_depIdxs = nil
+}
diff --git a/api/poktroll/service/query.pulsar.go b/api/poktroll/service/query.pulsar.go
new file mode 100644
index 000000000..2f313aef1
--- /dev/null
+++ b/api/poktroll/service/query.pulsar.go
@@ -0,0 +1,3131 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package service
+
+import (
+ _ "cosmossdk.io/api/amino"
+ v1beta1 "cosmossdk.io/api/cosmos/base/query/v1beta1"
+ fmt "fmt"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ _ "github.com/cosmos/gogoproto/gogoproto"
+ shared "github.com/pokt-network/poktroll/api/poktroll/shared"
+ _ "google.golang.org/genproto/googleapis/api/annotations"
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoiface "google.golang.org/protobuf/runtime/protoiface"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ io "io"
+ reflect "reflect"
+ sync "sync"
+)
+
+var (
+ md_QueryParamsRequest protoreflect.MessageDescriptor
+)
+
+func init() {
+ file_poktroll_service_query_proto_init()
+ md_QueryParamsRequest = File_poktroll_service_query_proto.Messages().ByName("QueryParamsRequest")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryParamsRequest)(nil)
+
+type fastReflection_QueryParamsRequest QueryParamsRequest
+
+func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryParamsRequest)(x)
+}
+
+func (x *QueryParamsRequest) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_service_query_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryParamsRequest_messageType fastReflection_QueryParamsRequest_messageType
+var _ protoreflect.MessageType = fastReflection_QueryParamsRequest_messageType{}
+
+type fastReflection_QueryParamsRequest_messageType struct{}
+
+func (x fastReflection_QueryParamsRequest_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryParamsRequest)(nil)
+}
+func (x fastReflection_QueryParamsRequest_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryParamsRequest)
+}
+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_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_QueryParamsRequest) Type() protoreflect.MessageType {
+ return _fastReflection_QueryParamsRequest_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+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_QueryParamsRequest) Interface() protoreflect.ProtoMessage {
+ return (*QueryParamsRequest)(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_QueryParamsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_QueryParamsRequest) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryParamsRequest 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_QueryParamsRequest) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryParamsRequest 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_QueryParamsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryParamsRequest 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_QueryParamsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryParamsRequest 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_QueryParamsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.service.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_QueryParamsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.service.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_QueryParamsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.service.QueryParamsRequest", 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_QueryParamsRequest) 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_QueryParamsRequest) 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_QueryParamsRequest) 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_QueryParamsRequest) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryParamsRequest)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*QueryParamsRequest)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*QueryParamsRequest)
+ 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: QueryParamsRequest: 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)
+ }
+ switch fieldNum {
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_QueryParamsResponse protoreflect.MessageDescriptor
+ fd_QueryParamsResponse_params protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_service_query_proto_init()
+ md_QueryParamsResponse = File_poktroll_service_query_proto.Messages().ByName("QueryParamsResponse")
+ fd_QueryParamsResponse_params = md_QueryParamsResponse.Fields().ByName("params")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryParamsResponse)(nil)
+
+type fastReflection_QueryParamsResponse QueryParamsResponse
+
+func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryParamsResponse)(x)
+}
+
+func (x *QueryParamsResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_service_query_proto_msgTypes[1]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryParamsResponse_messageType fastReflection_QueryParamsResponse_messageType
+var _ protoreflect.MessageType = fastReflection_QueryParamsResponse_messageType{}
+
+type fastReflection_QueryParamsResponse_messageType struct{}
+
+func (x fastReflection_QueryParamsResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryParamsResponse)(nil)
+}
+func (x fastReflection_QueryParamsResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryParamsResponse)
+}
+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_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_QueryParamsResponse) Type() protoreflect.MessageType {
+ return _fastReflection_QueryParamsResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+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_QueryParamsResponse) Interface() protoreflect.ProtoMessage {
+ return (*QueryParamsResponse)(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_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
+ }
+ }
+}
+
+// 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_QueryParamsResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.service.QueryParamsResponse.params":
+ return x.Params != nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryParamsResponse 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_QueryParamsResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.service.QueryParamsResponse.params":
+ x.Params = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryParamsResponse 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_QueryParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.service.QueryParamsResponse.params":
+ value := x.Params
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryParamsResponse 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_QueryParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.service.QueryParamsResponse.params":
+ x.Params = value.Message().Interface().(*Params)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryParamsResponse 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_QueryParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.service.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: poktroll.service.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.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_QueryParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.service.QueryParamsResponse.params":
+ m := new(Params)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.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_QueryParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.service.QueryParamsResponse", 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_QueryParamsResponse) 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_QueryParamsResponse) 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_QueryParamsResponse) 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_QueryParamsResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryParamsResponse)
+ 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.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().(*QueryParamsResponse)
+ 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.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().(*QueryParamsResponse)
+ 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: QueryParamsResponse: 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)
+ }
+ 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
+ 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_QueryGetServiceRequest protoreflect.MessageDescriptor
+ fd_QueryGetServiceRequest_id protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_service_query_proto_init()
+ md_QueryGetServiceRequest = File_poktroll_service_query_proto.Messages().ByName("QueryGetServiceRequest")
+ fd_QueryGetServiceRequest_id = md_QueryGetServiceRequest.Fields().ByName("id")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryGetServiceRequest)(nil)
+
+type fastReflection_QueryGetServiceRequest QueryGetServiceRequest
+
+func (x *QueryGetServiceRequest) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryGetServiceRequest)(x)
+}
+
+func (x *QueryGetServiceRequest) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_service_query_proto_msgTypes[2]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryGetServiceRequest_messageType fastReflection_QueryGetServiceRequest_messageType
+var _ protoreflect.MessageType = fastReflection_QueryGetServiceRequest_messageType{}
+
+type fastReflection_QueryGetServiceRequest_messageType struct{}
+
+func (x fastReflection_QueryGetServiceRequest_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryGetServiceRequest)(nil)
+}
+func (x fastReflection_QueryGetServiceRequest_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryGetServiceRequest)
+}
+func (x fastReflection_QueryGetServiceRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryGetServiceRequest
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_QueryGetServiceRequest) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryGetServiceRequest
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_QueryGetServiceRequest) Type() protoreflect.MessageType {
+ return _fastReflection_QueryGetServiceRequest_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_QueryGetServiceRequest) New() protoreflect.Message {
+ return new(fastReflection_QueryGetServiceRequest)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_QueryGetServiceRequest) Interface() protoreflect.ProtoMessage {
+ return (*QueryGetServiceRequest)(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_QueryGetServiceRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Id != "" {
+ value := protoreflect.ValueOfString(x.Id)
+ if !f(fd_QueryGetServiceRequest_id, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_QueryGetServiceRequest) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.service.QueryGetServiceRequest.id":
+ return x.Id != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryGetServiceRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryGetServiceRequest 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_QueryGetServiceRequest) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.service.QueryGetServiceRequest.id":
+ x.Id = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryGetServiceRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryGetServiceRequest 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_QueryGetServiceRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.service.QueryGetServiceRequest.id":
+ value := x.Id
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryGetServiceRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryGetServiceRequest 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_QueryGetServiceRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.service.QueryGetServiceRequest.id":
+ x.Id = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryGetServiceRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryGetServiceRequest 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_QueryGetServiceRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.service.QueryGetServiceRequest.id":
+ panic(fmt.Errorf("field id of message poktroll.service.QueryGetServiceRequest is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryGetServiceRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryGetServiceRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_QueryGetServiceRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.service.QueryGetServiceRequest.id":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryGetServiceRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryGetServiceRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_QueryGetServiceRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.service.QueryGetServiceRequest", 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_QueryGetServiceRequest) 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_QueryGetServiceRequest) 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_QueryGetServiceRequest) 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_QueryGetServiceRequest) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryGetServiceRequest)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Id)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ 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().(*QueryGetServiceRequest)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Id) > 0 {
+ i -= len(x.Id)
+ copy(dAtA[i:], x.Id)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Id)))
+ i--
+ dAtA[i] = 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().(*QueryGetServiceRequest)
+ 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: QueryGetServiceRequest: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetServiceRequest: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Id = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ 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_QueryGetServiceResponse protoreflect.MessageDescriptor
+ fd_QueryGetServiceResponse_service protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_service_query_proto_init()
+ md_QueryGetServiceResponse = File_poktroll_service_query_proto.Messages().ByName("QueryGetServiceResponse")
+ fd_QueryGetServiceResponse_service = md_QueryGetServiceResponse.Fields().ByName("service")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryGetServiceResponse)(nil)
+
+type fastReflection_QueryGetServiceResponse QueryGetServiceResponse
+
+func (x *QueryGetServiceResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryGetServiceResponse)(x)
+}
+
+func (x *QueryGetServiceResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_service_query_proto_msgTypes[3]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryGetServiceResponse_messageType fastReflection_QueryGetServiceResponse_messageType
+var _ protoreflect.MessageType = fastReflection_QueryGetServiceResponse_messageType{}
+
+type fastReflection_QueryGetServiceResponse_messageType struct{}
+
+func (x fastReflection_QueryGetServiceResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryGetServiceResponse)(nil)
+}
+func (x fastReflection_QueryGetServiceResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryGetServiceResponse)
+}
+func (x fastReflection_QueryGetServiceResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryGetServiceResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_QueryGetServiceResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryGetServiceResponse
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_QueryGetServiceResponse) Type() protoreflect.MessageType {
+ return _fastReflection_QueryGetServiceResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_QueryGetServiceResponse) New() protoreflect.Message {
+ return new(fastReflection_QueryGetServiceResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_QueryGetServiceResponse) Interface() protoreflect.ProtoMessage {
+ return (*QueryGetServiceResponse)(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_QueryGetServiceResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Service != nil {
+ value := protoreflect.ValueOfMessage(x.Service.ProtoReflect())
+ if !f(fd_QueryGetServiceResponse_service, 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_QueryGetServiceResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.service.QueryGetServiceResponse.service":
+ return x.Service != nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryGetServiceResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryGetServiceResponse 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_QueryGetServiceResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.service.QueryGetServiceResponse.service":
+ x.Service = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryGetServiceResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryGetServiceResponse 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_QueryGetServiceResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.service.QueryGetServiceResponse.service":
+ value := x.Service
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryGetServiceResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryGetServiceResponse 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_QueryGetServiceResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.service.QueryGetServiceResponse.service":
+ x.Service = value.Message().Interface().(*shared.Service)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryGetServiceResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryGetServiceResponse 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_QueryGetServiceResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.service.QueryGetServiceResponse.service":
+ if x.Service == nil {
+ x.Service = new(shared.Service)
+ }
+ return protoreflect.ValueOfMessage(x.Service.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryGetServiceResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryGetServiceResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_QueryGetServiceResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.service.QueryGetServiceResponse.service":
+ m := new(shared.Service)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryGetServiceResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryGetServiceResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_QueryGetServiceResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.service.QueryGetServiceResponse", 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_QueryGetServiceResponse) 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_QueryGetServiceResponse) 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_QueryGetServiceResponse) 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_QueryGetServiceResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryGetServiceResponse)
+ 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.Service != nil {
+ l = options.Size(x.Service)
+ 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().(*QueryGetServiceResponse)
+ 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.Service != nil {
+ encoded, err := options.Marshal(x.Service)
+ 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().(*QueryGetServiceResponse)
+ 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: QueryGetServiceResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetServiceResponse: 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 Service", 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.Service == nil {
+ x.Service = &shared.Service{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Service); 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_QueryAllServicesRequest protoreflect.MessageDescriptor
+ fd_QueryAllServicesRequest_pagination protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_service_query_proto_init()
+ md_QueryAllServicesRequest = File_poktroll_service_query_proto.Messages().ByName("QueryAllServicesRequest")
+ fd_QueryAllServicesRequest_pagination = md_QueryAllServicesRequest.Fields().ByName("pagination")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryAllServicesRequest)(nil)
+
+type fastReflection_QueryAllServicesRequest QueryAllServicesRequest
+
+func (x *QueryAllServicesRequest) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryAllServicesRequest)(x)
+}
+
+func (x *QueryAllServicesRequest) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_service_query_proto_msgTypes[4]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryAllServicesRequest_messageType fastReflection_QueryAllServicesRequest_messageType
+var _ protoreflect.MessageType = fastReflection_QueryAllServicesRequest_messageType{}
+
+type fastReflection_QueryAllServicesRequest_messageType struct{}
+
+func (x fastReflection_QueryAllServicesRequest_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryAllServicesRequest)(nil)
+}
+func (x fastReflection_QueryAllServicesRequest_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryAllServicesRequest)
+}
+func (x fastReflection_QueryAllServicesRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryAllServicesRequest
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_QueryAllServicesRequest) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryAllServicesRequest
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_QueryAllServicesRequest) Type() protoreflect.MessageType {
+ return _fastReflection_QueryAllServicesRequest_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_QueryAllServicesRequest) New() protoreflect.Message {
+ return new(fastReflection_QueryAllServicesRequest)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_QueryAllServicesRequest) Interface() protoreflect.ProtoMessage {
+ return (*QueryAllServicesRequest)(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_QueryAllServicesRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Pagination != nil {
+ value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
+ if !f(fd_QueryAllServicesRequest_pagination, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_QueryAllServicesRequest) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.service.QueryAllServicesRequest.pagination":
+ return x.Pagination != nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryAllServicesRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryAllServicesRequest 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_QueryAllServicesRequest) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.service.QueryAllServicesRequest.pagination":
+ x.Pagination = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryAllServicesRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryAllServicesRequest 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_QueryAllServicesRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.service.QueryAllServicesRequest.pagination":
+ value := x.Pagination
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryAllServicesRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryAllServicesRequest 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_QueryAllServicesRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.service.QueryAllServicesRequest.pagination":
+ x.Pagination = value.Message().Interface().(*v1beta1.PageRequest)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryAllServicesRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryAllServicesRequest 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_QueryAllServicesRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.service.QueryAllServicesRequest.pagination":
+ if x.Pagination == nil {
+ x.Pagination = new(v1beta1.PageRequest)
+ }
+ return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryAllServicesRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryAllServicesRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_QueryAllServicesRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.service.QueryAllServicesRequest.pagination":
+ m := new(v1beta1.PageRequest)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryAllServicesRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryAllServicesRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_QueryAllServicesRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.service.QueryAllServicesRequest", 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_QueryAllServicesRequest) 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_QueryAllServicesRequest) 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_QueryAllServicesRequest) 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_QueryAllServicesRequest) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryAllServicesRequest)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.Pagination != nil {
+ l = options.Size(x.Pagination)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*QueryAllServicesRequest)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if x.Pagination != nil {
+ encoded, err := options.Marshal(x.Pagination)
+ if err != nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, err
+ }
+ i -= len(encoded)
+ copy(dAtA[i:], encoded)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
+ i--
+ dAtA[i] = 0xa
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*QueryAllServicesRequest)
+ 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: QueryAllServicesRequest: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllServicesRequest: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if x.Pagination == nil {
+ x.Pagination = &v1beta1.PageRequest{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var _ protoreflect.List = (*_QueryAllServicesResponse_1_list)(nil)
+
+type _QueryAllServicesResponse_1_list struct {
+ list *[]*shared.Service
+}
+
+func (x *_QueryAllServicesResponse_1_list) Len() int {
+ if x.list == nil {
+ return 0
+ }
+ return len(*x.list)
+}
+
+func (x *_QueryAllServicesResponse_1_list) Get(i int) protoreflect.Value {
+ return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
+}
+
+func (x *_QueryAllServicesResponse_1_list) Set(i int, value protoreflect.Value) {
+ valueUnwrapped := value.Message()
+ concreteValue := valueUnwrapped.Interface().(*shared.Service)
+ (*x.list)[i] = concreteValue
+}
+
+func (x *_QueryAllServicesResponse_1_list) Append(value protoreflect.Value) {
+ valueUnwrapped := value.Message()
+ concreteValue := valueUnwrapped.Interface().(*shared.Service)
+ *x.list = append(*x.list, concreteValue)
+}
+
+func (x *_QueryAllServicesResponse_1_list) AppendMutable() protoreflect.Value {
+ v := new(shared.Service)
+ *x.list = append(*x.list, v)
+ return protoreflect.ValueOfMessage(v.ProtoReflect())
+}
+
+func (x *_QueryAllServicesResponse_1_list) Truncate(n int) {
+ for i := n; i < len(*x.list); i++ {
+ (*x.list)[i] = nil
+ }
+ *x.list = (*x.list)[:n]
+}
+
+func (x *_QueryAllServicesResponse_1_list) NewElement() protoreflect.Value {
+ v := new(shared.Service)
+ return protoreflect.ValueOfMessage(v.ProtoReflect())
+}
+
+func (x *_QueryAllServicesResponse_1_list) IsValid() bool {
+ return x.list != nil
+}
+
+var (
+ md_QueryAllServicesResponse protoreflect.MessageDescriptor
+ fd_QueryAllServicesResponse_service protoreflect.FieldDescriptor
+ fd_QueryAllServicesResponse_pagination protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_service_query_proto_init()
+ md_QueryAllServicesResponse = File_poktroll_service_query_proto.Messages().ByName("QueryAllServicesResponse")
+ fd_QueryAllServicesResponse_service = md_QueryAllServicesResponse.Fields().ByName("service")
+ fd_QueryAllServicesResponse_pagination = md_QueryAllServicesResponse.Fields().ByName("pagination")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryAllServicesResponse)(nil)
+
+type fastReflection_QueryAllServicesResponse QueryAllServicesResponse
+
+func (x *QueryAllServicesResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryAllServicesResponse)(x)
+}
+
+func (x *QueryAllServicesResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_service_query_proto_msgTypes[5]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryAllServicesResponse_messageType fastReflection_QueryAllServicesResponse_messageType
+var _ protoreflect.MessageType = fastReflection_QueryAllServicesResponse_messageType{}
+
+type fastReflection_QueryAllServicesResponse_messageType struct{}
+
+func (x fastReflection_QueryAllServicesResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryAllServicesResponse)(nil)
+}
+func (x fastReflection_QueryAllServicesResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryAllServicesResponse)
+}
+func (x fastReflection_QueryAllServicesResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryAllServicesResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_QueryAllServicesResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryAllServicesResponse
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_QueryAllServicesResponse) Type() protoreflect.MessageType {
+ return _fastReflection_QueryAllServicesResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_QueryAllServicesResponse) New() protoreflect.Message {
+ return new(fastReflection_QueryAllServicesResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_QueryAllServicesResponse) Interface() protoreflect.ProtoMessage {
+ return (*QueryAllServicesResponse)(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_QueryAllServicesResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if len(x.Service) != 0 {
+ value := protoreflect.ValueOfList(&_QueryAllServicesResponse_1_list{list: &x.Service})
+ if !f(fd_QueryAllServicesResponse_service, value) {
+ return
+ }
+ }
+ if x.Pagination != nil {
+ value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
+ if !f(fd_QueryAllServicesResponse_pagination, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_QueryAllServicesResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.service.QueryAllServicesResponse.service":
+ return len(x.Service) != 0
+ case "poktroll.service.QueryAllServicesResponse.pagination":
+ return x.Pagination != nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryAllServicesResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryAllServicesResponse 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_QueryAllServicesResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.service.QueryAllServicesResponse.service":
+ x.Service = nil
+ case "poktroll.service.QueryAllServicesResponse.pagination":
+ x.Pagination = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryAllServicesResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryAllServicesResponse 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_QueryAllServicesResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.service.QueryAllServicesResponse.service":
+ if len(x.Service) == 0 {
+ return protoreflect.ValueOfList(&_QueryAllServicesResponse_1_list{})
+ }
+ listValue := &_QueryAllServicesResponse_1_list{list: &x.Service}
+ return protoreflect.ValueOfList(listValue)
+ case "poktroll.service.QueryAllServicesResponse.pagination":
+ value := x.Pagination
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryAllServicesResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryAllServicesResponse 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_QueryAllServicesResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.service.QueryAllServicesResponse.service":
+ lv := value.List()
+ clv := lv.(*_QueryAllServicesResponse_1_list)
+ x.Service = *clv.list
+ case "poktroll.service.QueryAllServicesResponse.pagination":
+ x.Pagination = value.Message().Interface().(*v1beta1.PageResponse)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryAllServicesResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryAllServicesResponse 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_QueryAllServicesResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.service.QueryAllServicesResponse.service":
+ if x.Service == nil {
+ x.Service = []*shared.Service{}
+ }
+ value := &_QueryAllServicesResponse_1_list{list: &x.Service}
+ return protoreflect.ValueOfList(value)
+ case "poktroll.service.QueryAllServicesResponse.pagination":
+ if x.Pagination == nil {
+ x.Pagination = new(v1beta1.PageResponse)
+ }
+ return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryAllServicesResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryAllServicesResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_QueryAllServicesResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.service.QueryAllServicesResponse.service":
+ list := []*shared.Service{}
+ return protoreflect.ValueOfList(&_QueryAllServicesResponse_1_list{list: &list})
+ case "poktroll.service.QueryAllServicesResponse.pagination":
+ m := new(v1beta1.PageResponse)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryAllServicesResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryAllServicesResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_QueryAllServicesResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.service.QueryAllServicesResponse", 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_QueryAllServicesResponse) 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_QueryAllServicesResponse) 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_QueryAllServicesResponse) 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_QueryAllServicesResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryAllServicesResponse)
+ 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.Service) > 0 {
+ for _, e := range x.Service {
+ l = options.Size(e)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ }
+ if x.Pagination != nil {
+ l = options.Size(x.Pagination)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*QueryAllServicesResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if x.Pagination != nil {
+ encoded, err := options.Marshal(x.Pagination)
+ if err != nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, err
+ }
+ i -= len(encoded)
+ copy(dAtA[i:], encoded)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if len(x.Service) > 0 {
+ for iNdEx := len(x.Service) - 1; iNdEx >= 0; iNdEx-- {
+ encoded, err := options.Marshal(x.Service[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().(*QueryAllServicesResponse)
+ 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: QueryAllServicesResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllServicesResponse: 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 Service", 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.Service = append(x.Service, &shared.Service{})
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Service[len(x.Service)-1]); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if x.Pagination == nil {
+ x.Pagination = &v1beta1.PageResponse{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.27.0
+// protoc (unknown)
+// source: poktroll/service/query.proto
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+// QueryParamsRequest is request type for the Query/Params RPC method.
+type QueryParamsRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+}
+
+func (x *QueryParamsRequest) Reset() {
+ *x = QueryParamsRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_service_query_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryParamsRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryParamsRequest) ProtoMessage() {}
+
+// Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead.
+func (*QueryParamsRequest) Descriptor() ([]byte, []int) {
+ return file_poktroll_service_query_proto_rawDescGZIP(), []int{0}
+}
+
+// QueryParamsResponse is response type for the Query/Params RPC method.
+type QueryParamsResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // params holds all the parameters of this module.
+ Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
+}
+
+func (x *QueryParamsResponse) Reset() {
+ *x = QueryParamsResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_service_query_proto_msgTypes[1]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryParamsResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryParamsResponse) ProtoMessage() {}
+
+// Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead.
+func (*QueryParamsResponse) Descriptor() ([]byte, []int) {
+ return file_poktroll_service_query_proto_rawDescGZIP(), []int{1}
+}
+
+func (x *QueryParamsResponse) GetParams() *Params {
+ if x != nil {
+ return x.Params
+ }
+ return nil
+}
+
+type QueryGetServiceRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // TODO: We could support getting services by name.
+ Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
+}
+
+func (x *QueryGetServiceRequest) Reset() {
+ *x = QueryGetServiceRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_service_query_proto_msgTypes[2]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryGetServiceRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryGetServiceRequest) ProtoMessage() {}
+
+// Deprecated: Use QueryGetServiceRequest.ProtoReflect.Descriptor instead.
+func (*QueryGetServiceRequest) Descriptor() ([]byte, []int) {
+ return file_poktroll_service_query_proto_rawDescGZIP(), []int{2}
+}
+
+func (x *QueryGetServiceRequest) GetId() string {
+ if x != nil {
+ return x.Id
+ }
+ return ""
+}
+
+type QueryGetServiceResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Service *shared.Service `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
+}
+
+func (x *QueryGetServiceResponse) Reset() {
+ *x = QueryGetServiceResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_service_query_proto_msgTypes[3]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryGetServiceResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryGetServiceResponse) ProtoMessage() {}
+
+// Deprecated: Use QueryGetServiceResponse.ProtoReflect.Descriptor instead.
+func (*QueryGetServiceResponse) Descriptor() ([]byte, []int) {
+ return file_poktroll_service_query_proto_rawDescGZIP(), []int{3}
+}
+
+func (x *QueryGetServiceResponse) GetService() *shared.Service {
+ if x != nil {
+ return x.Service
+ }
+ return nil
+}
+
+type QueryAllServicesRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
+}
+
+func (x *QueryAllServicesRequest) Reset() {
+ *x = QueryAllServicesRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_service_query_proto_msgTypes[4]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryAllServicesRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryAllServicesRequest) ProtoMessage() {}
+
+// Deprecated: Use QueryAllServicesRequest.ProtoReflect.Descriptor instead.
+func (*QueryAllServicesRequest) Descriptor() ([]byte, []int) {
+ return file_poktroll_service_query_proto_rawDescGZIP(), []int{4}
+}
+
+func (x *QueryAllServicesRequest) GetPagination() *v1beta1.PageRequest {
+ if x != nil {
+ return x.Pagination
+ }
+ return nil
+}
+
+type QueryAllServicesResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Service []*shared.Service `protobuf:"bytes,1,rep,name=service,proto3" json:"service,omitempty"`
+ Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
+}
+
+func (x *QueryAllServicesResponse) Reset() {
+ *x = QueryAllServicesResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_service_query_proto_msgTypes[5]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryAllServicesResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryAllServicesResponse) ProtoMessage() {}
+
+// Deprecated: Use QueryAllServicesResponse.ProtoReflect.Descriptor instead.
+func (*QueryAllServicesResponse) Descriptor() ([]byte, []int) {
+ return file_poktroll_service_query_proto_rawDescGZIP(), []int{5}
+}
+
+func (x *QueryAllServicesResponse) GetService() []*shared.Service {
+ if x != nil {
+ return x.Service
+ }
+ return nil
+}
+
+func (x *QueryAllServicesResponse) GetPagination() *v1beta1.PageResponse {
+ if x != nil {
+ return x.Pagination
+ }
+ return nil
+}
+
+var File_poktroll_service_query_proto protoreflect.FileDescriptor
+
+var file_poktroll_service_query_proto_rawDesc = []byte{
+ 0x0a, 0x1c, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69,
+ 0x63, 0x65, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10,
+ 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
+ 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, 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, 0x2a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f,
+ 0x62, 0x61, 0x73, 0x65, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74,
+ 0x61, 0x31, 0x2f, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72,
+ 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x65,
+ 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f,
+ 0x74, 0x6f, 0x1a, 0x1d, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x68, 0x61,
+ 0x72, 0x65, 0x64, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 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, 0x52, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79,
+ 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3b,
+ 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18,
+ 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
+ 0x65, 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, 0x28, 0x0a, 0x16, 0x51,
+ 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65,
+ 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x53, 0x0a, 0x17, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65,
+ 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
+ 0x12, 0x38, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
+ 0x0b, 0x32, 0x18, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x68, 0x61,
+ 0x72, 0x65, 0x64, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f,
+ 0x00, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 0x61, 0x0a, 0x17, 0x51, 0x75,
+ 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65,
+ 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74,
+ 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d,
+ 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31,
+ 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
+ 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x9d, 0x01,
+ 0x0a, 0x18, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63,
+ 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x07, 0x73, 0x65,
+ 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x70, 0x6f,
+ 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x53, 0x65,
+ 0x72, 0x76, 0x69, 0x63, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x07, 0x73, 0x65, 0x72,
+ 0x76, 0x69, 0x63, 0x65, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69,
+ 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f,
+ 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62,
+ 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
+ 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x32, 0xbb, 0x03,
+ 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x84, 0x01, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61,
+ 0x6d, 0x73, 0x12, 0x24, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x65,
+ 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d,
+ 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72,
+ 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72,
+ 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
+ 0x2d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x12, 0x25, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x2d, 0x6e,
+ 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f,
+ 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x93,
+ 0x01, 0x0a, 0x07, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x28, 0x2e, 0x70, 0x6f, 0x6b,
+ 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x51, 0x75,
+ 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71,
+ 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e,
+ 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74,
+ 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
+ 0x33, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x12, 0x2b, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x2d, 0x6e,
+ 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f,
+ 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f,
+ 0x7b, 0x69, 0x64, 0x7d, 0x12, 0x94, 0x01, 0x0a, 0x0b, 0x41, 0x6c, 0x6c, 0x53, 0x65, 0x72, 0x76,
+ 0x69, 0x63, 0x65, 0x73, 0x12, 0x29, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e,
+ 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c,
+ 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
+ 0x2a, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69,
+ 0x63, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x53, 0x65, 0x72, 0x76, 0x69,
+ 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2e, 0x82, 0xd3, 0xe4,
+ 0x93, 0x02, 0x28, 0x12, 0x26, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f,
+ 0x72, 0x6b, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76,
+ 0x69, 0x63, 0x65, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x42, 0xa6, 0x01, 0x0a, 0x14,
+ 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x65, 0x72,
+ 0x76, 0x69, 0x63, 0x65, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f,
+ 0x50, 0x01, 0x5a, 0x21, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f,
+ 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x65,
+ 0x72, 0x76, 0x69, 0x63, 0x65, 0xa2, 0x02, 0x03, 0x50, 0x53, 0x58, 0xaa, 0x02, 0x10, 0x50, 0x6f,
+ 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xca, 0x02,
+ 0x10, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63,
+ 0x65, 0xe2, 0x02, 0x1c, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x53, 0x65, 0x72,
+ 0x76, 0x69, 0x63, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61,
+ 0xea, 0x02, 0x11, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x3a, 0x3a, 0x53, 0x65, 0x72,
+ 0x76, 0x69, 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_poktroll_service_query_proto_rawDescOnce sync.Once
+ file_poktroll_service_query_proto_rawDescData = file_poktroll_service_query_proto_rawDesc
+)
+
+func file_poktroll_service_query_proto_rawDescGZIP() []byte {
+ file_poktroll_service_query_proto_rawDescOnce.Do(func() {
+ file_poktroll_service_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_poktroll_service_query_proto_rawDescData)
+ })
+ return file_poktroll_service_query_proto_rawDescData
+}
+
+var file_poktroll_service_query_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
+var file_poktroll_service_query_proto_goTypes = []interface{}{
+ (*QueryParamsRequest)(nil), // 0: poktroll.service.QueryParamsRequest
+ (*QueryParamsResponse)(nil), // 1: poktroll.service.QueryParamsResponse
+ (*QueryGetServiceRequest)(nil), // 2: poktroll.service.QueryGetServiceRequest
+ (*QueryGetServiceResponse)(nil), // 3: poktroll.service.QueryGetServiceResponse
+ (*QueryAllServicesRequest)(nil), // 4: poktroll.service.QueryAllServicesRequest
+ (*QueryAllServicesResponse)(nil), // 5: poktroll.service.QueryAllServicesResponse
+ (*Params)(nil), // 6: poktroll.service.Params
+ (*shared.Service)(nil), // 7: poktroll.shared.Service
+ (*v1beta1.PageRequest)(nil), // 8: cosmos.base.query.v1beta1.PageRequest
+ (*v1beta1.PageResponse)(nil), // 9: cosmos.base.query.v1beta1.PageResponse
+}
+var file_poktroll_service_query_proto_depIdxs = []int32{
+ 6, // 0: poktroll.service.QueryParamsResponse.params:type_name -> poktroll.service.Params
+ 7, // 1: poktroll.service.QueryGetServiceResponse.service:type_name -> poktroll.shared.Service
+ 8, // 2: poktroll.service.QueryAllServicesRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest
+ 7, // 3: poktroll.service.QueryAllServicesResponse.service:type_name -> poktroll.shared.Service
+ 9, // 4: poktroll.service.QueryAllServicesResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse
+ 0, // 5: poktroll.service.Query.Params:input_type -> poktroll.service.QueryParamsRequest
+ 2, // 6: poktroll.service.Query.Service:input_type -> poktroll.service.QueryGetServiceRequest
+ 4, // 7: poktroll.service.Query.AllServices:input_type -> poktroll.service.QueryAllServicesRequest
+ 1, // 8: poktroll.service.Query.Params:output_type -> poktroll.service.QueryParamsResponse
+ 3, // 9: poktroll.service.Query.Service:output_type -> poktroll.service.QueryGetServiceResponse
+ 5, // 10: poktroll.service.Query.AllServices:output_type -> poktroll.service.QueryAllServicesResponse
+ 8, // [8:11] is the sub-list for method output_type
+ 5, // [5:8] 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_poktroll_service_query_proto_init() }
+func file_poktroll_service_query_proto_init() {
+ if File_poktroll_service_query_proto != nil {
+ return
+ }
+ file_poktroll_service_params_proto_init()
+ if !protoimpl.UnsafeEnabled {
+ file_poktroll_service_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryParamsRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_service_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryParamsResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_service_query_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryGetServiceRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_service_query_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryGetServiceResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_service_query_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryAllServicesRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_service_query_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryAllServicesResponse); 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_poktroll_service_query_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 6,
+ NumExtensions: 0,
+ NumServices: 1,
+ },
+ GoTypes: file_poktroll_service_query_proto_goTypes,
+ DependencyIndexes: file_poktroll_service_query_proto_depIdxs,
+ MessageInfos: file_poktroll_service_query_proto_msgTypes,
+ }.Build()
+ File_poktroll_service_query_proto = out.File
+ file_poktroll_service_query_proto_rawDesc = nil
+ file_poktroll_service_query_proto_goTypes = nil
+ file_poktroll_service_query_proto_depIdxs = nil
+}
diff --git a/api/poktroll/service/relay.pulsar.go b/api/poktroll/service/relay.pulsar.go
new file mode 100644
index 000000000..58e673ebe
--- /dev/null
+++ b/api/poktroll/service/relay.pulsar.go
@@ -0,0 +1,2956 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package service
+
+import (
+ fmt "fmt"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ session "github.com/pokt-network/poktroll/api/poktroll/session"
+ 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_Relay protoreflect.MessageDescriptor
+ fd_Relay_req protoreflect.FieldDescriptor
+ fd_Relay_res protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_service_relay_proto_init()
+ md_Relay = File_poktroll_service_relay_proto.Messages().ByName("Relay")
+ fd_Relay_req = md_Relay.Fields().ByName("req")
+ fd_Relay_res = md_Relay.Fields().ByName("res")
+}
+
+var _ protoreflect.Message = (*fastReflection_Relay)(nil)
+
+type fastReflection_Relay Relay
+
+func (x *Relay) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_Relay)(x)
+}
+
+func (x *Relay) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_service_relay_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_Relay_messageType fastReflection_Relay_messageType
+var _ protoreflect.MessageType = fastReflection_Relay_messageType{}
+
+type fastReflection_Relay_messageType struct{}
+
+func (x fastReflection_Relay_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_Relay)(nil)
+}
+func (x fastReflection_Relay_messageType) New() protoreflect.Message {
+ return new(fastReflection_Relay)
+}
+func (x fastReflection_Relay_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_Relay
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_Relay) Descriptor() protoreflect.MessageDescriptor {
+ return md_Relay
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_Relay) Type() protoreflect.MessageType {
+ return _fastReflection_Relay_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_Relay) New() protoreflect.Message {
+ return new(fastReflection_Relay)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_Relay) Interface() protoreflect.ProtoMessage {
+ return (*Relay)(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_Relay) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Req != nil {
+ value := protoreflect.ValueOfMessage(x.Req.ProtoReflect())
+ if !f(fd_Relay_req, value) {
+ return
+ }
+ }
+ if x.Res != nil {
+ value := protoreflect.ValueOfMessage(x.Res.ProtoReflect())
+ if !f(fd_Relay_res, 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_Relay) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.service.Relay.req":
+ return x.Req != nil
+ case "poktroll.service.Relay.res":
+ return x.Res != nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.Relay"))
+ }
+ panic(fmt.Errorf("message poktroll.service.Relay 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_Relay) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.service.Relay.req":
+ x.Req = nil
+ case "poktroll.service.Relay.res":
+ x.Res = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.Relay"))
+ }
+ panic(fmt.Errorf("message poktroll.service.Relay 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_Relay) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.service.Relay.req":
+ value := x.Req
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ case "poktroll.service.Relay.res":
+ value := x.Res
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.Relay"))
+ }
+ panic(fmt.Errorf("message poktroll.service.Relay 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_Relay) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.service.Relay.req":
+ x.Req = value.Message().Interface().(*RelayRequest)
+ case "poktroll.service.Relay.res":
+ x.Res = value.Message().Interface().(*RelayResponse)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.Relay"))
+ }
+ panic(fmt.Errorf("message poktroll.service.Relay 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_Relay) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.service.Relay.req":
+ if x.Req == nil {
+ x.Req = new(RelayRequest)
+ }
+ return protoreflect.ValueOfMessage(x.Req.ProtoReflect())
+ case "poktroll.service.Relay.res":
+ if x.Res == nil {
+ x.Res = new(RelayResponse)
+ }
+ return protoreflect.ValueOfMessage(x.Res.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.Relay"))
+ }
+ panic(fmt.Errorf("message poktroll.service.Relay does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_Relay) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.service.Relay.req":
+ m := new(RelayRequest)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ case "poktroll.service.Relay.res":
+ m := new(RelayResponse)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.Relay"))
+ }
+ panic(fmt.Errorf("message poktroll.service.Relay does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_Relay) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.service.Relay", 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_Relay) 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_Relay) 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_Relay) 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_Relay) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*Relay)
+ 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.Req != nil {
+ l = options.Size(x.Req)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.Res != nil {
+ l = options.Size(x.Res)
+ 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().(*Relay)
+ 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.Res != nil {
+ encoded, err := options.Marshal(x.Res)
+ 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.Req != nil {
+ encoded, err := options.Marshal(x.Req)
+ 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().(*Relay)
+ 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: Relay: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Relay: 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 Req", 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.Req == nil {
+ x.Req = &RelayRequest{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Req); 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 Res", 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.Res == nil {
+ x.Res = &RelayResponse{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Res); 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_RelayRequestMetadata protoreflect.MessageDescriptor
+ fd_RelayRequestMetadata_session_header protoreflect.FieldDescriptor
+ fd_RelayRequestMetadata_signature protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_service_relay_proto_init()
+ md_RelayRequestMetadata = File_poktroll_service_relay_proto.Messages().ByName("RelayRequestMetadata")
+ fd_RelayRequestMetadata_session_header = md_RelayRequestMetadata.Fields().ByName("session_header")
+ fd_RelayRequestMetadata_signature = md_RelayRequestMetadata.Fields().ByName("signature")
+}
+
+var _ protoreflect.Message = (*fastReflection_RelayRequestMetadata)(nil)
+
+type fastReflection_RelayRequestMetadata RelayRequestMetadata
+
+func (x *RelayRequestMetadata) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_RelayRequestMetadata)(x)
+}
+
+func (x *RelayRequestMetadata) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_service_relay_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_RelayRequestMetadata_messageType fastReflection_RelayRequestMetadata_messageType
+var _ protoreflect.MessageType = fastReflection_RelayRequestMetadata_messageType{}
+
+type fastReflection_RelayRequestMetadata_messageType struct{}
+
+func (x fastReflection_RelayRequestMetadata_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_RelayRequestMetadata)(nil)
+}
+func (x fastReflection_RelayRequestMetadata_messageType) New() protoreflect.Message {
+ return new(fastReflection_RelayRequestMetadata)
+}
+func (x fastReflection_RelayRequestMetadata_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_RelayRequestMetadata
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_RelayRequestMetadata) Descriptor() protoreflect.MessageDescriptor {
+ return md_RelayRequestMetadata
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_RelayRequestMetadata) Type() protoreflect.MessageType {
+ return _fastReflection_RelayRequestMetadata_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_RelayRequestMetadata) New() protoreflect.Message {
+ return new(fastReflection_RelayRequestMetadata)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_RelayRequestMetadata) Interface() protoreflect.ProtoMessage {
+ return (*RelayRequestMetadata)(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_RelayRequestMetadata) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.SessionHeader != nil {
+ value := protoreflect.ValueOfMessage(x.SessionHeader.ProtoReflect())
+ if !f(fd_RelayRequestMetadata_session_header, value) {
+ return
+ }
+ }
+ if len(x.Signature) != 0 {
+ value := protoreflect.ValueOfBytes(x.Signature)
+ if !f(fd_RelayRequestMetadata_signature, 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_RelayRequestMetadata) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.service.RelayRequestMetadata.session_header":
+ return x.SessionHeader != nil
+ case "poktroll.service.RelayRequestMetadata.signature":
+ return len(x.Signature) != 0
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.RelayRequestMetadata"))
+ }
+ panic(fmt.Errorf("message poktroll.service.RelayRequestMetadata 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_RelayRequestMetadata) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.service.RelayRequestMetadata.session_header":
+ x.SessionHeader = nil
+ case "poktroll.service.RelayRequestMetadata.signature":
+ x.Signature = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.RelayRequestMetadata"))
+ }
+ panic(fmt.Errorf("message poktroll.service.RelayRequestMetadata 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_RelayRequestMetadata) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.service.RelayRequestMetadata.session_header":
+ value := x.SessionHeader
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ case "poktroll.service.RelayRequestMetadata.signature":
+ value := x.Signature
+ return protoreflect.ValueOfBytes(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.RelayRequestMetadata"))
+ }
+ panic(fmt.Errorf("message poktroll.service.RelayRequestMetadata 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_RelayRequestMetadata) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.service.RelayRequestMetadata.session_header":
+ x.SessionHeader = value.Message().Interface().(*session.SessionHeader)
+ case "poktroll.service.RelayRequestMetadata.signature":
+ x.Signature = value.Bytes()
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.RelayRequestMetadata"))
+ }
+ panic(fmt.Errorf("message poktroll.service.RelayRequestMetadata 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_RelayRequestMetadata) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.service.RelayRequestMetadata.session_header":
+ if x.SessionHeader == nil {
+ x.SessionHeader = new(session.SessionHeader)
+ }
+ return protoreflect.ValueOfMessage(x.SessionHeader.ProtoReflect())
+ case "poktroll.service.RelayRequestMetadata.signature":
+ panic(fmt.Errorf("field signature of message poktroll.service.RelayRequestMetadata is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.RelayRequestMetadata"))
+ }
+ panic(fmt.Errorf("message poktroll.service.RelayRequestMetadata does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_RelayRequestMetadata) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.service.RelayRequestMetadata.session_header":
+ m := new(session.SessionHeader)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ case "poktroll.service.RelayRequestMetadata.signature":
+ return protoreflect.ValueOfBytes(nil)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.RelayRequestMetadata"))
+ }
+ panic(fmt.Errorf("message poktroll.service.RelayRequestMetadata does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_RelayRequestMetadata) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.service.RelayRequestMetadata", 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_RelayRequestMetadata) 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_RelayRequestMetadata) 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_RelayRequestMetadata) 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_RelayRequestMetadata) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*RelayRequestMetadata)
+ 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.SessionHeader != nil {
+ l = options.Size(x.SessionHeader)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.Signature)
+ 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().(*RelayRequestMetadata)
+ 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.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.SessionHeader != nil {
+ encoded, err := options.Marshal(x.SessionHeader)
+ 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().(*RelayRequestMetadata)
+ 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: RelayRequestMetadata: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RelayRequestMetadata: 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 SessionHeader", 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.SessionHeader == nil {
+ x.SessionHeader = &session.SessionHeader{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.SessionHeader); 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
+ 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_RelayRequest protoreflect.MessageDescriptor
+ fd_RelayRequest_meta protoreflect.FieldDescriptor
+ fd_RelayRequest_payload protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_service_relay_proto_init()
+ md_RelayRequest = File_poktroll_service_relay_proto.Messages().ByName("RelayRequest")
+ fd_RelayRequest_meta = md_RelayRequest.Fields().ByName("meta")
+ fd_RelayRequest_payload = md_RelayRequest.Fields().ByName("payload")
+}
+
+var _ protoreflect.Message = (*fastReflection_RelayRequest)(nil)
+
+type fastReflection_RelayRequest RelayRequest
+
+func (x *RelayRequest) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_RelayRequest)(x)
+}
+
+func (x *RelayRequest) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_service_relay_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_RelayRequest_messageType fastReflection_RelayRequest_messageType
+var _ protoreflect.MessageType = fastReflection_RelayRequest_messageType{}
+
+type fastReflection_RelayRequest_messageType struct{}
+
+func (x fastReflection_RelayRequest_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_RelayRequest)(nil)
+}
+func (x fastReflection_RelayRequest_messageType) New() protoreflect.Message {
+ return new(fastReflection_RelayRequest)
+}
+func (x fastReflection_RelayRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_RelayRequest
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_RelayRequest) Descriptor() protoreflect.MessageDescriptor {
+ return md_RelayRequest
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_RelayRequest) Type() protoreflect.MessageType {
+ return _fastReflection_RelayRequest_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_RelayRequest) New() protoreflect.Message {
+ return new(fastReflection_RelayRequest)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_RelayRequest) Interface() protoreflect.ProtoMessage {
+ return (*RelayRequest)(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_RelayRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Meta != nil {
+ value := protoreflect.ValueOfMessage(x.Meta.ProtoReflect())
+ if !f(fd_RelayRequest_meta, value) {
+ return
+ }
+ }
+ if len(x.Payload) != 0 {
+ value := protoreflect.ValueOfBytes(x.Payload)
+ if !f(fd_RelayRequest_payload, 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_RelayRequest) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.service.RelayRequest.meta":
+ return x.Meta != nil
+ case "poktroll.service.RelayRequest.payload":
+ return len(x.Payload) != 0
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.RelayRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.service.RelayRequest 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_RelayRequest) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.service.RelayRequest.meta":
+ x.Meta = nil
+ case "poktroll.service.RelayRequest.payload":
+ x.Payload = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.RelayRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.service.RelayRequest 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_RelayRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.service.RelayRequest.meta":
+ value := x.Meta
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ case "poktroll.service.RelayRequest.payload":
+ value := x.Payload
+ return protoreflect.ValueOfBytes(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.RelayRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.service.RelayRequest 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_RelayRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.service.RelayRequest.meta":
+ x.Meta = value.Message().Interface().(*RelayRequestMetadata)
+ case "poktroll.service.RelayRequest.payload":
+ x.Payload = value.Bytes()
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.RelayRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.service.RelayRequest 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_RelayRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.service.RelayRequest.meta":
+ if x.Meta == nil {
+ x.Meta = new(RelayRequestMetadata)
+ }
+ return protoreflect.ValueOfMessage(x.Meta.ProtoReflect())
+ case "poktroll.service.RelayRequest.payload":
+ panic(fmt.Errorf("field payload of message poktroll.service.RelayRequest is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.RelayRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.service.RelayRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_RelayRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.service.RelayRequest.meta":
+ m := new(RelayRequestMetadata)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ case "poktroll.service.RelayRequest.payload":
+ return protoreflect.ValueOfBytes(nil)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.RelayRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.service.RelayRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_RelayRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.service.RelayRequest", 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_RelayRequest) 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_RelayRequest) 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_RelayRequest) 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_RelayRequest) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*RelayRequest)
+ 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.Meta != nil {
+ l = options.Size(x.Meta)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.Payload)
+ 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().(*RelayRequest)
+ 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.Payload) > 0 {
+ i -= len(x.Payload)
+ copy(dAtA[i:], x.Payload)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Payload)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if x.Meta != nil {
+ encoded, err := options.Marshal(x.Meta)
+ 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().(*RelayRequest)
+ 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: RelayRequest: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RelayRequest: 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 Meta", 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.Meta == nil {
+ x.Meta = &RelayRequestMetadata{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Meta); 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 Payload", 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.Payload = append(x.Payload[:0], dAtA[iNdEx:postIndex]...)
+ if x.Payload == nil {
+ x.Payload = []byte{}
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_RelayResponse protoreflect.MessageDescriptor
+ fd_RelayResponse_meta protoreflect.FieldDescriptor
+ fd_RelayResponse_payload protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_service_relay_proto_init()
+ md_RelayResponse = File_poktroll_service_relay_proto.Messages().ByName("RelayResponse")
+ fd_RelayResponse_meta = md_RelayResponse.Fields().ByName("meta")
+ fd_RelayResponse_payload = md_RelayResponse.Fields().ByName("payload")
+}
+
+var _ protoreflect.Message = (*fastReflection_RelayResponse)(nil)
+
+type fastReflection_RelayResponse RelayResponse
+
+func (x *RelayResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_RelayResponse)(x)
+}
+
+func (x *RelayResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_service_relay_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_RelayResponse_messageType fastReflection_RelayResponse_messageType
+var _ protoreflect.MessageType = fastReflection_RelayResponse_messageType{}
+
+type fastReflection_RelayResponse_messageType struct{}
+
+func (x fastReflection_RelayResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_RelayResponse)(nil)
+}
+func (x fastReflection_RelayResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_RelayResponse)
+}
+func (x fastReflection_RelayResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_RelayResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_RelayResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_RelayResponse
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_RelayResponse) Type() protoreflect.MessageType {
+ return _fastReflection_RelayResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_RelayResponse) New() protoreflect.Message {
+ return new(fastReflection_RelayResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_RelayResponse) Interface() protoreflect.ProtoMessage {
+ return (*RelayResponse)(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_RelayResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Meta != nil {
+ value := protoreflect.ValueOfMessage(x.Meta.ProtoReflect())
+ if !f(fd_RelayResponse_meta, value) {
+ return
+ }
+ }
+ if len(x.Payload) != 0 {
+ value := protoreflect.ValueOfBytes(x.Payload)
+ if !f(fd_RelayResponse_payload, 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_RelayResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.service.RelayResponse.meta":
+ return x.Meta != nil
+ case "poktroll.service.RelayResponse.payload":
+ return len(x.Payload) != 0
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.RelayResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.RelayResponse 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_RelayResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.service.RelayResponse.meta":
+ x.Meta = nil
+ case "poktroll.service.RelayResponse.payload":
+ x.Payload = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.RelayResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.RelayResponse 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_RelayResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.service.RelayResponse.meta":
+ value := x.Meta
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ case "poktroll.service.RelayResponse.payload":
+ value := x.Payload
+ return protoreflect.ValueOfBytes(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.RelayResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.RelayResponse 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_RelayResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.service.RelayResponse.meta":
+ x.Meta = value.Message().Interface().(*RelayResponseMetadata)
+ case "poktroll.service.RelayResponse.payload":
+ x.Payload = value.Bytes()
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.RelayResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.RelayResponse 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_RelayResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.service.RelayResponse.meta":
+ if x.Meta == nil {
+ x.Meta = new(RelayResponseMetadata)
+ }
+ return protoreflect.ValueOfMessage(x.Meta.ProtoReflect())
+ case "poktroll.service.RelayResponse.payload":
+ panic(fmt.Errorf("field payload of message poktroll.service.RelayResponse is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.RelayResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.RelayResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_RelayResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.service.RelayResponse.meta":
+ m := new(RelayResponseMetadata)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ case "poktroll.service.RelayResponse.payload":
+ return protoreflect.ValueOfBytes(nil)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.RelayResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.RelayResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_RelayResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.service.RelayResponse", 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_RelayResponse) 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_RelayResponse) 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_RelayResponse) 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_RelayResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*RelayResponse)
+ 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.Meta != nil {
+ l = options.Size(x.Meta)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.Payload)
+ 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().(*RelayResponse)
+ 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.Payload) > 0 {
+ i -= len(x.Payload)
+ copy(dAtA[i:], x.Payload)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Payload)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if x.Meta != nil {
+ encoded, err := options.Marshal(x.Meta)
+ 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().(*RelayResponse)
+ 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: RelayResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RelayResponse: 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 Meta", 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.Meta == nil {
+ x.Meta = &RelayResponseMetadata{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Meta); 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 Payload", 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.Payload = append(x.Payload[:0], dAtA[iNdEx:postIndex]...)
+ if x.Payload == nil {
+ x.Payload = []byte{}
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_RelayResponseMetadata protoreflect.MessageDescriptor
+ fd_RelayResponseMetadata_session_header protoreflect.FieldDescriptor
+ fd_RelayResponseMetadata_supplier_signature protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_service_relay_proto_init()
+ md_RelayResponseMetadata = File_poktroll_service_relay_proto.Messages().ByName("RelayResponseMetadata")
+ fd_RelayResponseMetadata_session_header = md_RelayResponseMetadata.Fields().ByName("session_header")
+ fd_RelayResponseMetadata_supplier_signature = md_RelayResponseMetadata.Fields().ByName("supplier_signature")
+}
+
+var _ protoreflect.Message = (*fastReflection_RelayResponseMetadata)(nil)
+
+type fastReflection_RelayResponseMetadata RelayResponseMetadata
+
+func (x *RelayResponseMetadata) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_RelayResponseMetadata)(x)
+}
+
+func (x *RelayResponseMetadata) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_service_relay_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_RelayResponseMetadata_messageType fastReflection_RelayResponseMetadata_messageType
+var _ protoreflect.MessageType = fastReflection_RelayResponseMetadata_messageType{}
+
+type fastReflection_RelayResponseMetadata_messageType struct{}
+
+func (x fastReflection_RelayResponseMetadata_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_RelayResponseMetadata)(nil)
+}
+func (x fastReflection_RelayResponseMetadata_messageType) New() protoreflect.Message {
+ return new(fastReflection_RelayResponseMetadata)
+}
+func (x fastReflection_RelayResponseMetadata_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_RelayResponseMetadata
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_RelayResponseMetadata) Descriptor() protoreflect.MessageDescriptor {
+ return md_RelayResponseMetadata
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_RelayResponseMetadata) Type() protoreflect.MessageType {
+ return _fastReflection_RelayResponseMetadata_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_RelayResponseMetadata) New() protoreflect.Message {
+ return new(fastReflection_RelayResponseMetadata)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_RelayResponseMetadata) Interface() protoreflect.ProtoMessage {
+ return (*RelayResponseMetadata)(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_RelayResponseMetadata) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.SessionHeader != nil {
+ value := protoreflect.ValueOfMessage(x.SessionHeader.ProtoReflect())
+ if !f(fd_RelayResponseMetadata_session_header, value) {
+ return
+ }
+ }
+ if len(x.SupplierSignature) != 0 {
+ value := protoreflect.ValueOfBytes(x.SupplierSignature)
+ if !f(fd_RelayResponseMetadata_supplier_signature, 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_RelayResponseMetadata) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.service.RelayResponseMetadata.session_header":
+ return x.SessionHeader != nil
+ case "poktroll.service.RelayResponseMetadata.supplier_signature":
+ return len(x.SupplierSignature) != 0
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.RelayResponseMetadata"))
+ }
+ panic(fmt.Errorf("message poktroll.service.RelayResponseMetadata 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_RelayResponseMetadata) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.service.RelayResponseMetadata.session_header":
+ x.SessionHeader = nil
+ case "poktroll.service.RelayResponseMetadata.supplier_signature":
+ x.SupplierSignature = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.RelayResponseMetadata"))
+ }
+ panic(fmt.Errorf("message poktroll.service.RelayResponseMetadata 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_RelayResponseMetadata) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.service.RelayResponseMetadata.session_header":
+ value := x.SessionHeader
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ case "poktroll.service.RelayResponseMetadata.supplier_signature":
+ value := x.SupplierSignature
+ return protoreflect.ValueOfBytes(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.RelayResponseMetadata"))
+ }
+ panic(fmt.Errorf("message poktroll.service.RelayResponseMetadata 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_RelayResponseMetadata) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.service.RelayResponseMetadata.session_header":
+ x.SessionHeader = value.Message().Interface().(*session.SessionHeader)
+ case "poktroll.service.RelayResponseMetadata.supplier_signature":
+ x.SupplierSignature = value.Bytes()
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.RelayResponseMetadata"))
+ }
+ panic(fmt.Errorf("message poktroll.service.RelayResponseMetadata 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_RelayResponseMetadata) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.service.RelayResponseMetadata.session_header":
+ if x.SessionHeader == nil {
+ x.SessionHeader = new(session.SessionHeader)
+ }
+ return protoreflect.ValueOfMessage(x.SessionHeader.ProtoReflect())
+ case "poktroll.service.RelayResponseMetadata.supplier_signature":
+ panic(fmt.Errorf("field supplier_signature of message poktroll.service.RelayResponseMetadata is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.RelayResponseMetadata"))
+ }
+ panic(fmt.Errorf("message poktroll.service.RelayResponseMetadata does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_RelayResponseMetadata) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.service.RelayResponseMetadata.session_header":
+ m := new(session.SessionHeader)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ case "poktroll.service.RelayResponseMetadata.supplier_signature":
+ return protoreflect.ValueOfBytes(nil)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.RelayResponseMetadata"))
+ }
+ panic(fmt.Errorf("message poktroll.service.RelayResponseMetadata does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_RelayResponseMetadata) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.service.RelayResponseMetadata", 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_RelayResponseMetadata) 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_RelayResponseMetadata) 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_RelayResponseMetadata) 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_RelayResponseMetadata) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*RelayResponseMetadata)
+ 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.SessionHeader != nil {
+ l = options.Size(x.SessionHeader)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.SupplierSignature)
+ 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().(*RelayResponseMetadata)
+ 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.SupplierSignature) > 0 {
+ i -= len(x.SupplierSignature)
+ copy(dAtA[i:], x.SupplierSignature)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.SupplierSignature)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if x.SessionHeader != nil {
+ encoded, err := options.Marshal(x.SessionHeader)
+ 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().(*RelayResponseMetadata)
+ 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: RelayResponseMetadata: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RelayResponseMetadata: 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 SessionHeader", 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.SessionHeader == nil {
+ x.SessionHeader = &session.SessionHeader{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.SessionHeader); 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 SupplierSignature", 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.SupplierSignature = append(x.SupplierSignature[:0], dAtA[iNdEx:postIndex]...)
+ if x.SupplierSignature == nil {
+ x.SupplierSignature = []byte{}
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.27.0
+// protoc (unknown)
+// source: poktroll/service/relay.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)
+)
+
+// Relay contains both the RelayRequest (signed by the Application) and the RelayResponse (signed by the Supplier).
+// The serialized tuple is inserted into the SMST leaves as values in the Claim/Proof lifecycle.
+type Relay struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Req *RelayRequest `protobuf:"bytes,1,opt,name=req,proto3" json:"req,omitempty"`
+ Res *RelayResponse `protobuf:"bytes,2,opt,name=res,proto3" json:"res,omitempty"`
+}
+
+func (x *Relay) Reset() {
+ *x = Relay{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_service_relay_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *Relay) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*Relay) ProtoMessage() {}
+
+// Deprecated: Use Relay.ProtoReflect.Descriptor instead.
+func (*Relay) Descriptor() ([]byte, []int) {
+ return file_poktroll_service_relay_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *Relay) GetReq() *RelayRequest {
+ if x != nil {
+ return x.Req
+ }
+ return nil
+}
+
+func (x *Relay) GetRes() *RelayResponse {
+ if x != nil {
+ return x.Res
+ }
+ return nil
+}
+
+// RelayRequestMetadata contains the metadata for a RelayRequest.
+type RelayRequestMetadata struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ SessionHeader *session.SessionHeader `protobuf:"bytes,1,opt,name=session_header,json=sessionHeader,proto3" json:"session_header,omitempty"` // Session header associated with the relay.
+ // The request signature is a serialized ring signature that may have been
+ // by either the application itself or one of the gateways that the
+ // application has delegated to. The signature is made using the ring of the
+ // application in both cases.
+ Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
+}
+
+func (x *RelayRequestMetadata) Reset() {
+ *x = RelayRequestMetadata{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_service_relay_proto_msgTypes[1]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *RelayRequestMetadata) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*RelayRequestMetadata) ProtoMessage() {}
+
+// Deprecated: Use RelayRequestMetadata.ProtoReflect.Descriptor instead.
+func (*RelayRequestMetadata) Descriptor() ([]byte, []int) {
+ return file_poktroll_service_relay_proto_rawDescGZIP(), []int{1}
+}
+
+func (x *RelayRequestMetadata) GetSessionHeader() *session.SessionHeader {
+ if x != nil {
+ return x.SessionHeader
+ }
+ return nil
+}
+
+func (x *RelayRequestMetadata) GetSignature() []byte {
+ if x != nil {
+ return x.Signature
+ }
+ return nil
+}
+
+// RelayRequest holds the request details for a relay.
+type RelayRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Meta *RelayRequestMetadata `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
+ // payload is the serialized payload for the request.
+ // The payload is passed directly to the service and as such can be any
+ // format that the service supports: JSON-RPC, REST, gRPC, etc.
+ Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
+}
+
+func (x *RelayRequest) Reset() {
+ *x = RelayRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_service_relay_proto_msgTypes[2]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *RelayRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*RelayRequest) ProtoMessage() {}
+
+// Deprecated: Use RelayRequest.ProtoReflect.Descriptor instead.
+func (*RelayRequest) Descriptor() ([]byte, []int) {
+ return file_poktroll_service_relay_proto_rawDescGZIP(), []int{2}
+}
+
+func (x *RelayRequest) GetMeta() *RelayRequestMetadata {
+ if x != nil {
+ return x.Meta
+ }
+ return nil
+}
+
+func (x *RelayRequest) GetPayload() []byte {
+ if x != nil {
+ return x.Payload
+ }
+ return nil
+}
+
+// RelayResponse contains the response details for a RelayRequest.
+type RelayResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Meta *RelayResponseMetadata `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
+ // payload is the serialized payload for the response.
+ // The payload is passed directly from the service and as such can be any
+ // format the the service responds with: JSON-RPC, REST, gRPC, etc.
+ Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
+}
+
+func (x *RelayResponse) Reset() {
+ *x = RelayResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_service_relay_proto_msgTypes[3]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *RelayResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*RelayResponse) ProtoMessage() {}
+
+// Deprecated: Use RelayResponse.ProtoReflect.Descriptor instead.
+func (*RelayResponse) Descriptor() ([]byte, []int) {
+ return file_poktroll_service_relay_proto_rawDescGZIP(), []int{3}
+}
+
+func (x *RelayResponse) GetMeta() *RelayResponseMetadata {
+ if x != nil {
+ return x.Meta
+ }
+ return nil
+}
+
+func (x *RelayResponse) GetPayload() []byte {
+ if x != nil {
+ return x.Payload
+ }
+ return nil
+}
+
+// RelayResponseMetadata contains the metadata for a RelayResponse.
+type RelayResponseMetadata struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ SessionHeader *session.SessionHeader `protobuf:"bytes,1,opt,name=session_header,json=sessionHeader,proto3" json:"session_header,omitempty"` // Session header associated with the relay.
+ SupplierSignature []byte `protobuf:"bytes,2,opt,name=supplier_signature,json=supplierSignature,proto3" json:"supplier_signature,omitempty"` // Signature of the supplier on the response.
+}
+
+func (x *RelayResponseMetadata) Reset() {
+ *x = RelayResponseMetadata{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_service_relay_proto_msgTypes[4]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *RelayResponseMetadata) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*RelayResponseMetadata) ProtoMessage() {}
+
+// Deprecated: Use RelayResponseMetadata.ProtoReflect.Descriptor instead.
+func (*RelayResponseMetadata) Descriptor() ([]byte, []int) {
+ return file_poktroll_service_relay_proto_rawDescGZIP(), []int{4}
+}
+
+func (x *RelayResponseMetadata) GetSessionHeader() *session.SessionHeader {
+ if x != nil {
+ return x.SessionHeader
+ }
+ return nil
+}
+
+func (x *RelayResponseMetadata) GetSupplierSignature() []byte {
+ if x != nil {
+ return x.SupplierSignature
+ }
+ return nil
+}
+
+var File_poktroll_service_relay_proto protoreflect.FileDescriptor
+
+var file_poktroll_service_relay_proto_rawDesc = []byte{
+ 0x0a, 0x1c, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69,
+ 0x63, 0x65, 0x2f, 0x72, 0x65, 0x6c, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10,
+ 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
+ 0x1a, 0x1e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x65, 0x73, 0x73, 0x69,
+ 0x6f, 0x6e, 0x2f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
+ 0x22, 0x6c, 0x0a, 0x05, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x12, 0x30, 0x0a, 0x03, 0x72, 0x65, 0x71,
+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c,
+ 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x52,
+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x03, 0x72, 0x65, 0x71, 0x12, 0x31, 0x0a, 0x03, 0x72,
+ 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72,
+ 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x52, 0x65, 0x6c, 0x61,
+ 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x03, 0x72, 0x65, 0x73, 0x22, 0x7c,
+ 0x0a, 0x14, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4d, 0x65,
+ 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x46, 0x0a, 0x0e, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f,
+ 0x6e, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f,
+ 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f,
+ 0x6e, 0x2e, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52,
+ 0x0d, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 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, 0x22, 0x64, 0x0a, 0x0c,
+ 0x52, 0x65, 0x6c, 0x61, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3a, 0x0a, 0x04,
+ 0x6d, 0x65, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x70, 0x6f, 0x6b,
+ 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x52, 0x65,
+ 0x6c, 0x61, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61,
+ 0x74, 0x61, 0x52, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c,
+ 0x6f, 0x61, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f,
+ 0x61, 0x64, 0x22, 0x66, 0x0a, 0x0d, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f,
+ 0x6e, 0x73, 0x65, 0x12, 0x3b, 0x0a, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28,
+ 0x0b, 0x32, 0x27, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x65, 0x72,
+ 0x76, 0x69, 0x63, 0x65, 0x2e, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
+ 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x04, 0x6d, 0x65, 0x74, 0x61,
+ 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28,
+ 0x0c, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0x8e, 0x01, 0x0a, 0x15, 0x52,
+ 0x65, 0x6c, 0x61, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61,
+ 0x64, 0x61, 0x74, 0x61, 0x12, 0x46, 0x0a, 0x0e, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f,
+ 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x70,
+ 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e,
+ 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x0d, 0x73,
+ 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x2d, 0x0a, 0x12,
+ 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75,
+ 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x11, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69,
+ 0x65, 0x72, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x42, 0xa6, 0x01, 0x0a, 0x14,
+ 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x65, 0x72,
+ 0x76, 0x69, 0x63, 0x65, 0x42, 0x0a, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f,
+ 0x50, 0x01, 0x5a, 0x21, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f,
+ 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x65,
+ 0x72, 0x76, 0x69, 0x63, 0x65, 0xa2, 0x02, 0x03, 0x50, 0x53, 0x58, 0xaa, 0x02, 0x10, 0x50, 0x6f,
+ 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xca, 0x02,
+ 0x10, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63,
+ 0x65, 0xe2, 0x02, 0x1c, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x53, 0x65, 0x72,
+ 0x76, 0x69, 0x63, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61,
+ 0xea, 0x02, 0x11, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x3a, 0x3a, 0x53, 0x65, 0x72,
+ 0x76, 0x69, 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_poktroll_service_relay_proto_rawDescOnce sync.Once
+ file_poktroll_service_relay_proto_rawDescData = file_poktroll_service_relay_proto_rawDesc
+)
+
+func file_poktroll_service_relay_proto_rawDescGZIP() []byte {
+ file_poktroll_service_relay_proto_rawDescOnce.Do(func() {
+ file_poktroll_service_relay_proto_rawDescData = protoimpl.X.CompressGZIP(file_poktroll_service_relay_proto_rawDescData)
+ })
+ return file_poktroll_service_relay_proto_rawDescData
+}
+
+var file_poktroll_service_relay_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
+var file_poktroll_service_relay_proto_goTypes = []interface{}{
+ (*Relay)(nil), // 0: poktroll.service.Relay
+ (*RelayRequestMetadata)(nil), // 1: poktroll.service.RelayRequestMetadata
+ (*RelayRequest)(nil), // 2: poktroll.service.RelayRequest
+ (*RelayResponse)(nil), // 3: poktroll.service.RelayResponse
+ (*RelayResponseMetadata)(nil), // 4: poktroll.service.RelayResponseMetadata
+ (*session.SessionHeader)(nil), // 5: poktroll.session.SessionHeader
+}
+var file_poktroll_service_relay_proto_depIdxs = []int32{
+ 2, // 0: poktroll.service.Relay.req:type_name -> poktroll.service.RelayRequest
+ 3, // 1: poktroll.service.Relay.res:type_name -> poktroll.service.RelayResponse
+ 5, // 2: poktroll.service.RelayRequestMetadata.session_header:type_name -> poktroll.session.SessionHeader
+ 1, // 3: poktroll.service.RelayRequest.meta:type_name -> poktroll.service.RelayRequestMetadata
+ 4, // 4: poktroll.service.RelayResponse.meta:type_name -> poktroll.service.RelayResponseMetadata
+ 5, // 5: poktroll.service.RelayResponseMetadata.session_header:type_name -> poktroll.session.SessionHeader
+ 6, // [6:6] is the sub-list for method output_type
+ 6, // [6:6] is the sub-list for method input_type
+ 6, // [6:6] is the sub-list for extension type_name
+ 6, // [6:6] is the sub-list for extension extendee
+ 0, // [0:6] is the sub-list for field type_name
+}
+
+func init() { file_poktroll_service_relay_proto_init() }
+func file_poktroll_service_relay_proto_init() {
+ if File_poktroll_service_relay_proto != nil {
+ return
+ }
+ if !protoimpl.UnsafeEnabled {
+ file_poktroll_service_relay_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*Relay); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_service_relay_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*RelayRequestMetadata); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_service_relay_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*RelayRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_service_relay_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*RelayResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_service_relay_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*RelayResponseMetadata); 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_poktroll_service_relay_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 5,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_poktroll_service_relay_proto_goTypes,
+ DependencyIndexes: file_poktroll_service_relay_proto_depIdxs,
+ MessageInfos: file_poktroll_service_relay_proto_msgTypes,
+ }.Build()
+ File_poktroll_service_relay_proto = out.File
+ file_poktroll_service_relay_proto_rawDesc = nil
+ file_poktroll_service_relay_proto_goTypes = nil
+ file_poktroll_service_relay_proto_depIdxs = nil
+}
diff --git a/api/poktroll/service/service.pulsar.go b/api/poktroll/service/service.pulsar.go
new file mode 100644
index 000000000..e47fdeda9
--- /dev/null
+++ b/api/poktroll/service/service.pulsar.go
@@ -0,0 +1,639 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package service
+
+import (
+ fmt "fmt"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoiface "google.golang.org/protobuf/runtime/protoiface"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ io "io"
+ reflect "reflect"
+ sync "sync"
+)
+
+var (
+ md_Service protoreflect.MessageDescriptor
+ fd_Service_index protoreflect.FieldDescriptor
+ fd_Service_name protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_service_service_proto_init()
+ md_Service = File_poktroll_service_service_proto.Messages().ByName("Service")
+ fd_Service_index = md_Service.Fields().ByName("index")
+ fd_Service_name = md_Service.Fields().ByName("name")
+}
+
+var _ protoreflect.Message = (*fastReflection_Service)(nil)
+
+type fastReflection_Service Service
+
+func (x *Service) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_Service)(x)
+}
+
+func (x *Service) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_service_service_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_Service_messageType fastReflection_Service_messageType
+var _ protoreflect.MessageType = fastReflection_Service_messageType{}
+
+type fastReflection_Service_messageType struct{}
+
+func (x fastReflection_Service_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_Service)(nil)
+}
+func (x fastReflection_Service_messageType) New() protoreflect.Message {
+ return new(fastReflection_Service)
+}
+func (x fastReflection_Service_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_Service
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_Service) Descriptor() protoreflect.MessageDescriptor {
+ return md_Service
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_Service) Type() protoreflect.MessageType {
+ return _fastReflection_Service_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_Service) New() protoreflect.Message {
+ return new(fastReflection_Service)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_Service) Interface() protoreflect.ProtoMessage {
+ return (*Service)(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_Service) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Index != "" {
+ value := protoreflect.ValueOfString(x.Index)
+ if !f(fd_Service_index, value) {
+ return
+ }
+ }
+ if x.Name != "" {
+ value := protoreflect.ValueOfString(x.Name)
+ if !f(fd_Service_name, 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_Service) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.service.Service.index":
+ return x.Index != ""
+ case "poktroll.service.Service.name":
+ return x.Name != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.Service"))
+ }
+ panic(fmt.Errorf("message poktroll.service.Service 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_Service) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.service.Service.index":
+ x.Index = ""
+ case "poktroll.service.Service.name":
+ x.Name = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.Service"))
+ }
+ panic(fmt.Errorf("message poktroll.service.Service 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_Service) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.service.Service.index":
+ value := x.Index
+ return protoreflect.ValueOfString(value)
+ case "poktroll.service.Service.name":
+ value := x.Name
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.Service"))
+ }
+ panic(fmt.Errorf("message poktroll.service.Service 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_Service) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.service.Service.index":
+ x.Index = value.Interface().(string)
+ case "poktroll.service.Service.name":
+ x.Name = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.Service"))
+ }
+ panic(fmt.Errorf("message poktroll.service.Service 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_Service) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.service.Service.index":
+ panic(fmt.Errorf("field index of message poktroll.service.Service is not mutable"))
+ case "poktroll.service.Service.name":
+ panic(fmt.Errorf("field name of message poktroll.service.Service is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.Service"))
+ }
+ panic(fmt.Errorf("message poktroll.service.Service does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_Service) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.service.Service.index":
+ return protoreflect.ValueOfString("")
+ case "poktroll.service.Service.name":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.Service"))
+ }
+ panic(fmt.Errorf("message poktroll.service.Service does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_Service) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.service.Service", 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_Service) 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_Service) 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_Service) 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_Service) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*Service)
+ 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.Index)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.Name)
+ 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().(*Service)
+ 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.Name) > 0 {
+ i -= len(x.Name)
+ copy(dAtA[i:], x.Name)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Name)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if len(x.Index) > 0 {
+ i -= len(x.Index)
+ copy(dAtA[i:], x.Index)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Index)))
+ i--
+ dAtA[i] = 0xa
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*Service)
+ 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: Service: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Service: 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 Index", 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.Index = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Name = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ 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: poktroll/service/service.proto
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+type Service struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Index string `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"`
+ Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
+}
+
+func (x *Service) Reset() {
+ *x = Service{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_service_service_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *Service) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*Service) ProtoMessage() {}
+
+// Deprecated: Use Service.ProtoReflect.Descriptor instead.
+func (*Service) Descriptor() ([]byte, []int) {
+ return file_poktroll_service_service_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *Service) GetIndex() string {
+ if x != nil {
+ return x.Index
+ }
+ return ""
+}
+
+func (x *Service) GetName() string {
+ if x != nil {
+ return x.Name
+ }
+ return ""
+}
+
+var File_poktroll_service_service_proto protoreflect.FileDescriptor
+
+var file_poktroll_service_service_proto_rawDesc = []byte{
+ 0x0a, 0x1e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69,
+ 0x63, 0x65, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
+ 0x12, 0x10, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69,
+ 0x63, 0x65, 0x22, 0x33, 0x0a, 0x07, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x14, 0x0a,
+ 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x69, 0x6e,
+ 0x64, 0x65, 0x78, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x42, 0xa8, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e,
+ 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
+ 0x42, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01,
+ 0x5a, 0x21, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61,
+ 0x70, 0x69, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76,
+ 0x69, 0x63, 0x65, 0xa2, 0x02, 0x03, 0x50, 0x53, 0x58, 0xaa, 0x02, 0x10, 0x50, 0x6f, 0x6b, 0x74,
+ 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xca, 0x02, 0x10, 0x50,
+ 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xe2,
+ 0x02, 0x1c, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x53, 0x65, 0x72, 0x76, 0x69,
+ 0x63, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02,
+ 0x11, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x3a, 0x3a, 0x53, 0x65, 0x72, 0x76, 0x69,
+ 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_poktroll_service_service_proto_rawDescOnce sync.Once
+ file_poktroll_service_service_proto_rawDescData = file_poktroll_service_service_proto_rawDesc
+)
+
+func file_poktroll_service_service_proto_rawDescGZIP() []byte {
+ file_poktroll_service_service_proto_rawDescOnce.Do(func() {
+ file_poktroll_service_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_poktroll_service_service_proto_rawDescData)
+ })
+ return file_poktroll_service_service_proto_rawDescData
+}
+
+var file_poktroll_service_service_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
+var file_poktroll_service_service_proto_goTypes = []interface{}{
+ (*Service)(nil), // 0: poktroll.service.Service
+}
+var file_poktroll_service_service_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_poktroll_service_service_proto_init() }
+func file_poktroll_service_service_proto_init() {
+ if File_poktroll_service_service_proto != nil {
+ return
+ }
+ if !protoimpl.UnsafeEnabled {
+ file_poktroll_service_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*Service); 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_poktroll_service_service_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 1,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_poktroll_service_service_proto_goTypes,
+ DependencyIndexes: file_poktroll_service_service_proto_depIdxs,
+ MessageInfos: file_poktroll_service_service_proto_msgTypes,
+ }.Build()
+ File_poktroll_service_service_proto = out.File
+ file_poktroll_service_service_proto_rawDesc = nil
+ file_poktroll_service_service_proto_goTypes = nil
+ file_poktroll_service_service_proto_depIdxs = nil
+}
diff --git a/api/poktroll/service/tx.pulsar.go b/api/poktroll/service/tx.pulsar.go
new file mode 100644
index 000000000..b756d9c17
--- /dev/null
+++ b/api/poktroll/service/tx.pulsar.go
@@ -0,0 +1,2067 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package service
+
+import (
+ _ "cosmossdk.io/api/amino"
+ _ "cosmossdk.io/api/cosmos/msg/v1"
+ fmt "fmt"
+ _ "github.com/cosmos/cosmos-proto"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ _ "github.com/cosmos/gogoproto/gogoproto"
+ shared "github.com/pokt-network/poktroll/api/poktroll/shared"
+ 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_MsgUpdateParams protoreflect.MessageDescriptor
+ fd_MsgUpdateParams_authority protoreflect.FieldDescriptor
+ fd_MsgUpdateParams_params protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_service_tx_proto_init()
+ md_MsgUpdateParams = File_poktroll_service_tx_proto.Messages().ByName("MsgUpdateParams")
+ fd_MsgUpdateParams_authority = md_MsgUpdateParams.Fields().ByName("authority")
+ 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_poktroll_service_tx_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_MsgUpdateParams_messageType fastReflection_MsgUpdateParams_messageType
+var _ protoreflect.MessageType = fastReflection_MsgUpdateParams_messageType{}
+
+type fastReflection_MsgUpdateParams_messageType struct{}
+
+func (x fastReflection_MsgUpdateParams_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_MsgUpdateParams)(nil)
+}
+func (x fastReflection_MsgUpdateParams_messageType) New() protoreflect.Message {
+ return new(fastReflection_MsgUpdateParams)
+}
+func (x fastReflection_MsgUpdateParams_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgUpdateParams
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_MsgUpdateParams) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgUpdateParams
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_MsgUpdateParams) Type() protoreflect.MessageType {
+ return _fastReflection_MsgUpdateParams_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_MsgUpdateParams) New() protoreflect.Message {
+ return new(fastReflection_MsgUpdateParams)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_MsgUpdateParams) Interface() protoreflect.ProtoMessage {
+ return (*MsgUpdateParams)(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_MsgUpdateParams) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Authority != "" {
+ value := protoreflect.ValueOfString(x.Authority)
+ if !f(fd_MsgUpdateParams_authority, value) {
+ return
+ }
+ }
+ if x.Params != nil {
+ value := protoreflect.ValueOfMessage(x.Params.ProtoReflect())
+ if !f(fd_MsgUpdateParams_params, 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_MsgUpdateParams) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.service.MsgUpdateParams.authority":
+ return x.Authority != ""
+ case "poktroll.service.MsgUpdateParams.params":
+ return x.Params != nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.MsgUpdateParams"))
+ }
+ panic(fmt.Errorf("message poktroll.service.MsgUpdateParams 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_MsgUpdateParams) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.service.MsgUpdateParams.authority":
+ x.Authority = ""
+ case "poktroll.service.MsgUpdateParams.params":
+ x.Params = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.MsgUpdateParams"))
+ }
+ panic(fmt.Errorf("message poktroll.service.MsgUpdateParams 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_MsgUpdateParams) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.service.MsgUpdateParams.authority":
+ value := x.Authority
+ return protoreflect.ValueOfString(value)
+ case "poktroll.service.MsgUpdateParams.params":
+ value := x.Params
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.MsgUpdateParams"))
+ }
+ panic(fmt.Errorf("message poktroll.service.MsgUpdateParams 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_MsgUpdateParams) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.service.MsgUpdateParams.authority":
+ x.Authority = value.Interface().(string)
+ case "poktroll.service.MsgUpdateParams.params":
+ x.Params = value.Message().Interface().(*Params)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.MsgUpdateParams"))
+ }
+ panic(fmt.Errorf("message poktroll.service.MsgUpdateParams 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_MsgUpdateParams) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.service.MsgUpdateParams.params":
+ if x.Params == nil {
+ x.Params = new(Params)
+ }
+ return protoreflect.ValueOfMessage(x.Params.ProtoReflect())
+ case "poktroll.service.MsgUpdateParams.authority":
+ panic(fmt.Errorf("field authority of message poktroll.service.MsgUpdateParams is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.MsgUpdateParams"))
+ }
+ panic(fmt.Errorf("message poktroll.service.MsgUpdateParams does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// 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 "poktroll.service.MsgUpdateParams.authority":
+ return protoreflect.ValueOfString("")
+ case "poktroll.service.MsgUpdateParams.params":
+ m := new(Params)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.MsgUpdateParams"))
+ }
+ panic(fmt.Errorf("message poktroll.service.MsgUpdateParams does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_MsgUpdateParams) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.service.MsgUpdateParams", 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_MsgUpdateParams) 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_MsgUpdateParams) 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_MsgUpdateParams) 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_MsgUpdateParams) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*MsgUpdateParams)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Authority)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.Params != nil {
+ l = options.Size(x.Params)
+ 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().(*MsgUpdateParams)
+ 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.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] = 0x12
+ }
+ if len(x.Authority) > 0 {
+ i -= len(x.Authority)
+ copy(dAtA[i:], x.Authority)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority)))
+ i--
+ dAtA[i] = 0xa
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*MsgUpdateParams)
+ 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: MsgUpdateParams: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParams: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Authority = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field 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
+ 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_MsgUpdateParamsResponse protoreflect.MessageDescriptor
+)
+
+func init() {
+ file_poktroll_service_tx_proto_init()
+ md_MsgUpdateParamsResponse = File_poktroll_service_tx_proto.Messages().ByName("MsgUpdateParamsResponse")
+}
+
+var _ protoreflect.Message = (*fastReflection_MsgUpdateParamsResponse)(nil)
+
+type fastReflection_MsgUpdateParamsResponse MsgUpdateParamsResponse
+
+func (x *MsgUpdateParamsResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_MsgUpdateParamsResponse)(x)
+}
+
+func (x *MsgUpdateParamsResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_service_tx_proto_msgTypes[1]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_MsgUpdateParamsResponse_messageType fastReflection_MsgUpdateParamsResponse_messageType
+var _ protoreflect.MessageType = fastReflection_MsgUpdateParamsResponse_messageType{}
+
+type fastReflection_MsgUpdateParamsResponse_messageType struct{}
+
+func (x fastReflection_MsgUpdateParamsResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_MsgUpdateParamsResponse)(nil)
+}
+func (x fastReflection_MsgUpdateParamsResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_MsgUpdateParamsResponse)
+}
+func (x fastReflection_MsgUpdateParamsResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgUpdateParamsResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_MsgUpdateParamsResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgUpdateParamsResponse
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_MsgUpdateParamsResponse) Type() protoreflect.MessageType {
+ return _fastReflection_MsgUpdateParamsResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_MsgUpdateParamsResponse) New() protoreflect.Message {
+ return new(fastReflection_MsgUpdateParamsResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_MsgUpdateParamsResponse) Interface() protoreflect.ProtoMessage {
+ return (*MsgUpdateParamsResponse)(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_MsgUpdateParamsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_MsgUpdateParamsResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.MsgUpdateParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.MsgUpdateParamsResponse 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_MsgUpdateParamsResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.MsgUpdateParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.MsgUpdateParamsResponse 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_MsgUpdateParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.MsgUpdateParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.MsgUpdateParamsResponse 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_MsgUpdateParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.MsgUpdateParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.MsgUpdateParamsResponse 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_MsgUpdateParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.MsgUpdateParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.MsgUpdateParamsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_MsgUpdateParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.MsgUpdateParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.MsgUpdateParamsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_MsgUpdateParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.service.MsgUpdateParamsResponse", 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_MsgUpdateParamsResponse) 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_MsgUpdateParamsResponse) 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_MsgUpdateParamsResponse) 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_MsgUpdateParamsResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*MsgUpdateParamsResponse)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*MsgUpdateParamsResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*MsgUpdateParamsResponse)
+ 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: MsgUpdateParamsResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_MsgAddService protoreflect.MessageDescriptor
+ fd_MsgAddService_address protoreflect.FieldDescriptor
+ fd_MsgAddService_service protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_service_tx_proto_init()
+ md_MsgAddService = File_poktroll_service_tx_proto.Messages().ByName("MsgAddService")
+ fd_MsgAddService_address = md_MsgAddService.Fields().ByName("address")
+ fd_MsgAddService_service = md_MsgAddService.Fields().ByName("service")
+}
+
+var _ protoreflect.Message = (*fastReflection_MsgAddService)(nil)
+
+type fastReflection_MsgAddService MsgAddService
+
+func (x *MsgAddService) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_MsgAddService)(x)
+}
+
+func (x *MsgAddService) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_service_tx_proto_msgTypes[2]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_MsgAddService_messageType fastReflection_MsgAddService_messageType
+var _ protoreflect.MessageType = fastReflection_MsgAddService_messageType{}
+
+type fastReflection_MsgAddService_messageType struct{}
+
+func (x fastReflection_MsgAddService_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_MsgAddService)(nil)
+}
+func (x fastReflection_MsgAddService_messageType) New() protoreflect.Message {
+ return new(fastReflection_MsgAddService)
+}
+func (x fastReflection_MsgAddService_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgAddService
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_MsgAddService) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgAddService
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_MsgAddService) Type() protoreflect.MessageType {
+ return _fastReflection_MsgAddService_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_MsgAddService) New() protoreflect.Message {
+ return new(fastReflection_MsgAddService)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_MsgAddService) Interface() protoreflect.ProtoMessage {
+ return (*MsgAddService)(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_MsgAddService) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Address != "" {
+ value := protoreflect.ValueOfString(x.Address)
+ if !f(fd_MsgAddService_address, value) {
+ return
+ }
+ }
+ if x.Service != nil {
+ value := protoreflect.ValueOfMessage(x.Service.ProtoReflect())
+ if !f(fd_MsgAddService_service, 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_MsgAddService) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.service.MsgAddService.address":
+ return x.Address != ""
+ case "poktroll.service.MsgAddService.service":
+ return x.Service != nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.MsgAddService"))
+ }
+ panic(fmt.Errorf("message poktroll.service.MsgAddService 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_MsgAddService) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.service.MsgAddService.address":
+ x.Address = ""
+ case "poktroll.service.MsgAddService.service":
+ x.Service = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.MsgAddService"))
+ }
+ panic(fmt.Errorf("message poktroll.service.MsgAddService 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_MsgAddService) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.service.MsgAddService.address":
+ value := x.Address
+ return protoreflect.ValueOfString(value)
+ case "poktroll.service.MsgAddService.service":
+ value := x.Service
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.MsgAddService"))
+ }
+ panic(fmt.Errorf("message poktroll.service.MsgAddService 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_MsgAddService) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.service.MsgAddService.address":
+ x.Address = value.Interface().(string)
+ case "poktroll.service.MsgAddService.service":
+ x.Service = value.Message().Interface().(*shared.Service)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.MsgAddService"))
+ }
+ panic(fmt.Errorf("message poktroll.service.MsgAddService 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_MsgAddService) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.service.MsgAddService.service":
+ if x.Service == nil {
+ x.Service = new(shared.Service)
+ }
+ return protoreflect.ValueOfMessage(x.Service.ProtoReflect())
+ case "poktroll.service.MsgAddService.address":
+ panic(fmt.Errorf("field address of message poktroll.service.MsgAddService is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.MsgAddService"))
+ }
+ panic(fmt.Errorf("message poktroll.service.MsgAddService does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_MsgAddService) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.service.MsgAddService.address":
+ return protoreflect.ValueOfString("")
+ case "poktroll.service.MsgAddService.service":
+ m := new(shared.Service)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.MsgAddService"))
+ }
+ panic(fmt.Errorf("message poktroll.service.MsgAddService does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_MsgAddService) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.service.MsgAddService", 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_MsgAddService) 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_MsgAddService) 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_MsgAddService) 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_MsgAddService) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*MsgAddService)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Address)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.Service != nil {
+ l = options.Size(x.Service)
+ 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().(*MsgAddService)
+ 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.Service != nil {
+ encoded, err := options.Marshal(x.Service)
+ if err != nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, err
+ }
+ i -= len(encoded)
+ copy(dAtA[i:], encoded)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if len(x.Address) > 0 {
+ i -= len(x.Address)
+ copy(dAtA[i:], x.Address)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address)))
+ i--
+ dAtA[i] = 0xa
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*MsgAddService)
+ 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: MsgAddService: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAddService: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Address = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Service", 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.Service == nil {
+ x.Service = &shared.Service{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Service); 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_MsgAddServiceResponse protoreflect.MessageDescriptor
+)
+
+func init() {
+ file_poktroll_service_tx_proto_init()
+ md_MsgAddServiceResponse = File_poktroll_service_tx_proto.Messages().ByName("MsgAddServiceResponse")
+}
+
+var _ protoreflect.Message = (*fastReflection_MsgAddServiceResponse)(nil)
+
+type fastReflection_MsgAddServiceResponse MsgAddServiceResponse
+
+func (x *MsgAddServiceResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_MsgAddServiceResponse)(x)
+}
+
+func (x *MsgAddServiceResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_service_tx_proto_msgTypes[3]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_MsgAddServiceResponse_messageType fastReflection_MsgAddServiceResponse_messageType
+var _ protoreflect.MessageType = fastReflection_MsgAddServiceResponse_messageType{}
+
+type fastReflection_MsgAddServiceResponse_messageType struct{}
+
+func (x fastReflection_MsgAddServiceResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_MsgAddServiceResponse)(nil)
+}
+func (x fastReflection_MsgAddServiceResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_MsgAddServiceResponse)
+}
+func (x fastReflection_MsgAddServiceResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgAddServiceResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_MsgAddServiceResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgAddServiceResponse
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_MsgAddServiceResponse) Type() protoreflect.MessageType {
+ return _fastReflection_MsgAddServiceResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_MsgAddServiceResponse) New() protoreflect.Message {
+ return new(fastReflection_MsgAddServiceResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_MsgAddServiceResponse) Interface() protoreflect.ProtoMessage {
+ return (*MsgAddServiceResponse)(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_MsgAddServiceResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_MsgAddServiceResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.MsgAddServiceResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.MsgAddServiceResponse 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_MsgAddServiceResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.MsgAddServiceResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.MsgAddServiceResponse 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_MsgAddServiceResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.MsgAddServiceResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.MsgAddServiceResponse 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_MsgAddServiceResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.MsgAddServiceResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.MsgAddServiceResponse 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_MsgAddServiceResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.MsgAddServiceResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.MsgAddServiceResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_MsgAddServiceResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.MsgAddServiceResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.MsgAddServiceResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_MsgAddServiceResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.service.MsgAddServiceResponse", 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_MsgAddServiceResponse) 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_MsgAddServiceResponse) 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_MsgAddServiceResponse) 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_MsgAddServiceResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*MsgAddServiceResponse)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*MsgAddServiceResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*MsgAddServiceResponse)
+ 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: MsgAddServiceResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAddServiceResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.27.0
+// protoc (unknown)
+// source: poktroll/service/tx.proto
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+// MsgUpdateParams is the Msg/UpdateParams request type.
+type MsgUpdateParams struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // authority is the address that controls the module (defaults to x/gov unless overwritten).
+ Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
+ // params defines the x/service parameters to update.
+ // NOTE: All parameters must be supplied.
+ Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"`
+}
+
+func (x *MsgUpdateParams) Reset() {
+ *x = MsgUpdateParams{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_service_tx_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *MsgUpdateParams) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*MsgUpdateParams) ProtoMessage() {}
+
+// Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead.
+func (*MsgUpdateParams) Descriptor() ([]byte, []int) {
+ return file_poktroll_service_tx_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *MsgUpdateParams) GetAuthority() string {
+ if x != nil {
+ return x.Authority
+ }
+ return ""
+}
+
+func (x *MsgUpdateParams) GetParams() *Params {
+ if x != nil {
+ return x.Params
+ }
+ return nil
+}
+
+// MsgUpdateParamsResponse defines the response structure for executing a
+// MsgUpdateParams message.
+type MsgUpdateParamsResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+}
+
+func (x *MsgUpdateParamsResponse) Reset() {
+ *x = MsgUpdateParamsResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_service_tx_proto_msgTypes[1]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *MsgUpdateParamsResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*MsgUpdateParamsResponse) ProtoMessage() {}
+
+// Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead.
+func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) {
+ return file_poktroll_service_tx_proto_rawDescGZIP(), []int{1}
+}
+
+// MsgAddService defines a message for adding a new message to the network.
+// Services can be added by any actor in the network making them truly
+// permissionless.
+// TODO_DOCUMENT(@h5law): This is a key function in making services
+// permissionless, document it's usage and design - in docusaurus covering how
+// the entire process works.
+type MsgAddService struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // The Bech32 address of the service supplier using cosmos' ScalarDescriptor
+ Service *shared.Service `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty"` // The Service for which the supplier is adding to the network
+}
+
+func (x *MsgAddService) Reset() {
+ *x = MsgAddService{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_service_tx_proto_msgTypes[2]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *MsgAddService) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*MsgAddService) ProtoMessage() {}
+
+// Deprecated: Use MsgAddService.ProtoReflect.Descriptor instead.
+func (*MsgAddService) Descriptor() ([]byte, []int) {
+ return file_poktroll_service_tx_proto_rawDescGZIP(), []int{2}
+}
+
+func (x *MsgAddService) GetAddress() string {
+ if x != nil {
+ return x.Address
+ }
+ return ""
+}
+
+func (x *MsgAddService) GetService() *shared.Service {
+ if x != nil {
+ return x.Service
+ }
+ return nil
+}
+
+type MsgAddServiceResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+}
+
+func (x *MsgAddServiceResponse) Reset() {
+ *x = MsgAddServiceResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_service_tx_proto_msgTypes[3]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *MsgAddServiceResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*MsgAddServiceResponse) ProtoMessage() {}
+
+// Deprecated: Use MsgAddServiceResponse.ProtoReflect.Descriptor instead.
+func (*MsgAddServiceResponse) Descriptor() ([]byte, []int) {
+ return file_poktroll_service_tx_proto_rawDescGZIP(), []int{3}
+}
+
+var File_poktroll_service_tx_proto protoreflect.FileDescriptor
+
+var file_poktroll_service_tx_proto_rawDesc = []byte{
+ 0x0a, 0x19, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69,
+ 0x63, 0x65, 0x2f, 0x74, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x70, 0x6f, 0x6b,
+ 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x1a, 0x11, 0x61,
+ 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
+ 0x1a, 0x17, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x6d, 0x73, 0x67, 0x2f, 0x76, 0x31, 0x2f,
+ 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 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, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f,
+ 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x70, 0x6f, 0x6b, 0x74,
+ 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x70, 0x61, 0x72,
+ 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x70, 0x6f, 0x6b, 0x74, 0x72,
+ 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69,
+ 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xbd, 0x01, 0x0a, 0x0f, 0x4d, 0x73, 0x67,
+ 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x36, 0x0a, 0x09,
+ 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42,
+ 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72,
+ 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f,
+ 0x72, 0x69, 0x74, 0x79, 0x12, 0x3b, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x02,
+ 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e,
+ 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 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, 0x3a, 0x35, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74,
+ 0x79, 0x8a, 0xe7, 0xb0, 0x2a, 0x22, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x78,
+ 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61,
+ 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x19, 0x0a, 0x17, 0x4d, 0x73, 0x67, 0x55,
+ 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
+ 0x6e, 0x73, 0x65, 0x22, 0x8b, 0x01, 0x0a, 0x0d, 0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, 0x53, 0x65,
+ 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x32, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73,
+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d,
+ 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67,
+ 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x38, 0x0a, 0x07, 0x73, 0x65, 0x72,
+ 0x76, 0x69, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x70, 0x6f, 0x6b,
+ 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x53, 0x65, 0x72,
+ 0x76, 0x69, 0x63, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76,
+ 0x69, 0x63, 0x65, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73,
+ 0x73, 0x22, 0x17, 0x0a, 0x15, 0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69,
+ 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xc2, 0x01, 0x0a, 0x03, 0x4d,
+ 0x73, 0x67, 0x12, 0x5c, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61,
+ 0x6d, 0x73, 0x12, 0x21, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x65,
+ 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50,
+ 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x29, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c,
+ 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 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, 0x56, 0x0a, 0x0a, 0x41, 0x64, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x1f,
+ 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
+ 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x1a,
+ 0x27, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69,
+ 0x63, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
+ 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a, 0x01, 0x42,
+ 0xa3, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c,
+ 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74,
+ 0x6f, 0x50, 0x01, 0x5a, 0x21, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69,
+ 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73,
+ 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xa2, 0x02, 0x03, 0x50, 0x53, 0x58, 0xaa, 0x02, 0x10, 0x50,
+ 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xca,
+ 0x02, 0x10, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x53, 0x65, 0x72, 0x76, 0x69,
+ 0x63, 0x65, 0xe2, 0x02, 0x1c, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x53, 0x65,
+ 0x72, 0x76, 0x69, 0x63, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,
+ 0x61, 0xea, 0x02, 0x11, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x3a, 0x3a, 0x53, 0x65,
+ 0x72, 0x76, 0x69, 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_poktroll_service_tx_proto_rawDescOnce sync.Once
+ file_poktroll_service_tx_proto_rawDescData = file_poktroll_service_tx_proto_rawDesc
+)
+
+func file_poktroll_service_tx_proto_rawDescGZIP() []byte {
+ file_poktroll_service_tx_proto_rawDescOnce.Do(func() {
+ file_poktroll_service_tx_proto_rawDescData = protoimpl.X.CompressGZIP(file_poktroll_service_tx_proto_rawDescData)
+ })
+ return file_poktroll_service_tx_proto_rawDescData
+}
+
+var file_poktroll_service_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
+var file_poktroll_service_tx_proto_goTypes = []interface{}{
+ (*MsgUpdateParams)(nil), // 0: poktroll.service.MsgUpdateParams
+ (*MsgUpdateParamsResponse)(nil), // 1: poktroll.service.MsgUpdateParamsResponse
+ (*MsgAddService)(nil), // 2: poktroll.service.MsgAddService
+ (*MsgAddServiceResponse)(nil), // 3: poktroll.service.MsgAddServiceResponse
+ (*Params)(nil), // 4: poktroll.service.Params
+ (*shared.Service)(nil), // 5: poktroll.shared.Service
+}
+var file_poktroll_service_tx_proto_depIdxs = []int32{
+ 4, // 0: poktroll.service.MsgUpdateParams.params:type_name -> poktroll.service.Params
+ 5, // 1: poktroll.service.MsgAddService.service:type_name -> poktroll.shared.Service
+ 0, // 2: poktroll.service.Msg.UpdateParams:input_type -> poktroll.service.MsgUpdateParams
+ 2, // 3: poktroll.service.Msg.AddService:input_type -> poktroll.service.MsgAddService
+ 1, // 4: poktroll.service.Msg.UpdateParams:output_type -> poktroll.service.MsgUpdateParamsResponse
+ 3, // 5: poktroll.service.Msg.AddService:output_type -> poktroll.service.MsgAddServiceResponse
+ 4, // [4:6] is the sub-list for method output_type
+ 2, // [2:4] 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_poktroll_service_tx_proto_init() }
+func file_poktroll_service_tx_proto_init() {
+ if File_poktroll_service_tx_proto != nil {
+ return
+ }
+ file_poktroll_service_params_proto_init()
+ if !protoimpl.UnsafeEnabled {
+ file_poktroll_service_tx_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*MsgUpdateParams); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_service_tx_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*MsgUpdateParamsResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_service_tx_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*MsgAddService); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_service_tx_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*MsgAddServiceResponse); 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_poktroll_service_tx_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 4,
+ NumExtensions: 0,
+ NumServices: 1,
+ },
+ GoTypes: file_poktroll_service_tx_proto_goTypes,
+ DependencyIndexes: file_poktroll_service_tx_proto_depIdxs,
+ MessageInfos: file_poktroll_service_tx_proto_msgTypes,
+ }.Build()
+ File_poktroll_service_tx_proto = out.File
+ file_poktroll_service_tx_proto_rawDesc = nil
+ file_poktroll_service_tx_proto_goTypes = nil
+ file_poktroll_service_tx_proto_depIdxs = nil
+}
diff --git a/api/poktroll/session/genesis.pulsar.go b/api/poktroll/session/genesis.pulsar.go
new file mode 100644
index 000000000..eb80c4693
--- /dev/null
+++ b/api/poktroll/session/genesis.pulsar.go
@@ -0,0 +1,595 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package session
+
+import (
+ _ "cosmossdk.io/api/amino"
+ 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_GenesisState protoreflect.MessageDescriptor
+ fd_GenesisState_params protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_session_genesis_proto_init()
+ md_GenesisState = File_poktroll_session_genesis_proto.Messages().ByName("GenesisState")
+ fd_GenesisState_params = md_GenesisState.Fields().ByName("params")
+}
+
+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_poktroll_session_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
+ }
+ }
+}
+
+// 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 "poktroll.session.GenesisState.params":
+ return x.Params != nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.session.GenesisState"))
+ }
+ panic(fmt.Errorf("message poktroll.session.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 "poktroll.session.GenesisState.params":
+ x.Params = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.session.GenesisState"))
+ }
+ panic(fmt.Errorf("message poktroll.session.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 "poktroll.session.GenesisState.params":
+ value := x.Params
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.session.GenesisState"))
+ }
+ panic(fmt.Errorf("message poktroll.session.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 "poktroll.session.GenesisState.params":
+ x.Params = value.Message().Interface().(*Params)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.session.GenesisState"))
+ }
+ panic(fmt.Errorf("message poktroll.session.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 "poktroll.session.GenesisState.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: poktroll.session.GenesisState"))
+ }
+ panic(fmt.Errorf("message poktroll.session.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 "poktroll.session.GenesisState.params":
+ m := new(Params)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.session.GenesisState"))
+ }
+ panic(fmt.Errorf("message poktroll.session.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 poktroll.session.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.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 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
+ 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: poktroll/session/genesis.proto
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+// GenesisState defines the session module's genesis state.
+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"`
+}
+
+func (x *GenesisState) Reset() {
+ *x = GenesisState{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_session_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_poktroll_session_genesis_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *GenesisState) GetParams() *Params {
+ if x != nil {
+ return x.Params
+ }
+ return nil
+}
+
+var File_poktroll_session_genesis_proto protoreflect.FileDescriptor
+
+var file_poktroll_session_genesis_proto_rawDesc = []byte{
+ 0x0a, 0x1e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x65, 0x73, 0x73, 0x69,
+ 0x6f, 0x6e, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
+ 0x12, 0x10, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x65, 0x73, 0x73, 0x69,
+ 0x6f, 0x6e, 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, 0x1d, 0x70, 0x6f, 0x6b,
+ 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x70, 0x61,
+ 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x4b, 0x0a, 0x0c, 0x47, 0x65,
+ 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3b, 0x0a, 0x06, 0x70, 0x61,
+ 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x70, 0x6f, 0x6b,
+ 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 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, 0x42, 0xa8, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e,
+ 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e,
+ 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01,
+ 0x5a, 0x21, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61,
+ 0x70, 0x69, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x65, 0x73, 0x73,
+ 0x69, 0x6f, 0x6e, 0xa2, 0x02, 0x03, 0x50, 0x53, 0x58, 0xaa, 0x02, 0x10, 0x50, 0x6f, 0x6b, 0x74,
+ 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0xca, 0x02, 0x10, 0x50,
+ 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0xe2,
+ 0x02, 0x1c, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x53, 0x65, 0x73, 0x73, 0x69,
+ 0x6f, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02,
+ 0x11, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x3a, 0x3a, 0x53, 0x65, 0x73, 0x73, 0x69,
+ 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_poktroll_session_genesis_proto_rawDescOnce sync.Once
+ file_poktroll_session_genesis_proto_rawDescData = file_poktroll_session_genesis_proto_rawDesc
+)
+
+func file_poktroll_session_genesis_proto_rawDescGZIP() []byte {
+ file_poktroll_session_genesis_proto_rawDescOnce.Do(func() {
+ file_poktroll_session_genesis_proto_rawDescData = protoimpl.X.CompressGZIP(file_poktroll_session_genesis_proto_rawDescData)
+ })
+ return file_poktroll_session_genesis_proto_rawDescData
+}
+
+var file_poktroll_session_genesis_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
+var file_poktroll_session_genesis_proto_goTypes = []interface{}{
+ (*GenesisState)(nil), // 0: poktroll.session.GenesisState
+ (*Params)(nil), // 1: poktroll.session.Params
+}
+var file_poktroll_session_genesis_proto_depIdxs = []int32{
+ 1, // 0: poktroll.session.GenesisState.params:type_name -> poktroll.session.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
+}
+
+func init() { file_poktroll_session_genesis_proto_init() }
+func file_poktroll_session_genesis_proto_init() {
+ if File_poktroll_session_genesis_proto != nil {
+ return
+ }
+ file_poktroll_session_params_proto_init()
+ if !protoimpl.UnsafeEnabled {
+ file_poktroll_session_genesis_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GenesisState); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_poktroll_session_genesis_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 1,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_poktroll_session_genesis_proto_goTypes,
+ DependencyIndexes: file_poktroll_session_genesis_proto_depIdxs,
+ MessageInfos: file_poktroll_session_genesis_proto_msgTypes,
+ }.Build()
+ File_poktroll_session_genesis_proto = out.File
+ file_poktroll_session_genesis_proto_rawDesc = nil
+ file_poktroll_session_genesis_proto_goTypes = nil
+ file_poktroll_session_genesis_proto_depIdxs = nil
+}
diff --git a/api/poktroll/session/module/module.pulsar.go b/api/poktroll/session/module/module.pulsar.go
new file mode 100644
index 000000000..66f2ee183
--- /dev/null
+++ b/api/poktroll/session/module/module.pulsar.go
@@ -0,0 +1,578 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package module
+
+import (
+ _ "cosmossdk.io/api/cosmos/app/v1alpha1"
+ fmt "fmt"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoiface "google.golang.org/protobuf/runtime/protoiface"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ io "io"
+ reflect "reflect"
+ sync "sync"
+)
+
+var (
+ md_Module protoreflect.MessageDescriptor
+ fd_Module_authority protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_session_module_module_proto_init()
+ md_Module = File_poktroll_session_module_module_proto.Messages().ByName("Module")
+ fd_Module_authority = md_Module.Fields().ByName("authority")
+}
+
+var _ protoreflect.Message = (*fastReflection_Module)(nil)
+
+type fastReflection_Module Module
+
+func (x *Module) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_Module)(x)
+}
+
+func (x *Module) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_session_module_module_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_Module_messageType fastReflection_Module_messageType
+var _ protoreflect.MessageType = fastReflection_Module_messageType{}
+
+type fastReflection_Module_messageType struct{}
+
+func (x fastReflection_Module_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_Module)(nil)
+}
+func (x fastReflection_Module_messageType) New() protoreflect.Message {
+ return new(fastReflection_Module)
+}
+func (x fastReflection_Module_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_Module
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_Module) Descriptor() protoreflect.MessageDescriptor {
+ return md_Module
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_Module) Type() protoreflect.MessageType {
+ return _fastReflection_Module_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_Module) New() protoreflect.Message {
+ return new(fastReflection_Module)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_Module) Interface() protoreflect.ProtoMessage {
+ return (*Module)(x)
+}
+
+// Range iterates over every populated field in an undefined order,
+// calling f for each field descriptor and value encountered.
+// Range returns immediately if f returns false.
+// While iterating, mutating operations may only be performed
+// on the current field descriptor.
+func (x *fastReflection_Module) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Authority != "" {
+ value := protoreflect.ValueOfString(x.Authority)
+ if !f(fd_Module_authority, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_Module) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.session.module.Module.authority":
+ return x.Authority != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.session.module.Module"))
+ }
+ panic(fmt.Errorf("message poktroll.session.module.Module does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Module) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.session.module.Module.authority":
+ x.Authority = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.session.module.Module"))
+ }
+ panic(fmt.Errorf("message poktroll.session.module.Module does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_Module) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.session.module.Module.authority":
+ value := x.Authority
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.session.module.Module"))
+ }
+ panic(fmt.Errorf("message poktroll.session.module.Module does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Module) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.session.module.Module.authority":
+ x.Authority = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.session.module.Module"))
+ }
+ panic(fmt.Errorf("message poktroll.session.module.Module does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Module) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.session.module.Module.authority":
+ panic(fmt.Errorf("field authority of message poktroll.session.module.Module is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.session.module.Module"))
+ }
+ panic(fmt.Errorf("message poktroll.session.module.Module does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_Module) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.session.module.Module.authority":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.session.module.Module"))
+ }
+ panic(fmt.Errorf("message poktroll.session.module.Module does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_Module) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.session.module.Module", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_Module) GetUnknown() protoreflect.RawFields {
+ return x.unknownFields
+}
+
+// SetUnknown stores an entire list of unknown fields.
+// The raw fields must be syntactically valid according to the wire format.
+// An implementation may panic if this is not the case.
+// Once stored, the caller must not mutate the content of the RawFields.
+// An empty RawFields may be passed to clear the fields.
+//
+// SetUnknown is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Module) SetUnknown(fields protoreflect.RawFields) {
+ x.unknownFields = fields
+}
+
+// IsValid reports whether the message is valid.
+//
+// An invalid message is an empty, read-only value.
+//
+// An invalid message often corresponds to a nil pointer of the concrete
+// message type, but the details are implementation dependent.
+// Validity is not part of the protobuf data model, and may not
+// be preserved in marshaling or other operations.
+func (x *fastReflection_Module) IsValid() bool {
+ return x != nil
+}
+
+// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
+// This method may return nil.
+//
+// The returned methods type is identical to
+// "google.golang.org/protobuf/runtime/protoiface".Methods.
+// Consult the protoiface package documentation for details.
+func (x *fastReflection_Module) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*Module)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Authority)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*Module)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Authority) > 0 {
+ i -= len(x.Authority)
+ copy(dAtA[i:], x.Authority)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority)))
+ i--
+ dAtA[i] = 0xa
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*Module)
+ if x == nil {
+ return protoiface.UnmarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Flags: input.Flags,
+ }, nil
+ }
+ options := runtime.UnmarshalInputToOptions(input)
+ _ = options
+ dAtA := input.Buf
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Module: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Module: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Authority = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.27.0
+// protoc (unknown)
+// source: poktroll/session/module/module.proto
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+// Module is the config object for the module.
+type Module struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // authority defines the custom module authority. If not set, defaults to the governance module.
+ Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
+}
+
+func (x *Module) Reset() {
+ *x = Module{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_session_module_module_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *Module) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*Module) ProtoMessage() {}
+
+// Deprecated: Use Module.ProtoReflect.Descriptor instead.
+func (*Module) Descriptor() ([]byte, []int) {
+ return file_poktroll_session_module_module_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *Module) GetAuthority() string {
+ if x != nil {
+ return x.Authority
+ }
+ return ""
+}
+
+var File_poktroll_session_module_module_proto protoreflect.FileDescriptor
+
+var file_poktroll_session_module_module_proto_rawDesc = []byte{
+ 0x0a, 0x24, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x65, 0x73, 0x73, 0x69,
+ 0x6f, 0x6e, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65,
+ 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c,
+ 0x2e, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x1a,
+ 0x20, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x76, 0x31, 0x61, 0x6c,
+ 0x70, 0x68, 0x61, 0x31, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
+ 0x6f, 0x22, 0x5a, 0x0a, 0x06, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x61,
+ 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09,
+ 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x3a, 0x32, 0xba, 0xc0, 0x96, 0xda, 0x01,
+ 0x2c, 0x0a, 0x2a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x6f,
+ 0x6b, 0x74, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72,
+ 0x6f, 0x6c, 0x6c, 0x2f, 0x78, 0x2f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0xd2, 0x01,
+ 0x0a, 0x1b, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73,
+ 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x42, 0x0b, 0x4d,
+ 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x28, 0x63, 0x6f,
+ 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70,
+ 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2f,
+ 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0xa2, 0x02, 0x03, 0x50, 0x53, 0x4d, 0xaa, 0x02, 0x17, 0x50,
+ 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e,
+ 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0xca, 0x02, 0x17, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c,
+ 0x6c, 0x5c, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65,
+ 0xe2, 0x02, 0x23, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x53, 0x65, 0x73, 0x73,
+ 0x69, 0x6f, 0x6e, 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65,
+ 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x19, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c,
+ 0x6c, 0x3a, 0x3a, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x3a, 0x3a, 0x4d, 0x6f, 0x64, 0x75,
+ 0x6c, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_poktroll_session_module_module_proto_rawDescOnce sync.Once
+ file_poktroll_session_module_module_proto_rawDescData = file_poktroll_session_module_module_proto_rawDesc
+)
+
+func file_poktroll_session_module_module_proto_rawDescGZIP() []byte {
+ file_poktroll_session_module_module_proto_rawDescOnce.Do(func() {
+ file_poktroll_session_module_module_proto_rawDescData = protoimpl.X.CompressGZIP(file_poktroll_session_module_module_proto_rawDescData)
+ })
+ return file_poktroll_session_module_module_proto_rawDescData
+}
+
+var file_poktroll_session_module_module_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
+var file_poktroll_session_module_module_proto_goTypes = []interface{}{
+ (*Module)(nil), // 0: poktroll.session.module.Module
+}
+var file_poktroll_session_module_module_proto_depIdxs = []int32{
+ 0, // [0:0] is the sub-list for method output_type
+ 0, // [0:0] is the sub-list for method input_type
+ 0, // [0:0] is the sub-list for extension type_name
+ 0, // [0:0] is the sub-list for extension extendee
+ 0, // [0:0] is the sub-list for field type_name
+}
+
+func init() { file_poktroll_session_module_module_proto_init() }
+func file_poktroll_session_module_module_proto_init() {
+ if File_poktroll_session_module_module_proto != nil {
+ return
+ }
+ if !protoimpl.UnsafeEnabled {
+ file_poktroll_session_module_module_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*Module); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_poktroll_session_module_module_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 1,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_poktroll_session_module_module_proto_goTypes,
+ DependencyIndexes: file_poktroll_session_module_module_proto_depIdxs,
+ MessageInfos: file_poktroll_session_module_module_proto_msgTypes,
+ }.Build()
+ File_poktroll_session_module_module_proto = out.File
+ file_poktroll_session_module_module_proto_rawDesc = nil
+ file_poktroll_session_module_module_proto_goTypes = nil
+ file_poktroll_session_module_module_proto_depIdxs = nil
+}
diff --git a/api/poktroll/session/params.pulsar.go b/api/poktroll/session/params.pulsar.go
new file mode 100644
index 000000000..c9ea81482
--- /dev/null
+++ b/api/poktroll/session/params.pulsar.go
@@ -0,0 +1,499 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package session
+
+import (
+ _ "cosmossdk.io/api/amino"
+ 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_Params protoreflect.MessageDescriptor
+)
+
+func init() {
+ file_poktroll_session_params_proto_init()
+ md_Params = File_poktroll_session_params_proto.Messages().ByName("Params")
+}
+
+var _ protoreflect.Message = (*fastReflection_Params)(nil)
+
+type fastReflection_Params Params
+
+func (x *Params) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_Params)(x)
+}
+
+func (x *Params) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_session_params_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_Params_messageType fastReflection_Params_messageType
+var _ protoreflect.MessageType = fastReflection_Params_messageType{}
+
+type fastReflection_Params_messageType struct{}
+
+func (x fastReflection_Params_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_Params)(nil)
+}
+func (x fastReflection_Params_messageType) New() protoreflect.Message {
+ return new(fastReflection_Params)
+}
+func (x fastReflection_Params_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_Params
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_Params) Descriptor() protoreflect.MessageDescriptor {
+ return md_Params
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_Params) Type() protoreflect.MessageType {
+ return _fastReflection_Params_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_Params) New() protoreflect.Message {
+ return new(fastReflection_Params)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_Params) Interface() protoreflect.ProtoMessage {
+ return (*Params)(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_Params) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_Params) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.session.Params"))
+ }
+ panic(fmt.Errorf("message poktroll.session.Params 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_Params) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.session.Params"))
+ }
+ panic(fmt.Errorf("message poktroll.session.Params 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_Params) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.session.Params"))
+ }
+ panic(fmt.Errorf("message poktroll.session.Params 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_Params) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.session.Params"))
+ }
+ panic(fmt.Errorf("message poktroll.session.Params 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_Params) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.session.Params"))
+ }
+ panic(fmt.Errorf("message poktroll.session.Params does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// 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() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.session.Params"))
+ }
+ panic(fmt.Errorf("message poktroll.session.Params does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_Params) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.session.Params", 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_Params) 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_Params) 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_Params) 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_Params) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*Params)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*Params)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*Params)
+ 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: Params: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.27.0
+// protoc (unknown)
+// source: poktroll/session/params.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)
+)
+
+// Params defines the parameters for the module.
+type Params struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+}
+
+func (x *Params) Reset() {
+ *x = Params{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_session_params_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *Params) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*Params) ProtoMessage() {}
+
+// Deprecated: Use Params.ProtoReflect.Descriptor instead.
+func (*Params) Descriptor() ([]byte, []int) {
+ return file_poktroll_session_params_proto_rawDescGZIP(), []int{0}
+}
+
+var File_poktroll_session_params_proto protoreflect.FileDescriptor
+
+var file_poktroll_session_params_proto_rawDesc = []byte{
+ 0x0a, 0x1d, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x65, 0x73, 0x73, 0x69,
+ 0x6f, 0x6e, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
+ 0x10, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f,
+ 0x6e, 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, 0x2c, 0x0a, 0x06, 0x50, 0x61,
+ 0x72, 0x61, 0x6d, 0x73, 0x3a, 0x22, 0xe8, 0xa0, 0x1f, 0x01, 0x8a, 0xe7, 0xb0, 0x2a, 0x19, 0x70,
+ 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x78, 0x2f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f,
+ 0x6e, 0x2f, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0xa7, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d,
+ 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f,
+ 0x6e, 0x42, 0x0b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01,
+ 0x5a, 0x21, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61,
+ 0x70, 0x69, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x65, 0x73, 0x73,
+ 0x69, 0x6f, 0x6e, 0xa2, 0x02, 0x03, 0x50, 0x53, 0x58, 0xaa, 0x02, 0x10, 0x50, 0x6f, 0x6b, 0x74,
+ 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0xca, 0x02, 0x10, 0x50,
+ 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0xe2,
+ 0x02, 0x1c, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x53, 0x65, 0x73, 0x73, 0x69,
+ 0x6f, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02,
+ 0x11, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x3a, 0x3a, 0x53, 0x65, 0x73, 0x73, 0x69,
+ 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_poktroll_session_params_proto_rawDescOnce sync.Once
+ file_poktroll_session_params_proto_rawDescData = file_poktroll_session_params_proto_rawDesc
+)
+
+func file_poktroll_session_params_proto_rawDescGZIP() []byte {
+ file_poktroll_session_params_proto_rawDescOnce.Do(func() {
+ file_poktroll_session_params_proto_rawDescData = protoimpl.X.CompressGZIP(file_poktroll_session_params_proto_rawDescData)
+ })
+ return file_poktroll_session_params_proto_rawDescData
+}
+
+var file_poktroll_session_params_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
+var file_poktroll_session_params_proto_goTypes = []interface{}{
+ (*Params)(nil), // 0: poktroll.session.Params
+}
+var file_poktroll_session_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
+ 0, // [0:0] is the sub-list for extension extendee
+ 0, // [0:0] is the sub-list for field type_name
+}
+
+func init() { file_poktroll_session_params_proto_init() }
+func file_poktroll_session_params_proto_init() {
+ if File_poktroll_session_params_proto != nil {
+ return
+ }
+ if !protoimpl.UnsafeEnabled {
+ file_poktroll_session_params_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*Params); 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_poktroll_session_params_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 1,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_poktroll_session_params_proto_goTypes,
+ DependencyIndexes: file_poktroll_session_params_proto_depIdxs,
+ MessageInfos: file_poktroll_session_params_proto_msgTypes,
+ }.Build()
+ File_poktroll_session_params_proto = out.File
+ file_poktroll_session_params_proto_rawDesc = nil
+ file_poktroll_session_params_proto_goTypes = nil
+ file_poktroll_session_params_proto_depIdxs = nil
+}
diff --git a/api/poktroll/session/query.pulsar.go b/api/poktroll/session/query.pulsar.go
new file mode 100644
index 000000000..dc8b2cf41
--- /dev/null
+++ b/api/poktroll/session/query.pulsar.go
@@ -0,0 +1,2142 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package session
+
+import (
+ _ "cosmossdk.io/api/amino"
+ fmt "fmt"
+ _ "github.com/cosmos/cosmos-proto"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ _ "github.com/cosmos/gogoproto/gogoproto"
+
+ shared "github.com/pokt-network/poktroll/api/poktroll/shared"
+ _ "google.golang.org/genproto/googleapis/api/annotations"
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoiface "google.golang.org/protobuf/runtime/protoiface"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ io "io"
+ reflect "reflect"
+ sync "sync"
+)
+
+var (
+ md_QueryParamsRequest protoreflect.MessageDescriptor
+)
+
+func init() {
+ file_poktroll_session_query_proto_init()
+ md_QueryParamsRequest = File_poktroll_session_query_proto.Messages().ByName("QueryParamsRequest")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryParamsRequest)(nil)
+
+type fastReflection_QueryParamsRequest QueryParamsRequest
+
+func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryParamsRequest)(x)
+}
+
+func (x *QueryParamsRequest) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_session_query_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryParamsRequest_messageType fastReflection_QueryParamsRequest_messageType
+var _ protoreflect.MessageType = fastReflection_QueryParamsRequest_messageType{}
+
+type fastReflection_QueryParamsRequest_messageType struct{}
+
+func (x fastReflection_QueryParamsRequest_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryParamsRequest)(nil)
+}
+func (x fastReflection_QueryParamsRequest_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryParamsRequest)
+}
+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_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_QueryParamsRequest) Type() protoreflect.MessageType {
+ return _fastReflection_QueryParamsRequest_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+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_QueryParamsRequest) Interface() protoreflect.ProtoMessage {
+ return (*QueryParamsRequest)(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_QueryParamsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_QueryParamsRequest) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.QueryParamsRequest 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_QueryParamsRequest) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.QueryParamsRequest 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_QueryParamsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.QueryParamsRequest 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_QueryParamsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.QueryParamsRequest 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_QueryParamsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.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_QueryParamsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.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_QueryParamsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.QueryParamsRequest", 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_QueryParamsRequest) 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_QueryParamsRequest) 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_QueryParamsRequest) 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_QueryParamsRequest) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryParamsRequest)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*QueryParamsRequest)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*QueryParamsRequest)
+ 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: QueryParamsRequest: 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)
+ }
+ switch fieldNum {
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_QueryParamsResponse protoreflect.MessageDescriptor
+ fd_QueryParamsResponse_params protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_session_query_proto_init()
+ md_QueryParamsResponse = File_poktroll_session_query_proto.Messages().ByName("QueryParamsResponse")
+ fd_QueryParamsResponse_params = md_QueryParamsResponse.Fields().ByName("params")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryParamsResponse)(nil)
+
+type fastReflection_QueryParamsResponse QueryParamsResponse
+
+func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryParamsResponse)(x)
+}
+
+func (x *QueryParamsResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_session_query_proto_msgTypes[1]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryParamsResponse_messageType fastReflection_QueryParamsResponse_messageType
+var _ protoreflect.MessageType = fastReflection_QueryParamsResponse_messageType{}
+
+type fastReflection_QueryParamsResponse_messageType struct{}
+
+func (x fastReflection_QueryParamsResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryParamsResponse)(nil)
+}
+func (x fastReflection_QueryParamsResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryParamsResponse)
+}
+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_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_QueryParamsResponse) Type() protoreflect.MessageType {
+ return _fastReflection_QueryParamsResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+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_QueryParamsResponse) Interface() protoreflect.ProtoMessage {
+ return (*QueryParamsResponse)(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_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
+ }
+ }
+}
+
+// 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_QueryParamsResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.QueryParamsResponse.params":
+ return x.Params != nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.QueryParamsResponse 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_QueryParamsResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.QueryParamsResponse.params":
+ x.Params = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.QueryParamsResponse 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_QueryParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.QueryParamsResponse.params":
+ value := x.Params
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.QueryParamsResponse 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_QueryParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.QueryParamsResponse.params":
+ x.Params = value.Message().Interface().(*Params)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.QueryParamsResponse 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_QueryParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.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: poktroll.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.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_QueryParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.QueryParamsResponse.params":
+ m := new(Params)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.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_QueryParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.QueryParamsResponse", 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_QueryParamsResponse) 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_QueryParamsResponse) 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_QueryParamsResponse) 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_QueryParamsResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryParamsResponse)
+ 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.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().(*QueryParamsResponse)
+ 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.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().(*QueryParamsResponse)
+ 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: QueryParamsResponse: 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)
+ }
+ 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
+ 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_QueryGetSessionRequest protoreflect.MessageDescriptor
+ fd_QueryGetSessionRequest_application_address protoreflect.FieldDescriptor
+ fd_QueryGetSessionRequest_service protoreflect.FieldDescriptor
+ fd_QueryGetSessionRequest_block_height protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_session_query_proto_init()
+ md_QueryGetSessionRequest = File_poktroll_session_query_proto.Messages().ByName("QueryGetSessionRequest")
+ fd_QueryGetSessionRequest_application_address = md_QueryGetSessionRequest.Fields().ByName("application_address")
+ fd_QueryGetSessionRequest_service = md_QueryGetSessionRequest.Fields().ByName("service")
+ fd_QueryGetSessionRequest_block_height = md_QueryGetSessionRequest.Fields().ByName("block_height")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryGetSessionRequest)(nil)
+
+type fastReflection_QueryGetSessionRequest QueryGetSessionRequest
+
+func (x *QueryGetSessionRequest) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryGetSessionRequest)(x)
+}
+
+func (x *QueryGetSessionRequest) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_session_query_proto_msgTypes[2]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryGetSessionRequest_messageType fastReflection_QueryGetSessionRequest_messageType
+var _ protoreflect.MessageType = fastReflection_QueryGetSessionRequest_messageType{}
+
+type fastReflection_QueryGetSessionRequest_messageType struct{}
+
+func (x fastReflection_QueryGetSessionRequest_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryGetSessionRequest)(nil)
+}
+func (x fastReflection_QueryGetSessionRequest_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryGetSessionRequest)
+}
+func (x fastReflection_QueryGetSessionRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryGetSessionRequest
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_QueryGetSessionRequest) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryGetSessionRequest
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_QueryGetSessionRequest) Type() protoreflect.MessageType {
+ return _fastReflection_QueryGetSessionRequest_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_QueryGetSessionRequest) New() protoreflect.Message {
+ return new(fastReflection_QueryGetSessionRequest)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_QueryGetSessionRequest) Interface() protoreflect.ProtoMessage {
+ return (*QueryGetSessionRequest)(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_QueryGetSessionRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.ApplicationAddress != "" {
+ value := protoreflect.ValueOfString(x.ApplicationAddress)
+ if !f(fd_QueryGetSessionRequest_application_address, value) {
+ return
+ }
+ }
+ if x.Service != nil {
+ value := protoreflect.ValueOfMessage(x.Service.ProtoReflect())
+ if !f(fd_QueryGetSessionRequest_service, value) {
+ return
+ }
+ }
+ if x.BlockHeight != int64(0) {
+ value := protoreflect.ValueOfInt64(x.BlockHeight)
+ if !f(fd_QueryGetSessionRequest_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_QueryGetSessionRequest) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.QueryGetSessionRequest.application_address":
+ return x.ApplicationAddress != ""
+ case "poktroll.QueryGetSessionRequest.service":
+ return x.Service != nil
+ case "poktroll.QueryGetSessionRequest.block_height":
+ return x.BlockHeight != int64(0)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.QueryGetSessionRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.QueryGetSessionRequest 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_QueryGetSessionRequest) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.QueryGetSessionRequest.application_address":
+ x.ApplicationAddress = ""
+ case "poktroll.QueryGetSessionRequest.service":
+ x.Service = nil
+ case "poktroll.QueryGetSessionRequest.block_height":
+ x.BlockHeight = int64(0)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.QueryGetSessionRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.QueryGetSessionRequest 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_QueryGetSessionRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.QueryGetSessionRequest.application_address":
+ value := x.ApplicationAddress
+ return protoreflect.ValueOfString(value)
+ case "poktroll.QueryGetSessionRequest.service":
+ value := x.Service
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ case "poktroll.QueryGetSessionRequest.block_height":
+ value := x.BlockHeight
+ return protoreflect.ValueOfInt64(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.QueryGetSessionRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.QueryGetSessionRequest 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_QueryGetSessionRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.QueryGetSessionRequest.application_address":
+ x.ApplicationAddress = value.Interface().(string)
+ case "poktroll.QueryGetSessionRequest.service":
+ x.Service = value.Message().Interface().(*shared.Service)
+ case "poktroll.QueryGetSessionRequest.block_height":
+ x.BlockHeight = value.Int()
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.QueryGetSessionRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.QueryGetSessionRequest 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_QueryGetSessionRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.QueryGetSessionRequest.service":
+ if x.Service == nil {
+ x.Service = new(shared.Service)
+ }
+ return protoreflect.ValueOfMessage(x.Service.ProtoReflect())
+ case "poktroll.QueryGetSessionRequest.application_address":
+ panic(fmt.Errorf("field application_address of message poktroll.QueryGetSessionRequest is not mutable"))
+ case "poktroll.QueryGetSessionRequest.block_height":
+ panic(fmt.Errorf("field block_height of message poktroll.QueryGetSessionRequest is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.QueryGetSessionRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.QueryGetSessionRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_QueryGetSessionRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.QueryGetSessionRequest.application_address":
+ return protoreflect.ValueOfString("")
+ case "poktroll.QueryGetSessionRequest.service":
+ m := new(shared.Service)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ case "poktroll.QueryGetSessionRequest.block_height":
+ return protoreflect.ValueOfInt64(int64(0))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.QueryGetSessionRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.QueryGetSessionRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_QueryGetSessionRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.QueryGetSessionRequest", 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_QueryGetSessionRequest) 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_QueryGetSessionRequest) 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_QueryGetSessionRequest) 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_QueryGetSessionRequest) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryGetSessionRequest)
+ 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.ApplicationAddress)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.Service != nil {
+ l = options.Size(x.Service)
+ 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)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*QueryGetSessionRequest)
+ 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.Service != nil {
+ encoded, err := options.Marshal(x.Service)
+ 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.ApplicationAddress) > 0 {
+ i -= len(x.ApplicationAddress)
+ copy(dAtA[i:], x.ApplicationAddress)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ApplicationAddress)))
+ 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().(*QueryGetSessionRequest)
+ 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: QueryGetSessionRequest: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetSessionRequest: 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 ApplicationAddress", 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.ApplicationAddress = 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 Service", 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.Service == nil {
+ x.Service = &shared.Service{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Service); 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 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_QueryGetSessionResponse protoreflect.MessageDescriptor
+ fd_QueryGetSessionResponse_session protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_session_query_proto_init()
+ md_QueryGetSessionResponse = File_poktroll_session_query_proto.Messages().ByName("QueryGetSessionResponse")
+ fd_QueryGetSessionResponse_session = md_QueryGetSessionResponse.Fields().ByName("session")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryGetSessionResponse)(nil)
+
+type fastReflection_QueryGetSessionResponse QueryGetSessionResponse
+
+func (x *QueryGetSessionResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryGetSessionResponse)(x)
+}
+
+func (x *QueryGetSessionResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_session_query_proto_msgTypes[3]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryGetSessionResponse_messageType fastReflection_QueryGetSessionResponse_messageType
+var _ protoreflect.MessageType = fastReflection_QueryGetSessionResponse_messageType{}
+
+type fastReflection_QueryGetSessionResponse_messageType struct{}
+
+func (x fastReflection_QueryGetSessionResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryGetSessionResponse)(nil)
+}
+func (x fastReflection_QueryGetSessionResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryGetSessionResponse)
+}
+func (x fastReflection_QueryGetSessionResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryGetSessionResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_QueryGetSessionResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryGetSessionResponse
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_QueryGetSessionResponse) Type() protoreflect.MessageType {
+ return _fastReflection_QueryGetSessionResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_QueryGetSessionResponse) New() protoreflect.Message {
+ return new(fastReflection_QueryGetSessionResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_QueryGetSessionResponse) Interface() protoreflect.ProtoMessage {
+ return (*QueryGetSessionResponse)(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_QueryGetSessionResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Session != nil {
+ value := protoreflect.ValueOfMessage(x.Session.ProtoReflect())
+ if !f(fd_QueryGetSessionResponse_session, 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_QueryGetSessionResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.QueryGetSessionResponse.session":
+ return x.Session != nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.QueryGetSessionResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.QueryGetSessionResponse 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_QueryGetSessionResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.QueryGetSessionResponse.session":
+ x.Session = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.QueryGetSessionResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.QueryGetSessionResponse 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_QueryGetSessionResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.QueryGetSessionResponse.session":
+ value := x.Session
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.QueryGetSessionResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.QueryGetSessionResponse 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_QueryGetSessionResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.QueryGetSessionResponse.session":
+ x.Session = value.Message().Interface().(*Session)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.QueryGetSessionResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.QueryGetSessionResponse 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_QueryGetSessionResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.QueryGetSessionResponse.session":
+ if x.Session == nil {
+ x.Session = new(Session)
+ }
+ return protoreflect.ValueOfMessage(x.Session.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.QueryGetSessionResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.QueryGetSessionResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_QueryGetSessionResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.QueryGetSessionResponse.session":
+ m := new(Session)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.QueryGetSessionResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.QueryGetSessionResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_QueryGetSessionResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.QueryGetSessionResponse", 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_QueryGetSessionResponse) 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_QueryGetSessionResponse) 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_QueryGetSessionResponse) 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_QueryGetSessionResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryGetSessionResponse)
+ 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.Session != nil {
+ l = options.Size(x.Session)
+ 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().(*QueryGetSessionResponse)
+ 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.Session != nil {
+ encoded, err := options.Marshal(x.Session)
+ 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().(*QueryGetSessionResponse)
+ 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: QueryGetSessionResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetSessionResponse: 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 Session", 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.Session == nil {
+ x.Session = &Session{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Session); 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: poktroll/session/query.proto
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+// QueryParamsRequest is request type for the Query/Params RPC method.
+type QueryParamsRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+}
+
+func (x *QueryParamsRequest) Reset() {
+ *x = QueryParamsRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_session_query_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryParamsRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryParamsRequest) ProtoMessage() {}
+
+// Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead.
+func (*QueryParamsRequest) Descriptor() ([]byte, []int) {
+ return file_poktroll_session_query_proto_rawDescGZIP(), []int{0}
+}
+
+// QueryParamsResponse is response type for the Query/Params RPC method.
+type QueryParamsResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // params holds all the parameters of this module.
+ Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
+}
+
+func (x *QueryParamsResponse) Reset() {
+ *x = QueryParamsResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_session_query_proto_msgTypes[1]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryParamsResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryParamsResponse) ProtoMessage() {}
+
+// Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead.
+func (*QueryParamsResponse) Descriptor() ([]byte, []int) {
+ return file_poktroll_session_query_proto_rawDescGZIP(), []int{1}
+}
+
+func (x *QueryParamsResponse) GetParams() *Params {
+ if x != nil {
+ return x.Params
+ }
+ return nil
+}
+
+type QueryGetSessionRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ ApplicationAddress string `protobuf:"bytes,1,opt,name=application_address,json=applicationAddress,proto3" json:"application_address,omitempty"` // The Bech32 address of the application using cosmos' ScalarDescriptor to ensure deterministic encoding
+ Service *shared.Service `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty"` // The service to query the session for
+ BlockHeight int64 `protobuf:"varint,3,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` // The block height to query the session for
+}
+
+func (x *QueryGetSessionRequest) Reset() {
+ *x = QueryGetSessionRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_session_query_proto_msgTypes[2]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryGetSessionRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryGetSessionRequest) ProtoMessage() {}
+
+// Deprecated: Use QueryGetSessionRequest.ProtoReflect.Descriptor instead.
+func (*QueryGetSessionRequest) Descriptor() ([]byte, []int) {
+ return file_poktroll_session_query_proto_rawDescGZIP(), []int{2}
+}
+
+func (x *QueryGetSessionRequest) GetApplicationAddress() string {
+ if x != nil {
+ return x.ApplicationAddress
+ }
+ return ""
+}
+
+func (x *QueryGetSessionRequest) GetService() *shared.Service {
+ if x != nil {
+ return x.Service
+ }
+ return nil
+}
+
+func (x *QueryGetSessionRequest) GetBlockHeight() int64 {
+ if x != nil {
+ return x.BlockHeight
+ }
+ return 0
+}
+
+type QueryGetSessionResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Session *Session `protobuf:"bytes,1,opt,name=session,proto3" json:"session,omitempty"`
+}
+
+func (x *QueryGetSessionResponse) Reset() {
+ *x = QueryGetSessionResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_session_query_proto_msgTypes[3]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryGetSessionResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryGetSessionResponse) ProtoMessage() {}
+
+// Deprecated: Use QueryGetSessionResponse.ProtoReflect.Descriptor instead.
+func (*QueryGetSessionResponse) Descriptor() ([]byte, []int) {
+ return file_poktroll_session_query_proto_rawDescGZIP(), []int{3}
+}
+
+func (x *QueryGetSessionResponse) GetSession() *Session {
+ if x != nil {
+ return x.Session
+ }
+ return nil
+}
+
+var File_poktroll_session_query_proto protoreflect.FileDescriptor
+
+var file_poktroll_session_query_proto_rawDesc = []byte{
+ 0x0a, 0x1c, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x65, 0x73, 0x73, 0x69,
+ 0x6f, 0x6e, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10,
+ 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e,
+ 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, 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, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f,
+ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f,
+ 0x74, 0x6f, 0x1a, 0x1d, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x65, 0x73,
+ 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74,
+ 0x6f, 0x1a, 0x1e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x65, 0x73, 0x73,
+ 0x69, 0x6f, 0x6e, 0x2f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74,
+ 0x6f, 0x1a, 0x1d, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x68, 0x61, 0x72,
+ 0x65, 0x64, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 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, 0x52, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50,
+ 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3b, 0x0a,
+ 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e,
+ 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e,
+ 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, 0xba, 0x01, 0x0a, 0x16, 0x51,
+ 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65,
+ 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x49, 0x0a, 0x13, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61,
+ 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01,
+ 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41,
+ 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x12, 0x61, 0x70,
+ 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73,
+ 0x12, 0x32, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
+ 0x0b, 0x32, 0x18, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x68, 0x61,
+ 0x72, 0x65, 0x64, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x07, 0x73, 0x65, 0x72,
+ 0x76, 0x69, 0x63, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65,
+ 0x69, 0x67, 0x68, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63,
+ 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0x4e, 0x0a, 0x17, 0x51, 0x75, 0x65, 0x72, 0x79,
+ 0x47, 0x65, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
+ 0x73, 0x65, 0x12, 0x33, 0x0a, 0x07, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20,
+ 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73,
+ 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x07,
+ 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x32, 0xa6, 0x02, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72,
+ 0x79, 0x12, 0x84, 0x01, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x24, 0x2e, 0x70,
+ 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e,
+ 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
+ 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x65,
+ 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d,
+ 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2d, 0x82, 0xd3, 0xe4, 0x93, 0x02,
+ 0x27, 0x12, 0x25, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b,
+ 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f,
+ 0x6e, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x95, 0x01, 0x0a, 0x0a, 0x47, 0x65, 0x74,
+ 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x28, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f,
+ 0x6c, 0x6c, 0x2e, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79,
+ 0x47, 0x65, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
+ 0x74, 0x1a, 0x29, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x65, 0x73,
+ 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x53, 0x65, 0x73,
+ 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x32, 0x82, 0xd3,
+ 0xe4, 0x93, 0x02, 0x2c, 0x12, 0x2a, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x2d, 0x6e, 0x65, 0x74, 0x77,
+ 0x6f, 0x72, 0x6b, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x65, 0x73,
+ 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x67, 0x65, 0x74, 0x5f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e,
+ 0x42, 0xa6, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c,
+ 0x6c, 0x2e, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79,
+ 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x21, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73,
+ 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f,
+ 0x6c, 0x6c, 0x2f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0xa2, 0x02, 0x03, 0x50, 0x53, 0x58,
+ 0xaa, 0x02, 0x10, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x53, 0x65, 0x73, 0x73,
+ 0x69, 0x6f, 0x6e, 0xca, 0x02, 0x10, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x53,
+ 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0xe2, 0x02, 0x1c, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c,
+ 0x6c, 0x5c, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74,
+ 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c,
+ 0x3a, 0x3a, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
+ 0x33,
+}
+
+var (
+ file_poktroll_session_query_proto_rawDescOnce sync.Once
+ file_poktroll_session_query_proto_rawDescData = file_poktroll_session_query_proto_rawDesc
+)
+
+func file_poktroll_session_query_proto_rawDescGZIP() []byte {
+ file_poktroll_session_query_proto_rawDescOnce.Do(func() {
+ file_poktroll_session_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_poktroll_session_query_proto_rawDescData)
+ })
+ return file_poktroll_session_query_proto_rawDescData
+}
+
+var file_poktroll_session_query_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
+var file_poktroll_session_query_proto_goTypes = []interface{}{
+ (*QueryParamsRequest)(nil), // 0: poktroll.QueryParamsRequest
+ (*QueryParamsResponse)(nil), // 1: poktroll.QueryParamsResponse
+ (*QueryGetSessionRequest)(nil), // 2: poktroll.QueryGetSessionRequest
+ (*QueryGetSessionResponse)(nil), // 3: poktroll.QueryGetSessionResponse
+ (*Params)(nil), // 4: poktroll.Params
+ (*shared.Service)(nil), // 5: poktroll.shared.Service
+ (*Session)(nil), // 6: poktroll.Session
+}
+var file_poktroll_session_query_proto_depIdxs = []int32{
+ 4, // 0: poktroll.QueryParamsResponse.params:type_name -> poktroll.Params
+ 5, // 1: poktroll.QueryGetSessionRequest.service:type_name -> poktroll.shared.Service
+ 6, // 2: poktroll.QueryGetSessionResponse.session:type_name -> poktroll.Session
+ 0, // 3: poktroll.Query.Params:input_type -> poktroll.QueryParamsRequest
+ 2, // 4: poktroll.Query.GetSession:input_type -> poktroll.QueryGetSessionRequest
+ 1, // 5: poktroll.Query.Params:output_type -> poktroll.QueryParamsResponse
+ 3, // 6: poktroll.Query.GetSession:output_type -> poktroll.QueryGetSessionResponse
+ 5, // [5:7] is the sub-list for method output_type
+ 3, // [3:5] 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_poktroll_session_query_proto_init() }
+func file_poktroll_session_query_proto_init() {
+ if File_poktroll_session_query_proto != nil {
+ return
+ }
+ file_poktroll_session_params_proto_init()
+ if !protoimpl.UnsafeEnabled {
+ file_poktroll_session_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryParamsRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_session_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryParamsResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_session_query_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryGetSessionRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_session_query_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryGetSessionResponse); 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_poktroll_session_query_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 4,
+ NumExtensions: 0,
+ NumServices: 1,
+ },
+ GoTypes: file_poktroll_session_query_proto_goTypes,
+ DependencyIndexes: file_poktroll_session_query_proto_depIdxs,
+ MessageInfos: file_poktroll_session_query_proto_msgTypes,
+ }.Build()
+ File_poktroll_session_query_proto = out.File
+ file_poktroll_session_query_proto_rawDesc = nil
+ file_poktroll_session_query_proto_goTypes = nil
+ file_poktroll_session_query_proto_depIdxs = nil
+}
diff --git a/api/poktroll/session/session.pulsar.go b/api/poktroll/session/session.pulsar.go
new file mode 100644
index 000000000..c0a424878
--- /dev/null
+++ b/api/poktroll/session/session.pulsar.go
@@ -0,0 +1,1796 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package session
+
+import (
+ fmt "fmt"
+ _ "github.com/cosmos/cosmos-proto"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ application "github.com/pokt-network/poktroll/api/poktroll/application"
+ shared "github.com/pokt-network/poktroll/api/poktroll/shared"
+ 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_SessionHeader protoreflect.MessageDescriptor
+ fd_SessionHeader_application_address protoreflect.FieldDescriptor
+ fd_SessionHeader_service protoreflect.FieldDescriptor
+ fd_SessionHeader_session_start_block_height protoreflect.FieldDescriptor
+ fd_SessionHeader_session_id protoreflect.FieldDescriptor
+ fd_SessionHeader_session_end_block_height protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_session_session_proto_init()
+ md_SessionHeader = File_poktroll_session_session_proto.Messages().ByName("SessionHeader")
+ fd_SessionHeader_application_address = md_SessionHeader.Fields().ByName("application_address")
+ fd_SessionHeader_service = md_SessionHeader.Fields().ByName("service")
+ fd_SessionHeader_session_start_block_height = md_SessionHeader.Fields().ByName("session_start_block_height")
+ fd_SessionHeader_session_id = md_SessionHeader.Fields().ByName("session_id")
+ fd_SessionHeader_session_end_block_height = md_SessionHeader.Fields().ByName("session_end_block_height")
+}
+
+var _ protoreflect.Message = (*fastReflection_SessionHeader)(nil)
+
+type fastReflection_SessionHeader SessionHeader
+
+func (x *SessionHeader) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_SessionHeader)(x)
+}
+
+func (x *SessionHeader) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_session_session_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_SessionHeader_messageType fastReflection_SessionHeader_messageType
+var _ protoreflect.MessageType = fastReflection_SessionHeader_messageType{}
+
+type fastReflection_SessionHeader_messageType struct{}
+
+func (x fastReflection_SessionHeader_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_SessionHeader)(nil)
+}
+func (x fastReflection_SessionHeader_messageType) New() protoreflect.Message {
+ return new(fastReflection_SessionHeader)
+}
+func (x fastReflection_SessionHeader_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_SessionHeader
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_SessionHeader) Descriptor() protoreflect.MessageDescriptor {
+ return md_SessionHeader
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_SessionHeader) Type() protoreflect.MessageType {
+ return _fastReflection_SessionHeader_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_SessionHeader) New() protoreflect.Message {
+ return new(fastReflection_SessionHeader)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_SessionHeader) Interface() protoreflect.ProtoMessage {
+ return (*SessionHeader)(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_SessionHeader) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.ApplicationAddress != "" {
+ value := protoreflect.ValueOfString(x.ApplicationAddress)
+ if !f(fd_SessionHeader_application_address, value) {
+ return
+ }
+ }
+ if x.Service != nil {
+ value := protoreflect.ValueOfMessage(x.Service.ProtoReflect())
+ if !f(fd_SessionHeader_service, value) {
+ return
+ }
+ }
+ if x.SessionStartBlockHeight != int64(0) {
+ value := protoreflect.ValueOfInt64(x.SessionStartBlockHeight)
+ if !f(fd_SessionHeader_session_start_block_height, value) {
+ return
+ }
+ }
+ if x.SessionId != "" {
+ value := protoreflect.ValueOfString(x.SessionId)
+ if !f(fd_SessionHeader_session_id, value) {
+ return
+ }
+ }
+ if x.SessionEndBlockHeight != int64(0) {
+ value := protoreflect.ValueOfInt64(x.SessionEndBlockHeight)
+ if !f(fd_SessionHeader_session_end_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_SessionHeader) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.session.SessionHeader.application_address":
+ return x.ApplicationAddress != ""
+ case "poktroll.session.SessionHeader.service":
+ return x.Service != nil
+ case "poktroll.session.SessionHeader.session_start_block_height":
+ return x.SessionStartBlockHeight != int64(0)
+ case "poktroll.session.SessionHeader.session_id":
+ return x.SessionId != ""
+ case "poktroll.session.SessionHeader.session_end_block_height":
+ return x.SessionEndBlockHeight != int64(0)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.session.SessionHeader"))
+ }
+ panic(fmt.Errorf("message poktroll.session.SessionHeader 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_SessionHeader) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.session.SessionHeader.application_address":
+ x.ApplicationAddress = ""
+ case "poktroll.session.SessionHeader.service":
+ x.Service = nil
+ case "poktroll.session.SessionHeader.session_start_block_height":
+ x.SessionStartBlockHeight = int64(0)
+ case "poktroll.session.SessionHeader.session_id":
+ x.SessionId = ""
+ case "poktroll.session.SessionHeader.session_end_block_height":
+ x.SessionEndBlockHeight = int64(0)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.session.SessionHeader"))
+ }
+ panic(fmt.Errorf("message poktroll.session.SessionHeader 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_SessionHeader) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.session.SessionHeader.application_address":
+ value := x.ApplicationAddress
+ return protoreflect.ValueOfString(value)
+ case "poktroll.session.SessionHeader.service":
+ value := x.Service
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ case "poktroll.session.SessionHeader.session_start_block_height":
+ value := x.SessionStartBlockHeight
+ return protoreflect.ValueOfInt64(value)
+ case "poktroll.session.SessionHeader.session_id":
+ value := x.SessionId
+ return protoreflect.ValueOfString(value)
+ case "poktroll.session.SessionHeader.session_end_block_height":
+ value := x.SessionEndBlockHeight
+ return protoreflect.ValueOfInt64(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.session.SessionHeader"))
+ }
+ panic(fmt.Errorf("message poktroll.session.SessionHeader 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_SessionHeader) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.session.SessionHeader.application_address":
+ x.ApplicationAddress = value.Interface().(string)
+ case "poktroll.session.SessionHeader.service":
+ x.Service = value.Message().Interface().(*shared.Service)
+ case "poktroll.session.SessionHeader.session_start_block_height":
+ x.SessionStartBlockHeight = value.Int()
+ case "poktroll.session.SessionHeader.session_id":
+ x.SessionId = value.Interface().(string)
+ case "poktroll.session.SessionHeader.session_end_block_height":
+ x.SessionEndBlockHeight = value.Int()
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.session.SessionHeader"))
+ }
+ panic(fmt.Errorf("message poktroll.session.SessionHeader 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_SessionHeader) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.session.SessionHeader.service":
+ if x.Service == nil {
+ x.Service = new(shared.Service)
+ }
+ return protoreflect.ValueOfMessage(x.Service.ProtoReflect())
+ case "poktroll.session.SessionHeader.application_address":
+ panic(fmt.Errorf("field application_address of message poktroll.session.SessionHeader is not mutable"))
+ case "poktroll.session.SessionHeader.session_start_block_height":
+ panic(fmt.Errorf("field session_start_block_height of message poktroll.session.SessionHeader is not mutable"))
+ case "poktroll.session.SessionHeader.session_id":
+ panic(fmt.Errorf("field session_id of message poktroll.session.SessionHeader is not mutable"))
+ case "poktroll.session.SessionHeader.session_end_block_height":
+ panic(fmt.Errorf("field session_end_block_height of message poktroll.session.SessionHeader is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.session.SessionHeader"))
+ }
+ panic(fmt.Errorf("message poktroll.session.SessionHeader does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_SessionHeader) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.session.SessionHeader.application_address":
+ return protoreflect.ValueOfString("")
+ case "poktroll.session.SessionHeader.service":
+ m := new(shared.Service)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ case "poktroll.session.SessionHeader.session_start_block_height":
+ return protoreflect.ValueOfInt64(int64(0))
+ case "poktroll.session.SessionHeader.session_id":
+ return protoreflect.ValueOfString("")
+ case "poktroll.session.SessionHeader.session_end_block_height":
+ return protoreflect.ValueOfInt64(int64(0))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.session.SessionHeader"))
+ }
+ panic(fmt.Errorf("message poktroll.session.SessionHeader does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_SessionHeader) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.session.SessionHeader", 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_SessionHeader) 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_SessionHeader) 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_SessionHeader) 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_SessionHeader) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*SessionHeader)
+ 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.ApplicationAddress)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.Service != nil {
+ l = options.Size(x.Service)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.SessionStartBlockHeight != 0 {
+ n += 1 + runtime.Sov(uint64(x.SessionStartBlockHeight))
+ }
+ l = len(x.SessionId)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.SessionEndBlockHeight != 0 {
+ n += 1 + runtime.Sov(uint64(x.SessionEndBlockHeight))
+ }
+ 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().(*SessionHeader)
+ 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.SessionEndBlockHeight != 0 {
+ i = runtime.EncodeVarint(dAtA, i, uint64(x.SessionEndBlockHeight))
+ i--
+ dAtA[i] = 0x28
+ }
+ if len(x.SessionId) > 0 {
+ i -= len(x.SessionId)
+ copy(dAtA[i:], x.SessionId)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.SessionId)))
+ i--
+ dAtA[i] = 0x22
+ }
+ if x.SessionStartBlockHeight != 0 {
+ i = runtime.EncodeVarint(dAtA, i, uint64(x.SessionStartBlockHeight))
+ i--
+ dAtA[i] = 0x18
+ }
+ if x.Service != nil {
+ encoded, err := options.Marshal(x.Service)
+ 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.ApplicationAddress) > 0 {
+ i -= len(x.ApplicationAddress)
+ copy(dAtA[i:], x.ApplicationAddress)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ApplicationAddress)))
+ 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().(*SessionHeader)
+ 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: SessionHeader: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: SessionHeader: 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 ApplicationAddress", 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.ApplicationAddress = 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 Service", 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.Service == nil {
+ x.Service = &shared.Service{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Service); 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 SessionStartBlockHeight", wireType)
+ }
+ x.SessionStartBlockHeight = 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.SessionStartBlockHeight |= int64(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 SessionId", 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.SessionId = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 5:
+ if wireType != 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SessionEndBlockHeight", wireType)
+ }
+ x.SessionEndBlockHeight = 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.SessionEndBlockHeight |= 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 = (*_Session_6_list)(nil)
+
+type _Session_6_list struct {
+ list *[]*shared.Supplier
+}
+
+func (x *_Session_6_list) Len() int {
+ if x.list == nil {
+ return 0
+ }
+ return len(*x.list)
+}
+
+func (x *_Session_6_list) Get(i int) protoreflect.Value {
+ return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
+}
+
+func (x *_Session_6_list) Set(i int, value protoreflect.Value) {
+ valueUnwrapped := value.Message()
+ concreteValue := valueUnwrapped.Interface().(*shared.Supplier)
+ (*x.list)[i] = concreteValue
+}
+
+func (x *_Session_6_list) Append(value protoreflect.Value) {
+ valueUnwrapped := value.Message()
+ concreteValue := valueUnwrapped.Interface().(*shared.Supplier)
+ *x.list = append(*x.list, concreteValue)
+}
+
+func (x *_Session_6_list) AppendMutable() protoreflect.Value {
+ v := new(shared.Supplier)
+ *x.list = append(*x.list, v)
+ return protoreflect.ValueOfMessage(v.ProtoReflect())
+}
+
+func (x *_Session_6_list) Truncate(n int) {
+ for i := n; i < len(*x.list); i++ {
+ (*x.list)[i] = nil
+ }
+ *x.list = (*x.list)[:n]
+}
+
+func (x *_Session_6_list) NewElement() protoreflect.Value {
+ v := new(shared.Supplier)
+ return protoreflect.ValueOfMessage(v.ProtoReflect())
+}
+
+func (x *_Session_6_list) IsValid() bool {
+ return x.list != nil
+}
+
+var (
+ md_Session protoreflect.MessageDescriptor
+ fd_Session_header protoreflect.FieldDescriptor
+ fd_Session_session_id protoreflect.FieldDescriptor
+ fd_Session_session_number protoreflect.FieldDescriptor
+ fd_Session_num_blocks_per_session protoreflect.FieldDescriptor
+ fd_Session_application protoreflect.FieldDescriptor
+ fd_Session_suppliers protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_session_session_proto_init()
+ md_Session = File_poktroll_session_session_proto.Messages().ByName("Session")
+ fd_Session_header = md_Session.Fields().ByName("header")
+ fd_Session_session_id = md_Session.Fields().ByName("session_id")
+ fd_Session_session_number = md_Session.Fields().ByName("session_number")
+ fd_Session_num_blocks_per_session = md_Session.Fields().ByName("num_blocks_per_session")
+ fd_Session_application = md_Session.Fields().ByName("application")
+ fd_Session_suppliers = md_Session.Fields().ByName("suppliers")
+}
+
+var _ protoreflect.Message = (*fastReflection_Session)(nil)
+
+type fastReflection_Session Session
+
+func (x *Session) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_Session)(x)
+}
+
+func (x *Session) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_session_session_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_Session_messageType fastReflection_Session_messageType
+var _ protoreflect.MessageType = fastReflection_Session_messageType{}
+
+type fastReflection_Session_messageType struct{}
+
+func (x fastReflection_Session_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_Session)(nil)
+}
+func (x fastReflection_Session_messageType) New() protoreflect.Message {
+ return new(fastReflection_Session)
+}
+func (x fastReflection_Session_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_Session
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_Session) Descriptor() protoreflect.MessageDescriptor {
+ return md_Session
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_Session) Type() protoreflect.MessageType {
+ return _fastReflection_Session_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_Session) New() protoreflect.Message {
+ return new(fastReflection_Session)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_Session) Interface() protoreflect.ProtoMessage {
+ return (*Session)(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_Session) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Header != nil {
+ value := protoreflect.ValueOfMessage(x.Header.ProtoReflect())
+ if !f(fd_Session_header, value) {
+ return
+ }
+ }
+ if x.SessionId != "" {
+ value := protoreflect.ValueOfString(x.SessionId)
+ if !f(fd_Session_session_id, value) {
+ return
+ }
+ }
+ if x.SessionNumber != int64(0) {
+ value := protoreflect.ValueOfInt64(x.SessionNumber)
+ if !f(fd_Session_session_number, value) {
+ return
+ }
+ }
+ if x.NumBlocksPerSession != int64(0) {
+ value := protoreflect.ValueOfInt64(x.NumBlocksPerSession)
+ if !f(fd_Session_num_blocks_per_session, value) {
+ return
+ }
+ }
+ if x.Application != nil {
+ value := protoreflect.ValueOfMessage(x.Application.ProtoReflect())
+ if !f(fd_Session_application, value) {
+ return
+ }
+ }
+ if len(x.Suppliers) != 0 {
+ value := protoreflect.ValueOfList(&_Session_6_list{list: &x.Suppliers})
+ if !f(fd_Session_suppliers, 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_Session) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.session.Session.header":
+ return x.Header != nil
+ case "poktroll.session.Session.session_id":
+ return x.SessionId != ""
+ case "poktroll.session.Session.session_number":
+ return x.SessionNumber != int64(0)
+ case "poktroll.session.Session.num_blocks_per_session":
+ return x.NumBlocksPerSession != int64(0)
+ case "poktroll.session.Session.application":
+ return x.Application != nil
+ case "poktroll.session.Session.suppliers":
+ return len(x.Suppliers) != 0
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.session.Session"))
+ }
+ panic(fmt.Errorf("message poktroll.session.Session 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_Session) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.session.Session.header":
+ x.Header = nil
+ case "poktroll.session.Session.session_id":
+ x.SessionId = ""
+ case "poktroll.session.Session.session_number":
+ x.SessionNumber = int64(0)
+ case "poktroll.session.Session.num_blocks_per_session":
+ x.NumBlocksPerSession = int64(0)
+ case "poktroll.session.Session.application":
+ x.Application = nil
+ case "poktroll.session.Session.suppliers":
+ x.Suppliers = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.session.Session"))
+ }
+ panic(fmt.Errorf("message poktroll.session.Session 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_Session) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.session.Session.header":
+ value := x.Header
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ case "poktroll.session.Session.session_id":
+ value := x.SessionId
+ return protoreflect.ValueOfString(value)
+ case "poktroll.session.Session.session_number":
+ value := x.SessionNumber
+ return protoreflect.ValueOfInt64(value)
+ case "poktroll.session.Session.num_blocks_per_session":
+ value := x.NumBlocksPerSession
+ return protoreflect.ValueOfInt64(value)
+ case "poktroll.session.Session.application":
+ value := x.Application
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ case "poktroll.session.Session.suppliers":
+ if len(x.Suppliers) == 0 {
+ return protoreflect.ValueOfList(&_Session_6_list{})
+ }
+ listValue := &_Session_6_list{list: &x.Suppliers}
+ return protoreflect.ValueOfList(listValue)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.session.Session"))
+ }
+ panic(fmt.Errorf("message poktroll.session.Session 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_Session) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.session.Session.header":
+ x.Header = value.Message().Interface().(*SessionHeader)
+ case "poktroll.session.Session.session_id":
+ x.SessionId = value.Interface().(string)
+ case "poktroll.session.Session.session_number":
+ x.SessionNumber = value.Int()
+ case "poktroll.session.Session.num_blocks_per_session":
+ x.NumBlocksPerSession = value.Int()
+ case "poktroll.session.Session.application":
+ x.Application = value.Message().Interface().(*application.Application)
+ case "poktroll.session.Session.suppliers":
+ lv := value.List()
+ clv := lv.(*_Session_6_list)
+ x.Suppliers = *clv.list
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.session.Session"))
+ }
+ panic(fmt.Errorf("message poktroll.session.Session 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_Session) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.session.Session.header":
+ if x.Header == nil {
+ x.Header = new(SessionHeader)
+ }
+ return protoreflect.ValueOfMessage(x.Header.ProtoReflect())
+ case "poktroll.session.Session.application":
+ if x.Application == nil {
+ x.Application = new(application.Application)
+ }
+ return protoreflect.ValueOfMessage(x.Application.ProtoReflect())
+ case "poktroll.session.Session.suppliers":
+ if x.Suppliers == nil {
+ x.Suppliers = []*shared.Supplier{}
+ }
+ value := &_Session_6_list{list: &x.Suppliers}
+ return protoreflect.ValueOfList(value)
+ case "poktroll.session.Session.session_id":
+ panic(fmt.Errorf("field session_id of message poktroll.session.Session is not mutable"))
+ case "poktroll.session.Session.session_number":
+ panic(fmt.Errorf("field session_number of message poktroll.session.Session is not mutable"))
+ case "poktroll.session.Session.num_blocks_per_session":
+ panic(fmt.Errorf("field num_blocks_per_session of message poktroll.session.Session is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.session.Session"))
+ }
+ panic(fmt.Errorf("message poktroll.session.Session does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_Session) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.session.Session.header":
+ m := new(SessionHeader)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ case "poktroll.session.Session.session_id":
+ return protoreflect.ValueOfString("")
+ case "poktroll.session.Session.session_number":
+ return protoreflect.ValueOfInt64(int64(0))
+ case "poktroll.session.Session.num_blocks_per_session":
+ return protoreflect.ValueOfInt64(int64(0))
+ case "poktroll.session.Session.application":
+ m := new(application.Application)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ case "poktroll.session.Session.suppliers":
+ list := []*shared.Supplier{}
+ return protoreflect.ValueOfList(&_Session_6_list{list: &list})
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.session.Session"))
+ }
+ panic(fmt.Errorf("message poktroll.session.Session does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_Session) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.session.Session", 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_Session) 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_Session) 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_Session) 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_Session) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*Session)
+ 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.Header != nil {
+ l = options.Size(x.Header)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.SessionId)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.SessionNumber != 0 {
+ n += 1 + runtime.Sov(uint64(x.SessionNumber))
+ }
+ if x.NumBlocksPerSession != 0 {
+ n += 1 + runtime.Sov(uint64(x.NumBlocksPerSession))
+ }
+ if x.Application != nil {
+ l = options.Size(x.Application)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if len(x.Suppliers) > 0 {
+ for _, e := range x.Suppliers {
+ 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().(*Session)
+ 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.Suppliers) > 0 {
+ for iNdEx := len(x.Suppliers) - 1; iNdEx >= 0; iNdEx-- {
+ encoded, err := options.Marshal(x.Suppliers[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 x.Application != nil {
+ encoded, err := options.Marshal(x.Application)
+ if err != nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, err
+ }
+ i -= len(encoded)
+ copy(dAtA[i:], encoded)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
+ i--
+ dAtA[i] = 0x2a
+ }
+ if x.NumBlocksPerSession != 0 {
+ i = runtime.EncodeVarint(dAtA, i, uint64(x.NumBlocksPerSession))
+ i--
+ dAtA[i] = 0x20
+ }
+ if x.SessionNumber != 0 {
+ i = runtime.EncodeVarint(dAtA, i, uint64(x.SessionNumber))
+ i--
+ dAtA[i] = 0x18
+ }
+ if len(x.SessionId) > 0 {
+ i -= len(x.SessionId)
+ copy(dAtA[i:], x.SessionId)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.SessionId)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if x.Header != nil {
+ encoded, err := options.Marshal(x.Header)
+ 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().(*Session)
+ 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: Session: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Session: 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 Header", 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.Header == nil {
+ x.Header = &SessionHeader{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Header); 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 SessionId", 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.SessionId = 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 SessionNumber", wireType)
+ }
+ x.SessionNumber = 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.SessionNumber |= int64(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 NumBlocksPerSession", wireType)
+ }
+ x.NumBlocksPerSession = 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.NumBlocksPerSession |= int64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 5:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Application", 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.Application == nil {
+ x.Application = &application.Application{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Application); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ case 6:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Suppliers", 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.Suppliers = append(x.Suppliers, &shared.Supplier{})
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Suppliers[len(x.Suppliers)-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: poktroll/session/session.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)
+)
+
+// SessionHeader is a lightweight header for a session that can be passed around.
+// It is the minimal amount of data required to hydrate & retrieve all data relevant to the session.
+type SessionHeader struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ ApplicationAddress string `protobuf:"bytes,1,opt,name=application_address,json=applicationAddress,proto3" json:"application_address,omitempty"` // The Bech32 address of the application using cosmos' ScalarDescriptor to ensure deterministic encoding
+ Service *shared.Service `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty"` // The service this session is for
+ SessionStartBlockHeight int64 `protobuf:"varint,3,opt,name=session_start_block_height,json=sessionStartBlockHeight,proto3" json:"session_start_block_height,omitempty"` // The height at which this session started
+ // NOTE: session_id can be derived from the above values using on-chain but is included in the header for convenience
+ SessionId string `protobuf:"bytes,4,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` // A unique pseudoranom ID for this session
+ SessionEndBlockHeight int64 `protobuf:"varint,5,opt,name=session_end_block_height,json=sessionEndBlockHeight,proto3" json:"session_end_block_height,omitempty"` // The height at which this session ended, this is the last block of the session
+}
+
+func (x *SessionHeader) Reset() {
+ *x = SessionHeader{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_session_session_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *SessionHeader) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*SessionHeader) ProtoMessage() {}
+
+// Deprecated: Use SessionHeader.ProtoReflect.Descriptor instead.
+func (*SessionHeader) Descriptor() ([]byte, []int) {
+ return file_poktroll_session_session_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *SessionHeader) GetApplicationAddress() string {
+ if x != nil {
+ return x.ApplicationAddress
+ }
+ return ""
+}
+
+func (x *SessionHeader) GetService() *shared.Service {
+ if x != nil {
+ return x.Service
+ }
+ return nil
+}
+
+func (x *SessionHeader) GetSessionStartBlockHeight() int64 {
+ if x != nil {
+ return x.SessionStartBlockHeight
+ }
+ return 0
+}
+
+func (x *SessionHeader) GetSessionId() string {
+ if x != nil {
+ return x.SessionId
+ }
+ return ""
+}
+
+func (x *SessionHeader) GetSessionEndBlockHeight() int64 {
+ if x != nil {
+ return x.SessionEndBlockHeight
+ }
+ return 0
+}
+
+// Session is a fully hydrated session object that contains all the information for the Session
+// and its parcipants.
+type Session struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Header *SessionHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` // The header of the session containing lightweight data
+ SessionId string `protobuf:"bytes,2,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` // A unique pseudoranom ID for this session
+ SessionNumber int64 `protobuf:"varint,3,opt,name=session_number,json=sessionNumber,proto3" json:"session_number,omitempty"` // The session number since genesis
+ NumBlocksPerSession int64 `protobuf:"varint,4,opt,name=num_blocks_per_session,json=numBlocksPerSession,proto3" json:"num_blocks_per_session,omitempty"` // The number of blocks per session when this session started
+ Application *application.Application `protobuf:"bytes,5,opt,name=application,proto3" json:"application,omitempty"` // A fully hydrated application object this session is for
+ Suppliers []*shared.Supplier `protobuf:"bytes,6,rep,name=suppliers,proto3" json:"suppliers,omitempty"` // A fully hydrated set of servicers that are serving the application
+}
+
+func (x *Session) Reset() {
+ *x = Session{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_session_session_proto_msgTypes[1]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *Session) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*Session) ProtoMessage() {}
+
+// Deprecated: Use Session.ProtoReflect.Descriptor instead.
+func (*Session) Descriptor() ([]byte, []int) {
+ return file_poktroll_session_session_proto_rawDescGZIP(), []int{1}
+}
+
+func (x *Session) GetHeader() *SessionHeader {
+ if x != nil {
+ return x.Header
+ }
+ return nil
+}
+
+func (x *Session) GetSessionId() string {
+ if x != nil {
+ return x.SessionId
+ }
+ return ""
+}
+
+func (x *Session) GetSessionNumber() int64 {
+ if x != nil {
+ return x.SessionNumber
+ }
+ return 0
+}
+
+func (x *Session) GetNumBlocksPerSession() int64 {
+ if x != nil {
+ return x.NumBlocksPerSession
+ }
+ return 0
+}
+
+func (x *Session) GetApplication() *application.Application {
+ if x != nil {
+ return x.Application
+ }
+ return nil
+}
+
+func (x *Session) GetSuppliers() []*shared.Supplier {
+ if x != nil {
+ return x.Suppliers
+ }
+ return nil
+}
+
+var File_poktroll_session_session_proto protoreflect.FileDescriptor
+
+var file_poktroll_session_session_proto_rawDesc = []byte{
+ 0x0a, 0x1e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x65, 0x73, 0x73, 0x69,
+ 0x6f, 0x6e, 0x2f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
+ 0x12, 0x10, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x65, 0x73, 0x73, 0x69,
+ 0x6f, 0x6e, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
+ 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x70,
+ 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2f, 0x73,
+ 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x26, 0x70, 0x6f,
+ 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69,
+ 0x6f, 0x6e, 0x2f, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70,
+ 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73,
+ 0x68, 0x61, 0x72, 0x65, 0x64, 0x2f, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x2e, 0x70,
+ 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa3, 0x02, 0x0a, 0x0d, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e,
+ 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x49, 0x0a, 0x13, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63,
+ 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20,
+ 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e,
+ 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x12, 0x61,
+ 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73,
+ 0x73, 0x12, 0x32, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01,
+ 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x68,
+ 0x61, 0x72, 0x65, 0x64, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x07, 0x73, 0x65,
+ 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x3b, 0x0a, 0x1a, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e,
+ 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69,
+ 0x67, 0x68, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x17, 0x73, 0x65, 0x73, 0x73, 0x69,
+ 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67,
+ 0x68, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64,
+ 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49,
+ 0x64, 0x12, 0x37, 0x0a, 0x18, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x65, 0x6e, 0x64,
+ 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x05, 0x20,
+ 0x01, 0x28, 0x03, 0x52, 0x15, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x64, 0x42,
+ 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0xbb, 0x02, 0x0a, 0x07, 0x53,
+ 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x37, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72,
+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c,
+ 0x6c, 0x2e, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f,
+ 0x6e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12,
+ 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20,
+ 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x25,
+ 0x0a, 0x0e, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72,
+ 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x4e,
+ 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x33, 0x0a, 0x16, 0x6e, 0x75, 0x6d, 0x5f, 0x62, 0x6c, 0x6f,
+ 0x63, 0x6b, 0x73, 0x5f, 0x70, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18,
+ 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x13, 0x6e, 0x75, 0x6d, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x73,
+ 0x50, 0x65, 0x72, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x43, 0x0a, 0x0b, 0x61, 0x70,
+ 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32,
+ 0x21, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x69,
+ 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69,
+ 0x6f, 0x6e, 0x52, 0x0b, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12,
+ 0x37, 0x0a, 0x09, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x73, 0x18, 0x06, 0x20, 0x03,
+ 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x68,
+ 0x61, 0x72, 0x65, 0x64, 0x2e, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x52, 0x09, 0x73,
+ 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x73, 0x42, 0xa8, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d,
+ 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f,
+ 0x6e, 0x42, 0x0c, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50,
+ 0x01, 0x5a, 0x21, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f,
+ 0x61, 0x70, 0x69, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x65, 0x73,
+ 0x73, 0x69, 0x6f, 0x6e, 0xa2, 0x02, 0x03, 0x50, 0x53, 0x58, 0xaa, 0x02, 0x10, 0x50, 0x6f, 0x6b,
+ 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0xca, 0x02, 0x10,
+ 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e,
+ 0xe2, 0x02, 0x1c, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x53, 0x65, 0x73, 0x73,
+ 0x69, 0x6f, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea,
+ 0x02, 0x11, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x3a, 0x3a, 0x53, 0x65, 0x73, 0x73,
+ 0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_poktroll_session_session_proto_rawDescOnce sync.Once
+ file_poktroll_session_session_proto_rawDescData = file_poktroll_session_session_proto_rawDesc
+)
+
+func file_poktroll_session_session_proto_rawDescGZIP() []byte {
+ file_poktroll_session_session_proto_rawDescOnce.Do(func() {
+ file_poktroll_session_session_proto_rawDescData = protoimpl.X.CompressGZIP(file_poktroll_session_session_proto_rawDescData)
+ })
+ return file_poktroll_session_session_proto_rawDescData
+}
+
+var file_poktroll_session_session_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
+var file_poktroll_session_session_proto_goTypes = []interface{}{
+ (*SessionHeader)(nil), // 0: poktroll.session.SessionHeader
+ (*Session)(nil), // 1: poktroll.session.Session
+ (*shared.Service)(nil), // 2: poktroll.shared.Service
+ (*application.Application)(nil), // 3: poktroll.application.Application
+ (*shared.Supplier)(nil), // 4: poktroll.shared.Supplier
+}
+var file_poktroll_session_session_proto_depIdxs = []int32{
+ 2, // 0: poktroll.session.SessionHeader.service:type_name -> poktroll.shared.Service
+ 0, // 1: poktroll.session.Session.header:type_name -> poktroll.session.SessionHeader
+ 3, // 2: poktroll.session.Session.application:type_name -> poktroll.application.Application
+ 4, // 3: poktroll.session.Session.suppliers:type_name -> poktroll.shared.Supplier
+ 4, // [4:4] is the sub-list for method output_type
+ 4, // [4:4] is the sub-list for method input_type
+ 4, // [4:4] is the sub-list for extension type_name
+ 4, // [4:4] is the sub-list for extension extendee
+ 0, // [0:4] is the sub-list for field type_name
+}
+
+func init() { file_poktroll_session_session_proto_init() }
+func file_poktroll_session_session_proto_init() {
+ if File_poktroll_session_session_proto != nil {
+ return
+ }
+ if !protoimpl.UnsafeEnabled {
+ file_poktroll_session_session_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*SessionHeader); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_session_session_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*Session); 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_poktroll_session_session_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 2,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_poktroll_session_session_proto_goTypes,
+ DependencyIndexes: file_poktroll_session_session_proto_depIdxs,
+ MessageInfos: file_poktroll_session_session_proto_msgTypes,
+ }.Build()
+ File_poktroll_session_session_proto = out.File
+ file_poktroll_session_session_proto_rawDesc = nil
+ file_poktroll_session_session_proto_goTypes = nil
+ file_poktroll_session_session_proto_depIdxs = nil
+}
diff --git a/api/poktroll/session/tx.pulsar.go b/api/poktroll/session/tx.pulsar.go
new file mode 100644
index 000000000..deb862e76
--- /dev/null
+++ b/api/poktroll/session/tx.pulsar.go
@@ -0,0 +1,1088 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package session
+
+import (
+ _ "cosmossdk.io/api/amino"
+ _ "cosmossdk.io/api/cosmos/msg/v1"
+ fmt "fmt"
+ _ "github.com/cosmos/cosmos-proto"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ _ "github.com/cosmos/gogoproto/gogoproto"
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoiface "google.golang.org/protobuf/runtime/protoiface"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ io "io"
+ reflect "reflect"
+ sync "sync"
+)
+
+var (
+ md_MsgUpdateParams protoreflect.MessageDescriptor
+ fd_MsgUpdateParams_authority protoreflect.FieldDescriptor
+ fd_MsgUpdateParams_params protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_session_tx_proto_init()
+ md_MsgUpdateParams = File_poktroll_session_tx_proto.Messages().ByName("MsgUpdateParams")
+ fd_MsgUpdateParams_authority = md_MsgUpdateParams.Fields().ByName("authority")
+ 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_poktroll_session_tx_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_MsgUpdateParams_messageType fastReflection_MsgUpdateParams_messageType
+var _ protoreflect.MessageType = fastReflection_MsgUpdateParams_messageType{}
+
+type fastReflection_MsgUpdateParams_messageType struct{}
+
+func (x fastReflection_MsgUpdateParams_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_MsgUpdateParams)(nil)
+}
+func (x fastReflection_MsgUpdateParams_messageType) New() protoreflect.Message {
+ return new(fastReflection_MsgUpdateParams)
+}
+func (x fastReflection_MsgUpdateParams_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgUpdateParams
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_MsgUpdateParams) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgUpdateParams
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_MsgUpdateParams) Type() protoreflect.MessageType {
+ return _fastReflection_MsgUpdateParams_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_MsgUpdateParams) New() protoreflect.Message {
+ return new(fastReflection_MsgUpdateParams)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_MsgUpdateParams) Interface() protoreflect.ProtoMessage {
+ return (*MsgUpdateParams)(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_MsgUpdateParams) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Authority != "" {
+ value := protoreflect.ValueOfString(x.Authority)
+ if !f(fd_MsgUpdateParams_authority, value) {
+ return
+ }
+ }
+ if x.Params != nil {
+ value := protoreflect.ValueOfMessage(x.Params.ProtoReflect())
+ if !f(fd_MsgUpdateParams_params, 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_MsgUpdateParams) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.session.MsgUpdateParams.authority":
+ return x.Authority != ""
+ case "poktroll.session.MsgUpdateParams.params":
+ return x.Params != nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.session.MsgUpdateParams"))
+ }
+ panic(fmt.Errorf("message poktroll.session.MsgUpdateParams 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_MsgUpdateParams) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.session.MsgUpdateParams.authority":
+ x.Authority = ""
+ case "poktroll.session.MsgUpdateParams.params":
+ x.Params = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.session.MsgUpdateParams"))
+ }
+ panic(fmt.Errorf("message poktroll.session.MsgUpdateParams 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_MsgUpdateParams) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.session.MsgUpdateParams.authority":
+ value := x.Authority
+ return protoreflect.ValueOfString(value)
+ case "poktroll.session.MsgUpdateParams.params":
+ value := x.Params
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.session.MsgUpdateParams"))
+ }
+ panic(fmt.Errorf("message poktroll.session.MsgUpdateParams 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_MsgUpdateParams) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.session.MsgUpdateParams.authority":
+ x.Authority = value.Interface().(string)
+ case "poktroll.session.MsgUpdateParams.params":
+ x.Params = value.Message().Interface().(*Params)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.session.MsgUpdateParams"))
+ }
+ panic(fmt.Errorf("message poktroll.session.MsgUpdateParams 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_MsgUpdateParams) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.session.MsgUpdateParams.params":
+ if x.Params == nil {
+ x.Params = new(Params)
+ }
+ return protoreflect.ValueOfMessage(x.Params.ProtoReflect())
+ case "poktroll.session.MsgUpdateParams.authority":
+ panic(fmt.Errorf("field authority of message poktroll.session.MsgUpdateParams is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.session.MsgUpdateParams"))
+ }
+ panic(fmt.Errorf("message poktroll.session.MsgUpdateParams does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// 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 "poktroll.session.MsgUpdateParams.authority":
+ return protoreflect.ValueOfString("")
+ case "poktroll.session.MsgUpdateParams.params":
+ m := new(Params)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.session.MsgUpdateParams"))
+ }
+ panic(fmt.Errorf("message poktroll.session.MsgUpdateParams does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_MsgUpdateParams) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.session.MsgUpdateParams", 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_MsgUpdateParams) 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_MsgUpdateParams) 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_MsgUpdateParams) 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_MsgUpdateParams) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*MsgUpdateParams)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Authority)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.Params != nil {
+ l = options.Size(x.Params)
+ 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().(*MsgUpdateParams)
+ 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.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] = 0x12
+ }
+ if len(x.Authority) > 0 {
+ i -= len(x.Authority)
+ copy(dAtA[i:], x.Authority)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority)))
+ i--
+ dAtA[i] = 0xa
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*MsgUpdateParams)
+ 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: MsgUpdateParams: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParams: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Authority = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field 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
+ 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_MsgUpdateParamsResponse protoreflect.MessageDescriptor
+)
+
+func init() {
+ file_poktroll_session_tx_proto_init()
+ md_MsgUpdateParamsResponse = File_poktroll_session_tx_proto.Messages().ByName("MsgUpdateParamsResponse")
+}
+
+var _ protoreflect.Message = (*fastReflection_MsgUpdateParamsResponse)(nil)
+
+type fastReflection_MsgUpdateParamsResponse MsgUpdateParamsResponse
+
+func (x *MsgUpdateParamsResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_MsgUpdateParamsResponse)(x)
+}
+
+func (x *MsgUpdateParamsResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_session_tx_proto_msgTypes[1]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_MsgUpdateParamsResponse_messageType fastReflection_MsgUpdateParamsResponse_messageType
+var _ protoreflect.MessageType = fastReflection_MsgUpdateParamsResponse_messageType{}
+
+type fastReflection_MsgUpdateParamsResponse_messageType struct{}
+
+func (x fastReflection_MsgUpdateParamsResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_MsgUpdateParamsResponse)(nil)
+}
+func (x fastReflection_MsgUpdateParamsResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_MsgUpdateParamsResponse)
+}
+func (x fastReflection_MsgUpdateParamsResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgUpdateParamsResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_MsgUpdateParamsResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgUpdateParamsResponse
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_MsgUpdateParamsResponse) Type() protoreflect.MessageType {
+ return _fastReflection_MsgUpdateParamsResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_MsgUpdateParamsResponse) New() protoreflect.Message {
+ return new(fastReflection_MsgUpdateParamsResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_MsgUpdateParamsResponse) Interface() protoreflect.ProtoMessage {
+ return (*MsgUpdateParamsResponse)(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_MsgUpdateParamsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_MsgUpdateParamsResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.session.MsgUpdateParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.session.MsgUpdateParamsResponse 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_MsgUpdateParamsResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.session.MsgUpdateParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.session.MsgUpdateParamsResponse 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_MsgUpdateParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.session.MsgUpdateParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.session.MsgUpdateParamsResponse 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_MsgUpdateParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.session.MsgUpdateParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.session.MsgUpdateParamsResponse 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_MsgUpdateParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.session.MsgUpdateParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.session.MsgUpdateParamsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_MsgUpdateParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.session.MsgUpdateParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.session.MsgUpdateParamsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_MsgUpdateParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.session.MsgUpdateParamsResponse", 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_MsgUpdateParamsResponse) 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_MsgUpdateParamsResponse) 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_MsgUpdateParamsResponse) 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_MsgUpdateParamsResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*MsgUpdateParamsResponse)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*MsgUpdateParamsResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*MsgUpdateParamsResponse)
+ 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: MsgUpdateParamsResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.27.0
+// protoc (unknown)
+// source: poktroll/session/tx.proto
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+// MsgUpdateParams is the Msg/UpdateParams request type.
+type MsgUpdateParams struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // authority is the address that controls the module (defaults to x/gov unless overwritten).
+ Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
+ // params defines the x/session parameters to update.
+ // NOTE: All parameters must be supplied.
+ Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"`
+}
+
+func (x *MsgUpdateParams) Reset() {
+ *x = MsgUpdateParams{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_session_tx_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *MsgUpdateParams) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*MsgUpdateParams) ProtoMessage() {}
+
+// Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead.
+func (*MsgUpdateParams) Descriptor() ([]byte, []int) {
+ return file_poktroll_session_tx_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *MsgUpdateParams) GetAuthority() string {
+ if x != nil {
+ return x.Authority
+ }
+ return ""
+}
+
+func (x *MsgUpdateParams) GetParams() *Params {
+ if x != nil {
+ return x.Params
+ }
+ return nil
+}
+
+// MsgUpdateParamsResponse defines the response structure for executing a
+// MsgUpdateParams message.
+type MsgUpdateParamsResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+}
+
+func (x *MsgUpdateParamsResponse) Reset() {
+ *x = MsgUpdateParamsResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_session_tx_proto_msgTypes[1]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *MsgUpdateParamsResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*MsgUpdateParamsResponse) ProtoMessage() {}
+
+// Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead.
+func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) {
+ return file_poktroll_session_tx_proto_rawDescGZIP(), []int{1}
+}
+
+var File_poktroll_session_tx_proto protoreflect.FileDescriptor
+
+var file_poktroll_session_tx_proto_rawDesc = []byte{
+ 0x0a, 0x19, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x65, 0x73, 0x73, 0x69,
+ 0x6f, 0x6e, 0x2f, 0x74, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x70, 0x6f, 0x6b,
+ 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x1a, 0x11, 0x61,
+ 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
+ 0x1a, 0x17, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x6d, 0x73, 0x67, 0x2f, 0x76, 0x31, 0x2f,
+ 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 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, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f,
+ 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x70, 0x6f, 0x6b, 0x74,
+ 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x70, 0x61, 0x72,
+ 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xbd, 0x01, 0x0a, 0x0f, 0x4d, 0x73,
+ 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x36, 0x0a,
+ 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
+ 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64,
+ 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68,
+ 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x3b, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18,
+ 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c,
+ 0x2e, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 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, 0x3a, 0x35, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69,
+ 0x74, 0x79, 0x8a, 0xe7, 0xb0, 0x2a, 0x22, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f,
+ 0x78, 0x2f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64,
+ 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x19, 0x0a, 0x17, 0x4d, 0x73, 0x67,
+ 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70,
+ 0x6f, 0x6e, 0x73, 0x65, 0x32, 0x6a, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x5c, 0x0a, 0x0c, 0x55,
+ 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x21, 0x2e, 0x70, 0x6f,
+ 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x4d,
+ 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x29,
+ 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f,
+ 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d,
+ 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a, 0x01,
+ 0x42, 0xa3, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c,
+ 0x6c, 0x2e, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f,
+ 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x21, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e,
+ 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f,
+ 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0xa2, 0x02, 0x03, 0x50, 0x53, 0x58, 0xaa, 0x02, 0x10,
+ 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e,
+ 0xca, 0x02, 0x10, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x53, 0x65, 0x73, 0x73,
+ 0x69, 0x6f, 0x6e, 0xe2, 0x02, 0x1c, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x53,
+ 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61,
+ 0x74, 0x61, 0xea, 0x02, 0x11, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x3a, 0x3a, 0x53,
+ 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_poktroll_session_tx_proto_rawDescOnce sync.Once
+ file_poktroll_session_tx_proto_rawDescData = file_poktroll_session_tx_proto_rawDesc
+)
+
+func file_poktroll_session_tx_proto_rawDescGZIP() []byte {
+ file_poktroll_session_tx_proto_rawDescOnce.Do(func() {
+ file_poktroll_session_tx_proto_rawDescData = protoimpl.X.CompressGZIP(file_poktroll_session_tx_proto_rawDescData)
+ })
+ return file_poktroll_session_tx_proto_rawDescData
+}
+
+var file_poktroll_session_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
+var file_poktroll_session_tx_proto_goTypes = []interface{}{
+ (*MsgUpdateParams)(nil), // 0: poktroll.session.MsgUpdateParams
+ (*MsgUpdateParamsResponse)(nil), // 1: poktroll.session.MsgUpdateParamsResponse
+ (*Params)(nil), // 2: poktroll.session.Params
+}
+var file_poktroll_session_tx_proto_depIdxs = []int32{
+ 2, // 0: poktroll.session.MsgUpdateParams.params:type_name -> poktroll.session.Params
+ 0, // 1: poktroll.session.Msg.UpdateParams:input_type -> poktroll.session.MsgUpdateParams
+ 1, // 2: poktroll.session.Msg.UpdateParams:output_type -> poktroll.session.MsgUpdateParamsResponse
+ 2, // [2:3] is the sub-list for method output_type
+ 1, // [1:2] is the sub-list for method input_type
+ 1, // [1:1] is the sub-list for extension type_name
+ 1, // [1:1] is the sub-list for extension extendee
+ 0, // [0:1] is the sub-list for field type_name
+}
+
+func init() { file_poktroll_session_tx_proto_init() }
+func file_poktroll_session_tx_proto_init() {
+ if File_poktroll_session_tx_proto != nil {
+ return
+ }
+ file_poktroll_session_params_proto_init()
+ if !protoimpl.UnsafeEnabled {
+ file_poktroll_session_tx_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*MsgUpdateParams); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_session_tx_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*MsgUpdateParamsResponse); 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_poktroll_session_tx_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 2,
+ NumExtensions: 0,
+ NumServices: 1,
+ },
+ GoTypes: file_poktroll_session_tx_proto_goTypes,
+ DependencyIndexes: file_poktroll_session_tx_proto_depIdxs,
+ MessageInfos: file_poktroll_session_tx_proto_msgTypes,
+ }.Build()
+ File_poktroll_session_tx_proto = out.File
+ file_poktroll_session_tx_proto_rawDesc = nil
+ file_poktroll_session_tx_proto_goTypes = nil
+ file_poktroll_session_tx_proto_depIdxs = nil
+}
diff --git a/api/poktroll/shared/service.pulsar.go b/api/poktroll/shared/service.pulsar.go
new file mode 100644
index 000000000..a5b89fb9e
--- /dev/null
+++ b/api/poktroll/shared/service.pulsar.go
@@ -0,0 +1,3105 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package shared
+
+import (
+ fmt "fmt"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoiface "google.golang.org/protobuf/runtime/protoiface"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ io "io"
+ reflect "reflect"
+ sync "sync"
+)
+
+var (
+ md_Service protoreflect.MessageDescriptor
+ fd_Service_id protoreflect.FieldDescriptor
+ fd_Service_name protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_shared_service_proto_init()
+ md_Service = File_poktroll_shared_service_proto.Messages().ByName("Service")
+ fd_Service_id = md_Service.Fields().ByName("id")
+ fd_Service_name = md_Service.Fields().ByName("name")
+}
+
+var _ protoreflect.Message = (*fastReflection_Service)(nil)
+
+type fastReflection_Service Service
+
+func (x *Service) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_Service)(x)
+}
+
+func (x *Service) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_shared_service_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_Service_messageType fastReflection_Service_messageType
+var _ protoreflect.MessageType = fastReflection_Service_messageType{}
+
+type fastReflection_Service_messageType struct{}
+
+func (x fastReflection_Service_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_Service)(nil)
+}
+func (x fastReflection_Service_messageType) New() protoreflect.Message {
+ return new(fastReflection_Service)
+}
+func (x fastReflection_Service_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_Service
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_Service) Descriptor() protoreflect.MessageDescriptor {
+ return md_Service
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_Service) Type() protoreflect.MessageType {
+ return _fastReflection_Service_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_Service) New() protoreflect.Message {
+ return new(fastReflection_Service)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_Service) Interface() protoreflect.ProtoMessage {
+ return (*Service)(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_Service) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Id != "" {
+ value := protoreflect.ValueOfString(x.Id)
+ if !f(fd_Service_id, value) {
+ return
+ }
+ }
+ if x.Name != "" {
+ value := protoreflect.ValueOfString(x.Name)
+ if !f(fd_Service_name, 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_Service) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.shared.Service.id":
+ return x.Id != ""
+ case "poktroll.shared.Service.name":
+ return x.Name != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.shared.Service"))
+ }
+ panic(fmt.Errorf("message poktroll.shared.Service 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_Service) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.shared.Service.id":
+ x.Id = ""
+ case "poktroll.shared.Service.name":
+ x.Name = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.shared.Service"))
+ }
+ panic(fmt.Errorf("message poktroll.shared.Service 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_Service) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.shared.Service.id":
+ value := x.Id
+ return protoreflect.ValueOfString(value)
+ case "poktroll.shared.Service.name":
+ value := x.Name
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.shared.Service"))
+ }
+ panic(fmt.Errorf("message poktroll.shared.Service 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_Service) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.shared.Service.id":
+ x.Id = value.Interface().(string)
+ case "poktroll.shared.Service.name":
+ x.Name = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.shared.Service"))
+ }
+ panic(fmt.Errorf("message poktroll.shared.Service 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_Service) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.shared.Service.id":
+ panic(fmt.Errorf("field id of message poktroll.shared.Service is not mutable"))
+ case "poktroll.shared.Service.name":
+ panic(fmt.Errorf("field name of message poktroll.shared.Service is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.shared.Service"))
+ }
+ panic(fmt.Errorf("message poktroll.shared.Service does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_Service) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.shared.Service.id":
+ return protoreflect.ValueOfString("")
+ case "poktroll.shared.Service.name":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.shared.Service"))
+ }
+ panic(fmt.Errorf("message poktroll.shared.Service does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_Service) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.shared.Service", 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_Service) 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_Service) 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_Service) 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_Service) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*Service)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Id)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.Name)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ 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().(*Service)
+ 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.Name) > 0 {
+ i -= len(x.Name)
+ copy(dAtA[i:], x.Name)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Name)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if len(x.Id) > 0 {
+ i -= len(x.Id)
+ copy(dAtA[i:], x.Id)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Id)))
+ i--
+ dAtA[i] = 0xa
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*Service)
+ 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: Service: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Service: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Id = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Name = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ 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_ApplicationServiceConfig protoreflect.MessageDescriptor
+ fd_ApplicationServiceConfig_service protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_shared_service_proto_init()
+ md_ApplicationServiceConfig = File_poktroll_shared_service_proto.Messages().ByName("ApplicationServiceConfig")
+ fd_ApplicationServiceConfig_service = md_ApplicationServiceConfig.Fields().ByName("service")
+}
+
+var _ protoreflect.Message = (*fastReflection_ApplicationServiceConfig)(nil)
+
+type fastReflection_ApplicationServiceConfig ApplicationServiceConfig
+
+func (x *ApplicationServiceConfig) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_ApplicationServiceConfig)(x)
+}
+
+func (x *ApplicationServiceConfig) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_shared_service_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_ApplicationServiceConfig_messageType fastReflection_ApplicationServiceConfig_messageType
+var _ protoreflect.MessageType = fastReflection_ApplicationServiceConfig_messageType{}
+
+type fastReflection_ApplicationServiceConfig_messageType struct{}
+
+func (x fastReflection_ApplicationServiceConfig_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_ApplicationServiceConfig)(nil)
+}
+func (x fastReflection_ApplicationServiceConfig_messageType) New() protoreflect.Message {
+ return new(fastReflection_ApplicationServiceConfig)
+}
+func (x fastReflection_ApplicationServiceConfig_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_ApplicationServiceConfig
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_ApplicationServiceConfig) Descriptor() protoreflect.MessageDescriptor {
+ return md_ApplicationServiceConfig
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_ApplicationServiceConfig) Type() protoreflect.MessageType {
+ return _fastReflection_ApplicationServiceConfig_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_ApplicationServiceConfig) New() protoreflect.Message {
+ return new(fastReflection_ApplicationServiceConfig)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_ApplicationServiceConfig) Interface() protoreflect.ProtoMessage {
+ return (*ApplicationServiceConfig)(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_ApplicationServiceConfig) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Service != nil {
+ value := protoreflect.ValueOfMessage(x.Service.ProtoReflect())
+ if !f(fd_ApplicationServiceConfig_service, 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_ApplicationServiceConfig) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.shared.ApplicationServiceConfig.service":
+ return x.Service != nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.shared.ApplicationServiceConfig"))
+ }
+ panic(fmt.Errorf("message poktroll.shared.ApplicationServiceConfig 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_ApplicationServiceConfig) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.shared.ApplicationServiceConfig.service":
+ x.Service = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.shared.ApplicationServiceConfig"))
+ }
+ panic(fmt.Errorf("message poktroll.shared.ApplicationServiceConfig 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_ApplicationServiceConfig) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.shared.ApplicationServiceConfig.service":
+ value := x.Service
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.shared.ApplicationServiceConfig"))
+ }
+ panic(fmt.Errorf("message poktroll.shared.ApplicationServiceConfig 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_ApplicationServiceConfig) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.shared.ApplicationServiceConfig.service":
+ x.Service = value.Message().Interface().(*Service)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.shared.ApplicationServiceConfig"))
+ }
+ panic(fmt.Errorf("message poktroll.shared.ApplicationServiceConfig 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_ApplicationServiceConfig) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.shared.ApplicationServiceConfig.service":
+ if x.Service == nil {
+ x.Service = new(Service)
+ }
+ return protoreflect.ValueOfMessage(x.Service.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.shared.ApplicationServiceConfig"))
+ }
+ panic(fmt.Errorf("message poktroll.shared.ApplicationServiceConfig does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_ApplicationServiceConfig) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.shared.ApplicationServiceConfig.service":
+ m := new(Service)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.shared.ApplicationServiceConfig"))
+ }
+ panic(fmt.Errorf("message poktroll.shared.ApplicationServiceConfig does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_ApplicationServiceConfig) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.shared.ApplicationServiceConfig", 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_ApplicationServiceConfig) 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_ApplicationServiceConfig) 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_ApplicationServiceConfig) 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_ApplicationServiceConfig) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*ApplicationServiceConfig)
+ 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.Service != nil {
+ l = options.Size(x.Service)
+ 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().(*ApplicationServiceConfig)
+ 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.Service != nil {
+ encoded, err := options.Marshal(x.Service)
+ 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().(*ApplicationServiceConfig)
+ 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: ApplicationServiceConfig: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ApplicationServiceConfig: 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 Service", 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.Service == nil {
+ x.Service = &Service{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Service); 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 = (*_SupplierServiceConfig_2_list)(nil)
+
+type _SupplierServiceConfig_2_list struct {
+ list *[]*SupplierEndpoint
+}
+
+func (x *_SupplierServiceConfig_2_list) Len() int {
+ if x.list == nil {
+ return 0
+ }
+ return len(*x.list)
+}
+
+func (x *_SupplierServiceConfig_2_list) Get(i int) protoreflect.Value {
+ return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
+}
+
+func (x *_SupplierServiceConfig_2_list) Set(i int, value protoreflect.Value) {
+ valueUnwrapped := value.Message()
+ concreteValue := valueUnwrapped.Interface().(*SupplierEndpoint)
+ (*x.list)[i] = concreteValue
+}
+
+func (x *_SupplierServiceConfig_2_list) Append(value protoreflect.Value) {
+ valueUnwrapped := value.Message()
+ concreteValue := valueUnwrapped.Interface().(*SupplierEndpoint)
+ *x.list = append(*x.list, concreteValue)
+}
+
+func (x *_SupplierServiceConfig_2_list) AppendMutable() protoreflect.Value {
+ v := new(SupplierEndpoint)
+ *x.list = append(*x.list, v)
+ return protoreflect.ValueOfMessage(v.ProtoReflect())
+}
+
+func (x *_SupplierServiceConfig_2_list) Truncate(n int) {
+ for i := n; i < len(*x.list); i++ {
+ (*x.list)[i] = nil
+ }
+ *x.list = (*x.list)[:n]
+}
+
+func (x *_SupplierServiceConfig_2_list) NewElement() protoreflect.Value {
+ v := new(SupplierEndpoint)
+ return protoreflect.ValueOfMessage(v.ProtoReflect())
+}
+
+func (x *_SupplierServiceConfig_2_list) IsValid() bool {
+ return x.list != nil
+}
+
+var (
+ md_SupplierServiceConfig protoreflect.MessageDescriptor
+ fd_SupplierServiceConfig_service protoreflect.FieldDescriptor
+ fd_SupplierServiceConfig_endpoints protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_shared_service_proto_init()
+ md_SupplierServiceConfig = File_poktroll_shared_service_proto.Messages().ByName("SupplierServiceConfig")
+ fd_SupplierServiceConfig_service = md_SupplierServiceConfig.Fields().ByName("service")
+ fd_SupplierServiceConfig_endpoints = md_SupplierServiceConfig.Fields().ByName("endpoints")
+}
+
+var _ protoreflect.Message = (*fastReflection_SupplierServiceConfig)(nil)
+
+type fastReflection_SupplierServiceConfig SupplierServiceConfig
+
+func (x *SupplierServiceConfig) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_SupplierServiceConfig)(x)
+}
+
+func (x *SupplierServiceConfig) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_shared_service_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_SupplierServiceConfig_messageType fastReflection_SupplierServiceConfig_messageType
+var _ protoreflect.MessageType = fastReflection_SupplierServiceConfig_messageType{}
+
+type fastReflection_SupplierServiceConfig_messageType struct{}
+
+func (x fastReflection_SupplierServiceConfig_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_SupplierServiceConfig)(nil)
+}
+func (x fastReflection_SupplierServiceConfig_messageType) New() protoreflect.Message {
+ return new(fastReflection_SupplierServiceConfig)
+}
+func (x fastReflection_SupplierServiceConfig_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_SupplierServiceConfig
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_SupplierServiceConfig) Descriptor() protoreflect.MessageDescriptor {
+ return md_SupplierServiceConfig
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_SupplierServiceConfig) Type() protoreflect.MessageType {
+ return _fastReflection_SupplierServiceConfig_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_SupplierServiceConfig) New() protoreflect.Message {
+ return new(fastReflection_SupplierServiceConfig)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_SupplierServiceConfig) Interface() protoreflect.ProtoMessage {
+ return (*SupplierServiceConfig)(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_SupplierServiceConfig) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Service != nil {
+ value := protoreflect.ValueOfMessage(x.Service.ProtoReflect())
+ if !f(fd_SupplierServiceConfig_service, value) {
+ return
+ }
+ }
+ if len(x.Endpoints) != 0 {
+ value := protoreflect.ValueOfList(&_SupplierServiceConfig_2_list{list: &x.Endpoints})
+ if !f(fd_SupplierServiceConfig_endpoints, 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_SupplierServiceConfig) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.shared.SupplierServiceConfig.service":
+ return x.Service != nil
+ case "poktroll.shared.SupplierServiceConfig.endpoints":
+ return len(x.Endpoints) != 0
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.shared.SupplierServiceConfig"))
+ }
+ panic(fmt.Errorf("message poktroll.shared.SupplierServiceConfig 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_SupplierServiceConfig) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.shared.SupplierServiceConfig.service":
+ x.Service = nil
+ case "poktroll.shared.SupplierServiceConfig.endpoints":
+ x.Endpoints = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.shared.SupplierServiceConfig"))
+ }
+ panic(fmt.Errorf("message poktroll.shared.SupplierServiceConfig 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_SupplierServiceConfig) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.shared.SupplierServiceConfig.service":
+ value := x.Service
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ case "poktroll.shared.SupplierServiceConfig.endpoints":
+ if len(x.Endpoints) == 0 {
+ return protoreflect.ValueOfList(&_SupplierServiceConfig_2_list{})
+ }
+ listValue := &_SupplierServiceConfig_2_list{list: &x.Endpoints}
+ return protoreflect.ValueOfList(listValue)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.shared.SupplierServiceConfig"))
+ }
+ panic(fmt.Errorf("message poktroll.shared.SupplierServiceConfig 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_SupplierServiceConfig) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.shared.SupplierServiceConfig.service":
+ x.Service = value.Message().Interface().(*Service)
+ case "poktroll.shared.SupplierServiceConfig.endpoints":
+ lv := value.List()
+ clv := lv.(*_SupplierServiceConfig_2_list)
+ x.Endpoints = *clv.list
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.shared.SupplierServiceConfig"))
+ }
+ panic(fmt.Errorf("message poktroll.shared.SupplierServiceConfig 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_SupplierServiceConfig) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.shared.SupplierServiceConfig.service":
+ if x.Service == nil {
+ x.Service = new(Service)
+ }
+ return protoreflect.ValueOfMessage(x.Service.ProtoReflect())
+ case "poktroll.shared.SupplierServiceConfig.endpoints":
+ if x.Endpoints == nil {
+ x.Endpoints = []*SupplierEndpoint{}
+ }
+ value := &_SupplierServiceConfig_2_list{list: &x.Endpoints}
+ return protoreflect.ValueOfList(value)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.shared.SupplierServiceConfig"))
+ }
+ panic(fmt.Errorf("message poktroll.shared.SupplierServiceConfig does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_SupplierServiceConfig) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.shared.SupplierServiceConfig.service":
+ m := new(Service)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ case "poktroll.shared.SupplierServiceConfig.endpoints":
+ list := []*SupplierEndpoint{}
+ return protoreflect.ValueOfList(&_SupplierServiceConfig_2_list{list: &list})
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.shared.SupplierServiceConfig"))
+ }
+ panic(fmt.Errorf("message poktroll.shared.SupplierServiceConfig does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_SupplierServiceConfig) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.shared.SupplierServiceConfig", 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_SupplierServiceConfig) 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_SupplierServiceConfig) 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_SupplierServiceConfig) 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_SupplierServiceConfig) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*SupplierServiceConfig)
+ 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.Service != nil {
+ l = options.Size(x.Service)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if len(x.Endpoints) > 0 {
+ for _, e := range x.Endpoints {
+ 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().(*SupplierServiceConfig)
+ 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.Endpoints) > 0 {
+ for iNdEx := len(x.Endpoints) - 1; iNdEx >= 0; iNdEx-- {
+ encoded, err := options.Marshal(x.Endpoints[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.Service != nil {
+ encoded, err := options.Marshal(x.Service)
+ 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().(*SupplierServiceConfig)
+ 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: SupplierServiceConfig: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: SupplierServiceConfig: 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 Service", 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.Service == nil {
+ x.Service = &Service{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Service); 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 Endpoints", 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.Endpoints = append(x.Endpoints, &SupplierEndpoint{})
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Endpoints[len(x.Endpoints)-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 = (*_SupplierEndpoint_3_list)(nil)
+
+type _SupplierEndpoint_3_list struct {
+ list *[]*ConfigOption
+}
+
+func (x *_SupplierEndpoint_3_list) Len() int {
+ if x.list == nil {
+ return 0
+ }
+ return len(*x.list)
+}
+
+func (x *_SupplierEndpoint_3_list) Get(i int) protoreflect.Value {
+ return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
+}
+
+func (x *_SupplierEndpoint_3_list) Set(i int, value protoreflect.Value) {
+ valueUnwrapped := value.Message()
+ concreteValue := valueUnwrapped.Interface().(*ConfigOption)
+ (*x.list)[i] = concreteValue
+}
+
+func (x *_SupplierEndpoint_3_list) Append(value protoreflect.Value) {
+ valueUnwrapped := value.Message()
+ concreteValue := valueUnwrapped.Interface().(*ConfigOption)
+ *x.list = append(*x.list, concreteValue)
+}
+
+func (x *_SupplierEndpoint_3_list) AppendMutable() protoreflect.Value {
+ v := new(ConfigOption)
+ *x.list = append(*x.list, v)
+ return protoreflect.ValueOfMessage(v.ProtoReflect())
+}
+
+func (x *_SupplierEndpoint_3_list) Truncate(n int) {
+ for i := n; i < len(*x.list); i++ {
+ (*x.list)[i] = nil
+ }
+ *x.list = (*x.list)[:n]
+}
+
+func (x *_SupplierEndpoint_3_list) NewElement() protoreflect.Value {
+ v := new(ConfigOption)
+ return protoreflect.ValueOfMessage(v.ProtoReflect())
+}
+
+func (x *_SupplierEndpoint_3_list) IsValid() bool {
+ return x.list != nil
+}
+
+var (
+ md_SupplierEndpoint protoreflect.MessageDescriptor
+ fd_SupplierEndpoint_url protoreflect.FieldDescriptor
+ fd_SupplierEndpoint_rpc_type protoreflect.FieldDescriptor
+ fd_SupplierEndpoint_configs protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_shared_service_proto_init()
+ md_SupplierEndpoint = File_poktroll_shared_service_proto.Messages().ByName("SupplierEndpoint")
+ fd_SupplierEndpoint_url = md_SupplierEndpoint.Fields().ByName("url")
+ fd_SupplierEndpoint_rpc_type = md_SupplierEndpoint.Fields().ByName("rpc_type")
+ fd_SupplierEndpoint_configs = md_SupplierEndpoint.Fields().ByName("configs")
+}
+
+var _ protoreflect.Message = (*fastReflection_SupplierEndpoint)(nil)
+
+type fastReflection_SupplierEndpoint SupplierEndpoint
+
+func (x *SupplierEndpoint) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_SupplierEndpoint)(x)
+}
+
+func (x *SupplierEndpoint) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_shared_service_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_SupplierEndpoint_messageType fastReflection_SupplierEndpoint_messageType
+var _ protoreflect.MessageType = fastReflection_SupplierEndpoint_messageType{}
+
+type fastReflection_SupplierEndpoint_messageType struct{}
+
+func (x fastReflection_SupplierEndpoint_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_SupplierEndpoint)(nil)
+}
+func (x fastReflection_SupplierEndpoint_messageType) New() protoreflect.Message {
+ return new(fastReflection_SupplierEndpoint)
+}
+func (x fastReflection_SupplierEndpoint_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_SupplierEndpoint
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_SupplierEndpoint) Descriptor() protoreflect.MessageDescriptor {
+ return md_SupplierEndpoint
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_SupplierEndpoint) Type() protoreflect.MessageType {
+ return _fastReflection_SupplierEndpoint_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_SupplierEndpoint) New() protoreflect.Message {
+ return new(fastReflection_SupplierEndpoint)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_SupplierEndpoint) Interface() protoreflect.ProtoMessage {
+ return (*SupplierEndpoint)(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_SupplierEndpoint) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Url != "" {
+ value := protoreflect.ValueOfString(x.Url)
+ if !f(fd_SupplierEndpoint_url, value) {
+ return
+ }
+ }
+ if x.RpcType != 0 {
+ value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.RpcType))
+ if !f(fd_SupplierEndpoint_rpc_type, value) {
+ return
+ }
+ }
+ if len(x.Configs) != 0 {
+ value := protoreflect.ValueOfList(&_SupplierEndpoint_3_list{list: &x.Configs})
+ if !f(fd_SupplierEndpoint_configs, 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_SupplierEndpoint) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.shared.SupplierEndpoint.url":
+ return x.Url != ""
+ case "poktroll.shared.SupplierEndpoint.rpc_type":
+ return x.RpcType != 0
+ case "poktroll.shared.SupplierEndpoint.configs":
+ return len(x.Configs) != 0
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.shared.SupplierEndpoint"))
+ }
+ panic(fmt.Errorf("message poktroll.shared.SupplierEndpoint 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_SupplierEndpoint) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.shared.SupplierEndpoint.url":
+ x.Url = ""
+ case "poktroll.shared.SupplierEndpoint.rpc_type":
+ x.RpcType = 0
+ case "poktroll.shared.SupplierEndpoint.configs":
+ x.Configs = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.shared.SupplierEndpoint"))
+ }
+ panic(fmt.Errorf("message poktroll.shared.SupplierEndpoint 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_SupplierEndpoint) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.shared.SupplierEndpoint.url":
+ value := x.Url
+ return protoreflect.ValueOfString(value)
+ case "poktroll.shared.SupplierEndpoint.rpc_type":
+ value := x.RpcType
+ return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value))
+ case "poktroll.shared.SupplierEndpoint.configs":
+ if len(x.Configs) == 0 {
+ return protoreflect.ValueOfList(&_SupplierEndpoint_3_list{})
+ }
+ listValue := &_SupplierEndpoint_3_list{list: &x.Configs}
+ return protoreflect.ValueOfList(listValue)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.shared.SupplierEndpoint"))
+ }
+ panic(fmt.Errorf("message poktroll.shared.SupplierEndpoint 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_SupplierEndpoint) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.shared.SupplierEndpoint.url":
+ x.Url = value.Interface().(string)
+ case "poktroll.shared.SupplierEndpoint.rpc_type":
+ x.RpcType = (RPCType)(value.Enum())
+ case "poktroll.shared.SupplierEndpoint.configs":
+ lv := value.List()
+ clv := lv.(*_SupplierEndpoint_3_list)
+ x.Configs = *clv.list
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.shared.SupplierEndpoint"))
+ }
+ panic(fmt.Errorf("message poktroll.shared.SupplierEndpoint 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_SupplierEndpoint) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.shared.SupplierEndpoint.configs":
+ if x.Configs == nil {
+ x.Configs = []*ConfigOption{}
+ }
+ value := &_SupplierEndpoint_3_list{list: &x.Configs}
+ return protoreflect.ValueOfList(value)
+ case "poktroll.shared.SupplierEndpoint.url":
+ panic(fmt.Errorf("field url of message poktroll.shared.SupplierEndpoint is not mutable"))
+ case "poktroll.shared.SupplierEndpoint.rpc_type":
+ panic(fmt.Errorf("field rpc_type of message poktroll.shared.SupplierEndpoint is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.shared.SupplierEndpoint"))
+ }
+ panic(fmt.Errorf("message poktroll.shared.SupplierEndpoint does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_SupplierEndpoint) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.shared.SupplierEndpoint.url":
+ return protoreflect.ValueOfString("")
+ case "poktroll.shared.SupplierEndpoint.rpc_type":
+ return protoreflect.ValueOfEnum(0)
+ case "poktroll.shared.SupplierEndpoint.configs":
+ list := []*ConfigOption{}
+ return protoreflect.ValueOfList(&_SupplierEndpoint_3_list{list: &list})
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.shared.SupplierEndpoint"))
+ }
+ panic(fmt.Errorf("message poktroll.shared.SupplierEndpoint does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_SupplierEndpoint) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.shared.SupplierEndpoint", 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_SupplierEndpoint) 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_SupplierEndpoint) 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_SupplierEndpoint) 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_SupplierEndpoint) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*SupplierEndpoint)
+ 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.Url)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.RpcType != 0 {
+ n += 1 + runtime.Sov(uint64(x.RpcType))
+ }
+ if len(x.Configs) > 0 {
+ for _, e := range x.Configs {
+ 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().(*SupplierEndpoint)
+ 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.Configs) > 0 {
+ for iNdEx := len(x.Configs) - 1; iNdEx >= 0; iNdEx-- {
+ encoded, err := options.Marshal(x.Configs[iNdEx])
+ if err != nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, err
+ }
+ i -= len(encoded)
+ copy(dAtA[i:], encoded)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
+ i--
+ dAtA[i] = 0x1a
+ }
+ }
+ if x.RpcType != 0 {
+ i = runtime.EncodeVarint(dAtA, i, uint64(x.RpcType))
+ i--
+ dAtA[i] = 0x10
+ }
+ if len(x.Url) > 0 {
+ i -= len(x.Url)
+ copy(dAtA[i:], x.Url)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Url)))
+ 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().(*SupplierEndpoint)
+ 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: SupplierEndpoint: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: SupplierEndpoint: 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 Url", 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.Url = 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 RpcType", wireType)
+ }
+ x.RpcType = 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.RpcType |= RPCType(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 Configs", 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.Configs = append(x.Configs, &ConfigOption{})
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Configs[len(x.Configs)-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_ConfigOption protoreflect.MessageDescriptor
+ fd_ConfigOption_key protoreflect.FieldDescriptor
+ fd_ConfigOption_value protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_shared_service_proto_init()
+ md_ConfigOption = File_poktroll_shared_service_proto.Messages().ByName("ConfigOption")
+ fd_ConfigOption_key = md_ConfigOption.Fields().ByName("key")
+ fd_ConfigOption_value = md_ConfigOption.Fields().ByName("value")
+}
+
+var _ protoreflect.Message = (*fastReflection_ConfigOption)(nil)
+
+type fastReflection_ConfigOption ConfigOption
+
+func (x *ConfigOption) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_ConfigOption)(x)
+}
+
+func (x *ConfigOption) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_shared_service_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_ConfigOption_messageType fastReflection_ConfigOption_messageType
+var _ protoreflect.MessageType = fastReflection_ConfigOption_messageType{}
+
+type fastReflection_ConfigOption_messageType struct{}
+
+func (x fastReflection_ConfigOption_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_ConfigOption)(nil)
+}
+func (x fastReflection_ConfigOption_messageType) New() protoreflect.Message {
+ return new(fastReflection_ConfigOption)
+}
+func (x fastReflection_ConfigOption_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_ConfigOption
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_ConfigOption) Descriptor() protoreflect.MessageDescriptor {
+ return md_ConfigOption
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_ConfigOption) Type() protoreflect.MessageType {
+ return _fastReflection_ConfigOption_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_ConfigOption) New() protoreflect.Message {
+ return new(fastReflection_ConfigOption)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_ConfigOption) Interface() protoreflect.ProtoMessage {
+ return (*ConfigOption)(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_ConfigOption) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Key != 0 {
+ value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.Key))
+ if !f(fd_ConfigOption_key, value) {
+ return
+ }
+ }
+ if x.Value != "" {
+ value := protoreflect.ValueOfString(x.Value)
+ if !f(fd_ConfigOption_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_ConfigOption) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.shared.ConfigOption.key":
+ return x.Key != 0
+ case "poktroll.shared.ConfigOption.value":
+ return x.Value != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.shared.ConfigOption"))
+ }
+ panic(fmt.Errorf("message poktroll.shared.ConfigOption 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_ConfigOption) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.shared.ConfigOption.key":
+ x.Key = 0
+ case "poktroll.shared.ConfigOption.value":
+ x.Value = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.shared.ConfigOption"))
+ }
+ panic(fmt.Errorf("message poktroll.shared.ConfigOption 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_ConfigOption) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.shared.ConfigOption.key":
+ value := x.Key
+ return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value))
+ case "poktroll.shared.ConfigOption.value":
+ value := x.Value
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.shared.ConfigOption"))
+ }
+ panic(fmt.Errorf("message poktroll.shared.ConfigOption 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_ConfigOption) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.shared.ConfigOption.key":
+ x.Key = (ConfigOptions)(value.Enum())
+ case "poktroll.shared.ConfigOption.value":
+ x.Value = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.shared.ConfigOption"))
+ }
+ panic(fmt.Errorf("message poktroll.shared.ConfigOption 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_ConfigOption) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.shared.ConfigOption.key":
+ panic(fmt.Errorf("field key of message poktroll.shared.ConfigOption is not mutable"))
+ case "poktroll.shared.ConfigOption.value":
+ panic(fmt.Errorf("field value of message poktroll.shared.ConfigOption is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.shared.ConfigOption"))
+ }
+ panic(fmt.Errorf("message poktroll.shared.ConfigOption does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_ConfigOption) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.shared.ConfigOption.key":
+ return protoreflect.ValueOfEnum(0)
+ case "poktroll.shared.ConfigOption.value":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.shared.ConfigOption"))
+ }
+ panic(fmt.Errorf("message poktroll.shared.ConfigOption does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_ConfigOption) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.shared.ConfigOption", 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_ConfigOption) 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_ConfigOption) 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_ConfigOption) 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_ConfigOption) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*ConfigOption)
+ 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.Key != 0 {
+ n += 1 + runtime.Sov(uint64(x.Key))
+ }
+ 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().(*ConfigOption)
+ 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 x.Key != 0 {
+ i = runtime.EncodeVarint(dAtA, i, uint64(x.Key))
+ 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().(*ConfigOption)
+ 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: ConfigOption: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ConfigOption: 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 Key", wireType)
+ }
+ x.Key = 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.Key |= ConfigOptions(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 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,
+ }
+}
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.27.0
+// protoc (unknown)
+// source: poktroll/shared/service.proto
+
+// NOTE that the `shared` package is not a Cosmos module,
+// but rather a manually created package to resolve circular type dependencies.
+
+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)
+)
+
+// Enum to define RPC types
+type RPCType int32
+
+const (
+ RPCType_UNKNOWN_RPC RPCType = 0 // Undefined RPC type
+ RPCType_GRPC RPCType = 1 // gRPC
+ RPCType_WEBSOCKET RPCType = 2 // WebSocket
+ RPCType_JSON_RPC RPCType = 3 // JSON-RPC
+ RPCType_REST RPCType = 4 // REST
+)
+
+// Enum value maps for RPCType.
+var (
+ RPCType_name = map[int32]string{
+ 0: "UNKNOWN_RPC",
+ 1: "GRPC",
+ 2: "WEBSOCKET",
+ 3: "JSON_RPC",
+ 4: "REST",
+ }
+ RPCType_value = map[string]int32{
+ "UNKNOWN_RPC": 0,
+ "GRPC": 1,
+ "WEBSOCKET": 2,
+ "JSON_RPC": 3,
+ "REST": 4,
+ }
+)
+
+func (x RPCType) Enum() *RPCType {
+ p := new(RPCType)
+ *p = x
+ return p
+}
+
+func (x RPCType) String() string {
+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
+}
+
+func (RPCType) Descriptor() protoreflect.EnumDescriptor {
+ return file_poktroll_shared_service_proto_enumTypes[0].Descriptor()
+}
+
+func (RPCType) Type() protoreflect.EnumType {
+ return &file_poktroll_shared_service_proto_enumTypes[0]
+}
+
+func (x RPCType) Number() protoreflect.EnumNumber {
+ return protoreflect.EnumNumber(x)
+}
+
+// Deprecated: Use RPCType.Descriptor instead.
+func (RPCType) EnumDescriptor() ([]byte, []int) {
+ return file_poktroll_shared_service_proto_rawDescGZIP(), []int{0}
+}
+
+// Enum to define configuration options
+// TODO_RESEARCH: Should these be configs, SLAs or something else? There will be more discussion once we get closer to implementing on-chain QoS.
+type ConfigOptions int32
+
+const (
+ ConfigOptions_UNKNOWN_CONFIG ConfigOptions = 0 // Undefined config option
+ ConfigOptions_TIMEOUT ConfigOptions = 1 // Timeout setting
+)
+
+// Enum value maps for ConfigOptions.
+var (
+ ConfigOptions_name = map[int32]string{
+ 0: "UNKNOWN_CONFIG",
+ 1: "TIMEOUT",
+ }
+ ConfigOptions_value = map[string]int32{
+ "UNKNOWN_CONFIG": 0,
+ "TIMEOUT": 1,
+ }
+)
+
+func (x ConfigOptions) Enum() *ConfigOptions {
+ p := new(ConfigOptions)
+ *p = x
+ return p
+}
+
+func (x ConfigOptions) String() string {
+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
+}
+
+func (ConfigOptions) Descriptor() protoreflect.EnumDescriptor {
+ return file_poktroll_shared_service_proto_enumTypes[1].Descriptor()
+}
+
+func (ConfigOptions) Type() protoreflect.EnumType {
+ return &file_poktroll_shared_service_proto_enumTypes[1]
+}
+
+func (x ConfigOptions) Number() protoreflect.EnumNumber {
+ return protoreflect.EnumNumber(x)
+}
+
+// Deprecated: Use ConfigOptions.Descriptor instead.
+func (ConfigOptions) EnumDescriptor() ([]byte, []int) {
+ return file_poktroll_shared_service_proto_rawDescGZIP(), []int{1}
+}
+
+// Service message to encapsulate unique and semantic identifiers for a service on the network
+type Service struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // For example, what if we want to request a session for a certain service but with some additional configs that identify it?
+ Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Unique identifier for the service
+ // TODO_TECHDEBT: Name is currently unused but acts as a reminder that an optional onchain representation of the service is necessary
+ Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // (Optional) Semantic human readable name for the service
+}
+
+func (x *Service) Reset() {
+ *x = Service{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_shared_service_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *Service) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*Service) ProtoMessage() {}
+
+// Deprecated: Use Service.ProtoReflect.Descriptor instead.
+func (*Service) Descriptor() ([]byte, []int) {
+ return file_poktroll_shared_service_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *Service) GetId() string {
+ if x != nil {
+ return x.Id
+ }
+ return ""
+}
+
+func (x *Service) GetName() string {
+ if x != nil {
+ return x.Name
+ }
+ return ""
+}
+
+// ApplicationServiceConfig holds the service configuration the application stakes for
+type ApplicationServiceConfig struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Service *Service `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` // The Service for which the application is configured
+}
+
+func (x *ApplicationServiceConfig) Reset() {
+ *x = ApplicationServiceConfig{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_shared_service_proto_msgTypes[1]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *ApplicationServiceConfig) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*ApplicationServiceConfig) ProtoMessage() {}
+
+// Deprecated: Use ApplicationServiceConfig.ProtoReflect.Descriptor instead.
+func (*ApplicationServiceConfig) Descriptor() ([]byte, []int) {
+ return file_poktroll_shared_service_proto_rawDescGZIP(), []int{1}
+}
+
+func (x *ApplicationServiceConfig) GetService() *Service {
+ if x != nil {
+ return x.Service
+ }
+ return nil
+}
+
+// SupplierServiceConfig holds the service configuration the supplier stakes for
+type SupplierServiceConfig struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Service *Service `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` // The Service for which the supplier is configured
+ Endpoints []*SupplierEndpoint `protobuf:"bytes,2,rep,name=endpoints,proto3" json:"endpoints,omitempty"` // List of endpoints for the service
+}
+
+func (x *SupplierServiceConfig) Reset() {
+ *x = SupplierServiceConfig{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_shared_service_proto_msgTypes[2]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *SupplierServiceConfig) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*SupplierServiceConfig) ProtoMessage() {}
+
+// Deprecated: Use SupplierServiceConfig.ProtoReflect.Descriptor instead.
+func (*SupplierServiceConfig) Descriptor() ([]byte, []int) {
+ return file_poktroll_shared_service_proto_rawDescGZIP(), []int{2}
+}
+
+func (x *SupplierServiceConfig) GetService() *Service {
+ if x != nil {
+ return x.Service
+ }
+ return nil
+}
+
+func (x *SupplierServiceConfig) GetEndpoints() []*SupplierEndpoint {
+ if x != nil {
+ return x.Endpoints
+ }
+ return nil
+}
+
+// SupplierEndpoint message to hold service configuration details
+type SupplierEndpoint struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` // URL of the endpoint
+ RpcType RPCType `protobuf:"varint,2,opt,name=rpc_type,json=rpcType,proto3,enum=poktroll.shared.RPCType" json:"rpc_type,omitempty"` // Type of RPC exposed on the url above
+ Configs []*ConfigOption `protobuf:"bytes,3,rep,name=configs,proto3" json:"configs,omitempty"` // Additional configuration options for the endpoint
+}
+
+func (x *SupplierEndpoint) Reset() {
+ *x = SupplierEndpoint{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_shared_service_proto_msgTypes[3]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *SupplierEndpoint) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*SupplierEndpoint) ProtoMessage() {}
+
+// Deprecated: Use SupplierEndpoint.ProtoReflect.Descriptor instead.
+func (*SupplierEndpoint) Descriptor() ([]byte, []int) {
+ return file_poktroll_shared_service_proto_rawDescGZIP(), []int{3}
+}
+
+func (x *SupplierEndpoint) GetUrl() string {
+ if x != nil {
+ return x.Url
+ }
+ return ""
+}
+
+func (x *SupplierEndpoint) GetRpcType() RPCType {
+ if x != nil {
+ return x.RpcType
+ }
+ return RPCType_UNKNOWN_RPC
+}
+
+func (x *SupplierEndpoint) GetConfigs() []*ConfigOption {
+ if x != nil {
+ return x.Configs
+ }
+ return nil
+}
+
+// Key-value wrapper for config options, as proto maps can't be keyed by enums
+type ConfigOption struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Key ConfigOptions `protobuf:"varint,1,opt,name=key,proto3,enum=poktroll.shared.ConfigOptions" json:"key,omitempty"` // Config option key
+ Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // Config option value
+}
+
+func (x *ConfigOption) Reset() {
+ *x = ConfigOption{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_shared_service_proto_msgTypes[4]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *ConfigOption) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*ConfigOption) ProtoMessage() {}
+
+// Deprecated: Use ConfigOption.ProtoReflect.Descriptor instead.
+func (*ConfigOption) Descriptor() ([]byte, []int) {
+ return file_poktroll_shared_service_proto_rawDescGZIP(), []int{4}
+}
+
+func (x *ConfigOption) GetKey() ConfigOptions {
+ if x != nil {
+ return x.Key
+ }
+ return ConfigOptions_UNKNOWN_CONFIG
+}
+
+func (x *ConfigOption) GetValue() string {
+ if x != nil {
+ return x.Value
+ }
+ return ""
+}
+
+var File_poktroll_shared_service_proto protoreflect.FileDescriptor
+
+var file_poktroll_shared_service_proto_rawDesc = []byte{
+ 0x0a, 0x1d, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x65,
+ 0x64, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
+ 0x0f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64,
+ 0x22, 0x2d, 0x0a, 0x07, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69,
+ 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e,
+ 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22,
+ 0x4e, 0x0a, 0x18, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65,
+ 0x72, 0x76, 0x69, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x32, 0x0a, 0x07, 0x73,
+ 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x70,
+ 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x53,
+ 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x22,
+ 0x8c, 0x01, 0x0a, 0x15, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76,
+ 0x69, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x32, 0x0a, 0x07, 0x73, 0x65, 0x72,
+ 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x70, 0x6f, 0x6b,
+ 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x53, 0x65, 0x72,
+ 0x76, 0x69, 0x63, 0x65, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x3f, 0x0a,
+ 0x09, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b,
+ 0x32, 0x21, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x68, 0x61, 0x72,
+ 0x65, 0x64, 0x2e, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x45, 0x6e, 0x64, 0x70, 0x6f,
+ 0x69, 0x6e, 0x74, 0x52, 0x09, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x22, 0x92,
+ 0x01, 0x0a, 0x10, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x45, 0x6e, 0x64, 0x70, 0x6f,
+ 0x69, 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x33, 0x0a, 0x08, 0x72, 0x70, 0x63, 0x5f, 0x74, 0x79, 0x70,
+ 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f,
+ 0x6c, 0x6c, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x52, 0x50, 0x43, 0x54, 0x79, 0x70,
+ 0x65, 0x52, 0x07, 0x72, 0x70, 0x63, 0x54, 0x79, 0x70, 0x65, 0x12, 0x37, 0x0a, 0x07, 0x63, 0x6f,
+ 0x6e, 0x66, 0x69, 0x67, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x70, 0x6f,
+ 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x43, 0x6f,
+ 0x6e, 0x66, 0x69, 0x67, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x66,
+ 0x69, 0x67, 0x73, 0x22, 0x56, 0x0a, 0x0c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x4f, 0x70, 0x74,
+ 0x69, 0x6f, 0x6e, 0x12, 0x30, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e,
+ 0x32, 0x1e, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x68, 0x61, 0x72,
+ 0x65, 0x64, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73,
+ 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x2a, 0x4b, 0x0a, 0x07, 0x52,
+ 0x50, 0x43, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57,
+ 0x4e, 0x5f, 0x52, 0x50, 0x43, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x47, 0x52, 0x50, 0x43, 0x10,
+ 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x57, 0x45, 0x42, 0x53, 0x4f, 0x43, 0x4b, 0x45, 0x54, 0x10, 0x02,
+ 0x12, 0x0c, 0x0a, 0x08, 0x4a, 0x53, 0x4f, 0x4e, 0x5f, 0x52, 0x50, 0x43, 0x10, 0x03, 0x12, 0x08,
+ 0x0a, 0x04, 0x52, 0x45, 0x53, 0x54, 0x10, 0x04, 0x2a, 0x30, 0x0a, 0x0d, 0x43, 0x6f, 0x6e, 0x66,
+ 0x69, 0x67, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x12, 0x0a, 0x0e, 0x55, 0x4e, 0x4b,
+ 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x43, 0x4f, 0x4e, 0x46, 0x49, 0x47, 0x10, 0x00, 0x12, 0x0b, 0x0a,
+ 0x07, 0x54, 0x49, 0x4d, 0x45, 0x4f, 0x55, 0x54, 0x10, 0x01, 0x42, 0xa2, 0x01, 0x0a, 0x13, 0x63,
+ 0x6f, 0x6d, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x68, 0x61, 0x72,
+ 0x65, 0x64, 0x42, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f,
+ 0x50, 0x01, 0x5a, 0x20, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f,
+ 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x68,
+ 0x61, 0x72, 0x65, 0x64, 0xa2, 0x02, 0x03, 0x50, 0x53, 0x58, 0xaa, 0x02, 0x0f, 0x50, 0x6f, 0x6b,
+ 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, 0x64, 0xca, 0x02, 0x0f, 0x50,
+ 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x53, 0x68, 0x61, 0x72, 0x65, 0x64, 0xe2, 0x02,
+ 0x1b, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x53, 0x68, 0x61, 0x72, 0x65, 0x64,
+ 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x10, 0x50,
+ 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x3a, 0x3a, 0x53, 0x68, 0x61, 0x72, 0x65, 0x64, 0x62,
+ 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_poktroll_shared_service_proto_rawDescOnce sync.Once
+ file_poktroll_shared_service_proto_rawDescData = file_poktroll_shared_service_proto_rawDesc
+)
+
+func file_poktroll_shared_service_proto_rawDescGZIP() []byte {
+ file_poktroll_shared_service_proto_rawDescOnce.Do(func() {
+ file_poktroll_shared_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_poktroll_shared_service_proto_rawDescData)
+ })
+ return file_poktroll_shared_service_proto_rawDescData
+}
+
+var file_poktroll_shared_service_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
+var file_poktroll_shared_service_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
+var file_poktroll_shared_service_proto_goTypes = []interface{}{
+ (RPCType)(0), // 0: poktroll.shared.RPCType
+ (ConfigOptions)(0), // 1: poktroll.shared.ConfigOptions
+ (*Service)(nil), // 2: poktroll.shared.Service
+ (*ApplicationServiceConfig)(nil), // 3: poktroll.shared.ApplicationServiceConfig
+ (*SupplierServiceConfig)(nil), // 4: poktroll.shared.SupplierServiceConfig
+ (*SupplierEndpoint)(nil), // 5: poktroll.shared.SupplierEndpoint
+ (*ConfigOption)(nil), // 6: poktroll.shared.ConfigOption
+}
+var file_poktroll_shared_service_proto_depIdxs = []int32{
+ 2, // 0: poktroll.shared.ApplicationServiceConfig.service:type_name -> poktroll.shared.Service
+ 2, // 1: poktroll.shared.SupplierServiceConfig.service:type_name -> poktroll.shared.Service
+ 5, // 2: poktroll.shared.SupplierServiceConfig.endpoints:type_name -> poktroll.shared.SupplierEndpoint
+ 0, // 3: poktroll.shared.SupplierEndpoint.rpc_type:type_name -> poktroll.shared.RPCType
+ 6, // 4: poktroll.shared.SupplierEndpoint.configs:type_name -> poktroll.shared.ConfigOption
+ 1, // 5: poktroll.shared.ConfigOption.key:type_name -> poktroll.shared.ConfigOptions
+ 6, // [6:6] is the sub-list for method output_type
+ 6, // [6:6] is the sub-list for method input_type
+ 6, // [6:6] is the sub-list for extension type_name
+ 6, // [6:6] is the sub-list for extension extendee
+ 0, // [0:6] is the sub-list for field type_name
+}
+
+func init() { file_poktroll_shared_service_proto_init() }
+func file_poktroll_shared_service_proto_init() {
+ if File_poktroll_shared_service_proto != nil {
+ return
+ }
+ if !protoimpl.UnsafeEnabled {
+ file_poktroll_shared_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*Service); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_shared_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*ApplicationServiceConfig); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_shared_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*SupplierServiceConfig); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_shared_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*SupplierEndpoint); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_shared_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*ConfigOption); 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_poktroll_shared_service_proto_rawDesc,
+ NumEnums: 2,
+ NumMessages: 5,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_poktroll_shared_service_proto_goTypes,
+ DependencyIndexes: file_poktroll_shared_service_proto_depIdxs,
+ EnumInfos: file_poktroll_shared_service_proto_enumTypes,
+ MessageInfos: file_poktroll_shared_service_proto_msgTypes,
+ }.Build()
+ File_poktroll_shared_service_proto = out.File
+ file_poktroll_shared_service_proto_rawDesc = nil
+ file_poktroll_shared_service_proto_goTypes = nil
+ file_poktroll_shared_service_proto_depIdxs = nil
+}
diff --git a/api/poktroll/shared/supplier.pulsar.go b/api/poktroll/shared/supplier.pulsar.go
new file mode 100644
index 000000000..ac65f36e6
--- /dev/null
+++ b/api/poktroll/shared/supplier.pulsar.go
@@ -0,0 +1,821 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package shared
+
+import (
+ v1beta1 "cosmossdk.io/api/cosmos/base/v1beta1"
+ fmt "fmt"
+ _ "github.com/cosmos/cosmos-proto"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoiface "google.golang.org/protobuf/runtime/protoiface"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ io "io"
+ reflect "reflect"
+ sync "sync"
+)
+
+var _ protoreflect.List = (*_Supplier_3_list)(nil)
+
+type _Supplier_3_list struct {
+ list *[]*SupplierServiceConfig
+}
+
+func (x *_Supplier_3_list) Len() int {
+ if x.list == nil {
+ return 0
+ }
+ return len(*x.list)
+}
+
+func (x *_Supplier_3_list) Get(i int) protoreflect.Value {
+ return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
+}
+
+func (x *_Supplier_3_list) Set(i int, value protoreflect.Value) {
+ valueUnwrapped := value.Message()
+ concreteValue := valueUnwrapped.Interface().(*SupplierServiceConfig)
+ (*x.list)[i] = concreteValue
+}
+
+func (x *_Supplier_3_list) Append(value protoreflect.Value) {
+ valueUnwrapped := value.Message()
+ concreteValue := valueUnwrapped.Interface().(*SupplierServiceConfig)
+ *x.list = append(*x.list, concreteValue)
+}
+
+func (x *_Supplier_3_list) AppendMutable() protoreflect.Value {
+ v := new(SupplierServiceConfig)
+ *x.list = append(*x.list, v)
+ return protoreflect.ValueOfMessage(v.ProtoReflect())
+}
+
+func (x *_Supplier_3_list) Truncate(n int) {
+ for i := n; i < len(*x.list); i++ {
+ (*x.list)[i] = nil
+ }
+ *x.list = (*x.list)[:n]
+}
+
+func (x *_Supplier_3_list) NewElement() protoreflect.Value {
+ v := new(SupplierServiceConfig)
+ return protoreflect.ValueOfMessage(v.ProtoReflect())
+}
+
+func (x *_Supplier_3_list) IsValid() bool {
+ return x.list != nil
+}
+
+var (
+ md_Supplier protoreflect.MessageDescriptor
+ fd_Supplier_address protoreflect.FieldDescriptor
+ fd_Supplier_stake protoreflect.FieldDescriptor
+ fd_Supplier_services protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_shared_supplier_proto_init()
+ md_Supplier = File_poktroll_shared_supplier_proto.Messages().ByName("Supplier")
+ fd_Supplier_address = md_Supplier.Fields().ByName("address")
+ fd_Supplier_stake = md_Supplier.Fields().ByName("stake")
+ fd_Supplier_services = md_Supplier.Fields().ByName("services")
+}
+
+var _ protoreflect.Message = (*fastReflection_Supplier)(nil)
+
+type fastReflection_Supplier Supplier
+
+func (x *Supplier) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_Supplier)(x)
+}
+
+func (x *Supplier) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_shared_supplier_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_Supplier_messageType fastReflection_Supplier_messageType
+var _ protoreflect.MessageType = fastReflection_Supplier_messageType{}
+
+type fastReflection_Supplier_messageType struct{}
+
+func (x fastReflection_Supplier_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_Supplier)(nil)
+}
+func (x fastReflection_Supplier_messageType) New() protoreflect.Message {
+ return new(fastReflection_Supplier)
+}
+func (x fastReflection_Supplier_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_Supplier
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_Supplier) Descriptor() protoreflect.MessageDescriptor {
+ return md_Supplier
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_Supplier) Type() protoreflect.MessageType {
+ return _fastReflection_Supplier_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_Supplier) New() protoreflect.Message {
+ return new(fastReflection_Supplier)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_Supplier) Interface() protoreflect.ProtoMessage {
+ return (*Supplier)(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_Supplier) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Address != "" {
+ value := protoreflect.ValueOfString(x.Address)
+ if !f(fd_Supplier_address, value) {
+ return
+ }
+ }
+ if x.Stake != nil {
+ value := protoreflect.ValueOfMessage(x.Stake.ProtoReflect())
+ if !f(fd_Supplier_stake, value) {
+ return
+ }
+ }
+ if len(x.Services) != 0 {
+ value := protoreflect.ValueOfList(&_Supplier_3_list{list: &x.Services})
+ if !f(fd_Supplier_services, 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_Supplier) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.shared.Supplier.address":
+ return x.Address != ""
+ case "poktroll.shared.Supplier.stake":
+ return x.Stake != nil
+ case "poktroll.shared.Supplier.services":
+ return len(x.Services) != 0
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.shared.Supplier"))
+ }
+ panic(fmt.Errorf("message poktroll.shared.Supplier 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_Supplier) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.shared.Supplier.address":
+ x.Address = ""
+ case "poktroll.shared.Supplier.stake":
+ x.Stake = nil
+ case "poktroll.shared.Supplier.services":
+ x.Services = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.shared.Supplier"))
+ }
+ panic(fmt.Errorf("message poktroll.shared.Supplier 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_Supplier) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.shared.Supplier.address":
+ value := x.Address
+ return protoreflect.ValueOfString(value)
+ case "poktroll.shared.Supplier.stake":
+ value := x.Stake
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ case "poktroll.shared.Supplier.services":
+ if len(x.Services) == 0 {
+ return protoreflect.ValueOfList(&_Supplier_3_list{})
+ }
+ listValue := &_Supplier_3_list{list: &x.Services}
+ return protoreflect.ValueOfList(listValue)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.shared.Supplier"))
+ }
+ panic(fmt.Errorf("message poktroll.shared.Supplier 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_Supplier) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.shared.Supplier.address":
+ x.Address = value.Interface().(string)
+ case "poktroll.shared.Supplier.stake":
+ x.Stake = value.Message().Interface().(*v1beta1.Coin)
+ case "poktroll.shared.Supplier.services":
+ lv := value.List()
+ clv := lv.(*_Supplier_3_list)
+ x.Services = *clv.list
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.shared.Supplier"))
+ }
+ panic(fmt.Errorf("message poktroll.shared.Supplier 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_Supplier) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.shared.Supplier.stake":
+ if x.Stake == nil {
+ x.Stake = new(v1beta1.Coin)
+ }
+ return protoreflect.ValueOfMessage(x.Stake.ProtoReflect())
+ case "poktroll.shared.Supplier.services":
+ if x.Services == nil {
+ x.Services = []*SupplierServiceConfig{}
+ }
+ value := &_Supplier_3_list{list: &x.Services}
+ return protoreflect.ValueOfList(value)
+ case "poktroll.shared.Supplier.address":
+ panic(fmt.Errorf("field address of message poktroll.shared.Supplier is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.shared.Supplier"))
+ }
+ panic(fmt.Errorf("message poktroll.shared.Supplier does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_Supplier) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.shared.Supplier.address":
+ return protoreflect.ValueOfString("")
+ case "poktroll.shared.Supplier.stake":
+ m := new(v1beta1.Coin)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ case "poktroll.shared.Supplier.services":
+ list := []*SupplierServiceConfig{}
+ return protoreflect.ValueOfList(&_Supplier_3_list{list: &list})
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.shared.Supplier"))
+ }
+ panic(fmt.Errorf("message poktroll.shared.Supplier does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_Supplier) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.shared.Supplier", 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_Supplier) 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_Supplier) 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_Supplier) 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_Supplier) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*Supplier)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Address)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.Stake != nil {
+ l = options.Size(x.Stake)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if len(x.Services) > 0 {
+ for _, e := range x.Services {
+ 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().(*Supplier)
+ 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.Services) > 0 {
+ for iNdEx := len(x.Services) - 1; iNdEx >= 0; iNdEx-- {
+ encoded, err := options.Marshal(x.Services[iNdEx])
+ if err != nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, err
+ }
+ i -= len(encoded)
+ copy(dAtA[i:], encoded)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
+ i--
+ dAtA[i] = 0x1a
+ }
+ }
+ if x.Stake != nil {
+ encoded, err := options.Marshal(x.Stake)
+ if err != nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, err
+ }
+ i -= len(encoded)
+ copy(dAtA[i:], encoded)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if len(x.Address) > 0 {
+ i -= len(x.Address)
+ copy(dAtA[i:], x.Address)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address)))
+ i--
+ dAtA[i] = 0xa
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*Supplier)
+ 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: Supplier: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Supplier: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Address = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Stake", 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.Stake == nil {
+ x.Stake = &v1beta1.Coin{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Stake); 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 Services", 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.Services = append(x.Services, &SupplierServiceConfig{})
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Services[len(x.Services)-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: poktroll/shared/supplier.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)
+)
+
+// Supplier is the type defining the actor in Pocket Network that provides RPC services.
+type Supplier struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // The Bech32 address of the supplier using cosmos' ScalarDescriptor to ensure deterministic encoding
+ Stake *v1beta1.Coin `protobuf:"bytes,2,opt,name=stake,proto3" json:"stake,omitempty"` // The total amount of uPOKT the supplier has staked
+ Services []*SupplierServiceConfig `protobuf:"bytes,3,rep,name=services,proto3" json:"services,omitempty"` // The service configs this supplier can support
+}
+
+func (x *Supplier) Reset() {
+ *x = Supplier{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_shared_supplier_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *Supplier) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*Supplier) ProtoMessage() {}
+
+// Deprecated: Use Supplier.ProtoReflect.Descriptor instead.
+func (*Supplier) Descriptor() ([]byte, []int) {
+ return file_poktroll_shared_supplier_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *Supplier) GetAddress() string {
+ if x != nil {
+ return x.Address
+ }
+ return ""
+}
+
+func (x *Supplier) GetStake() *v1beta1.Coin {
+ if x != nil {
+ return x.Stake
+ }
+ return nil
+}
+
+func (x *Supplier) GetServices() []*SupplierServiceConfig {
+ if x != nil {
+ return x.Services
+ }
+ return nil
+}
+
+var File_poktroll_shared_supplier_proto protoreflect.FileDescriptor
+
+var file_poktroll_shared_supplier_proto_rawDesc = []byte{
+ 0x0a, 0x1e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x65,
+ 0x64, 0x2f, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
+ 0x12, 0x0f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65,
+ 0x64, 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, 0x1e, 0x63, 0x6f,
+ 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61,
+ 0x31, 0x2f, 0x63, 0x6f, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x70, 0x6f,
+ 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2f, 0x73, 0x65,
+ 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb3, 0x01, 0x0a, 0x08,
+ 0x53, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x12, 0x32, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72,
+ 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63,
+ 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72,
+ 0x69, 0x6e, 0x67, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x2f, 0x0a, 0x05,
+ 0x73, 0x74, 0x61, 0x6b, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f,
+ 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61,
+ 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x52, 0x05, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x12, 0x42, 0x0a,
+ 0x08, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32,
+ 0x26, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65,
+ 0x64, 0x2e, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63,
+ 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x08, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
+ 0x73, 0x42, 0xa3, 0x01, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f,
+ 0x6c, 0x6c, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x42, 0x0d, 0x53, 0x75, 0x70, 0x70, 0x6c,
+ 0x69, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x20, 0x63, 0x6f, 0x73, 0x6d,
+ 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x6f, 0x6b,
+ 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0xa2, 0x02, 0x03, 0x50,
+ 0x53, 0x58, 0xaa, 0x02, 0x0f, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x53, 0x68,
+ 0x61, 0x72, 0x65, 0x64, 0xca, 0x02, 0x0f, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c,
+ 0x53, 0x68, 0x61, 0x72, 0x65, 0x64, 0xe2, 0x02, 0x1b, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c,
+ 0x6c, 0x5c, 0x53, 0x68, 0x61, 0x72, 0x65, 0x64, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61,
+ 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x10, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x3a,
+ 0x3a, 0x53, 0x68, 0x61, 0x72, 0x65, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_poktroll_shared_supplier_proto_rawDescOnce sync.Once
+ file_poktroll_shared_supplier_proto_rawDescData = file_poktroll_shared_supplier_proto_rawDesc
+)
+
+func file_poktroll_shared_supplier_proto_rawDescGZIP() []byte {
+ file_poktroll_shared_supplier_proto_rawDescOnce.Do(func() {
+ file_poktroll_shared_supplier_proto_rawDescData = protoimpl.X.CompressGZIP(file_poktroll_shared_supplier_proto_rawDescData)
+ })
+ return file_poktroll_shared_supplier_proto_rawDescData
+}
+
+var file_poktroll_shared_supplier_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
+var file_poktroll_shared_supplier_proto_goTypes = []interface{}{
+ (*Supplier)(nil), // 0: poktroll.shared.Supplier
+ (*v1beta1.Coin)(nil), // 1: cosmos.base.v1beta1.Coin
+ (*SupplierServiceConfig)(nil), // 2: poktroll.shared.SupplierServiceConfig
+}
+var file_poktroll_shared_supplier_proto_depIdxs = []int32{
+ 1, // 0: poktroll.shared.Supplier.stake:type_name -> cosmos.base.v1beta1.Coin
+ 2, // 1: poktroll.shared.Supplier.services:type_name -> poktroll.shared.SupplierServiceConfig
+ 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_poktroll_shared_supplier_proto_init() }
+func file_poktroll_shared_supplier_proto_init() {
+ if File_poktroll_shared_supplier_proto != nil {
+ return
+ }
+ file_poktroll_shared_service_proto_init()
+ if !protoimpl.UnsafeEnabled {
+ file_poktroll_shared_supplier_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*Supplier); 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_poktroll_shared_supplier_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 1,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_poktroll_shared_supplier_proto_goTypes,
+ DependencyIndexes: file_poktroll_shared_supplier_proto_depIdxs,
+ MessageInfos: file_poktroll_shared_supplier_proto_msgTypes,
+ }.Build()
+ File_poktroll_shared_supplier_proto = out.File
+ file_poktroll_shared_supplier_proto_rawDesc = nil
+ file_poktroll_shared_supplier_proto_goTypes = nil
+ file_poktroll_shared_supplier_proto_depIdxs = nil
+}
diff --git a/api/poktroll/supplier/genesis.pulsar.go b/api/poktroll/supplier/genesis.pulsar.go
new file mode 100644
index 000000000..86a864a41
--- /dev/null
+++ b/api/poktroll/supplier/genesis.pulsar.go
@@ -0,0 +1,751 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package supplier
+
+import (
+ _ "cosmossdk.io/api/amino"
+ fmt "fmt"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ _ "github.com/cosmos/gogoproto/gogoproto"
+ shared "github.com/pokt-network/poktroll/api/poktroll/shared"
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoiface "google.golang.org/protobuf/runtime/protoiface"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ io "io"
+ reflect "reflect"
+ sync "sync"
+)
+
+var _ protoreflect.List = (*_GenesisState_2_list)(nil)
+
+type _GenesisState_2_list struct {
+ list *[]*shared.Supplier
+}
+
+func (x *_GenesisState_2_list) Len() int {
+ if x.list == nil {
+ return 0
+ }
+ return len(*x.list)
+}
+
+func (x *_GenesisState_2_list) Get(i int) protoreflect.Value {
+ return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
+}
+
+func (x *_GenesisState_2_list) Set(i int, value protoreflect.Value) {
+ valueUnwrapped := value.Message()
+ concreteValue := valueUnwrapped.Interface().(*shared.Supplier)
+ (*x.list)[i] = concreteValue
+}
+
+func (x *_GenesisState_2_list) Append(value protoreflect.Value) {
+ valueUnwrapped := value.Message()
+ concreteValue := valueUnwrapped.Interface().(*shared.Supplier)
+ *x.list = append(*x.list, concreteValue)
+}
+
+func (x *_GenesisState_2_list) AppendMutable() protoreflect.Value {
+ v := new(shared.Supplier)
+ *x.list = append(*x.list, v)
+ return protoreflect.ValueOfMessage(v.ProtoReflect())
+}
+
+func (x *_GenesisState_2_list) Truncate(n int) {
+ for i := n; i < len(*x.list); i++ {
+ (*x.list)[i] = nil
+ }
+ *x.list = (*x.list)[:n]
+}
+
+func (x *_GenesisState_2_list) NewElement() protoreflect.Value {
+ v := new(shared.Supplier)
+ return protoreflect.ValueOfMessage(v.ProtoReflect())
+}
+
+func (x *_GenesisState_2_list) IsValid() bool {
+ return x.list != nil
+}
+
+var (
+ md_GenesisState protoreflect.MessageDescriptor
+ fd_GenesisState_params protoreflect.FieldDescriptor
+ fd_GenesisState_supplierList protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_supplier_genesis_proto_init()
+ md_GenesisState = File_poktroll_supplier_genesis_proto.Messages().ByName("GenesisState")
+ fd_GenesisState_params = md_GenesisState.Fields().ByName("params")
+ fd_GenesisState_supplierList = md_GenesisState.Fields().ByName("supplierList")
+}
+
+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_poktroll_supplier_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 len(x.SupplierList) != 0 {
+ value := protoreflect.ValueOfList(&_GenesisState_2_list{list: &x.SupplierList})
+ if !f(fd_GenesisState_supplierList, 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 "poktroll.supplier.GenesisState.params":
+ return x.Params != nil
+ case "poktroll.supplier.GenesisState.supplierList":
+ return len(x.SupplierList) != 0
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.GenesisState"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.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 "poktroll.supplier.GenesisState.params":
+ x.Params = nil
+ case "poktroll.supplier.GenesisState.supplierList":
+ x.SupplierList = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.GenesisState"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.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 "poktroll.supplier.GenesisState.params":
+ value := x.Params
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ case "poktroll.supplier.GenesisState.supplierList":
+ if len(x.SupplierList) == 0 {
+ return protoreflect.ValueOfList(&_GenesisState_2_list{})
+ }
+ listValue := &_GenesisState_2_list{list: &x.SupplierList}
+ return protoreflect.ValueOfList(listValue)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.GenesisState"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.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 "poktroll.supplier.GenesisState.params":
+ x.Params = value.Message().Interface().(*Params)
+ case "poktroll.supplier.GenesisState.supplierList":
+ lv := value.List()
+ clv := lv.(*_GenesisState_2_list)
+ x.SupplierList = *clv.list
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.GenesisState"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.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 "poktroll.supplier.GenesisState.params":
+ if x.Params == nil {
+ x.Params = new(Params)
+ }
+ return protoreflect.ValueOfMessage(x.Params.ProtoReflect())
+ case "poktroll.supplier.GenesisState.supplierList":
+ if x.SupplierList == nil {
+ x.SupplierList = []*shared.Supplier{}
+ }
+ value := &_GenesisState_2_list{list: &x.SupplierList}
+ return protoreflect.ValueOfList(value)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.GenesisState"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.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 "poktroll.supplier.GenesisState.params":
+ m := new(Params)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ case "poktroll.supplier.GenesisState.supplierList":
+ list := []*shared.Supplier{}
+ return protoreflect.ValueOfList(&_GenesisState_2_list{list: &list})
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.GenesisState"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.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 poktroll.supplier.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 len(x.SupplierList) > 0 {
+ for _, e := range x.SupplierList {
+ l = options.Size(e)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*GenesisState)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.SupplierList) > 0 {
+ for iNdEx := len(x.SupplierList) - 1; iNdEx >= 0; iNdEx-- {
+ encoded, err := options.Marshal(x.SupplierList[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.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 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SupplierList", 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.SupplierList = append(x.SupplierList, &shared.Supplier{})
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.SupplierList[len(x.SupplierList)-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: poktroll/supplier/genesis.proto
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+// GenesisState defines the supplier module's genesis state.
+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"`
+ SupplierList []*shared.Supplier `protobuf:"bytes,2,rep,name=supplierList,proto3" json:"supplierList,omitempty"`
+}
+
+func (x *GenesisState) Reset() {
+ *x = GenesisState{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_supplier_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_poktroll_supplier_genesis_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *GenesisState) GetParams() *Params {
+ if x != nil {
+ return x.Params
+ }
+ return nil
+}
+
+func (x *GenesisState) GetSupplierList() []*shared.Supplier {
+ if x != nil {
+ return x.SupplierList
+ }
+ return nil
+}
+
+var File_poktroll_supplier_genesis_proto protoreflect.FileDescriptor
+
+var file_poktroll_supplier_genesis_proto_rawDesc = []byte{
+ 0x0a, 0x1f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x75, 0x70, 0x70, 0x6c,
+ 0x69, 0x65, 0x72, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74,
+ 0x6f, 0x12, 0x11, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x75, 0x70, 0x70,
+ 0x6c, 0x69, 0x65, 0x72, 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, 0x1e, 0x70,
+ 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72,
+ 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x70,
+ 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2f, 0x73,
+ 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x91, 0x01,
+ 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3c,
+ 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19,
+ 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69,
+ 0x65, 0x72, 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, 0x12, 0x43, 0x0a, 0x0c,
+ 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x18, 0x02, 0x20, 0x03,
+ 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x68,
+ 0x61, 0x72, 0x65, 0x64, 0x2e, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x42, 0x04, 0xc8,
+ 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x4c, 0x69, 0x73,
+ 0x74, 0x42, 0xae, 0x01, 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f,
+ 0x6c, 0x6c, 0x2e, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x42, 0x0c, 0x47, 0x65, 0x6e,
+ 0x65, 0x73, 0x69, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x22, 0x63, 0x6f, 0x73,
+ 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x6f,
+ 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0xa2,
+ 0x02, 0x03, 0x50, 0x53, 0x58, 0xaa, 0x02, 0x11, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c,
+ 0x2e, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0xca, 0x02, 0x11, 0x50, 0x6f, 0x6b, 0x74,
+ 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0xe2, 0x02, 0x1d,
+ 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65,
+ 0x72, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x12,
+ 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x3a, 0x3a, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x69,
+ 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_poktroll_supplier_genesis_proto_rawDescOnce sync.Once
+ file_poktroll_supplier_genesis_proto_rawDescData = file_poktroll_supplier_genesis_proto_rawDesc
+)
+
+func file_poktroll_supplier_genesis_proto_rawDescGZIP() []byte {
+ file_poktroll_supplier_genesis_proto_rawDescOnce.Do(func() {
+ file_poktroll_supplier_genesis_proto_rawDescData = protoimpl.X.CompressGZIP(file_poktroll_supplier_genesis_proto_rawDescData)
+ })
+ return file_poktroll_supplier_genesis_proto_rawDescData
+}
+
+var file_poktroll_supplier_genesis_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
+var file_poktroll_supplier_genesis_proto_goTypes = []interface{}{
+ (*GenesisState)(nil), // 0: poktroll.supplier.GenesisState
+ (*Params)(nil), // 1: poktroll.supplier.Params
+ (*shared.Supplier)(nil), // 2: poktroll.shared.Supplier
+}
+var file_poktroll_supplier_genesis_proto_depIdxs = []int32{
+ 1, // 0: poktroll.supplier.GenesisState.params:type_name -> poktroll.supplier.Params
+ 2, // 1: poktroll.supplier.GenesisState.supplierList:type_name -> poktroll.shared.Supplier
+ 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_poktroll_supplier_genesis_proto_init() }
+func file_poktroll_supplier_genesis_proto_init() {
+ if File_poktroll_supplier_genesis_proto != nil {
+ return
+ }
+ file_poktroll_supplier_params_proto_init()
+ if !protoimpl.UnsafeEnabled {
+ file_poktroll_supplier_genesis_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GenesisState); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_poktroll_supplier_genesis_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 1,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_poktroll_supplier_genesis_proto_goTypes,
+ DependencyIndexes: file_poktroll_supplier_genesis_proto_depIdxs,
+ MessageInfos: file_poktroll_supplier_genesis_proto_msgTypes,
+ }.Build()
+ File_poktroll_supplier_genesis_proto = out.File
+ file_poktroll_supplier_genesis_proto_rawDesc = nil
+ file_poktroll_supplier_genesis_proto_goTypes = nil
+ file_poktroll_supplier_genesis_proto_depIdxs = nil
+}
diff --git a/api/poktroll/supplier/module/module.pulsar.go b/api/poktroll/supplier/module/module.pulsar.go
new file mode 100644
index 000000000..4da01a712
--- /dev/null
+++ b/api/poktroll/supplier/module/module.pulsar.go
@@ -0,0 +1,579 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package module
+
+import (
+ _ "cosmossdk.io/api/cosmos/app/v1alpha1"
+ fmt "fmt"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoiface "google.golang.org/protobuf/runtime/protoiface"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ io "io"
+ reflect "reflect"
+ sync "sync"
+)
+
+var (
+ md_Module protoreflect.MessageDescriptor
+ fd_Module_authority protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_supplier_module_module_proto_init()
+ md_Module = File_poktroll_supplier_module_module_proto.Messages().ByName("Module")
+ fd_Module_authority = md_Module.Fields().ByName("authority")
+}
+
+var _ protoreflect.Message = (*fastReflection_Module)(nil)
+
+type fastReflection_Module Module
+
+func (x *Module) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_Module)(x)
+}
+
+func (x *Module) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_supplier_module_module_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_Module_messageType fastReflection_Module_messageType
+var _ protoreflect.MessageType = fastReflection_Module_messageType{}
+
+type fastReflection_Module_messageType struct{}
+
+func (x fastReflection_Module_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_Module)(nil)
+}
+func (x fastReflection_Module_messageType) New() protoreflect.Message {
+ return new(fastReflection_Module)
+}
+func (x fastReflection_Module_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_Module
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_Module) Descriptor() protoreflect.MessageDescriptor {
+ return md_Module
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_Module) Type() protoreflect.MessageType {
+ return _fastReflection_Module_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_Module) New() protoreflect.Message {
+ return new(fastReflection_Module)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_Module) Interface() protoreflect.ProtoMessage {
+ return (*Module)(x)
+}
+
+// Range iterates over every populated field in an undefined order,
+// calling f for each field descriptor and value encountered.
+// Range returns immediately if f returns false.
+// While iterating, mutating operations may only be performed
+// on the current field descriptor.
+func (x *fastReflection_Module) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Authority != "" {
+ value := protoreflect.ValueOfString(x.Authority)
+ if !f(fd_Module_authority, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_Module) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.supplier.module.Module.authority":
+ return x.Authority != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.module.Module"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.module.Module does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Module) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.supplier.module.Module.authority":
+ x.Authority = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.module.Module"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.module.Module does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_Module) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.supplier.module.Module.authority":
+ value := x.Authority
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.module.Module"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.module.Module does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Module) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.supplier.module.Module.authority":
+ x.Authority = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.module.Module"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.module.Module does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Module) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.supplier.module.Module.authority":
+ panic(fmt.Errorf("field authority of message poktroll.supplier.module.Module is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.module.Module"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.module.Module does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_Module) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.supplier.module.Module.authority":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.module.Module"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.module.Module does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_Module) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.supplier.module.Module", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_Module) GetUnknown() protoreflect.RawFields {
+ return x.unknownFields
+}
+
+// SetUnknown stores an entire list of unknown fields.
+// The raw fields must be syntactically valid according to the wire format.
+// An implementation may panic if this is not the case.
+// Once stored, the caller must not mutate the content of the RawFields.
+// An empty RawFields may be passed to clear the fields.
+//
+// SetUnknown is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Module) SetUnknown(fields protoreflect.RawFields) {
+ x.unknownFields = fields
+}
+
+// IsValid reports whether the message is valid.
+//
+// An invalid message is an empty, read-only value.
+//
+// An invalid message often corresponds to a nil pointer of the concrete
+// message type, but the details are implementation dependent.
+// Validity is not part of the protobuf data model, and may not
+// be preserved in marshaling or other operations.
+func (x *fastReflection_Module) IsValid() bool {
+ return x != nil
+}
+
+// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
+// This method may return nil.
+//
+// The returned methods type is identical to
+// "google.golang.org/protobuf/runtime/protoiface".Methods.
+// Consult the protoiface package documentation for details.
+func (x *fastReflection_Module) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*Module)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Authority)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*Module)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Authority) > 0 {
+ i -= len(x.Authority)
+ copy(dAtA[i:], x.Authority)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority)))
+ i--
+ dAtA[i] = 0xa
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*Module)
+ if x == nil {
+ return protoiface.UnmarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Flags: input.Flags,
+ }, nil
+ }
+ options := runtime.UnmarshalInputToOptions(input)
+ _ = options
+ dAtA := input.Buf
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Module: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Module: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Authority = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.27.0
+// protoc (unknown)
+// source: poktroll/supplier/module/module.proto
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+// Module is the config object for the module.
+type Module struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // authority defines the custom module authority. If not set, defaults to the governance module.
+ Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
+}
+
+func (x *Module) Reset() {
+ *x = Module{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_supplier_module_module_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *Module) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*Module) ProtoMessage() {}
+
+// Deprecated: Use Module.ProtoReflect.Descriptor instead.
+func (*Module) Descriptor() ([]byte, []int) {
+ return file_poktroll_supplier_module_module_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *Module) GetAuthority() string {
+ if x != nil {
+ return x.Authority
+ }
+ return ""
+}
+
+var File_poktroll_supplier_module_module_proto protoreflect.FileDescriptor
+
+var file_poktroll_supplier_module_module_proto_rawDesc = []byte{
+ 0x0a, 0x25, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x75, 0x70, 0x70, 0x6c,
+ 0x69, 0x65, 0x72, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c,
+ 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c,
+ 0x6c, 0x2e, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c,
+ 0x65, 0x1a, 0x20, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x76, 0x31,
+ 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72,
+ 0x6f, 0x74, 0x6f, 0x22, 0x5b, 0x0a, 0x06, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x1c, 0x0a,
+ 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x3a, 0x33, 0xba, 0xc0, 0x96,
+ 0xda, 0x01, 0x2d, 0x0a, 0x2b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
+ 0x70, 0x6f, 0x6b, 0x74, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x70, 0x6f, 0x6b,
+ 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x78, 0x2f, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72,
+ 0x42, 0xd8, 0x01, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c,
+ 0x6c, 0x2e, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c,
+ 0x65, 0x42, 0x0b, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01,
+ 0x5a, 0x29, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61,
+ 0x70, 0x69, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x75, 0x70, 0x70,
+ 0x6c, 0x69, 0x65, 0x72, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0xa2, 0x02, 0x03, 0x50, 0x53,
+ 0x4d, 0xaa, 0x02, 0x18, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x53, 0x75, 0x70,
+ 0x70, 0x6c, 0x69, 0x65, 0x72, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0xca, 0x02, 0x18, 0x50,
+ 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72,
+ 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0xe2, 0x02, 0x24, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f,
+ 0x6c, 0x6c, 0x5c, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x5c, 0x4d, 0x6f, 0x64, 0x75,
+ 0x6c, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02,
+ 0x1a, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x3a, 0x3a, 0x53, 0x75, 0x70, 0x70, 0x6c,
+ 0x69, 0x65, 0x72, 0x3a, 0x3a, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f,
+ 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_poktroll_supplier_module_module_proto_rawDescOnce sync.Once
+ file_poktroll_supplier_module_module_proto_rawDescData = file_poktroll_supplier_module_module_proto_rawDesc
+)
+
+func file_poktroll_supplier_module_module_proto_rawDescGZIP() []byte {
+ file_poktroll_supplier_module_module_proto_rawDescOnce.Do(func() {
+ file_poktroll_supplier_module_module_proto_rawDescData = protoimpl.X.CompressGZIP(file_poktroll_supplier_module_module_proto_rawDescData)
+ })
+ return file_poktroll_supplier_module_module_proto_rawDescData
+}
+
+var file_poktroll_supplier_module_module_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
+var file_poktroll_supplier_module_module_proto_goTypes = []interface{}{
+ (*Module)(nil), // 0: poktroll.supplier.module.Module
+}
+var file_poktroll_supplier_module_module_proto_depIdxs = []int32{
+ 0, // [0:0] is the sub-list for method output_type
+ 0, // [0:0] is the sub-list for method input_type
+ 0, // [0:0] is the sub-list for extension type_name
+ 0, // [0:0] is the sub-list for extension extendee
+ 0, // [0:0] is the sub-list for field type_name
+}
+
+func init() { file_poktroll_supplier_module_module_proto_init() }
+func file_poktroll_supplier_module_module_proto_init() {
+ if File_poktroll_supplier_module_module_proto != nil {
+ return
+ }
+ if !protoimpl.UnsafeEnabled {
+ file_poktroll_supplier_module_module_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*Module); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_poktroll_supplier_module_module_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 1,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_poktroll_supplier_module_module_proto_goTypes,
+ DependencyIndexes: file_poktroll_supplier_module_module_proto_depIdxs,
+ MessageInfos: file_poktroll_supplier_module_module_proto_msgTypes,
+ }.Build()
+ File_poktroll_supplier_module_module_proto = out.File
+ file_poktroll_supplier_module_module_proto_rawDesc = nil
+ file_poktroll_supplier_module_module_proto_goTypes = nil
+ file_poktroll_supplier_module_module_proto_depIdxs = nil
+}
diff --git a/api/poktroll/supplier/params.pulsar.go b/api/poktroll/supplier/params.pulsar.go
new file mode 100644
index 000000000..7108db140
--- /dev/null
+++ b/api/poktroll/supplier/params.pulsar.go
@@ -0,0 +1,500 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package supplier
+
+import (
+ _ "cosmossdk.io/api/amino"
+ 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_Params protoreflect.MessageDescriptor
+)
+
+func init() {
+ file_poktroll_supplier_params_proto_init()
+ md_Params = File_poktroll_supplier_params_proto.Messages().ByName("Params")
+}
+
+var _ protoreflect.Message = (*fastReflection_Params)(nil)
+
+type fastReflection_Params Params
+
+func (x *Params) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_Params)(x)
+}
+
+func (x *Params) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_supplier_params_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_Params_messageType fastReflection_Params_messageType
+var _ protoreflect.MessageType = fastReflection_Params_messageType{}
+
+type fastReflection_Params_messageType struct{}
+
+func (x fastReflection_Params_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_Params)(nil)
+}
+func (x fastReflection_Params_messageType) New() protoreflect.Message {
+ return new(fastReflection_Params)
+}
+func (x fastReflection_Params_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_Params
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_Params) Descriptor() protoreflect.MessageDescriptor {
+ return md_Params
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_Params) Type() protoreflect.MessageType {
+ return _fastReflection_Params_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_Params) New() protoreflect.Message {
+ return new(fastReflection_Params)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_Params) Interface() protoreflect.ProtoMessage {
+ return (*Params)(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_Params) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_Params) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.Params"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.Params 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_Params) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.Params"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.Params 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_Params) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.Params"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.Params 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_Params) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.Params"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.Params 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_Params) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.Params"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.Params does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// 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() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.Params"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.Params does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_Params) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.supplier.Params", 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_Params) 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_Params) 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_Params) 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_Params) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*Params)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*Params)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*Params)
+ 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: Params: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.27.0
+// protoc (unknown)
+// source: poktroll/supplier/params.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)
+)
+
+// Params defines the parameters for the module.
+type Params struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+}
+
+func (x *Params) Reset() {
+ *x = Params{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_supplier_params_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *Params) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*Params) ProtoMessage() {}
+
+// Deprecated: Use Params.ProtoReflect.Descriptor instead.
+func (*Params) Descriptor() ([]byte, []int) {
+ return file_poktroll_supplier_params_proto_rawDescGZIP(), []int{0}
+}
+
+var File_poktroll_supplier_params_proto protoreflect.FileDescriptor
+
+var file_poktroll_supplier_params_proto_rawDesc = []byte{
+ 0x0a, 0x1e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x75, 0x70, 0x70, 0x6c,
+ 0x69, 0x65, 0x72, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
+ 0x12, 0x11, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x75, 0x70, 0x70, 0x6c,
+ 0x69, 0x65, 0x72, 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, 0x2d, 0x0a, 0x06,
+ 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x3a, 0x23, 0xe8, 0xa0, 0x1f, 0x01, 0x8a, 0xe7, 0xb0, 0x2a,
+ 0x1a, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x78, 0x2f, 0x73, 0x75, 0x70, 0x70,
+ 0x6c, 0x69, 0x65, 0x72, 0x2f, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0xad, 0x01, 0x0a, 0x15,
+ 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x75, 0x70,
+ 0x70, 0x6c, 0x69, 0x65, 0x72, 0x42, 0x0b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x50, 0x72, 0x6f,
+ 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x22, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e,
+ 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f,
+ 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0xa2, 0x02, 0x03, 0x50, 0x53, 0x58, 0xaa, 0x02,
+ 0x11, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x69,
+ 0x65, 0x72, 0xca, 0x02, 0x11, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x53, 0x75,
+ 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0xe2, 0x02, 0x1d, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c,
+ 0x6c, 0x5c, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65,
+ 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x12, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c,
+ 0x6c, 0x3a, 0x3a, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f,
+ 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_poktroll_supplier_params_proto_rawDescOnce sync.Once
+ file_poktroll_supplier_params_proto_rawDescData = file_poktroll_supplier_params_proto_rawDesc
+)
+
+func file_poktroll_supplier_params_proto_rawDescGZIP() []byte {
+ file_poktroll_supplier_params_proto_rawDescOnce.Do(func() {
+ file_poktroll_supplier_params_proto_rawDescData = protoimpl.X.CompressGZIP(file_poktroll_supplier_params_proto_rawDescData)
+ })
+ return file_poktroll_supplier_params_proto_rawDescData
+}
+
+var file_poktroll_supplier_params_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
+var file_poktroll_supplier_params_proto_goTypes = []interface{}{
+ (*Params)(nil), // 0: poktroll.supplier.Params
+}
+var file_poktroll_supplier_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
+ 0, // [0:0] is the sub-list for extension extendee
+ 0, // [0:0] is the sub-list for field type_name
+}
+
+func init() { file_poktroll_supplier_params_proto_init() }
+func file_poktroll_supplier_params_proto_init() {
+ if File_poktroll_supplier_params_proto != nil {
+ return
+ }
+ if !protoimpl.UnsafeEnabled {
+ file_poktroll_supplier_params_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*Params); 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_poktroll_supplier_params_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 1,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_poktroll_supplier_params_proto_goTypes,
+ DependencyIndexes: file_poktroll_supplier_params_proto_depIdxs,
+ MessageInfos: file_poktroll_supplier_params_proto_msgTypes,
+ }.Build()
+ File_poktroll_supplier_params_proto = out.File
+ file_poktroll_supplier_params_proto_rawDesc = nil
+ file_poktroll_supplier_params_proto_goTypes = nil
+ file_poktroll_supplier_params_proto_depIdxs = nil
+}
diff --git a/api/poktroll/supplier/query.pulsar.go b/api/poktroll/supplier/query.pulsar.go
new file mode 100644
index 000000000..827e8bc66
--- /dev/null
+++ b/api/poktroll/supplier/query.pulsar.go
@@ -0,0 +1,3141 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package supplier
+
+import (
+ _ "cosmossdk.io/api/amino"
+ v1beta1 "cosmossdk.io/api/cosmos/base/query/v1beta1"
+ _ "cosmossdk.io/api/cosmos/base/v1beta1"
+ fmt "fmt"
+ _ "github.com/cosmos/cosmos-proto"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ _ "github.com/cosmos/gogoproto/gogoproto"
+ shared "github.com/pokt-network/poktroll/api/poktroll/shared"
+ _ "google.golang.org/genproto/googleapis/api/annotations"
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoiface "google.golang.org/protobuf/runtime/protoiface"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ io "io"
+ reflect "reflect"
+ sync "sync"
+)
+
+var (
+ md_QueryParamsRequest protoreflect.MessageDescriptor
+)
+
+func init() {
+ file_poktroll_supplier_query_proto_init()
+ md_QueryParamsRequest = File_poktroll_supplier_query_proto.Messages().ByName("QueryParamsRequest")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryParamsRequest)(nil)
+
+type fastReflection_QueryParamsRequest QueryParamsRequest
+
+func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryParamsRequest)(x)
+}
+
+func (x *QueryParamsRequest) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_supplier_query_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryParamsRequest_messageType fastReflection_QueryParamsRequest_messageType
+var _ protoreflect.MessageType = fastReflection_QueryParamsRequest_messageType{}
+
+type fastReflection_QueryParamsRequest_messageType struct{}
+
+func (x fastReflection_QueryParamsRequest_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryParamsRequest)(nil)
+}
+func (x fastReflection_QueryParamsRequest_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryParamsRequest)
+}
+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_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_QueryParamsRequest) Type() protoreflect.MessageType {
+ return _fastReflection_QueryParamsRequest_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+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_QueryParamsRequest) Interface() protoreflect.ProtoMessage {
+ return (*QueryParamsRequest)(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_QueryParamsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_QueryParamsRequest) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.QueryParamsRequest 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_QueryParamsRequest) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.QueryParamsRequest 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_QueryParamsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.QueryParamsRequest 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_QueryParamsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.QueryParamsRequest 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_QueryParamsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.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_QueryParamsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.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_QueryParamsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.supplier.QueryParamsRequest", 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_QueryParamsRequest) 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_QueryParamsRequest) 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_QueryParamsRequest) 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_QueryParamsRequest) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryParamsRequest)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*QueryParamsRequest)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*QueryParamsRequest)
+ 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: QueryParamsRequest: 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)
+ }
+ switch fieldNum {
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_QueryParamsResponse protoreflect.MessageDescriptor
+ fd_QueryParamsResponse_params protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_supplier_query_proto_init()
+ md_QueryParamsResponse = File_poktroll_supplier_query_proto.Messages().ByName("QueryParamsResponse")
+ fd_QueryParamsResponse_params = md_QueryParamsResponse.Fields().ByName("params")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryParamsResponse)(nil)
+
+type fastReflection_QueryParamsResponse QueryParamsResponse
+
+func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryParamsResponse)(x)
+}
+
+func (x *QueryParamsResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_supplier_query_proto_msgTypes[1]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryParamsResponse_messageType fastReflection_QueryParamsResponse_messageType
+var _ protoreflect.MessageType = fastReflection_QueryParamsResponse_messageType{}
+
+type fastReflection_QueryParamsResponse_messageType struct{}
+
+func (x fastReflection_QueryParamsResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryParamsResponse)(nil)
+}
+func (x fastReflection_QueryParamsResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryParamsResponse)
+}
+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_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_QueryParamsResponse) Type() protoreflect.MessageType {
+ return _fastReflection_QueryParamsResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+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_QueryParamsResponse) Interface() protoreflect.ProtoMessage {
+ return (*QueryParamsResponse)(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_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
+ }
+ }
+}
+
+// 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_QueryParamsResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.supplier.QueryParamsResponse.params":
+ return x.Params != nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.QueryParamsResponse 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_QueryParamsResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.supplier.QueryParamsResponse.params":
+ x.Params = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.QueryParamsResponse 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_QueryParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.supplier.QueryParamsResponse.params":
+ value := x.Params
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.QueryParamsResponse 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_QueryParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.supplier.QueryParamsResponse.params":
+ x.Params = value.Message().Interface().(*Params)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.QueryParamsResponse 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_QueryParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.supplier.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: poktroll.supplier.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.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_QueryParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.supplier.QueryParamsResponse.params":
+ m := new(Params)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.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_QueryParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.supplier.QueryParamsResponse", 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_QueryParamsResponse) 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_QueryParamsResponse) 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_QueryParamsResponse) 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_QueryParamsResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryParamsResponse)
+ 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.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().(*QueryParamsResponse)
+ 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.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().(*QueryParamsResponse)
+ 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: QueryParamsResponse: 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)
+ }
+ 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
+ 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_QueryGetSupplierRequest protoreflect.MessageDescriptor
+ fd_QueryGetSupplierRequest_address protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_supplier_query_proto_init()
+ md_QueryGetSupplierRequest = File_poktroll_supplier_query_proto.Messages().ByName("QueryGetSupplierRequest")
+ fd_QueryGetSupplierRequest_address = md_QueryGetSupplierRequest.Fields().ByName("address")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryGetSupplierRequest)(nil)
+
+type fastReflection_QueryGetSupplierRequest QueryGetSupplierRequest
+
+func (x *QueryGetSupplierRequest) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryGetSupplierRequest)(x)
+}
+
+func (x *QueryGetSupplierRequest) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_supplier_query_proto_msgTypes[2]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryGetSupplierRequest_messageType fastReflection_QueryGetSupplierRequest_messageType
+var _ protoreflect.MessageType = fastReflection_QueryGetSupplierRequest_messageType{}
+
+type fastReflection_QueryGetSupplierRequest_messageType struct{}
+
+func (x fastReflection_QueryGetSupplierRequest_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryGetSupplierRequest)(nil)
+}
+func (x fastReflection_QueryGetSupplierRequest_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryGetSupplierRequest)
+}
+func (x fastReflection_QueryGetSupplierRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryGetSupplierRequest
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_QueryGetSupplierRequest) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryGetSupplierRequest
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_QueryGetSupplierRequest) Type() protoreflect.MessageType {
+ return _fastReflection_QueryGetSupplierRequest_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_QueryGetSupplierRequest) New() protoreflect.Message {
+ return new(fastReflection_QueryGetSupplierRequest)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_QueryGetSupplierRequest) Interface() protoreflect.ProtoMessage {
+ return (*QueryGetSupplierRequest)(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_QueryGetSupplierRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Address != "" {
+ value := protoreflect.ValueOfString(x.Address)
+ if !f(fd_QueryGetSupplierRequest_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_QueryGetSupplierRequest) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.supplier.QueryGetSupplierRequest.address":
+ return x.Address != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.QueryGetSupplierRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.QueryGetSupplierRequest 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_QueryGetSupplierRequest) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.supplier.QueryGetSupplierRequest.address":
+ x.Address = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.QueryGetSupplierRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.QueryGetSupplierRequest 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_QueryGetSupplierRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.supplier.QueryGetSupplierRequest.address":
+ value := x.Address
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.QueryGetSupplierRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.QueryGetSupplierRequest 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_QueryGetSupplierRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.supplier.QueryGetSupplierRequest.address":
+ x.Address = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.QueryGetSupplierRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.QueryGetSupplierRequest 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_QueryGetSupplierRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.supplier.QueryGetSupplierRequest.address":
+ panic(fmt.Errorf("field address of message poktroll.supplier.QueryGetSupplierRequest is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.QueryGetSupplierRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.QueryGetSupplierRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_QueryGetSupplierRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.supplier.QueryGetSupplierRequest.address":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.QueryGetSupplierRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.QueryGetSupplierRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_QueryGetSupplierRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.supplier.QueryGetSupplierRequest", 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_QueryGetSupplierRequest) 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_QueryGetSupplierRequest) 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_QueryGetSupplierRequest) 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_QueryGetSupplierRequest) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryGetSupplierRequest)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Address)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*QueryGetSupplierRequest)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Address) > 0 {
+ i -= len(x.Address)
+ copy(dAtA[i:], x.Address)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address)))
+ i--
+ dAtA[i] = 0xa
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*QueryGetSupplierRequest)
+ 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: QueryGetSupplierRequest: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetSupplierRequest: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Address = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_QueryGetSupplierResponse protoreflect.MessageDescriptor
+ fd_QueryGetSupplierResponse_supplier protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_supplier_query_proto_init()
+ md_QueryGetSupplierResponse = File_poktroll_supplier_query_proto.Messages().ByName("QueryGetSupplierResponse")
+ fd_QueryGetSupplierResponse_supplier = md_QueryGetSupplierResponse.Fields().ByName("supplier")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryGetSupplierResponse)(nil)
+
+type fastReflection_QueryGetSupplierResponse QueryGetSupplierResponse
+
+func (x *QueryGetSupplierResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryGetSupplierResponse)(x)
+}
+
+func (x *QueryGetSupplierResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_supplier_query_proto_msgTypes[3]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryGetSupplierResponse_messageType fastReflection_QueryGetSupplierResponse_messageType
+var _ protoreflect.MessageType = fastReflection_QueryGetSupplierResponse_messageType{}
+
+type fastReflection_QueryGetSupplierResponse_messageType struct{}
+
+func (x fastReflection_QueryGetSupplierResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryGetSupplierResponse)(nil)
+}
+func (x fastReflection_QueryGetSupplierResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryGetSupplierResponse)
+}
+func (x fastReflection_QueryGetSupplierResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryGetSupplierResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_QueryGetSupplierResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryGetSupplierResponse
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_QueryGetSupplierResponse) Type() protoreflect.MessageType {
+ return _fastReflection_QueryGetSupplierResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_QueryGetSupplierResponse) New() protoreflect.Message {
+ return new(fastReflection_QueryGetSupplierResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_QueryGetSupplierResponse) Interface() protoreflect.ProtoMessage {
+ return (*QueryGetSupplierResponse)(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_QueryGetSupplierResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Supplier != nil {
+ value := protoreflect.ValueOfMessage(x.Supplier.ProtoReflect())
+ if !f(fd_QueryGetSupplierResponse_supplier, 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_QueryGetSupplierResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.supplier.QueryGetSupplierResponse.supplier":
+ return x.Supplier != nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.QueryGetSupplierResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.QueryGetSupplierResponse 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_QueryGetSupplierResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.supplier.QueryGetSupplierResponse.supplier":
+ x.Supplier = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.QueryGetSupplierResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.QueryGetSupplierResponse 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_QueryGetSupplierResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.supplier.QueryGetSupplierResponse.supplier":
+ value := x.Supplier
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.QueryGetSupplierResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.QueryGetSupplierResponse 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_QueryGetSupplierResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.supplier.QueryGetSupplierResponse.supplier":
+ x.Supplier = value.Message().Interface().(*shared.Supplier)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.QueryGetSupplierResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.QueryGetSupplierResponse 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_QueryGetSupplierResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.supplier.QueryGetSupplierResponse.supplier":
+ if x.Supplier == nil {
+ x.Supplier = new(shared.Supplier)
+ }
+ return protoreflect.ValueOfMessage(x.Supplier.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.QueryGetSupplierResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.QueryGetSupplierResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_QueryGetSupplierResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.supplier.QueryGetSupplierResponse.supplier":
+ m := new(shared.Supplier)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.QueryGetSupplierResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.QueryGetSupplierResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_QueryGetSupplierResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.supplier.QueryGetSupplierResponse", 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_QueryGetSupplierResponse) 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_QueryGetSupplierResponse) 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_QueryGetSupplierResponse) 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_QueryGetSupplierResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryGetSupplierResponse)
+ 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.Supplier != nil {
+ l = options.Size(x.Supplier)
+ 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().(*QueryGetSupplierResponse)
+ 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.Supplier != nil {
+ encoded, err := options.Marshal(x.Supplier)
+ 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().(*QueryGetSupplierResponse)
+ 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: QueryGetSupplierResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetSupplierResponse: 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 Supplier", 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.Supplier == nil {
+ x.Supplier = &shared.Supplier{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Supplier); 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_QueryAllSuppliersRequest protoreflect.MessageDescriptor
+ fd_QueryAllSuppliersRequest_pagination protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_supplier_query_proto_init()
+ md_QueryAllSuppliersRequest = File_poktroll_supplier_query_proto.Messages().ByName("QueryAllSuppliersRequest")
+ fd_QueryAllSuppliersRequest_pagination = md_QueryAllSuppliersRequest.Fields().ByName("pagination")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryAllSuppliersRequest)(nil)
+
+type fastReflection_QueryAllSuppliersRequest QueryAllSuppliersRequest
+
+func (x *QueryAllSuppliersRequest) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryAllSuppliersRequest)(x)
+}
+
+func (x *QueryAllSuppliersRequest) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_supplier_query_proto_msgTypes[4]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryAllSuppliersRequest_messageType fastReflection_QueryAllSuppliersRequest_messageType
+var _ protoreflect.MessageType = fastReflection_QueryAllSuppliersRequest_messageType{}
+
+type fastReflection_QueryAllSuppliersRequest_messageType struct{}
+
+func (x fastReflection_QueryAllSuppliersRequest_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryAllSuppliersRequest)(nil)
+}
+func (x fastReflection_QueryAllSuppliersRequest_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryAllSuppliersRequest)
+}
+func (x fastReflection_QueryAllSuppliersRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryAllSuppliersRequest
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_QueryAllSuppliersRequest) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryAllSuppliersRequest
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_QueryAllSuppliersRequest) Type() protoreflect.MessageType {
+ return _fastReflection_QueryAllSuppliersRequest_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_QueryAllSuppliersRequest) New() protoreflect.Message {
+ return new(fastReflection_QueryAllSuppliersRequest)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_QueryAllSuppliersRequest) Interface() protoreflect.ProtoMessage {
+ return (*QueryAllSuppliersRequest)(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_QueryAllSuppliersRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Pagination != nil {
+ value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
+ if !f(fd_QueryAllSuppliersRequest_pagination, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_QueryAllSuppliersRequest) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.supplier.QueryAllSuppliersRequest.pagination":
+ return x.Pagination != nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.QueryAllSuppliersRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.QueryAllSuppliersRequest 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_QueryAllSuppliersRequest) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.supplier.QueryAllSuppliersRequest.pagination":
+ x.Pagination = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.QueryAllSuppliersRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.QueryAllSuppliersRequest 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_QueryAllSuppliersRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.supplier.QueryAllSuppliersRequest.pagination":
+ value := x.Pagination
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.QueryAllSuppliersRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.QueryAllSuppliersRequest 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_QueryAllSuppliersRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.supplier.QueryAllSuppliersRequest.pagination":
+ x.Pagination = value.Message().Interface().(*v1beta1.PageRequest)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.QueryAllSuppliersRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.QueryAllSuppliersRequest 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_QueryAllSuppliersRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.supplier.QueryAllSuppliersRequest.pagination":
+ if x.Pagination == nil {
+ x.Pagination = new(v1beta1.PageRequest)
+ }
+ return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.QueryAllSuppliersRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.QueryAllSuppliersRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_QueryAllSuppliersRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.supplier.QueryAllSuppliersRequest.pagination":
+ m := new(v1beta1.PageRequest)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.QueryAllSuppliersRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.QueryAllSuppliersRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_QueryAllSuppliersRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.supplier.QueryAllSuppliersRequest", 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_QueryAllSuppliersRequest) 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_QueryAllSuppliersRequest) 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_QueryAllSuppliersRequest) 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_QueryAllSuppliersRequest) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryAllSuppliersRequest)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.Pagination != nil {
+ l = options.Size(x.Pagination)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*QueryAllSuppliersRequest)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if x.Pagination != nil {
+ encoded, err := options.Marshal(x.Pagination)
+ if err != nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, err
+ }
+ i -= len(encoded)
+ copy(dAtA[i:], encoded)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
+ i--
+ dAtA[i] = 0xa
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*QueryAllSuppliersRequest)
+ 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: QueryAllSuppliersRequest: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllSuppliersRequest: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if x.Pagination == nil {
+ x.Pagination = &v1beta1.PageRequest{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var _ protoreflect.List = (*_QueryAllSuppliersResponse_1_list)(nil)
+
+type _QueryAllSuppliersResponse_1_list struct {
+ list *[]*shared.Supplier
+}
+
+func (x *_QueryAllSuppliersResponse_1_list) Len() int {
+ if x.list == nil {
+ return 0
+ }
+ return len(*x.list)
+}
+
+func (x *_QueryAllSuppliersResponse_1_list) Get(i int) protoreflect.Value {
+ return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
+}
+
+func (x *_QueryAllSuppliersResponse_1_list) Set(i int, value protoreflect.Value) {
+ valueUnwrapped := value.Message()
+ concreteValue := valueUnwrapped.Interface().(*shared.Supplier)
+ (*x.list)[i] = concreteValue
+}
+
+func (x *_QueryAllSuppliersResponse_1_list) Append(value protoreflect.Value) {
+ valueUnwrapped := value.Message()
+ concreteValue := valueUnwrapped.Interface().(*shared.Supplier)
+ *x.list = append(*x.list, concreteValue)
+}
+
+func (x *_QueryAllSuppliersResponse_1_list) AppendMutable() protoreflect.Value {
+ v := new(shared.Supplier)
+ *x.list = append(*x.list, v)
+ return protoreflect.ValueOfMessage(v.ProtoReflect())
+}
+
+func (x *_QueryAllSuppliersResponse_1_list) Truncate(n int) {
+ for i := n; i < len(*x.list); i++ {
+ (*x.list)[i] = nil
+ }
+ *x.list = (*x.list)[:n]
+}
+
+func (x *_QueryAllSuppliersResponse_1_list) NewElement() protoreflect.Value {
+ v := new(shared.Supplier)
+ return protoreflect.ValueOfMessage(v.ProtoReflect())
+}
+
+func (x *_QueryAllSuppliersResponse_1_list) IsValid() bool {
+ return x.list != nil
+}
+
+var (
+ md_QueryAllSuppliersResponse protoreflect.MessageDescriptor
+ fd_QueryAllSuppliersResponse_supplier protoreflect.FieldDescriptor
+ fd_QueryAllSuppliersResponse_pagination protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_supplier_query_proto_init()
+ md_QueryAllSuppliersResponse = File_poktroll_supplier_query_proto.Messages().ByName("QueryAllSuppliersResponse")
+ fd_QueryAllSuppliersResponse_supplier = md_QueryAllSuppliersResponse.Fields().ByName("supplier")
+ fd_QueryAllSuppliersResponse_pagination = md_QueryAllSuppliersResponse.Fields().ByName("pagination")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryAllSuppliersResponse)(nil)
+
+type fastReflection_QueryAllSuppliersResponse QueryAllSuppliersResponse
+
+func (x *QueryAllSuppliersResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryAllSuppliersResponse)(x)
+}
+
+func (x *QueryAllSuppliersResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_supplier_query_proto_msgTypes[5]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryAllSuppliersResponse_messageType fastReflection_QueryAllSuppliersResponse_messageType
+var _ protoreflect.MessageType = fastReflection_QueryAllSuppliersResponse_messageType{}
+
+type fastReflection_QueryAllSuppliersResponse_messageType struct{}
+
+func (x fastReflection_QueryAllSuppliersResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryAllSuppliersResponse)(nil)
+}
+func (x fastReflection_QueryAllSuppliersResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryAllSuppliersResponse)
+}
+func (x fastReflection_QueryAllSuppliersResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryAllSuppliersResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_QueryAllSuppliersResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryAllSuppliersResponse
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_QueryAllSuppliersResponse) Type() protoreflect.MessageType {
+ return _fastReflection_QueryAllSuppliersResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_QueryAllSuppliersResponse) New() protoreflect.Message {
+ return new(fastReflection_QueryAllSuppliersResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_QueryAllSuppliersResponse) Interface() protoreflect.ProtoMessage {
+ return (*QueryAllSuppliersResponse)(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_QueryAllSuppliersResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if len(x.Supplier) != 0 {
+ value := protoreflect.ValueOfList(&_QueryAllSuppliersResponse_1_list{list: &x.Supplier})
+ if !f(fd_QueryAllSuppliersResponse_supplier, value) {
+ return
+ }
+ }
+ if x.Pagination != nil {
+ value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
+ if !f(fd_QueryAllSuppliersResponse_pagination, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_QueryAllSuppliersResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.supplier.QueryAllSuppliersResponse.supplier":
+ return len(x.Supplier) != 0
+ case "poktroll.supplier.QueryAllSuppliersResponse.pagination":
+ return x.Pagination != nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.QueryAllSuppliersResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.QueryAllSuppliersResponse 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_QueryAllSuppliersResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.supplier.QueryAllSuppliersResponse.supplier":
+ x.Supplier = nil
+ case "poktroll.supplier.QueryAllSuppliersResponse.pagination":
+ x.Pagination = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.QueryAllSuppliersResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.QueryAllSuppliersResponse 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_QueryAllSuppliersResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.supplier.QueryAllSuppliersResponse.supplier":
+ if len(x.Supplier) == 0 {
+ return protoreflect.ValueOfList(&_QueryAllSuppliersResponse_1_list{})
+ }
+ listValue := &_QueryAllSuppliersResponse_1_list{list: &x.Supplier}
+ return protoreflect.ValueOfList(listValue)
+ case "poktroll.supplier.QueryAllSuppliersResponse.pagination":
+ value := x.Pagination
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.QueryAllSuppliersResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.QueryAllSuppliersResponse 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_QueryAllSuppliersResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.supplier.QueryAllSuppliersResponse.supplier":
+ lv := value.List()
+ clv := lv.(*_QueryAllSuppliersResponse_1_list)
+ x.Supplier = *clv.list
+ case "poktroll.supplier.QueryAllSuppliersResponse.pagination":
+ x.Pagination = value.Message().Interface().(*v1beta1.PageResponse)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.QueryAllSuppliersResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.QueryAllSuppliersResponse 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_QueryAllSuppliersResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.supplier.QueryAllSuppliersResponse.supplier":
+ if x.Supplier == nil {
+ x.Supplier = []*shared.Supplier{}
+ }
+ value := &_QueryAllSuppliersResponse_1_list{list: &x.Supplier}
+ return protoreflect.ValueOfList(value)
+ case "poktroll.supplier.QueryAllSuppliersResponse.pagination":
+ if x.Pagination == nil {
+ x.Pagination = new(v1beta1.PageResponse)
+ }
+ return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.QueryAllSuppliersResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.QueryAllSuppliersResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_QueryAllSuppliersResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.supplier.QueryAllSuppliersResponse.supplier":
+ list := []*shared.Supplier{}
+ return protoreflect.ValueOfList(&_QueryAllSuppliersResponse_1_list{list: &list})
+ case "poktroll.supplier.QueryAllSuppliersResponse.pagination":
+ m := new(v1beta1.PageResponse)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.QueryAllSuppliersResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.QueryAllSuppliersResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_QueryAllSuppliersResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.supplier.QueryAllSuppliersResponse", 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_QueryAllSuppliersResponse) 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_QueryAllSuppliersResponse) 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_QueryAllSuppliersResponse) 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_QueryAllSuppliersResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryAllSuppliersResponse)
+ 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.Supplier) > 0 {
+ for _, e := range x.Supplier {
+ l = options.Size(e)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ }
+ if x.Pagination != nil {
+ l = options.Size(x.Pagination)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*QueryAllSuppliersResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if x.Pagination != nil {
+ encoded, err := options.Marshal(x.Pagination)
+ if err != nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, err
+ }
+ i -= len(encoded)
+ copy(dAtA[i:], encoded)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if len(x.Supplier) > 0 {
+ for iNdEx := len(x.Supplier) - 1; iNdEx >= 0; iNdEx-- {
+ encoded, err := options.Marshal(x.Supplier[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().(*QueryAllSuppliersResponse)
+ 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: QueryAllSuppliersResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllSuppliersResponse: 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 Supplier", 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.Supplier = append(x.Supplier, &shared.Supplier{})
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Supplier[len(x.Supplier)-1]); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if x.Pagination == nil {
+ x.Pagination = &v1beta1.PageResponse{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.27.0
+// protoc (unknown)
+// source: poktroll/supplier/query.proto
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+// QueryParamsRequest is request type for the Query/Params RPC method.
+type QueryParamsRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+}
+
+func (x *QueryParamsRequest) Reset() {
+ *x = QueryParamsRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_supplier_query_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryParamsRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryParamsRequest) ProtoMessage() {}
+
+// Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead.
+func (*QueryParamsRequest) Descriptor() ([]byte, []int) {
+ return file_poktroll_supplier_query_proto_rawDescGZIP(), []int{0}
+}
+
+// QueryParamsResponse is response type for the Query/Params RPC method.
+type QueryParamsResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // params holds all the parameters of this module.
+ Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
+}
+
+func (x *QueryParamsResponse) Reset() {
+ *x = QueryParamsResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_supplier_query_proto_msgTypes[1]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryParamsResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryParamsResponse) ProtoMessage() {}
+
+// Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead.
+func (*QueryParamsResponse) Descriptor() ([]byte, []int) {
+ return file_poktroll_supplier_query_proto_rawDescGZIP(), []int{1}
+}
+
+func (x *QueryParamsResponse) GetParams() *Params {
+ if x != nil {
+ return x.Params
+ }
+ return nil
+}
+
+type QueryGetSupplierRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
+}
+
+func (x *QueryGetSupplierRequest) Reset() {
+ *x = QueryGetSupplierRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_supplier_query_proto_msgTypes[2]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryGetSupplierRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryGetSupplierRequest) ProtoMessage() {}
+
+// Deprecated: Use QueryGetSupplierRequest.ProtoReflect.Descriptor instead.
+func (*QueryGetSupplierRequest) Descriptor() ([]byte, []int) {
+ return file_poktroll_supplier_query_proto_rawDescGZIP(), []int{2}
+}
+
+func (x *QueryGetSupplierRequest) GetAddress() string {
+ if x != nil {
+ return x.Address
+ }
+ return ""
+}
+
+type QueryGetSupplierResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Supplier *shared.Supplier `protobuf:"bytes,1,opt,name=supplier,proto3" json:"supplier,omitempty"`
+}
+
+func (x *QueryGetSupplierResponse) Reset() {
+ *x = QueryGetSupplierResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_supplier_query_proto_msgTypes[3]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryGetSupplierResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryGetSupplierResponse) ProtoMessage() {}
+
+// Deprecated: Use QueryGetSupplierResponse.ProtoReflect.Descriptor instead.
+func (*QueryGetSupplierResponse) Descriptor() ([]byte, []int) {
+ return file_poktroll_supplier_query_proto_rawDescGZIP(), []int{3}
+}
+
+func (x *QueryGetSupplierResponse) GetSupplier() *shared.Supplier {
+ if x != nil {
+ return x.Supplier
+ }
+ return nil
+}
+
+type QueryAllSuppliersRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
+}
+
+func (x *QueryAllSuppliersRequest) Reset() {
+ *x = QueryAllSuppliersRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_supplier_query_proto_msgTypes[4]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryAllSuppliersRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryAllSuppliersRequest) ProtoMessage() {}
+
+// Deprecated: Use QueryAllSuppliersRequest.ProtoReflect.Descriptor instead.
+func (*QueryAllSuppliersRequest) Descriptor() ([]byte, []int) {
+ return file_poktroll_supplier_query_proto_rawDescGZIP(), []int{4}
+}
+
+func (x *QueryAllSuppliersRequest) GetPagination() *v1beta1.PageRequest {
+ if x != nil {
+ return x.Pagination
+ }
+ return nil
+}
+
+type QueryAllSuppliersResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Supplier []*shared.Supplier `protobuf:"bytes,1,rep,name=supplier,proto3" json:"supplier,omitempty"`
+ Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
+}
+
+func (x *QueryAllSuppliersResponse) Reset() {
+ *x = QueryAllSuppliersResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_supplier_query_proto_msgTypes[5]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryAllSuppliersResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryAllSuppliersResponse) ProtoMessage() {}
+
+// Deprecated: Use QueryAllSuppliersResponse.ProtoReflect.Descriptor instead.
+func (*QueryAllSuppliersResponse) Descriptor() ([]byte, []int) {
+ return file_poktroll_supplier_query_proto_rawDescGZIP(), []int{5}
+}
+
+func (x *QueryAllSuppliersResponse) GetSupplier() []*shared.Supplier {
+ if x != nil {
+ return x.Supplier
+ }
+ return nil
+}
+
+func (x *QueryAllSuppliersResponse) GetPagination() *v1beta1.PageResponse {
+ if x != nil {
+ return x.Pagination
+ }
+ return nil
+}
+
+var File_poktroll_supplier_query_proto protoreflect.FileDescriptor
+
+var file_poktroll_supplier_query_proto_rawDesc = []byte{
+ 0x0a, 0x1d, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x75, 0x70, 0x70, 0x6c,
+ 0x69, 0x65, 0x72, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
+ 0x11, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69,
+ 0x65, 0x72, 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, 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, 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, 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, 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x76, 0x31,
+ 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x63, 0x6f, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
+ 0x1a, 0x1e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x75, 0x70, 0x70, 0x6c,
+ 0x69, 0x65, 0x72, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
+ 0x1a, 0x1e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x65,
+ 0x64, 0x2f, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 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, 0x53, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50,
+ 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3c, 0x0a,
+ 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e,
+ 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65,
+ 0x72, 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, 0x4d, 0x0a, 0x17, 0x51,
+ 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x52,
+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x32, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73,
+ 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73,
+ 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e,
+ 0x67, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x57, 0x0a, 0x18, 0x51, 0x75,
+ 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x52, 0x65,
+ 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3b, 0x0a, 0x08, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69,
+ 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72,
+ 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x53, 0x75, 0x70, 0x70, 0x6c,
+ 0x69, 0x65, 0x72, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x08, 0x73, 0x75, 0x70, 0x70, 0x6c,
+ 0x69, 0x65, 0x72, 0x22, 0x62, 0x0a, 0x18, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x53,
+ 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
+ 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20,
+ 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73,
+ 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e,
+ 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67,
+ 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa1, 0x01, 0x0a, 0x19, 0x51, 0x75, 0x65, 0x72,
+ 0x79, 0x41, 0x6c, 0x6c, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73,
+ 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3b, 0x0a, 0x08, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65,
+ 0x72, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f,
+ 0x6c, 0x6c, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x69,
+ 0x65, 0x72, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x08, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69,
+ 0x65, 0x72, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e,
+ 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e,
+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74,
+ 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52,
+ 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x32, 0xd1, 0x03, 0x0a, 0x05,
+ 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x87, 0x01, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73,
+ 0x12, 0x25, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x75, 0x70, 0x70,
+ 0x6c, 0x69, 0x65, 0x72, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73,
+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f,
+ 0x6c, 0x6c, 0x2e, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x2e, 0x51, 0x75, 0x65, 0x72,
+ 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
+ 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x12, 0x26, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x2d, 0x6e,
+ 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f,
+ 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12,
+ 0x9f, 0x01, 0x0a, 0x08, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x12, 0x2a, 0x2e, 0x70,
+ 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72,
+ 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65,
+ 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72,
+ 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x2e, 0x51, 0x75, 0x65,
+ 0x72, 0x79, 0x47, 0x65, 0x74, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x52, 0x65, 0x73,
+ 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x34, 0x12, 0x32, 0x2f,
+ 0x70, 0x6f, 0x6b, 0x74, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x70, 0x6f, 0x6b,
+ 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x2f, 0x73,
+ 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73,
+ 0x7d, 0x12, 0x9b, 0x01, 0x0a, 0x0c, 0x41, 0x6c, 0x6c, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65,
+ 0x72, 0x73, 0x12, 0x2b, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x75,
+ 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x53,
+ 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
+ 0x2c, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x75, 0x70, 0x70, 0x6c,
+ 0x69, 0x65, 0x72, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x53, 0x75, 0x70, 0x70,
+ 0x6c, 0x69, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x30, 0x82,
+ 0xd3, 0xe4, 0x93, 0x02, 0x2a, 0x12, 0x28, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x2d, 0x6e, 0x65, 0x74,
+ 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x75,
+ 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x2f, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x42,
+ 0xac, 0x01, 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c,
+ 0x2e, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79,
+ 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x22, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73,
+ 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f,
+ 0x6c, 0x6c, 0x2f, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0xa2, 0x02, 0x03, 0x50, 0x53,
+ 0x58, 0xaa, 0x02, 0x11, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x53, 0x75, 0x70,
+ 0x70, 0x6c, 0x69, 0x65, 0x72, 0xca, 0x02, 0x11, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c,
+ 0x5c, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0xe2, 0x02, 0x1d, 0x50, 0x6f, 0x6b, 0x74,
+ 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x5c, 0x47, 0x50,
+ 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x12, 0x50, 0x6f, 0x6b, 0x74,
+ 0x72, 0x6f, 0x6c, 0x6c, 0x3a, 0x3a, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x62, 0x06,
+ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_poktroll_supplier_query_proto_rawDescOnce sync.Once
+ file_poktroll_supplier_query_proto_rawDescData = file_poktroll_supplier_query_proto_rawDesc
+)
+
+func file_poktroll_supplier_query_proto_rawDescGZIP() []byte {
+ file_poktroll_supplier_query_proto_rawDescOnce.Do(func() {
+ file_poktroll_supplier_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_poktroll_supplier_query_proto_rawDescData)
+ })
+ return file_poktroll_supplier_query_proto_rawDescData
+}
+
+var file_poktroll_supplier_query_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
+var file_poktroll_supplier_query_proto_goTypes = []interface{}{
+ (*QueryParamsRequest)(nil), // 0: poktroll.supplier.QueryParamsRequest
+ (*QueryParamsResponse)(nil), // 1: poktroll.supplier.QueryParamsResponse
+ (*QueryGetSupplierRequest)(nil), // 2: poktroll.supplier.QueryGetSupplierRequest
+ (*QueryGetSupplierResponse)(nil), // 3: poktroll.supplier.QueryGetSupplierResponse
+ (*QueryAllSuppliersRequest)(nil), // 4: poktroll.supplier.QueryAllSuppliersRequest
+ (*QueryAllSuppliersResponse)(nil), // 5: poktroll.supplier.QueryAllSuppliersResponse
+ (*Params)(nil), // 6: poktroll.supplier.Params
+ (*shared.Supplier)(nil), // 7: poktroll.shared.Supplier
+ (*v1beta1.PageRequest)(nil), // 8: cosmos.base.query.v1beta1.PageRequest
+ (*v1beta1.PageResponse)(nil), // 9: cosmos.base.query.v1beta1.PageResponse
+}
+var file_poktroll_supplier_query_proto_depIdxs = []int32{
+ 6, // 0: poktroll.supplier.QueryParamsResponse.params:type_name -> poktroll.supplier.Params
+ 7, // 1: poktroll.supplier.QueryGetSupplierResponse.supplier:type_name -> poktroll.shared.Supplier
+ 8, // 2: poktroll.supplier.QueryAllSuppliersRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest
+ 7, // 3: poktroll.supplier.QueryAllSuppliersResponse.supplier:type_name -> poktroll.shared.Supplier
+ 9, // 4: poktroll.supplier.QueryAllSuppliersResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse
+ 0, // 5: poktroll.supplier.Query.Params:input_type -> poktroll.supplier.QueryParamsRequest
+ 2, // 6: poktroll.supplier.Query.Supplier:input_type -> poktroll.supplier.QueryGetSupplierRequest
+ 4, // 7: poktroll.supplier.Query.AllSuppliers:input_type -> poktroll.supplier.QueryAllSuppliersRequest
+ 1, // 8: poktroll.supplier.Query.Params:output_type -> poktroll.supplier.QueryParamsResponse
+ 3, // 9: poktroll.supplier.Query.Supplier:output_type -> poktroll.supplier.QueryGetSupplierResponse
+ 5, // 10: poktroll.supplier.Query.AllSuppliers:output_type -> poktroll.supplier.QueryAllSuppliersResponse
+ 8, // [8:11] is the sub-list for method output_type
+ 5, // [5:8] 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_poktroll_supplier_query_proto_init() }
+func file_poktroll_supplier_query_proto_init() {
+ if File_poktroll_supplier_query_proto != nil {
+ return
+ }
+ file_poktroll_supplier_params_proto_init()
+ if !protoimpl.UnsafeEnabled {
+ file_poktroll_supplier_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryParamsRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_supplier_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryParamsResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_supplier_query_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryGetSupplierRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_supplier_query_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryGetSupplierResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_supplier_query_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryAllSuppliersRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_supplier_query_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryAllSuppliersResponse); 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_poktroll_supplier_query_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 6,
+ NumExtensions: 0,
+ NumServices: 1,
+ },
+ GoTypes: file_poktroll_supplier_query_proto_goTypes,
+ DependencyIndexes: file_poktroll_supplier_query_proto_depIdxs,
+ MessageInfos: file_poktroll_supplier_query_proto_msgTypes,
+ }.Build()
+ File_poktroll_supplier_query_proto = out.File
+ file_poktroll_supplier_query_proto_rawDesc = nil
+ file_poktroll_supplier_query_proto_goTypes = nil
+ file_poktroll_supplier_query_proto_depIdxs = nil
+}
diff --git a/api/poktroll/supplier/tx.pulsar.go b/api/poktroll/supplier/tx.pulsar.go
new file mode 100644
index 000000000..d35e3f491
--- /dev/null
+++ b/api/poktroll/supplier/tx.pulsar.go
@@ -0,0 +1,3097 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package supplier
+
+import (
+ _ "cosmossdk.io/api/amino"
+ v1beta1 "cosmossdk.io/api/cosmos/base/v1beta1"
+ _ "cosmossdk.io/api/cosmos/msg/v1"
+ fmt "fmt"
+ _ "github.com/cosmos/cosmos-proto"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ _ "github.com/cosmos/gogoproto/gogoproto"
+ shared "github.com/pokt-network/poktroll/api/poktroll/shared"
+ 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_MsgUpdateParams protoreflect.MessageDescriptor
+ fd_MsgUpdateParams_authority protoreflect.FieldDescriptor
+ fd_MsgUpdateParams_params protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_supplier_tx_proto_init()
+ md_MsgUpdateParams = File_poktroll_supplier_tx_proto.Messages().ByName("MsgUpdateParams")
+ fd_MsgUpdateParams_authority = md_MsgUpdateParams.Fields().ByName("authority")
+ 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_poktroll_supplier_tx_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_MsgUpdateParams_messageType fastReflection_MsgUpdateParams_messageType
+var _ protoreflect.MessageType = fastReflection_MsgUpdateParams_messageType{}
+
+type fastReflection_MsgUpdateParams_messageType struct{}
+
+func (x fastReflection_MsgUpdateParams_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_MsgUpdateParams)(nil)
+}
+func (x fastReflection_MsgUpdateParams_messageType) New() protoreflect.Message {
+ return new(fastReflection_MsgUpdateParams)
+}
+func (x fastReflection_MsgUpdateParams_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgUpdateParams
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_MsgUpdateParams) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgUpdateParams
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_MsgUpdateParams) Type() protoreflect.MessageType {
+ return _fastReflection_MsgUpdateParams_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_MsgUpdateParams) New() protoreflect.Message {
+ return new(fastReflection_MsgUpdateParams)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_MsgUpdateParams) Interface() protoreflect.ProtoMessage {
+ return (*MsgUpdateParams)(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_MsgUpdateParams) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Authority != "" {
+ value := protoreflect.ValueOfString(x.Authority)
+ if !f(fd_MsgUpdateParams_authority, value) {
+ return
+ }
+ }
+ if x.Params != nil {
+ value := protoreflect.ValueOfMessage(x.Params.ProtoReflect())
+ if !f(fd_MsgUpdateParams_params, 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_MsgUpdateParams) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.supplier.MsgUpdateParams.authority":
+ return x.Authority != ""
+ case "poktroll.supplier.MsgUpdateParams.params":
+ return x.Params != nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.MsgUpdateParams"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.MsgUpdateParams 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_MsgUpdateParams) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.supplier.MsgUpdateParams.authority":
+ x.Authority = ""
+ case "poktroll.supplier.MsgUpdateParams.params":
+ x.Params = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.MsgUpdateParams"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.MsgUpdateParams 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_MsgUpdateParams) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.supplier.MsgUpdateParams.authority":
+ value := x.Authority
+ return protoreflect.ValueOfString(value)
+ case "poktroll.supplier.MsgUpdateParams.params":
+ value := x.Params
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.MsgUpdateParams"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.MsgUpdateParams 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_MsgUpdateParams) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.supplier.MsgUpdateParams.authority":
+ x.Authority = value.Interface().(string)
+ case "poktroll.supplier.MsgUpdateParams.params":
+ x.Params = value.Message().Interface().(*Params)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.MsgUpdateParams"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.MsgUpdateParams 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_MsgUpdateParams) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.supplier.MsgUpdateParams.params":
+ if x.Params == nil {
+ x.Params = new(Params)
+ }
+ return protoreflect.ValueOfMessage(x.Params.ProtoReflect())
+ case "poktroll.supplier.MsgUpdateParams.authority":
+ panic(fmt.Errorf("field authority of message poktroll.supplier.MsgUpdateParams is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.MsgUpdateParams"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.MsgUpdateParams does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// 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 "poktroll.supplier.MsgUpdateParams.authority":
+ return protoreflect.ValueOfString("")
+ case "poktroll.supplier.MsgUpdateParams.params":
+ m := new(Params)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.MsgUpdateParams"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.MsgUpdateParams does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_MsgUpdateParams) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.supplier.MsgUpdateParams", 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_MsgUpdateParams) 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_MsgUpdateParams) 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_MsgUpdateParams) 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_MsgUpdateParams) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*MsgUpdateParams)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Authority)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.Params != nil {
+ l = options.Size(x.Params)
+ 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().(*MsgUpdateParams)
+ 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.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] = 0x12
+ }
+ if len(x.Authority) > 0 {
+ i -= len(x.Authority)
+ copy(dAtA[i:], x.Authority)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority)))
+ i--
+ dAtA[i] = 0xa
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*MsgUpdateParams)
+ 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: MsgUpdateParams: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParams: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Authority = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field 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
+ 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_MsgUpdateParamsResponse protoreflect.MessageDescriptor
+)
+
+func init() {
+ file_poktroll_supplier_tx_proto_init()
+ md_MsgUpdateParamsResponse = File_poktroll_supplier_tx_proto.Messages().ByName("MsgUpdateParamsResponse")
+}
+
+var _ protoreflect.Message = (*fastReflection_MsgUpdateParamsResponse)(nil)
+
+type fastReflection_MsgUpdateParamsResponse MsgUpdateParamsResponse
+
+func (x *MsgUpdateParamsResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_MsgUpdateParamsResponse)(x)
+}
+
+func (x *MsgUpdateParamsResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_supplier_tx_proto_msgTypes[1]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_MsgUpdateParamsResponse_messageType fastReflection_MsgUpdateParamsResponse_messageType
+var _ protoreflect.MessageType = fastReflection_MsgUpdateParamsResponse_messageType{}
+
+type fastReflection_MsgUpdateParamsResponse_messageType struct{}
+
+func (x fastReflection_MsgUpdateParamsResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_MsgUpdateParamsResponse)(nil)
+}
+func (x fastReflection_MsgUpdateParamsResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_MsgUpdateParamsResponse)
+}
+func (x fastReflection_MsgUpdateParamsResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgUpdateParamsResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_MsgUpdateParamsResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgUpdateParamsResponse
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_MsgUpdateParamsResponse) Type() protoreflect.MessageType {
+ return _fastReflection_MsgUpdateParamsResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_MsgUpdateParamsResponse) New() protoreflect.Message {
+ return new(fastReflection_MsgUpdateParamsResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_MsgUpdateParamsResponse) Interface() protoreflect.ProtoMessage {
+ return (*MsgUpdateParamsResponse)(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_MsgUpdateParamsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_MsgUpdateParamsResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.MsgUpdateParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.MsgUpdateParamsResponse 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_MsgUpdateParamsResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.MsgUpdateParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.MsgUpdateParamsResponse 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_MsgUpdateParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.MsgUpdateParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.MsgUpdateParamsResponse 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_MsgUpdateParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.MsgUpdateParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.MsgUpdateParamsResponse 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_MsgUpdateParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.MsgUpdateParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.MsgUpdateParamsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_MsgUpdateParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.MsgUpdateParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.MsgUpdateParamsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_MsgUpdateParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.supplier.MsgUpdateParamsResponse", 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_MsgUpdateParamsResponse) 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_MsgUpdateParamsResponse) 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_MsgUpdateParamsResponse) 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_MsgUpdateParamsResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*MsgUpdateParamsResponse)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*MsgUpdateParamsResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*MsgUpdateParamsResponse)
+ 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: MsgUpdateParamsResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var _ protoreflect.List = (*_MsgStakeSupplier_3_list)(nil)
+
+type _MsgStakeSupplier_3_list struct {
+ list *[]*shared.SupplierServiceConfig
+}
+
+func (x *_MsgStakeSupplier_3_list) Len() int {
+ if x.list == nil {
+ return 0
+ }
+ return len(*x.list)
+}
+
+func (x *_MsgStakeSupplier_3_list) Get(i int) protoreflect.Value {
+ return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
+}
+
+func (x *_MsgStakeSupplier_3_list) Set(i int, value protoreflect.Value) {
+ valueUnwrapped := value.Message()
+ concreteValue := valueUnwrapped.Interface().(*shared.SupplierServiceConfig)
+ (*x.list)[i] = concreteValue
+}
+
+func (x *_MsgStakeSupplier_3_list) Append(value protoreflect.Value) {
+ valueUnwrapped := value.Message()
+ concreteValue := valueUnwrapped.Interface().(*shared.SupplierServiceConfig)
+ *x.list = append(*x.list, concreteValue)
+}
+
+func (x *_MsgStakeSupplier_3_list) AppendMutable() protoreflect.Value {
+ v := new(shared.SupplierServiceConfig)
+ *x.list = append(*x.list, v)
+ return protoreflect.ValueOfMessage(v.ProtoReflect())
+}
+
+func (x *_MsgStakeSupplier_3_list) Truncate(n int) {
+ for i := n; i < len(*x.list); i++ {
+ (*x.list)[i] = nil
+ }
+ *x.list = (*x.list)[:n]
+}
+
+func (x *_MsgStakeSupplier_3_list) NewElement() protoreflect.Value {
+ v := new(shared.SupplierServiceConfig)
+ return protoreflect.ValueOfMessage(v.ProtoReflect())
+}
+
+func (x *_MsgStakeSupplier_3_list) IsValid() bool {
+ return x.list != nil
+}
+
+var (
+ md_MsgStakeSupplier protoreflect.MessageDescriptor
+ fd_MsgStakeSupplier_address protoreflect.FieldDescriptor
+ fd_MsgStakeSupplier_stake protoreflect.FieldDescriptor
+ fd_MsgStakeSupplier_services protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_supplier_tx_proto_init()
+ md_MsgStakeSupplier = File_poktroll_supplier_tx_proto.Messages().ByName("MsgStakeSupplier")
+ fd_MsgStakeSupplier_address = md_MsgStakeSupplier.Fields().ByName("address")
+ fd_MsgStakeSupplier_stake = md_MsgStakeSupplier.Fields().ByName("stake")
+ fd_MsgStakeSupplier_services = md_MsgStakeSupplier.Fields().ByName("services")
+}
+
+var _ protoreflect.Message = (*fastReflection_MsgStakeSupplier)(nil)
+
+type fastReflection_MsgStakeSupplier MsgStakeSupplier
+
+func (x *MsgStakeSupplier) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_MsgStakeSupplier)(x)
+}
+
+func (x *MsgStakeSupplier) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_supplier_tx_proto_msgTypes[2]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_MsgStakeSupplier_messageType fastReflection_MsgStakeSupplier_messageType
+var _ protoreflect.MessageType = fastReflection_MsgStakeSupplier_messageType{}
+
+type fastReflection_MsgStakeSupplier_messageType struct{}
+
+func (x fastReflection_MsgStakeSupplier_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_MsgStakeSupplier)(nil)
+}
+func (x fastReflection_MsgStakeSupplier_messageType) New() protoreflect.Message {
+ return new(fastReflection_MsgStakeSupplier)
+}
+func (x fastReflection_MsgStakeSupplier_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgStakeSupplier
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_MsgStakeSupplier) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgStakeSupplier
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_MsgStakeSupplier) Type() protoreflect.MessageType {
+ return _fastReflection_MsgStakeSupplier_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_MsgStakeSupplier) New() protoreflect.Message {
+ return new(fastReflection_MsgStakeSupplier)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_MsgStakeSupplier) Interface() protoreflect.ProtoMessage {
+ return (*MsgStakeSupplier)(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_MsgStakeSupplier) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Address != "" {
+ value := protoreflect.ValueOfString(x.Address)
+ if !f(fd_MsgStakeSupplier_address, value) {
+ return
+ }
+ }
+ if x.Stake != nil {
+ value := protoreflect.ValueOfMessage(x.Stake.ProtoReflect())
+ if !f(fd_MsgStakeSupplier_stake, value) {
+ return
+ }
+ }
+ if len(x.Services) != 0 {
+ value := protoreflect.ValueOfList(&_MsgStakeSupplier_3_list{list: &x.Services})
+ if !f(fd_MsgStakeSupplier_services, 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_MsgStakeSupplier) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.supplier.MsgStakeSupplier.address":
+ return x.Address != ""
+ case "poktroll.supplier.MsgStakeSupplier.stake":
+ return x.Stake != nil
+ case "poktroll.supplier.MsgStakeSupplier.services":
+ return len(x.Services) != 0
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.MsgStakeSupplier"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.MsgStakeSupplier 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_MsgStakeSupplier) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.supplier.MsgStakeSupplier.address":
+ x.Address = ""
+ case "poktroll.supplier.MsgStakeSupplier.stake":
+ x.Stake = nil
+ case "poktroll.supplier.MsgStakeSupplier.services":
+ x.Services = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.MsgStakeSupplier"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.MsgStakeSupplier 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_MsgStakeSupplier) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.supplier.MsgStakeSupplier.address":
+ value := x.Address
+ return protoreflect.ValueOfString(value)
+ case "poktroll.supplier.MsgStakeSupplier.stake":
+ value := x.Stake
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ case "poktroll.supplier.MsgStakeSupplier.services":
+ if len(x.Services) == 0 {
+ return protoreflect.ValueOfList(&_MsgStakeSupplier_3_list{})
+ }
+ listValue := &_MsgStakeSupplier_3_list{list: &x.Services}
+ return protoreflect.ValueOfList(listValue)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.MsgStakeSupplier"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.MsgStakeSupplier 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_MsgStakeSupplier) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.supplier.MsgStakeSupplier.address":
+ x.Address = value.Interface().(string)
+ case "poktroll.supplier.MsgStakeSupplier.stake":
+ x.Stake = value.Message().Interface().(*v1beta1.Coin)
+ case "poktroll.supplier.MsgStakeSupplier.services":
+ lv := value.List()
+ clv := lv.(*_MsgStakeSupplier_3_list)
+ x.Services = *clv.list
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.MsgStakeSupplier"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.MsgStakeSupplier 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_MsgStakeSupplier) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.supplier.MsgStakeSupplier.stake":
+ if x.Stake == nil {
+ x.Stake = new(v1beta1.Coin)
+ }
+ return protoreflect.ValueOfMessage(x.Stake.ProtoReflect())
+ case "poktroll.supplier.MsgStakeSupplier.services":
+ if x.Services == nil {
+ x.Services = []*shared.SupplierServiceConfig{}
+ }
+ value := &_MsgStakeSupplier_3_list{list: &x.Services}
+ return protoreflect.ValueOfList(value)
+ case "poktroll.supplier.MsgStakeSupplier.address":
+ panic(fmt.Errorf("field address of message poktroll.supplier.MsgStakeSupplier is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.MsgStakeSupplier"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.MsgStakeSupplier does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_MsgStakeSupplier) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.supplier.MsgStakeSupplier.address":
+ return protoreflect.ValueOfString("")
+ case "poktroll.supplier.MsgStakeSupplier.stake":
+ m := new(v1beta1.Coin)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ case "poktroll.supplier.MsgStakeSupplier.services":
+ list := []*shared.SupplierServiceConfig{}
+ return protoreflect.ValueOfList(&_MsgStakeSupplier_3_list{list: &list})
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.MsgStakeSupplier"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.MsgStakeSupplier does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_MsgStakeSupplier) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.supplier.MsgStakeSupplier", 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_MsgStakeSupplier) 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_MsgStakeSupplier) 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_MsgStakeSupplier) 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_MsgStakeSupplier) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*MsgStakeSupplier)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Address)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.Stake != nil {
+ l = options.Size(x.Stake)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if len(x.Services) > 0 {
+ for _, e := range x.Services {
+ 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().(*MsgStakeSupplier)
+ 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.Services) > 0 {
+ for iNdEx := len(x.Services) - 1; iNdEx >= 0; iNdEx-- {
+ encoded, err := options.Marshal(x.Services[iNdEx])
+ if err != nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, err
+ }
+ i -= len(encoded)
+ copy(dAtA[i:], encoded)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
+ i--
+ dAtA[i] = 0x1a
+ }
+ }
+ if x.Stake != nil {
+ encoded, err := options.Marshal(x.Stake)
+ if err != nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, err
+ }
+ i -= len(encoded)
+ copy(dAtA[i:], encoded)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if len(x.Address) > 0 {
+ i -= len(x.Address)
+ copy(dAtA[i:], x.Address)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address)))
+ i--
+ dAtA[i] = 0xa
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*MsgStakeSupplier)
+ 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: MsgStakeSupplier: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgStakeSupplier: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Address = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Stake", 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.Stake == nil {
+ x.Stake = &v1beta1.Coin{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Stake); 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 Services", 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.Services = append(x.Services, &shared.SupplierServiceConfig{})
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Services[len(x.Services)-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_MsgStakeSupplierResponse protoreflect.MessageDescriptor
+)
+
+func init() {
+ file_poktroll_supplier_tx_proto_init()
+ md_MsgStakeSupplierResponse = File_poktroll_supplier_tx_proto.Messages().ByName("MsgStakeSupplierResponse")
+}
+
+var _ protoreflect.Message = (*fastReflection_MsgStakeSupplierResponse)(nil)
+
+type fastReflection_MsgStakeSupplierResponse MsgStakeSupplierResponse
+
+func (x *MsgStakeSupplierResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_MsgStakeSupplierResponse)(x)
+}
+
+func (x *MsgStakeSupplierResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_supplier_tx_proto_msgTypes[3]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_MsgStakeSupplierResponse_messageType fastReflection_MsgStakeSupplierResponse_messageType
+var _ protoreflect.MessageType = fastReflection_MsgStakeSupplierResponse_messageType{}
+
+type fastReflection_MsgStakeSupplierResponse_messageType struct{}
+
+func (x fastReflection_MsgStakeSupplierResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_MsgStakeSupplierResponse)(nil)
+}
+func (x fastReflection_MsgStakeSupplierResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_MsgStakeSupplierResponse)
+}
+func (x fastReflection_MsgStakeSupplierResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgStakeSupplierResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_MsgStakeSupplierResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgStakeSupplierResponse
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_MsgStakeSupplierResponse) Type() protoreflect.MessageType {
+ return _fastReflection_MsgStakeSupplierResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_MsgStakeSupplierResponse) New() protoreflect.Message {
+ return new(fastReflection_MsgStakeSupplierResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_MsgStakeSupplierResponse) Interface() protoreflect.ProtoMessage {
+ return (*MsgStakeSupplierResponse)(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_MsgStakeSupplierResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_MsgStakeSupplierResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.MsgStakeSupplierResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.MsgStakeSupplierResponse 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_MsgStakeSupplierResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.MsgStakeSupplierResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.MsgStakeSupplierResponse 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_MsgStakeSupplierResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.MsgStakeSupplierResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.MsgStakeSupplierResponse 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_MsgStakeSupplierResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.MsgStakeSupplierResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.MsgStakeSupplierResponse 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_MsgStakeSupplierResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.MsgStakeSupplierResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.MsgStakeSupplierResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_MsgStakeSupplierResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.MsgStakeSupplierResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.MsgStakeSupplierResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_MsgStakeSupplierResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.supplier.MsgStakeSupplierResponse", 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_MsgStakeSupplierResponse) 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_MsgStakeSupplierResponse) 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_MsgStakeSupplierResponse) 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_MsgStakeSupplierResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*MsgStakeSupplierResponse)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*MsgStakeSupplierResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*MsgStakeSupplierResponse)
+ 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: MsgStakeSupplierResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgStakeSupplierResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_MsgUnstakeSupplier protoreflect.MessageDescriptor
+ fd_MsgUnstakeSupplier_address protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_supplier_tx_proto_init()
+ md_MsgUnstakeSupplier = File_poktroll_supplier_tx_proto.Messages().ByName("MsgUnstakeSupplier")
+ fd_MsgUnstakeSupplier_address = md_MsgUnstakeSupplier.Fields().ByName("address")
+}
+
+var _ protoreflect.Message = (*fastReflection_MsgUnstakeSupplier)(nil)
+
+type fastReflection_MsgUnstakeSupplier MsgUnstakeSupplier
+
+func (x *MsgUnstakeSupplier) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_MsgUnstakeSupplier)(x)
+}
+
+func (x *MsgUnstakeSupplier) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_supplier_tx_proto_msgTypes[4]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_MsgUnstakeSupplier_messageType fastReflection_MsgUnstakeSupplier_messageType
+var _ protoreflect.MessageType = fastReflection_MsgUnstakeSupplier_messageType{}
+
+type fastReflection_MsgUnstakeSupplier_messageType struct{}
+
+func (x fastReflection_MsgUnstakeSupplier_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_MsgUnstakeSupplier)(nil)
+}
+func (x fastReflection_MsgUnstakeSupplier_messageType) New() protoreflect.Message {
+ return new(fastReflection_MsgUnstakeSupplier)
+}
+func (x fastReflection_MsgUnstakeSupplier_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgUnstakeSupplier
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_MsgUnstakeSupplier) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgUnstakeSupplier
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_MsgUnstakeSupplier) Type() protoreflect.MessageType {
+ return _fastReflection_MsgUnstakeSupplier_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_MsgUnstakeSupplier) New() protoreflect.Message {
+ return new(fastReflection_MsgUnstakeSupplier)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_MsgUnstakeSupplier) Interface() protoreflect.ProtoMessage {
+ return (*MsgUnstakeSupplier)(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_MsgUnstakeSupplier) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Address != "" {
+ value := protoreflect.ValueOfString(x.Address)
+ if !f(fd_MsgUnstakeSupplier_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_MsgUnstakeSupplier) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.supplier.MsgUnstakeSupplier.address":
+ return x.Address != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.MsgUnstakeSupplier"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.MsgUnstakeSupplier 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_MsgUnstakeSupplier) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.supplier.MsgUnstakeSupplier.address":
+ x.Address = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.MsgUnstakeSupplier"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.MsgUnstakeSupplier 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_MsgUnstakeSupplier) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.supplier.MsgUnstakeSupplier.address":
+ value := x.Address
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.MsgUnstakeSupplier"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.MsgUnstakeSupplier 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_MsgUnstakeSupplier) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.supplier.MsgUnstakeSupplier.address":
+ x.Address = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.MsgUnstakeSupplier"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.MsgUnstakeSupplier 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_MsgUnstakeSupplier) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.supplier.MsgUnstakeSupplier.address":
+ panic(fmt.Errorf("field address of message poktroll.supplier.MsgUnstakeSupplier is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.MsgUnstakeSupplier"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.MsgUnstakeSupplier does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_MsgUnstakeSupplier) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.supplier.MsgUnstakeSupplier.address":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.MsgUnstakeSupplier"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.MsgUnstakeSupplier does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_MsgUnstakeSupplier) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.supplier.MsgUnstakeSupplier", 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_MsgUnstakeSupplier) 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_MsgUnstakeSupplier) 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_MsgUnstakeSupplier) 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_MsgUnstakeSupplier) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*MsgUnstakeSupplier)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Address)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*MsgUnstakeSupplier)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Address) > 0 {
+ i -= len(x.Address)
+ copy(dAtA[i:], x.Address)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address)))
+ i--
+ dAtA[i] = 0xa
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*MsgUnstakeSupplier)
+ 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: MsgUnstakeSupplier: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUnstakeSupplier: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Address = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_MsgUnstakeSupplierResponse protoreflect.MessageDescriptor
+)
+
+func init() {
+ file_poktroll_supplier_tx_proto_init()
+ md_MsgUnstakeSupplierResponse = File_poktroll_supplier_tx_proto.Messages().ByName("MsgUnstakeSupplierResponse")
+}
+
+var _ protoreflect.Message = (*fastReflection_MsgUnstakeSupplierResponse)(nil)
+
+type fastReflection_MsgUnstakeSupplierResponse MsgUnstakeSupplierResponse
+
+func (x *MsgUnstakeSupplierResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_MsgUnstakeSupplierResponse)(x)
+}
+
+func (x *MsgUnstakeSupplierResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_supplier_tx_proto_msgTypes[5]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_MsgUnstakeSupplierResponse_messageType fastReflection_MsgUnstakeSupplierResponse_messageType
+var _ protoreflect.MessageType = fastReflection_MsgUnstakeSupplierResponse_messageType{}
+
+type fastReflection_MsgUnstakeSupplierResponse_messageType struct{}
+
+func (x fastReflection_MsgUnstakeSupplierResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_MsgUnstakeSupplierResponse)(nil)
+}
+func (x fastReflection_MsgUnstakeSupplierResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_MsgUnstakeSupplierResponse)
+}
+func (x fastReflection_MsgUnstakeSupplierResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgUnstakeSupplierResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_MsgUnstakeSupplierResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgUnstakeSupplierResponse
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_MsgUnstakeSupplierResponse) Type() protoreflect.MessageType {
+ return _fastReflection_MsgUnstakeSupplierResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_MsgUnstakeSupplierResponse) New() protoreflect.Message {
+ return new(fastReflection_MsgUnstakeSupplierResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_MsgUnstakeSupplierResponse) Interface() protoreflect.ProtoMessage {
+ return (*MsgUnstakeSupplierResponse)(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_MsgUnstakeSupplierResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_MsgUnstakeSupplierResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.MsgUnstakeSupplierResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.MsgUnstakeSupplierResponse 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_MsgUnstakeSupplierResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.MsgUnstakeSupplierResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.MsgUnstakeSupplierResponse 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_MsgUnstakeSupplierResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.MsgUnstakeSupplierResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.MsgUnstakeSupplierResponse 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_MsgUnstakeSupplierResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.MsgUnstakeSupplierResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.MsgUnstakeSupplierResponse 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_MsgUnstakeSupplierResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.MsgUnstakeSupplierResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.MsgUnstakeSupplierResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_MsgUnstakeSupplierResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.supplier.MsgUnstakeSupplierResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.supplier.MsgUnstakeSupplierResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_MsgUnstakeSupplierResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.supplier.MsgUnstakeSupplierResponse", 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_MsgUnstakeSupplierResponse) 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_MsgUnstakeSupplierResponse) 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_MsgUnstakeSupplierResponse) 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_MsgUnstakeSupplierResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*MsgUnstakeSupplierResponse)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*MsgUnstakeSupplierResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*MsgUnstakeSupplierResponse)
+ 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: MsgUnstakeSupplierResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUnstakeSupplierResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.27.0
+// protoc (unknown)
+// source: poktroll/supplier/tx.proto
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+// MsgUpdateParams is the Msg/UpdateParams request type.
+type MsgUpdateParams struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // authority is the address that controls the module (defaults to x/gov unless overwritten).
+ Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
+ // params defines the x/supplier parameters to update.
+ // NOTE: All parameters must be supplied.
+ Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"`
+}
+
+func (x *MsgUpdateParams) Reset() {
+ *x = MsgUpdateParams{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_supplier_tx_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *MsgUpdateParams) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*MsgUpdateParams) ProtoMessage() {}
+
+// Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead.
+func (*MsgUpdateParams) Descriptor() ([]byte, []int) {
+ return file_poktroll_supplier_tx_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *MsgUpdateParams) GetAuthority() string {
+ if x != nil {
+ return x.Authority
+ }
+ return ""
+}
+
+func (x *MsgUpdateParams) GetParams() *Params {
+ if x != nil {
+ return x.Params
+ }
+ return nil
+}
+
+// MsgUpdateParamsResponse defines the response structure for executing a
+// MsgUpdateParams message.
+type MsgUpdateParamsResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+}
+
+func (x *MsgUpdateParamsResponse) Reset() {
+ *x = MsgUpdateParamsResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_supplier_tx_proto_msgTypes[1]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *MsgUpdateParamsResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*MsgUpdateParamsResponse) ProtoMessage() {}
+
+// Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead.
+func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) {
+ return file_poktroll_supplier_tx_proto_rawDescGZIP(), []int{1}
+}
+
+type MsgStakeSupplier struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // The Bech32 address of the supplier using cosmos' ScalarDescriptor to ensure deterministic deterministic encoding using cosmos' ScalarDescriptor to ensure deterministic deterministic encoding
+ Stake *v1beta1.Coin `protobuf:"bytes,2,opt,name=stake,proto3" json:"stake,omitempty"` // The total amount of uPOKT the supplier has staked. Must be ≥ to the current amount that the supplier has staked (if any)
+ Services []*shared.SupplierServiceConfig `protobuf:"bytes,3,rep,name=services,proto3" json:"services,omitempty"` // The list of services this supplier is staked to provide service for
+}
+
+func (x *MsgStakeSupplier) Reset() {
+ *x = MsgStakeSupplier{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_supplier_tx_proto_msgTypes[2]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *MsgStakeSupplier) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*MsgStakeSupplier) ProtoMessage() {}
+
+// Deprecated: Use MsgStakeSupplier.ProtoReflect.Descriptor instead.
+func (*MsgStakeSupplier) Descriptor() ([]byte, []int) {
+ return file_poktroll_supplier_tx_proto_rawDescGZIP(), []int{2}
+}
+
+func (x *MsgStakeSupplier) GetAddress() string {
+ if x != nil {
+ return x.Address
+ }
+ return ""
+}
+
+func (x *MsgStakeSupplier) GetStake() *v1beta1.Coin {
+ if x != nil {
+ return x.Stake
+ }
+ return nil
+}
+
+func (x *MsgStakeSupplier) GetServices() []*shared.SupplierServiceConfig {
+ if x != nil {
+ return x.Services
+ }
+ return nil
+}
+
+type MsgStakeSupplierResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+}
+
+func (x *MsgStakeSupplierResponse) Reset() {
+ *x = MsgStakeSupplierResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_supplier_tx_proto_msgTypes[3]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *MsgStakeSupplierResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*MsgStakeSupplierResponse) ProtoMessage() {}
+
+// Deprecated: Use MsgStakeSupplierResponse.ProtoReflect.Descriptor instead.
+func (*MsgStakeSupplierResponse) Descriptor() ([]byte, []int) {
+ return file_poktroll_supplier_tx_proto_rawDescGZIP(), []int{3}
+}
+
+type MsgUnstakeSupplier struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // The Bech32 address of the supplier using cosmos' ScalarDescriptor to ensure deterministic deterministic encoding using cosmos' ScalarDescriptor to ensure deterministic deterministic encoding
+}
+
+func (x *MsgUnstakeSupplier) Reset() {
+ *x = MsgUnstakeSupplier{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_supplier_tx_proto_msgTypes[4]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *MsgUnstakeSupplier) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*MsgUnstakeSupplier) ProtoMessage() {}
+
+// Deprecated: Use MsgUnstakeSupplier.ProtoReflect.Descriptor instead.
+func (*MsgUnstakeSupplier) Descriptor() ([]byte, []int) {
+ return file_poktroll_supplier_tx_proto_rawDescGZIP(), []int{4}
+}
+
+func (x *MsgUnstakeSupplier) GetAddress() string {
+ if x != nil {
+ return x.Address
+ }
+ return ""
+}
+
+type MsgUnstakeSupplierResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+}
+
+func (x *MsgUnstakeSupplierResponse) Reset() {
+ *x = MsgUnstakeSupplierResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_supplier_tx_proto_msgTypes[5]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *MsgUnstakeSupplierResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*MsgUnstakeSupplierResponse) ProtoMessage() {}
+
+// Deprecated: Use MsgUnstakeSupplierResponse.ProtoReflect.Descriptor instead.
+func (*MsgUnstakeSupplierResponse) Descriptor() ([]byte, []int) {
+ return file_poktroll_supplier_tx_proto_rawDescGZIP(), []int{5}
+}
+
+var File_poktroll_supplier_tx_proto protoreflect.FileDescriptor
+
+var file_poktroll_supplier_tx_proto_rawDesc = []byte{
+ 0x0a, 0x1a, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x75, 0x70, 0x70, 0x6c,
+ 0x69, 0x65, 0x72, 0x2f, 0x74, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x11, 0x70, 0x6f,
+ 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x1a,
+ 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f,
+ 0x74, 0x6f, 0x1a, 0x17, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x6d, 0x73, 0x67, 0x2f, 0x76,
+ 0x31, 0x2f, 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 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, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74,
+ 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x63, 0x6f,
+ 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61,
+ 0x31, 0x2f, 0x63, 0x6f, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x70, 0x6f,
+ 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x2f,
+ 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x70, 0x6f,
+ 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2f, 0x73, 0x65,
+ 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xbf, 0x01, 0x0a, 0x0f,
+ 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12,
+ 0x36, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01,
+ 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41,
+ 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x61, 0x75,
+ 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x3c, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d,
+ 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f,
+ 0x6c, 0x6c, 0x2e, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 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, 0x3a, 0x36, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68,
+ 0x6f, 0x72, 0x69, 0x74, 0x79, 0x8a, 0xe7, 0xb0, 0x2a, 0x23, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f,
+ 0x6c, 0x6c, 0x2f, 0x78, 0x2f, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x2f, 0x4d, 0x73,
+ 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x19, 0x0a,
+ 0x17, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73,
+ 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xc9, 0x01, 0x0a, 0x10, 0x4d, 0x73, 0x67,
+ 0x53, 0x74, 0x61, 0x6b, 0x65, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x12, 0x32, 0x0a,
+ 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18,
+ 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65,
+ 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73,
+ 0x73, 0x12, 0x2f, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
+ 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
+ 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x52, 0x05, 0x73, 0x74, 0x61,
+ 0x6b, 0x65, 0x12, 0x42, 0x0a, 0x08, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x18, 0x03,
+ 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e,
+ 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x53,
+ 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x08, 0x73, 0x65,
+ 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x61, 0x64, 0x64,
+ 0x72, 0x65, 0x73, 0x73, 0x22, 0x1a, 0x0a, 0x18, 0x4d, 0x73, 0x67, 0x53, 0x74, 0x61, 0x6b, 0x65,
+ 0x53, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
+ 0x22, 0x56, 0x0a, 0x12, 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x53, 0x75,
+ 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x12, 0x32, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73,
+ 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73,
+ 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e,
+ 0x67, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a,
+ 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x1c, 0x0a, 0x1a, 0x4d, 0x73, 0x67, 0x55,
+ 0x6e, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x52, 0x65,
+ 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xb8, 0x02, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x5e,
+ 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x22,
+ 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69,
+ 0x65, 0x72, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61,
+ 0x6d, 0x73, 0x1a, 0x2a, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x75,
+ 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 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, 0x61,
+ 0x0a, 0x0d, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x12,
+ 0x23, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x75, 0x70, 0x70, 0x6c,
+ 0x69, 0x65, 0x72, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x53, 0x75, 0x70, 0x70,
+ 0x6c, 0x69, 0x65, 0x72, 0x1a, 0x2b, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e,
+ 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x74, 0x61, 0x6b,
+ 0x65, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
+ 0x65, 0x12, 0x67, 0x0a, 0x0f, 0x55, 0x6e, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x53, 0x75, 0x70, 0x70,
+ 0x6c, 0x69, 0x65, 0x72, 0x12, 0x25, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e,
+ 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x73, 0x74,
+ 0x61, 0x6b, 0x65, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x1a, 0x2d, 0x2e, 0x70, 0x6f,
+ 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x2e,
+ 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x69,
+ 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a,
+ 0x01, 0x42, 0xa9, 0x01, 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f,
+ 0x6c, 0x6c, 0x2e, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x42, 0x07, 0x54, 0x78, 0x50,
+ 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x22, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64,
+ 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c,
+ 0x6c, 0x2f, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0xa2, 0x02, 0x03, 0x50, 0x53, 0x58,
+ 0xaa, 0x02, 0x11, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x53, 0x75, 0x70, 0x70,
+ 0x6c, 0x69, 0x65, 0x72, 0xca, 0x02, 0x11, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c,
+ 0x53, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0xe2, 0x02, 0x1d, 0x50, 0x6f, 0x6b, 0x74, 0x72,
+ 0x6f, 0x6c, 0x6c, 0x5c, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x5c, 0x47, 0x50, 0x42,
+ 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x12, 0x50, 0x6f, 0x6b, 0x74, 0x72,
+ 0x6f, 0x6c, 0x6c, 0x3a, 0x3a, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x62, 0x06, 0x70,
+ 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_poktroll_supplier_tx_proto_rawDescOnce sync.Once
+ file_poktroll_supplier_tx_proto_rawDescData = file_poktroll_supplier_tx_proto_rawDesc
+)
+
+func file_poktroll_supplier_tx_proto_rawDescGZIP() []byte {
+ file_poktroll_supplier_tx_proto_rawDescOnce.Do(func() {
+ file_poktroll_supplier_tx_proto_rawDescData = protoimpl.X.CompressGZIP(file_poktroll_supplier_tx_proto_rawDescData)
+ })
+ return file_poktroll_supplier_tx_proto_rawDescData
+}
+
+var file_poktroll_supplier_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
+var file_poktroll_supplier_tx_proto_goTypes = []interface{}{
+ (*MsgUpdateParams)(nil), // 0: poktroll.supplier.MsgUpdateParams
+ (*MsgUpdateParamsResponse)(nil), // 1: poktroll.supplier.MsgUpdateParamsResponse
+ (*MsgStakeSupplier)(nil), // 2: poktroll.supplier.MsgStakeSupplier
+ (*MsgStakeSupplierResponse)(nil), // 3: poktroll.supplier.MsgStakeSupplierResponse
+ (*MsgUnstakeSupplier)(nil), // 4: poktroll.supplier.MsgUnstakeSupplier
+ (*MsgUnstakeSupplierResponse)(nil), // 5: poktroll.supplier.MsgUnstakeSupplierResponse
+ (*Params)(nil), // 6: poktroll.supplier.Params
+ (*v1beta1.Coin)(nil), // 7: cosmos.base.v1beta1.Coin
+ (*shared.SupplierServiceConfig)(nil), // 8: poktroll.shared.SupplierServiceConfig
+}
+var file_poktroll_supplier_tx_proto_depIdxs = []int32{
+ 6, // 0: poktroll.supplier.MsgUpdateParams.params:type_name -> poktroll.supplier.Params
+ 7, // 1: poktroll.supplier.MsgStakeSupplier.stake:type_name -> cosmos.base.v1beta1.Coin
+ 8, // 2: poktroll.supplier.MsgStakeSupplier.services:type_name -> poktroll.shared.SupplierServiceConfig
+ 0, // 3: poktroll.supplier.Msg.UpdateParams:input_type -> poktroll.supplier.MsgUpdateParams
+ 2, // 4: poktroll.supplier.Msg.StakeSupplier:input_type -> poktroll.supplier.MsgStakeSupplier
+ 4, // 5: poktroll.supplier.Msg.UnstakeSupplier:input_type -> poktroll.supplier.MsgUnstakeSupplier
+ 1, // 6: poktroll.supplier.Msg.UpdateParams:output_type -> poktroll.supplier.MsgUpdateParamsResponse
+ 3, // 7: poktroll.supplier.Msg.StakeSupplier:output_type -> poktroll.supplier.MsgStakeSupplierResponse
+ 5, // 8: poktroll.supplier.Msg.UnstakeSupplier:output_type -> poktroll.supplier.MsgUnstakeSupplierResponse
+ 6, // [6:9] is the sub-list for method output_type
+ 3, // [3:6] 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_poktroll_supplier_tx_proto_init() }
+func file_poktroll_supplier_tx_proto_init() {
+ if File_poktroll_supplier_tx_proto != nil {
+ return
+ }
+ file_poktroll_supplier_params_proto_init()
+ if !protoimpl.UnsafeEnabled {
+ file_poktroll_supplier_tx_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*MsgUpdateParams); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_supplier_tx_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*MsgUpdateParamsResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_supplier_tx_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*MsgStakeSupplier); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_supplier_tx_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*MsgStakeSupplierResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_supplier_tx_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*MsgUnstakeSupplier); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_supplier_tx_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*MsgUnstakeSupplierResponse); 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_poktroll_supplier_tx_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 6,
+ NumExtensions: 0,
+ NumServices: 1,
+ },
+ GoTypes: file_poktroll_supplier_tx_proto_goTypes,
+ DependencyIndexes: file_poktroll_supplier_tx_proto_depIdxs,
+ MessageInfos: file_poktroll_supplier_tx_proto_msgTypes,
+ }.Build()
+ File_poktroll_supplier_tx_proto = out.File
+ file_poktroll_supplier_tx_proto_rawDesc = nil
+ file_poktroll_supplier_tx_proto_goTypes = nil
+ file_poktroll_supplier_tx_proto_depIdxs = nil
+}
diff --git a/api/poktroll/tokenomics/genesis.pulsar.go b/api/poktroll/tokenomics/genesis.pulsar.go
new file mode 100644
index 000000000..be0862e09
--- /dev/null
+++ b/api/poktroll/tokenomics/genesis.pulsar.go
@@ -0,0 +1,597 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package tokenomics
+
+import (
+ _ "cosmossdk.io/api/amino"
+ 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_GenesisState protoreflect.MessageDescriptor
+ fd_GenesisState_params protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_tokenomics_genesis_proto_init()
+ md_GenesisState = File_poktroll_tokenomics_genesis_proto.Messages().ByName("GenesisState")
+ fd_GenesisState_params = md_GenesisState.Fields().ByName("params")
+}
+
+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_poktroll_tokenomics_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
+ }
+ }
+}
+
+// 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 "poktroll.tokenomics.GenesisState.params":
+ return x.Params != nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.tokenomics.GenesisState"))
+ }
+ panic(fmt.Errorf("message poktroll.tokenomics.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 "poktroll.tokenomics.GenesisState.params":
+ x.Params = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.tokenomics.GenesisState"))
+ }
+ panic(fmt.Errorf("message poktroll.tokenomics.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 "poktroll.tokenomics.GenesisState.params":
+ value := x.Params
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.tokenomics.GenesisState"))
+ }
+ panic(fmt.Errorf("message poktroll.tokenomics.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 "poktroll.tokenomics.GenesisState.params":
+ x.Params = value.Message().Interface().(*Params)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.tokenomics.GenesisState"))
+ }
+ panic(fmt.Errorf("message poktroll.tokenomics.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 "poktroll.tokenomics.GenesisState.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: poktroll.tokenomics.GenesisState"))
+ }
+ panic(fmt.Errorf("message poktroll.tokenomics.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 "poktroll.tokenomics.GenesisState.params":
+ m := new(Params)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.tokenomics.GenesisState"))
+ }
+ panic(fmt.Errorf("message poktroll.tokenomics.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 poktroll.tokenomics.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.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 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
+ 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: poktroll/tokenomics/genesis.proto
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+// GenesisState defines the tokenomics module's genesis state.
+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"`
+}
+
+func (x *GenesisState) Reset() {
+ *x = GenesisState{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_tokenomics_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_poktroll_tokenomics_genesis_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *GenesisState) GetParams() *Params {
+ if x != nil {
+ return x.Params
+ }
+ return nil
+}
+
+var File_poktroll_tokenomics_genesis_proto protoreflect.FileDescriptor
+
+var file_poktroll_tokenomics_genesis_proto_rawDesc = []byte{
+ 0x0a, 0x21, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
+ 0x6f, 0x6d, 0x69, 0x63, 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x2e, 0x70, 0x72,
+ 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x74, 0x6f,
+ 0x6b, 0x65, 0x6e, 0x6f, 0x6d, 0x69, 0x63, 0x73, 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, 0x20, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x74, 0x6f, 0x6b, 0x65,
+ 0x6e, 0x6f, 0x6d, 0x69, 0x63, 0x73, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72,
+ 0x6f, 0x74, 0x6f, 0x22, 0x4e, 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74,
+ 0x61, 0x74, 0x65, 0x12, 0x3e, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20,
+ 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x74,
+ 0x6f, 0x6b, 0x65, 0x6e, 0x6f, 0x6d, 0x69, 0x63, 0x73, 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, 0x42, 0xba, 0x01, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x6f, 0x6b, 0x74,
+ 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x6f, 0x6d, 0x69, 0x63, 0x73, 0x42,
+ 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a,
+ 0x24, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70,
+ 0x69, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
+ 0x6f, 0x6d, 0x69, 0x63, 0x73, 0xa2, 0x02, 0x03, 0x50, 0x54, 0x58, 0xaa, 0x02, 0x13, 0x50, 0x6f,
+ 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x6f, 0x6d, 0x69, 0x63,
+ 0x73, 0xca, 0x02, 0x13, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x54, 0x6f, 0x6b,
+ 0x65, 0x6e, 0x6f, 0x6d, 0x69, 0x63, 0x73, 0xe2, 0x02, 0x1f, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f,
+ 0x6c, 0x6c, 0x5c, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x6f, 0x6d, 0x69, 0x63, 0x73, 0x5c, 0x47, 0x50,
+ 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x14, 0x50, 0x6f, 0x6b, 0x74,
+ 0x72, 0x6f, 0x6c, 0x6c, 0x3a, 0x3a, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x6f, 0x6d, 0x69, 0x63, 0x73,
+ 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_poktroll_tokenomics_genesis_proto_rawDescOnce sync.Once
+ file_poktroll_tokenomics_genesis_proto_rawDescData = file_poktroll_tokenomics_genesis_proto_rawDesc
+)
+
+func file_poktroll_tokenomics_genesis_proto_rawDescGZIP() []byte {
+ file_poktroll_tokenomics_genesis_proto_rawDescOnce.Do(func() {
+ file_poktroll_tokenomics_genesis_proto_rawDescData = protoimpl.X.CompressGZIP(file_poktroll_tokenomics_genesis_proto_rawDescData)
+ })
+ return file_poktroll_tokenomics_genesis_proto_rawDescData
+}
+
+var file_poktroll_tokenomics_genesis_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
+var file_poktroll_tokenomics_genesis_proto_goTypes = []interface{}{
+ (*GenesisState)(nil), // 0: poktroll.tokenomics.GenesisState
+ (*Params)(nil), // 1: poktroll.tokenomics.Params
+}
+var file_poktroll_tokenomics_genesis_proto_depIdxs = []int32{
+ 1, // 0: poktroll.tokenomics.GenesisState.params:type_name -> poktroll.tokenomics.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
+}
+
+func init() { file_poktroll_tokenomics_genesis_proto_init() }
+func file_poktroll_tokenomics_genesis_proto_init() {
+ if File_poktroll_tokenomics_genesis_proto != nil {
+ return
+ }
+ file_poktroll_tokenomics_params_proto_init()
+ if !protoimpl.UnsafeEnabled {
+ file_poktroll_tokenomics_genesis_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GenesisState); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_poktroll_tokenomics_genesis_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 1,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_poktroll_tokenomics_genesis_proto_goTypes,
+ DependencyIndexes: file_poktroll_tokenomics_genesis_proto_depIdxs,
+ MessageInfos: file_poktroll_tokenomics_genesis_proto_msgTypes,
+ }.Build()
+ File_poktroll_tokenomics_genesis_proto = out.File
+ file_poktroll_tokenomics_genesis_proto_rawDesc = nil
+ file_poktroll_tokenomics_genesis_proto_goTypes = nil
+ file_poktroll_tokenomics_genesis_proto_depIdxs = nil
+}
diff --git a/api/poktroll/tokenomics/module/module.pulsar.go b/api/poktroll/tokenomics/module/module.pulsar.go
new file mode 100644
index 000000000..cbfd9f6fd
--- /dev/null
+++ b/api/poktroll/tokenomics/module/module.pulsar.go
@@ -0,0 +1,580 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package module
+
+import (
+ _ "cosmossdk.io/api/cosmos/app/v1alpha1"
+ fmt "fmt"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoiface "google.golang.org/protobuf/runtime/protoiface"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ io "io"
+ reflect "reflect"
+ sync "sync"
+)
+
+var (
+ md_Module protoreflect.MessageDescriptor
+ fd_Module_authority protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_tokenomics_module_module_proto_init()
+ md_Module = File_poktroll_tokenomics_module_module_proto.Messages().ByName("Module")
+ fd_Module_authority = md_Module.Fields().ByName("authority")
+}
+
+var _ protoreflect.Message = (*fastReflection_Module)(nil)
+
+type fastReflection_Module Module
+
+func (x *Module) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_Module)(x)
+}
+
+func (x *Module) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_tokenomics_module_module_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_Module_messageType fastReflection_Module_messageType
+var _ protoreflect.MessageType = fastReflection_Module_messageType{}
+
+type fastReflection_Module_messageType struct{}
+
+func (x fastReflection_Module_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_Module)(nil)
+}
+func (x fastReflection_Module_messageType) New() protoreflect.Message {
+ return new(fastReflection_Module)
+}
+func (x fastReflection_Module_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_Module
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_Module) Descriptor() protoreflect.MessageDescriptor {
+ return md_Module
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_Module) Type() protoreflect.MessageType {
+ return _fastReflection_Module_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_Module) New() protoreflect.Message {
+ return new(fastReflection_Module)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_Module) Interface() protoreflect.ProtoMessage {
+ return (*Module)(x)
+}
+
+// Range iterates over every populated field in an undefined order,
+// calling f for each field descriptor and value encountered.
+// Range returns immediately if f returns false.
+// While iterating, mutating operations may only be performed
+// on the current field descriptor.
+func (x *fastReflection_Module) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Authority != "" {
+ value := protoreflect.ValueOfString(x.Authority)
+ if !f(fd_Module_authority, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_Module) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.tokenomics.module.Module.authority":
+ return x.Authority != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.tokenomics.module.Module"))
+ }
+ panic(fmt.Errorf("message poktroll.tokenomics.module.Module does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Module) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.tokenomics.module.Module.authority":
+ x.Authority = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.tokenomics.module.Module"))
+ }
+ panic(fmt.Errorf("message poktroll.tokenomics.module.Module does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_Module) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.tokenomics.module.Module.authority":
+ value := x.Authority
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.tokenomics.module.Module"))
+ }
+ panic(fmt.Errorf("message poktroll.tokenomics.module.Module does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Module) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.tokenomics.module.Module.authority":
+ x.Authority = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.tokenomics.module.Module"))
+ }
+ panic(fmt.Errorf("message poktroll.tokenomics.module.Module does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Module) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.tokenomics.module.Module.authority":
+ panic(fmt.Errorf("field authority of message poktroll.tokenomics.module.Module is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.tokenomics.module.Module"))
+ }
+ panic(fmt.Errorf("message poktroll.tokenomics.module.Module does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_Module) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.tokenomics.module.Module.authority":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.tokenomics.module.Module"))
+ }
+ panic(fmt.Errorf("message poktroll.tokenomics.module.Module does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_Module) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.tokenomics.module.Module", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_Module) GetUnknown() protoreflect.RawFields {
+ return x.unknownFields
+}
+
+// SetUnknown stores an entire list of unknown fields.
+// The raw fields must be syntactically valid according to the wire format.
+// An implementation may panic if this is not the case.
+// Once stored, the caller must not mutate the content of the RawFields.
+// An empty RawFields may be passed to clear the fields.
+//
+// SetUnknown is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Module) SetUnknown(fields protoreflect.RawFields) {
+ x.unknownFields = fields
+}
+
+// IsValid reports whether the message is valid.
+//
+// An invalid message is an empty, read-only value.
+//
+// An invalid message often corresponds to a nil pointer of the concrete
+// message type, but the details are implementation dependent.
+// Validity is not part of the protobuf data model, and may not
+// be preserved in marshaling or other operations.
+func (x *fastReflection_Module) IsValid() bool {
+ return x != nil
+}
+
+// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
+// This method may return nil.
+//
+// The returned methods type is identical to
+// "google.golang.org/protobuf/runtime/protoiface".Methods.
+// Consult the protoiface package documentation for details.
+func (x *fastReflection_Module) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*Module)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Authority)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*Module)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Authority) > 0 {
+ i -= len(x.Authority)
+ copy(dAtA[i:], x.Authority)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority)))
+ i--
+ dAtA[i] = 0xa
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*Module)
+ if x == nil {
+ return protoiface.UnmarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Flags: input.Flags,
+ }, nil
+ }
+ options := runtime.UnmarshalInputToOptions(input)
+ _ = options
+ dAtA := input.Buf
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Module: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Module: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Authority = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.27.0
+// protoc (unknown)
+// source: poktroll/tokenomics/module/module.proto
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+// Module is the config object for the module.
+type Module struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // authority defines the custom module authority. If not set, defaults to the governance module.
+ Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
+}
+
+func (x *Module) Reset() {
+ *x = Module{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_tokenomics_module_module_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *Module) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*Module) ProtoMessage() {}
+
+// Deprecated: Use Module.ProtoReflect.Descriptor instead.
+func (*Module) Descriptor() ([]byte, []int) {
+ return file_poktroll_tokenomics_module_module_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *Module) GetAuthority() string {
+ if x != nil {
+ return x.Authority
+ }
+ return ""
+}
+
+var File_poktroll_tokenomics_module_module_proto protoreflect.FileDescriptor
+
+var file_poktroll_tokenomics_module_module_proto_rawDesc = []byte{
+ 0x0a, 0x27, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
+ 0x6f, 0x6d, 0x69, 0x63, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2f, 0x6d, 0x6f, 0x64,
+ 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x70, 0x6f, 0x6b, 0x74, 0x72,
+ 0x6f, 0x6c, 0x6c, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x6f, 0x6d, 0x69, 0x63, 0x73, 0x2e, 0x6d,
+ 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x1a, 0x20, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x61, 0x70,
+ 0x70, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c,
+ 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x5d, 0x0a, 0x06, 0x4d, 0x6f, 0x64, 0x75, 0x6c,
+ 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x3a,
+ 0x35, 0xba, 0xc0, 0x96, 0xda, 0x01, 0x2f, 0x0a, 0x2d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e,
+ 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b,
+ 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x78, 0x2f, 0x74, 0x6f, 0x6b, 0x65,
+ 0x6e, 0x6f, 0x6d, 0x69, 0x63, 0x73, 0x42, 0xe4, 0x01, 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x2e, 0x70,
+ 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x6f, 0x6d, 0x69,
+ 0x63, 0x73, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x42, 0x0b, 0x4d, 0x6f, 0x64, 0x75, 0x6c,
+ 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73,
+ 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72,
+ 0x6f, 0x6c, 0x6c, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x6f, 0x6d, 0x69, 0x63, 0x73, 0x2f, 0x6d,
+ 0x6f, 0x64, 0x75, 0x6c, 0x65, 0xa2, 0x02, 0x03, 0x50, 0x54, 0x4d, 0xaa, 0x02, 0x1a, 0x50, 0x6f,
+ 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x6f, 0x6d, 0x69, 0x63,
+ 0x73, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0xca, 0x02, 0x1a, 0x50, 0x6f, 0x6b, 0x74, 0x72,
+ 0x6f, 0x6c, 0x6c, 0x5c, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x6f, 0x6d, 0x69, 0x63, 0x73, 0x5c, 0x4d,
+ 0x6f, 0x64, 0x75, 0x6c, 0x65, 0xe2, 0x02, 0x26, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c,
+ 0x5c, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x6f, 0x6d, 0x69, 0x63, 0x73, 0x5c, 0x4d, 0x6f, 0x64, 0x75,
+ 0x6c, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02,
+ 0x1c, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x3a, 0x3a, 0x54, 0x6f, 0x6b, 0x65, 0x6e,
+ 0x6f, 0x6d, 0x69, 0x63, 0x73, 0x3a, 0x3a, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x62, 0x06, 0x70,
+ 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_poktroll_tokenomics_module_module_proto_rawDescOnce sync.Once
+ file_poktroll_tokenomics_module_module_proto_rawDescData = file_poktroll_tokenomics_module_module_proto_rawDesc
+)
+
+func file_poktroll_tokenomics_module_module_proto_rawDescGZIP() []byte {
+ file_poktroll_tokenomics_module_module_proto_rawDescOnce.Do(func() {
+ file_poktroll_tokenomics_module_module_proto_rawDescData = protoimpl.X.CompressGZIP(file_poktroll_tokenomics_module_module_proto_rawDescData)
+ })
+ return file_poktroll_tokenomics_module_module_proto_rawDescData
+}
+
+var file_poktroll_tokenomics_module_module_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
+var file_poktroll_tokenomics_module_module_proto_goTypes = []interface{}{
+ (*Module)(nil), // 0: poktroll.tokenomics.module.Module
+}
+var file_poktroll_tokenomics_module_module_proto_depIdxs = []int32{
+ 0, // [0:0] is the sub-list for method output_type
+ 0, // [0:0] is the sub-list for method input_type
+ 0, // [0:0] is the sub-list for extension type_name
+ 0, // [0:0] is the sub-list for extension extendee
+ 0, // [0:0] is the sub-list for field type_name
+}
+
+func init() { file_poktroll_tokenomics_module_module_proto_init() }
+func file_poktroll_tokenomics_module_module_proto_init() {
+ if File_poktroll_tokenomics_module_module_proto != nil {
+ return
+ }
+ if !protoimpl.UnsafeEnabled {
+ file_poktroll_tokenomics_module_module_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*Module); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_poktroll_tokenomics_module_module_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 1,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_poktroll_tokenomics_module_module_proto_goTypes,
+ DependencyIndexes: file_poktroll_tokenomics_module_module_proto_depIdxs,
+ MessageInfos: file_poktroll_tokenomics_module_module_proto_msgTypes,
+ }.Build()
+ File_poktroll_tokenomics_module_module_proto = out.File
+ file_poktroll_tokenomics_module_module_proto_rawDesc = nil
+ file_poktroll_tokenomics_module_module_proto_goTypes = nil
+ file_poktroll_tokenomics_module_module_proto_depIdxs = nil
+}
diff --git a/api/poktroll/tokenomics/params.pulsar.go b/api/poktroll/tokenomics/params.pulsar.go
new file mode 100644
index 000000000..2d6e71ad8
--- /dev/null
+++ b/api/poktroll/tokenomics/params.pulsar.go
@@ -0,0 +1,569 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package tokenomics
+
+import (
+ _ "cosmossdk.io/api/amino"
+ 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_Params protoreflect.MessageDescriptor
+ fd_Params_compute_units_to_tokens_multiplier protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_tokenomics_params_proto_init()
+ md_Params = File_poktroll_tokenomics_params_proto.Messages().ByName("Params")
+ fd_Params_compute_units_to_tokens_multiplier = md_Params.Fields().ByName("compute_units_to_tokens_multiplier")
+}
+
+var _ protoreflect.Message = (*fastReflection_Params)(nil)
+
+type fastReflection_Params Params
+
+func (x *Params) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_Params)(x)
+}
+
+func (x *Params) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_tokenomics_params_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_Params_messageType fastReflection_Params_messageType
+var _ protoreflect.MessageType = fastReflection_Params_messageType{}
+
+type fastReflection_Params_messageType struct{}
+
+func (x fastReflection_Params_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_Params)(nil)
+}
+func (x fastReflection_Params_messageType) New() protoreflect.Message {
+ return new(fastReflection_Params)
+}
+func (x fastReflection_Params_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_Params
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_Params) Descriptor() protoreflect.MessageDescriptor {
+ return md_Params
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_Params) Type() protoreflect.MessageType {
+ return _fastReflection_Params_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_Params) New() protoreflect.Message {
+ return new(fastReflection_Params)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_Params) Interface() protoreflect.ProtoMessage {
+ return (*Params)(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_Params) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.ComputeUnitsToTokensMultiplier != uint64(0) {
+ value := protoreflect.ValueOfUint64(x.ComputeUnitsToTokensMultiplier)
+ if !f(fd_Params_compute_units_to_tokens_multiplier, 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_Params) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.tokenomics.Params.compute_units_to_tokens_multiplier":
+ return x.ComputeUnitsToTokensMultiplier != uint64(0)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.tokenomics.Params"))
+ }
+ panic(fmt.Errorf("message poktroll.tokenomics.Params 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_Params) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.tokenomics.Params.compute_units_to_tokens_multiplier":
+ x.ComputeUnitsToTokensMultiplier = uint64(0)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.tokenomics.Params"))
+ }
+ panic(fmt.Errorf("message poktroll.tokenomics.Params 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_Params) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.tokenomics.Params.compute_units_to_tokens_multiplier":
+ value := x.ComputeUnitsToTokensMultiplier
+ return protoreflect.ValueOfUint64(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.tokenomics.Params"))
+ }
+ panic(fmt.Errorf("message poktroll.tokenomics.Params 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_Params) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.tokenomics.Params.compute_units_to_tokens_multiplier":
+ x.ComputeUnitsToTokensMultiplier = value.Uint()
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.tokenomics.Params"))
+ }
+ panic(fmt.Errorf("message poktroll.tokenomics.Params 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_Params) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.tokenomics.Params.compute_units_to_tokens_multiplier":
+ panic(fmt.Errorf("field compute_units_to_tokens_multiplier of message poktroll.tokenomics.Params is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.tokenomics.Params"))
+ }
+ panic(fmt.Errorf("message poktroll.tokenomics.Params does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// 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 "poktroll.tokenomics.Params.compute_units_to_tokens_multiplier":
+ return protoreflect.ValueOfUint64(uint64(0))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.tokenomics.Params"))
+ }
+ panic(fmt.Errorf("message poktroll.tokenomics.Params does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_Params) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.tokenomics.Params", 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_Params) 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_Params) 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_Params) 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_Params) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*Params)
+ 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.ComputeUnitsToTokensMultiplier != 0 {
+ n += 1 + runtime.Sov(uint64(x.ComputeUnitsToTokensMultiplier))
+ }
+ 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().(*Params)
+ 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.ComputeUnitsToTokensMultiplier != 0 {
+ i = runtime.EncodeVarint(dAtA, i, uint64(x.ComputeUnitsToTokensMultiplier))
+ 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().(*Params)
+ 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: Params: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Params: 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 ComputeUnitsToTokensMultiplier", wireType)
+ }
+ x.ComputeUnitsToTokensMultiplier = 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.ComputeUnitsToTokensMultiplier |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.27.0
+// protoc (unknown)
+// source: poktroll/tokenomics/params.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)
+)
+
+// TODO_DOCUMENT(@Olshansk): Document all of the on-chain governance parameters.
+// Params defines the parameters for the tokenomics module.
+type Params struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // The amount of upokt that a compute unit should translate to when settling a session.
+ // TODO_DOCUMENT(@Olshansk): Make sure to document the units of this parameter (or the map) once finalized.
+ ComputeUnitsToTokensMultiplier uint64 `protobuf:"varint,1,opt,name=compute_units_to_tokens_multiplier,json=computeUnitsToTokensMultiplier,proto3" json:"compute_units_to_tokens_multiplier,omitempty"`
+}
+
+func (x *Params) Reset() {
+ *x = Params{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_tokenomics_params_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *Params) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*Params) ProtoMessage() {}
+
+// Deprecated: Use Params.ProtoReflect.Descriptor instead.
+func (*Params) Descriptor() ([]byte, []int) {
+ return file_poktroll_tokenomics_params_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *Params) GetComputeUnitsToTokensMultiplier() uint64 {
+ if x != nil {
+ return x.ComputeUnitsToTokensMultiplier
+ }
+ return 0
+}
+
+var File_poktroll_tokenomics_params_proto protoreflect.FileDescriptor
+
+var file_poktroll_tokenomics_params_proto_rawDesc = []byte{
+ 0x0a, 0x20, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
+ 0x6f, 0x6d, 0x69, 0x63, 0x73, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f,
+ 0x74, 0x6f, 0x12, 0x13, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x74, 0x6f, 0x6b,
+ 0x65, 0x6e, 0x6f, 0x6d, 0x69, 0x63, 0x73, 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, 0xaa, 0x01, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x79, 0x0a, 0x22, 0x63,
+ 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x73, 0x5f, 0x74, 0x6f, 0x5f,
+ 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x5f, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x69, 0x65,
+ 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x42, 0x2d, 0xf2, 0xde, 0x1f, 0x29, 0x79, 0x61, 0x6d,
+ 0x6c, 0x3a, 0x22, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x73,
+ 0x5f, 0x74, 0x6f, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x5f, 0x6d, 0x75, 0x6c, 0x74, 0x69,
+ 0x70, 0x6c, 0x69, 0x65, 0x72, 0x22, 0x52, 0x1e, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x55,
+ 0x6e, 0x69, 0x74, 0x73, 0x54, 0x6f, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x4d, 0x75, 0x6c, 0x74,
+ 0x69, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x3a, 0x25, 0xe8, 0xa0, 0x1f, 0x01, 0x8a, 0xe7, 0xb0, 0x2a,
+ 0x1c, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x78, 0x2f, 0x74, 0x6f, 0x6b, 0x65,
+ 0x6e, 0x6f, 0x6d, 0x69, 0x63, 0x73, 0x2f, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0xb9, 0x01,
+ 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x74,
+ 0x6f, 0x6b, 0x65, 0x6e, 0x6f, 0x6d, 0x69, 0x63, 0x73, 0x42, 0x0b, 0x50, 0x61, 0x72, 0x61, 0x6d,
+ 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x24, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73,
+ 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72,
+ 0x6f, 0x6c, 0x6c, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x6f, 0x6d, 0x69, 0x63, 0x73, 0xa2, 0x02,
+ 0x03, 0x50, 0x54, 0x58, 0xaa, 0x02, 0x13, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e,
+ 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x6f, 0x6d, 0x69, 0x63, 0x73, 0xca, 0x02, 0x13, 0x50, 0x6f, 0x6b,
+ 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x6f, 0x6d, 0x69, 0x63, 0x73,
+ 0xe2, 0x02, 0x1f, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x54, 0x6f, 0x6b, 0x65,
+ 0x6e, 0x6f, 0x6d, 0x69, 0x63, 0x73, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61,
+ 0x74, 0x61, 0xea, 0x02, 0x14, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x3a, 0x3a, 0x54,
+ 0x6f, 0x6b, 0x65, 0x6e, 0x6f, 0x6d, 0x69, 0x63, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
+ 0x33,
+}
+
+var (
+ file_poktroll_tokenomics_params_proto_rawDescOnce sync.Once
+ file_poktroll_tokenomics_params_proto_rawDescData = file_poktroll_tokenomics_params_proto_rawDesc
+)
+
+func file_poktroll_tokenomics_params_proto_rawDescGZIP() []byte {
+ file_poktroll_tokenomics_params_proto_rawDescOnce.Do(func() {
+ file_poktroll_tokenomics_params_proto_rawDescData = protoimpl.X.CompressGZIP(file_poktroll_tokenomics_params_proto_rawDescData)
+ })
+ return file_poktroll_tokenomics_params_proto_rawDescData
+}
+
+var file_poktroll_tokenomics_params_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
+var file_poktroll_tokenomics_params_proto_goTypes = []interface{}{
+ (*Params)(nil), // 0: poktroll.tokenomics.Params
+}
+var file_poktroll_tokenomics_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
+ 0, // [0:0] is the sub-list for extension extendee
+ 0, // [0:0] is the sub-list for field type_name
+}
+
+func init() { file_poktroll_tokenomics_params_proto_init() }
+func file_poktroll_tokenomics_params_proto_init() {
+ if File_poktroll_tokenomics_params_proto != nil {
+ return
+ }
+ if !protoimpl.UnsafeEnabled {
+ file_poktroll_tokenomics_params_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*Params); 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_poktroll_tokenomics_params_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 1,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_poktroll_tokenomics_params_proto_goTypes,
+ DependencyIndexes: file_poktroll_tokenomics_params_proto_depIdxs,
+ MessageInfos: file_poktroll_tokenomics_params_proto_msgTypes,
+ }.Build()
+ File_poktroll_tokenomics_params_proto = out.File
+ file_poktroll_tokenomics_params_proto_rawDesc = nil
+ file_poktroll_tokenomics_params_proto_goTypes = nil
+ file_poktroll_tokenomics_params_proto_depIdxs = nil
+}
diff --git a/api/poktroll/tokenomics/query.pulsar.go b/api/poktroll/tokenomics/query.pulsar.go
new file mode 100644
index 000000000..e55219bc1
--- /dev/null
+++ b/api/poktroll/tokenomics/query.pulsar.go
@@ -0,0 +1,1009 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package tokenomics
+
+import (
+ _ "cosmossdk.io/api/amino"
+ fmt "fmt"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ _ "github.com/cosmos/gogoproto/gogoproto"
+ _ "google.golang.org/genproto/googleapis/api/annotations"
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoiface "google.golang.org/protobuf/runtime/protoiface"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ io "io"
+ reflect "reflect"
+ sync "sync"
+)
+
+var (
+ md_QueryParamsRequest protoreflect.MessageDescriptor
+)
+
+func init() {
+ file_poktroll_tokenomics_query_proto_init()
+ md_QueryParamsRequest = File_poktroll_tokenomics_query_proto.Messages().ByName("QueryParamsRequest")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryParamsRequest)(nil)
+
+type fastReflection_QueryParamsRequest QueryParamsRequest
+
+func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryParamsRequest)(x)
+}
+
+func (x *QueryParamsRequest) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_tokenomics_query_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryParamsRequest_messageType fastReflection_QueryParamsRequest_messageType
+var _ protoreflect.MessageType = fastReflection_QueryParamsRequest_messageType{}
+
+type fastReflection_QueryParamsRequest_messageType struct{}
+
+func (x fastReflection_QueryParamsRequest_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryParamsRequest)(nil)
+}
+func (x fastReflection_QueryParamsRequest_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryParamsRequest)
+}
+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_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_QueryParamsRequest) Type() protoreflect.MessageType {
+ return _fastReflection_QueryParamsRequest_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+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_QueryParamsRequest) Interface() protoreflect.ProtoMessage {
+ return (*QueryParamsRequest)(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_QueryParamsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_QueryParamsRequest) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.tokenomics.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.tokenomics.QueryParamsRequest 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_QueryParamsRequest) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.tokenomics.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.tokenomics.QueryParamsRequest 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_QueryParamsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.tokenomics.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.tokenomics.QueryParamsRequest 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_QueryParamsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.tokenomics.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.tokenomics.QueryParamsRequest 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_QueryParamsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.tokenomics.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.tokenomics.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_QueryParamsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.tokenomics.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.tokenomics.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_QueryParamsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.tokenomics.QueryParamsRequest", 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_QueryParamsRequest) 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_QueryParamsRequest) 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_QueryParamsRequest) 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_QueryParamsRequest) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryParamsRequest)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*QueryParamsRequest)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*QueryParamsRequest)
+ 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: QueryParamsRequest: 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)
+ }
+ switch fieldNum {
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_QueryParamsResponse protoreflect.MessageDescriptor
+ fd_QueryParamsResponse_params protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_tokenomics_query_proto_init()
+ md_QueryParamsResponse = File_poktroll_tokenomics_query_proto.Messages().ByName("QueryParamsResponse")
+ fd_QueryParamsResponse_params = md_QueryParamsResponse.Fields().ByName("params")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryParamsResponse)(nil)
+
+type fastReflection_QueryParamsResponse QueryParamsResponse
+
+func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryParamsResponse)(x)
+}
+
+func (x *QueryParamsResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_tokenomics_query_proto_msgTypes[1]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryParamsResponse_messageType fastReflection_QueryParamsResponse_messageType
+var _ protoreflect.MessageType = fastReflection_QueryParamsResponse_messageType{}
+
+type fastReflection_QueryParamsResponse_messageType struct{}
+
+func (x fastReflection_QueryParamsResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryParamsResponse)(nil)
+}
+func (x fastReflection_QueryParamsResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryParamsResponse)
+}
+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_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_QueryParamsResponse) Type() protoreflect.MessageType {
+ return _fastReflection_QueryParamsResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+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_QueryParamsResponse) Interface() protoreflect.ProtoMessage {
+ return (*QueryParamsResponse)(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_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
+ }
+ }
+}
+
+// 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_QueryParamsResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.tokenomics.QueryParamsResponse.params":
+ return x.Params != nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.tokenomics.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.tokenomics.QueryParamsResponse 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_QueryParamsResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.tokenomics.QueryParamsResponse.params":
+ x.Params = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.tokenomics.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.tokenomics.QueryParamsResponse 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_QueryParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.tokenomics.QueryParamsResponse.params":
+ value := x.Params
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.tokenomics.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.tokenomics.QueryParamsResponse 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_QueryParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.tokenomics.QueryParamsResponse.params":
+ x.Params = value.Message().Interface().(*Params)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.tokenomics.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.tokenomics.QueryParamsResponse 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_QueryParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.tokenomics.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: poktroll.tokenomics.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.tokenomics.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_QueryParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.tokenomics.QueryParamsResponse.params":
+ m := new(Params)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.tokenomics.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.tokenomics.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_QueryParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.tokenomics.QueryParamsResponse", 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_QueryParamsResponse) 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_QueryParamsResponse) 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_QueryParamsResponse) 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_QueryParamsResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryParamsResponse)
+ 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.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().(*QueryParamsResponse)
+ 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.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().(*QueryParamsResponse)
+ 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: QueryParamsResponse: 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)
+ }
+ 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
+ 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: poktroll/tokenomics/query.proto
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+// QueryParamsRequest is request type for the Query/Params RPC method.
+type QueryParamsRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+}
+
+func (x *QueryParamsRequest) Reset() {
+ *x = QueryParamsRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_tokenomics_query_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryParamsRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryParamsRequest) ProtoMessage() {}
+
+// Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead.
+func (*QueryParamsRequest) Descriptor() ([]byte, []int) {
+ return file_poktroll_tokenomics_query_proto_rawDescGZIP(), []int{0}
+}
+
+// QueryParamsResponse is response type for the Query/Params RPC method.
+type QueryParamsResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // params holds all the parameters of this module.
+ Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
+}
+
+func (x *QueryParamsResponse) Reset() {
+ *x = QueryParamsResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_tokenomics_query_proto_msgTypes[1]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryParamsResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryParamsResponse) ProtoMessage() {}
+
+// Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead.
+func (*QueryParamsResponse) Descriptor() ([]byte, []int) {
+ return file_poktroll_tokenomics_query_proto_rawDescGZIP(), []int{1}
+}
+
+func (x *QueryParamsResponse) GetParams() *Params {
+ if x != nil {
+ return x.Params
+ }
+ return nil
+}
+
+var File_poktroll_tokenomics_query_proto protoreflect.FileDescriptor
+
+var file_poktroll_tokenomics_query_proto_rawDesc = []byte{
+ 0x0a, 0x1f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
+ 0x6f, 0x6d, 0x69, 0x63, 0x73, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74,
+ 0x6f, 0x12, 0x13, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x74, 0x6f, 0x6b, 0x65,
+ 0x6e, 0x6f, 0x6d, 0x69, 0x63, 0x73, 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,
+ 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, 0x20, 0x70,
+ 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x6f, 0x6d, 0x69,
+ 0x63, 0x73, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,
+ 0x14, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65,
+ 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x55, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61,
+ 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3e, 0x0a, 0x06,
+ 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70,
+ 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x6f, 0x6d, 0x69,
+ 0x63, 0x73, 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, 0x32, 0x97, 0x01, 0x0a,
+ 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x8d, 0x01, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d,
+ 0x73, 0x12, 0x27, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x74, 0x6f, 0x6b,
+ 0x65, 0x6e, 0x6f, 0x6d, 0x69, 0x63, 0x73, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72,
+ 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x70, 0x6f, 0x6b,
+ 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x6f, 0x6d, 0x69, 0x63, 0x73,
+ 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70,
+ 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x30, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2a, 0x12, 0x28, 0x2f, 0x70,
+ 0x6f, 0x6b, 0x74, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x70, 0x6f, 0x6b, 0x74,
+ 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x6f, 0x6d, 0x69, 0x63, 0x73, 0x2f,
+ 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0xb8, 0x01, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x70,
+ 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x6f, 0x6d, 0x69,
+ 0x63, 0x73, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01,
+ 0x5a, 0x24, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61,
+ 0x70, 0x69, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x74, 0x6f, 0x6b, 0x65,
+ 0x6e, 0x6f, 0x6d, 0x69, 0x63, 0x73, 0xa2, 0x02, 0x03, 0x50, 0x54, 0x58, 0xaa, 0x02, 0x13, 0x50,
+ 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x6f, 0x6d, 0x69,
+ 0x63, 0x73, 0xca, 0x02, 0x13, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x54, 0x6f,
+ 0x6b, 0x65, 0x6e, 0x6f, 0x6d, 0x69, 0x63, 0x73, 0xe2, 0x02, 0x1f, 0x50, 0x6f, 0x6b, 0x74, 0x72,
+ 0x6f, 0x6c, 0x6c, 0x5c, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x6f, 0x6d, 0x69, 0x63, 0x73, 0x5c, 0x47,
+ 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x14, 0x50, 0x6f, 0x6b,
+ 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x3a, 0x3a, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x6f, 0x6d, 0x69, 0x63,
+ 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_poktroll_tokenomics_query_proto_rawDescOnce sync.Once
+ file_poktroll_tokenomics_query_proto_rawDescData = file_poktroll_tokenomics_query_proto_rawDesc
+)
+
+func file_poktroll_tokenomics_query_proto_rawDescGZIP() []byte {
+ file_poktroll_tokenomics_query_proto_rawDescOnce.Do(func() {
+ file_poktroll_tokenomics_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_poktroll_tokenomics_query_proto_rawDescData)
+ })
+ return file_poktroll_tokenomics_query_proto_rawDescData
+}
+
+var file_poktroll_tokenomics_query_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
+var file_poktroll_tokenomics_query_proto_goTypes = []interface{}{
+ (*QueryParamsRequest)(nil), // 0: poktroll.tokenomics.QueryParamsRequest
+ (*QueryParamsResponse)(nil), // 1: poktroll.tokenomics.QueryParamsResponse
+ (*Params)(nil), // 2: poktroll.tokenomics.Params
+}
+var file_poktroll_tokenomics_query_proto_depIdxs = []int32{
+ 2, // 0: poktroll.tokenomics.QueryParamsResponse.params:type_name -> poktroll.tokenomics.Params
+ 0, // 1: poktroll.tokenomics.Query.Params:input_type -> poktroll.tokenomics.QueryParamsRequest
+ 1, // 2: poktroll.tokenomics.Query.Params:output_type -> poktroll.tokenomics.QueryParamsResponse
+ 2, // [2:3] is the sub-list for method output_type
+ 1, // [1:2] is the sub-list for method input_type
+ 1, // [1:1] is the sub-list for extension type_name
+ 1, // [1:1] is the sub-list for extension extendee
+ 0, // [0:1] is the sub-list for field type_name
+}
+
+func init() { file_poktroll_tokenomics_query_proto_init() }
+func file_poktroll_tokenomics_query_proto_init() {
+ if File_poktroll_tokenomics_query_proto != nil {
+ return
+ }
+ file_poktroll_tokenomics_params_proto_init()
+ if !protoimpl.UnsafeEnabled {
+ file_poktroll_tokenomics_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryParamsRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_tokenomics_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryParamsResponse); 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_poktroll_tokenomics_query_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 2,
+ NumExtensions: 0,
+ NumServices: 1,
+ },
+ GoTypes: file_poktroll_tokenomics_query_proto_goTypes,
+ DependencyIndexes: file_poktroll_tokenomics_query_proto_depIdxs,
+ MessageInfos: file_poktroll_tokenomics_query_proto_msgTypes,
+ }.Build()
+ File_poktroll_tokenomics_query_proto = out.File
+ file_poktroll_tokenomics_query_proto_rawDesc = nil
+ file_poktroll_tokenomics_query_proto_goTypes = nil
+ file_poktroll_tokenomics_query_proto_depIdxs = nil
+}
diff --git a/api/poktroll/tokenomics/tx.pulsar.go b/api/poktroll/tokenomics/tx.pulsar.go
new file mode 100644
index 000000000..4b40d6a09
--- /dev/null
+++ b/api/poktroll/tokenomics/tx.pulsar.go
@@ -0,0 +1,1090 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package tokenomics
+
+import (
+ _ "cosmossdk.io/api/amino"
+ _ "cosmossdk.io/api/cosmos/msg/v1"
+ fmt "fmt"
+ _ "github.com/cosmos/cosmos-proto"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ _ "github.com/cosmos/gogoproto/gogoproto"
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoiface "google.golang.org/protobuf/runtime/protoiface"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ io "io"
+ reflect "reflect"
+ sync "sync"
+)
+
+var (
+ md_MsgUpdateParams protoreflect.MessageDescriptor
+ fd_MsgUpdateParams_authority protoreflect.FieldDescriptor
+ fd_MsgUpdateParams_params protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_tokenomics_tx_proto_init()
+ md_MsgUpdateParams = File_poktroll_tokenomics_tx_proto.Messages().ByName("MsgUpdateParams")
+ fd_MsgUpdateParams_authority = md_MsgUpdateParams.Fields().ByName("authority")
+ 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_poktroll_tokenomics_tx_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_MsgUpdateParams_messageType fastReflection_MsgUpdateParams_messageType
+var _ protoreflect.MessageType = fastReflection_MsgUpdateParams_messageType{}
+
+type fastReflection_MsgUpdateParams_messageType struct{}
+
+func (x fastReflection_MsgUpdateParams_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_MsgUpdateParams)(nil)
+}
+func (x fastReflection_MsgUpdateParams_messageType) New() protoreflect.Message {
+ return new(fastReflection_MsgUpdateParams)
+}
+func (x fastReflection_MsgUpdateParams_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgUpdateParams
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_MsgUpdateParams) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgUpdateParams
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_MsgUpdateParams) Type() protoreflect.MessageType {
+ return _fastReflection_MsgUpdateParams_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_MsgUpdateParams) New() protoreflect.Message {
+ return new(fastReflection_MsgUpdateParams)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_MsgUpdateParams) Interface() protoreflect.ProtoMessage {
+ return (*MsgUpdateParams)(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_MsgUpdateParams) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Authority != "" {
+ value := protoreflect.ValueOfString(x.Authority)
+ if !f(fd_MsgUpdateParams_authority, value) {
+ return
+ }
+ }
+ if x.Params != nil {
+ value := protoreflect.ValueOfMessage(x.Params.ProtoReflect())
+ if !f(fd_MsgUpdateParams_params, 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_MsgUpdateParams) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.tokenomics.MsgUpdateParams.authority":
+ return x.Authority != ""
+ case "poktroll.tokenomics.MsgUpdateParams.params":
+ return x.Params != nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.tokenomics.MsgUpdateParams"))
+ }
+ panic(fmt.Errorf("message poktroll.tokenomics.MsgUpdateParams 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_MsgUpdateParams) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.tokenomics.MsgUpdateParams.authority":
+ x.Authority = ""
+ case "poktroll.tokenomics.MsgUpdateParams.params":
+ x.Params = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.tokenomics.MsgUpdateParams"))
+ }
+ panic(fmt.Errorf("message poktroll.tokenomics.MsgUpdateParams 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_MsgUpdateParams) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.tokenomics.MsgUpdateParams.authority":
+ value := x.Authority
+ return protoreflect.ValueOfString(value)
+ case "poktroll.tokenomics.MsgUpdateParams.params":
+ value := x.Params
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.tokenomics.MsgUpdateParams"))
+ }
+ panic(fmt.Errorf("message poktroll.tokenomics.MsgUpdateParams 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_MsgUpdateParams) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.tokenomics.MsgUpdateParams.authority":
+ x.Authority = value.Interface().(string)
+ case "poktroll.tokenomics.MsgUpdateParams.params":
+ x.Params = value.Message().Interface().(*Params)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.tokenomics.MsgUpdateParams"))
+ }
+ panic(fmt.Errorf("message poktroll.tokenomics.MsgUpdateParams 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_MsgUpdateParams) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.tokenomics.MsgUpdateParams.params":
+ if x.Params == nil {
+ x.Params = new(Params)
+ }
+ return protoreflect.ValueOfMessage(x.Params.ProtoReflect())
+ case "poktroll.tokenomics.MsgUpdateParams.authority":
+ panic(fmt.Errorf("field authority of message poktroll.tokenomics.MsgUpdateParams is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.tokenomics.MsgUpdateParams"))
+ }
+ panic(fmt.Errorf("message poktroll.tokenomics.MsgUpdateParams does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// 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 "poktroll.tokenomics.MsgUpdateParams.authority":
+ return protoreflect.ValueOfString("")
+ case "poktroll.tokenomics.MsgUpdateParams.params":
+ m := new(Params)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.tokenomics.MsgUpdateParams"))
+ }
+ panic(fmt.Errorf("message poktroll.tokenomics.MsgUpdateParams does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_MsgUpdateParams) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.tokenomics.MsgUpdateParams", 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_MsgUpdateParams) 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_MsgUpdateParams) 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_MsgUpdateParams) 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_MsgUpdateParams) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*MsgUpdateParams)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Authority)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.Params != nil {
+ l = options.Size(x.Params)
+ 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().(*MsgUpdateParams)
+ 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.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] = 0x12
+ }
+ if len(x.Authority) > 0 {
+ i -= len(x.Authority)
+ copy(dAtA[i:], x.Authority)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority)))
+ i--
+ dAtA[i] = 0xa
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*MsgUpdateParams)
+ 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: MsgUpdateParams: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParams: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Authority = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field 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
+ 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_MsgUpdateParamsResponse protoreflect.MessageDescriptor
+)
+
+func init() {
+ file_poktroll_tokenomics_tx_proto_init()
+ md_MsgUpdateParamsResponse = File_poktroll_tokenomics_tx_proto.Messages().ByName("MsgUpdateParamsResponse")
+}
+
+var _ protoreflect.Message = (*fastReflection_MsgUpdateParamsResponse)(nil)
+
+type fastReflection_MsgUpdateParamsResponse MsgUpdateParamsResponse
+
+func (x *MsgUpdateParamsResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_MsgUpdateParamsResponse)(x)
+}
+
+func (x *MsgUpdateParamsResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_tokenomics_tx_proto_msgTypes[1]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_MsgUpdateParamsResponse_messageType fastReflection_MsgUpdateParamsResponse_messageType
+var _ protoreflect.MessageType = fastReflection_MsgUpdateParamsResponse_messageType{}
+
+type fastReflection_MsgUpdateParamsResponse_messageType struct{}
+
+func (x fastReflection_MsgUpdateParamsResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_MsgUpdateParamsResponse)(nil)
+}
+func (x fastReflection_MsgUpdateParamsResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_MsgUpdateParamsResponse)
+}
+func (x fastReflection_MsgUpdateParamsResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgUpdateParamsResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_MsgUpdateParamsResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgUpdateParamsResponse
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_MsgUpdateParamsResponse) Type() protoreflect.MessageType {
+ return _fastReflection_MsgUpdateParamsResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_MsgUpdateParamsResponse) New() protoreflect.Message {
+ return new(fastReflection_MsgUpdateParamsResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_MsgUpdateParamsResponse) Interface() protoreflect.ProtoMessage {
+ return (*MsgUpdateParamsResponse)(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_MsgUpdateParamsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_MsgUpdateParamsResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.tokenomics.MsgUpdateParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.tokenomics.MsgUpdateParamsResponse 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_MsgUpdateParamsResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.tokenomics.MsgUpdateParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.tokenomics.MsgUpdateParamsResponse 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_MsgUpdateParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.tokenomics.MsgUpdateParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.tokenomics.MsgUpdateParamsResponse 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_MsgUpdateParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.tokenomics.MsgUpdateParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.tokenomics.MsgUpdateParamsResponse 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_MsgUpdateParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.tokenomics.MsgUpdateParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.tokenomics.MsgUpdateParamsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_MsgUpdateParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.tokenomics.MsgUpdateParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.tokenomics.MsgUpdateParamsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_MsgUpdateParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.tokenomics.MsgUpdateParamsResponse", 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_MsgUpdateParamsResponse) 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_MsgUpdateParamsResponse) 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_MsgUpdateParamsResponse) 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_MsgUpdateParamsResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*MsgUpdateParamsResponse)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*MsgUpdateParamsResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*MsgUpdateParamsResponse)
+ 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: MsgUpdateParamsResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.27.0
+// protoc (unknown)
+// source: poktroll/tokenomics/tx.proto
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+// MsgUpdateParams is the Msg/UpdateParams request type.
+type MsgUpdateParams struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // authority is the address that controls the module (defaults to x/gov unless overwritten).
+ Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
+ // params defines the x/tokenomics parameters to update.
+ // NOTE: All parameters must be supplied.
+ Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"`
+}
+
+func (x *MsgUpdateParams) Reset() {
+ *x = MsgUpdateParams{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_tokenomics_tx_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *MsgUpdateParams) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*MsgUpdateParams) ProtoMessage() {}
+
+// Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead.
+func (*MsgUpdateParams) Descriptor() ([]byte, []int) {
+ return file_poktroll_tokenomics_tx_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *MsgUpdateParams) GetAuthority() string {
+ if x != nil {
+ return x.Authority
+ }
+ return ""
+}
+
+func (x *MsgUpdateParams) GetParams() *Params {
+ if x != nil {
+ return x.Params
+ }
+ return nil
+}
+
+// MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.
+type MsgUpdateParamsResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+}
+
+func (x *MsgUpdateParamsResponse) Reset() {
+ *x = MsgUpdateParamsResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_tokenomics_tx_proto_msgTypes[1]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *MsgUpdateParamsResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*MsgUpdateParamsResponse) ProtoMessage() {}
+
+// Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead.
+func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) {
+ return file_poktroll_tokenomics_tx_proto_rawDescGZIP(), []int{1}
+}
+
+var File_poktroll_tokenomics_tx_proto protoreflect.FileDescriptor
+
+var file_poktroll_tokenomics_tx_proto_rawDesc = []byte{
+ 0x0a, 0x1c, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
+ 0x6f, 0x6d, 0x69, 0x63, 0x73, 0x2f, 0x74, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13,
+ 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x6f, 0x6d,
+ 0x69, 0x63, 0x73, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f,
+ 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x6d,
+ 0x73, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
+ 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, 0x14, 0x67, 0x6f, 0x67, 0x6f,
+ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
+ 0x1a, 0x20, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
+ 0x6f, 0x6d, 0x69, 0x63, 0x73, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f,
+ 0x74, 0x6f, 0x22, 0xc3, 0x01, 0x0a, 0x0f, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
+ 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x36, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72,
+ 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63,
+ 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72,
+ 0x69, 0x6e, 0x67, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x3e,
+ 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b,
+ 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x6f,
+ 0x6d, 0x69, 0x63, 0x73, 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, 0x3a, 0x38,
+ 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x8a, 0xe7,
+ 0xb0, 0x2a, 0x25, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x78, 0x2f, 0x74, 0x6f,
+ 0x6b, 0x65, 0x6e, 0x6f, 0x6d, 0x69, 0x63, 0x73, 0x2f, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61,
+ 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x19, 0x0a, 0x17, 0x4d, 0x73, 0x67, 0x55,
+ 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
+ 0x6e, 0x73, 0x65, 0x32, 0x70, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x62, 0x0a, 0x0c, 0x55, 0x70,
+ 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x24, 0x2e, 0x70, 0x6f, 0x6b,
+ 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x6f, 0x6d, 0x69, 0x63, 0x73,
+ 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73,
+ 0x1a, 0x2c, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x74, 0x6f, 0x6b, 0x65,
+ 0x6e, 0x6f, 0x6d, 0x69, 0x63, 0x73, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
+ 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x05,
+ 0x80, 0xe7, 0xb0, 0x2a, 0x01, 0x42, 0xb5, 0x01, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x6f,
+ 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x6f, 0x6d, 0x69, 0x63,
+ 0x73, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x24, 0x63, 0x6f,
+ 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70,
+ 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x6f, 0x6d, 0x69,
+ 0x63, 0x73, 0xa2, 0x02, 0x03, 0x50, 0x54, 0x58, 0xaa, 0x02, 0x13, 0x50, 0x6f, 0x6b, 0x74, 0x72,
+ 0x6f, 0x6c, 0x6c, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x6f, 0x6d, 0x69, 0x63, 0x73, 0xca, 0x02,
+ 0x13, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x6f,
+ 0x6d, 0x69, 0x63, 0x73, 0xe2, 0x02, 0x1f, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c,
+ 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x6f, 0x6d, 0x69, 0x63, 0x73, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65,
+ 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x14, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c,
+ 0x6c, 0x3a, 0x3a, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x6f, 0x6d, 0x69, 0x63, 0x73, 0x62, 0x06, 0x70,
+ 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_poktroll_tokenomics_tx_proto_rawDescOnce sync.Once
+ file_poktroll_tokenomics_tx_proto_rawDescData = file_poktroll_tokenomics_tx_proto_rawDesc
+)
+
+func file_poktroll_tokenomics_tx_proto_rawDescGZIP() []byte {
+ file_poktroll_tokenomics_tx_proto_rawDescOnce.Do(func() {
+ file_poktroll_tokenomics_tx_proto_rawDescData = protoimpl.X.CompressGZIP(file_poktroll_tokenomics_tx_proto_rawDescData)
+ })
+ return file_poktroll_tokenomics_tx_proto_rawDescData
+}
+
+var file_poktroll_tokenomics_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
+var file_poktroll_tokenomics_tx_proto_goTypes = []interface{}{
+ (*MsgUpdateParams)(nil), // 0: poktroll.tokenomics.MsgUpdateParams
+ (*MsgUpdateParamsResponse)(nil), // 1: poktroll.tokenomics.MsgUpdateParamsResponse
+ (*Params)(nil), // 2: poktroll.tokenomics.Params
+}
+var file_poktroll_tokenomics_tx_proto_depIdxs = []int32{
+ 2, // 0: poktroll.tokenomics.MsgUpdateParams.params:type_name -> poktroll.tokenomics.Params
+ 0, // 1: poktroll.tokenomics.Msg.UpdateParams:input_type -> poktroll.tokenomics.MsgUpdateParams
+ 1, // 2: poktroll.tokenomics.Msg.UpdateParams:output_type -> poktroll.tokenomics.MsgUpdateParamsResponse
+ 2, // [2:3] is the sub-list for method output_type
+ 1, // [1:2] is the sub-list for method input_type
+ 1, // [1:1] is the sub-list for extension type_name
+ 1, // [1:1] is the sub-list for extension extendee
+ 0, // [0:1] is the sub-list for field type_name
+}
+
+func init() { file_poktroll_tokenomics_tx_proto_init() }
+func file_poktroll_tokenomics_tx_proto_init() {
+ if File_poktroll_tokenomics_tx_proto != nil {
+ return
+ }
+ file_poktroll_tokenomics_params_proto_init()
+ if !protoimpl.UnsafeEnabled {
+ file_poktroll_tokenomics_tx_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*MsgUpdateParams); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_tokenomics_tx_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*MsgUpdateParamsResponse); 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_poktroll_tokenomics_tx_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 2,
+ NumExtensions: 0,
+ NumServices: 1,
+ },
+ GoTypes: file_poktroll_tokenomics_tx_proto_goTypes,
+ DependencyIndexes: file_poktroll_tokenomics_tx_proto_depIdxs,
+ MessageInfos: file_poktroll_tokenomics_tx_proto_msgTypes,
+ }.Build()
+ File_poktroll_tokenomics_tx_proto = out.File
+ file_poktroll_tokenomics_tx_proto_rawDesc = nil
+ file_poktroll_tokenomics_tx_proto_goTypes = nil
+ file_poktroll_tokenomics_tx_proto_depIdxs = nil
+}
diff --git a/app/app.go b/app/app.go
index 68f834d0b..66fe5ec05 100644
--- a/app/app.go
+++ b/app/app.go
@@ -1,225 +1,81 @@
package app
import (
- "encoding/json"
- "fmt"
"io"
"os"
"path/filepath"
- // this line is used by starport scaffolding # stargate/app/moduleImport
-
- autocliv1 "cosmossdk.io/api/cosmos/autocli/v1"
- reflectionv1 "cosmossdk.io/api/cosmos/reflection/v1"
- dbm "github.com/cometbft/cometbft-db"
- abci "github.com/cometbft/cometbft/abci/types"
- "github.com/cometbft/cometbft/libs/log"
- tmos "github.com/cometbft/cometbft/libs/os"
+ "cosmossdk.io/depinject"
+ "cosmossdk.io/log"
+ storetypes "cosmossdk.io/store/types"
+ circuitkeeper "cosmossdk.io/x/circuit/keeper"
+ evidencekeeper "cosmossdk.io/x/evidence/keeper"
+ feegrantkeeper "cosmossdk.io/x/feegrant/keeper"
+ upgradekeeper "cosmossdk.io/x/upgrade/keeper"
+ dbm "github.com/cosmos/cosmos-db"
"github.com/cosmos/cosmos-sdk/baseapp"
"github.com/cosmos/cosmos-sdk/client"
- nodeservice "github.com/cosmos/cosmos-sdk/client/grpc/node"
- "github.com/cosmos/cosmos-sdk/client/grpc/tmservice"
"github.com/cosmos/cosmos-sdk/codec"
- "github.com/cosmos/cosmos-sdk/codec/types"
+ codectypes "github.com/cosmos/cosmos-sdk/codec/types"
"github.com/cosmos/cosmos-sdk/runtime"
- runtimeservices "github.com/cosmos/cosmos-sdk/runtime/services"
+ "github.com/cosmos/cosmos-sdk/server"
"github.com/cosmos/cosmos-sdk/server/api"
"github.com/cosmos/cosmos-sdk/server/config"
servertypes "github.com/cosmos/cosmos-sdk/server/types"
- storetypes "github.com/cosmos/cosmos-sdk/store/types"
- sdk "github.com/cosmos/cosmos-sdk/types"
+ testdata_pulsar "github.com/cosmos/cosmos-sdk/testutil/testdata/testpb"
"github.com/cosmos/cosmos-sdk/types/module"
- "github.com/cosmos/cosmos-sdk/version"
"github.com/cosmos/cosmos-sdk/x/auth"
- "github.com/cosmos/cosmos-sdk/x/auth/ante"
authkeeper "github.com/cosmos/cosmos-sdk/x/auth/keeper"
authsims "github.com/cosmos/cosmos-sdk/x/auth/simulation"
- authtx "github.com/cosmos/cosmos-sdk/x/auth/tx"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
- "github.com/cosmos/cosmos-sdk/x/auth/vesting"
- vestingtypes "github.com/cosmos/cosmos-sdk/x/auth/vesting/types"
- "github.com/cosmos/cosmos-sdk/x/authz"
authzkeeper "github.com/cosmos/cosmos-sdk/x/authz/keeper"
- authzmodule "github.com/cosmos/cosmos-sdk/x/authz/module"
- "github.com/cosmos/cosmos-sdk/x/bank"
bankkeeper "github.com/cosmos/cosmos-sdk/x/bank/keeper"
- banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
- "github.com/cosmos/cosmos-sdk/x/capability"
- capabilitykeeper "github.com/cosmos/cosmos-sdk/x/capability/keeper"
- capabilitytypes "github.com/cosmos/cosmos-sdk/x/capability/types"
- "github.com/cosmos/cosmos-sdk/x/consensus"
- consensusparamkeeper "github.com/cosmos/cosmos-sdk/x/consensus/keeper"
- consensusparamtypes "github.com/cosmos/cosmos-sdk/x/consensus/types"
- "github.com/cosmos/cosmos-sdk/x/crisis"
+ consensuskeeper "github.com/cosmos/cosmos-sdk/x/consensus/keeper"
crisiskeeper "github.com/cosmos/cosmos-sdk/x/crisis/keeper"
- crisistypes "github.com/cosmos/cosmos-sdk/x/crisis/types"
- distr "github.com/cosmos/cosmos-sdk/x/distribution"
distrkeeper "github.com/cosmos/cosmos-sdk/x/distribution/keeper"
- distrtypes "github.com/cosmos/cosmos-sdk/x/distribution/types"
- "github.com/cosmos/cosmos-sdk/x/evidence"
- evidencekeeper "github.com/cosmos/cosmos-sdk/x/evidence/keeper"
- evidencetypes "github.com/cosmos/cosmos-sdk/x/evidence/types"
- "github.com/cosmos/cosmos-sdk/x/feegrant"
- feegrantkeeper "github.com/cosmos/cosmos-sdk/x/feegrant/keeper"
- feegrantmodule "github.com/cosmos/cosmos-sdk/x/feegrant/module"
"github.com/cosmos/cosmos-sdk/x/genutil"
genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types"
"github.com/cosmos/cosmos-sdk/x/gov"
govclient "github.com/cosmos/cosmos-sdk/x/gov/client"
govkeeper "github.com/cosmos/cosmos-sdk/x/gov/keeper"
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"
- govv1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
- govv1beta1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1"
- "github.com/cosmos/cosmos-sdk/x/group"
groupkeeper "github.com/cosmos/cosmos-sdk/x/group/keeper"
- groupmodule "github.com/cosmos/cosmos-sdk/x/group/module"
- "github.com/cosmos/cosmos-sdk/x/mint"
mintkeeper "github.com/cosmos/cosmos-sdk/x/mint/keeper"
- minttypes "github.com/cosmos/cosmos-sdk/x/mint/types"
- "github.com/cosmos/cosmos-sdk/x/params"
paramsclient "github.com/cosmos/cosmos-sdk/x/params/client"
paramskeeper "github.com/cosmos/cosmos-sdk/x/params/keeper"
paramstypes "github.com/cosmos/cosmos-sdk/x/params/types"
- paramproposal "github.com/cosmos/cosmos-sdk/x/params/types/proposal"
- "github.com/cosmos/cosmos-sdk/x/slashing"
slashingkeeper "github.com/cosmos/cosmos-sdk/x/slashing/keeper"
- slashingtypes "github.com/cosmos/cosmos-sdk/x/slashing/types"
- "github.com/cosmos/cosmos-sdk/x/staking"
stakingkeeper "github.com/cosmos/cosmos-sdk/x/staking/keeper"
- stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
- "github.com/cosmos/cosmos-sdk/x/upgrade"
- upgradeclient "github.com/cosmos/cosmos-sdk/x/upgrade/client"
- upgradekeeper "github.com/cosmos/cosmos-sdk/x/upgrade/keeper"
- upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types"
- ica "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts"
- icacontrollerkeeper "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/controller/keeper"
- icacontrollertypes "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/controller/types"
- icahost "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/host"
- icahostkeeper "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/host/keeper"
- icahosttypes "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/host/types"
- icatypes "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/types"
- "github.com/cosmos/ibc-go/v7/modules/apps/transfer"
- ibctransferkeeper "github.com/cosmos/ibc-go/v7/modules/apps/transfer/keeper"
- ibctransfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types"
- ibc "github.com/cosmos/ibc-go/v7/modules/core"
- ibcclient "github.com/cosmos/ibc-go/v7/modules/core/02-client"
- ibcclientclient "github.com/cosmos/ibc-go/v7/modules/core/02-client/client"
- ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types"
- ibcporttypes "github.com/cosmos/ibc-go/v7/modules/core/05-port/types"
- ibcexported "github.com/cosmos/ibc-go/v7/modules/core/exported"
- ibckeeper "github.com/cosmos/ibc-go/v7/modules/core/keeper"
- solomachine "github.com/cosmos/ibc-go/v7/modules/light-clients/06-solomachine"
- ibctm "github.com/cosmos/ibc-go/v7/modules/light-clients/07-tendermint"
- appparams "github.com/pokt-network/poktroll/app/params"
- "github.com/pokt-network/poktroll/docs"
- applicationmodule "github.com/pokt-network/poktroll/x/application"
+ capabilitykeeper "github.com/cosmos/ibc-go/modules/capability/keeper"
+ icacontrollerkeeper "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/controller/keeper"
+ icahostkeeper "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/host/keeper"
+ ibcfeekeeper "github.com/cosmos/ibc-go/v8/modules/apps/29-fee/keeper"
+ ibctransferkeeper "github.com/cosmos/ibc-go/v8/modules/apps/transfer/keeper"
+ ibckeeper "github.com/cosmos/ibc-go/v8/modules/core/keeper"
+
applicationmodulekeeper "github.com/pokt-network/poktroll/x/application/keeper"
- applicationmoduletypes "github.com/pokt-network/poktroll/x/application/types"
- gatewaymodule "github.com/pokt-network/poktroll/x/gateway"
gatewaymodulekeeper "github.com/pokt-network/poktroll/x/gateway/keeper"
- gatewaymoduletypes "github.com/pokt-network/poktroll/x/gateway/types"
- pocketmodule "github.com/pokt-network/poktroll/x/pocket"
- pocketmodulekeeper "github.com/pokt-network/poktroll/x/pocket/keeper"
- pocketmoduletypes "github.com/pokt-network/poktroll/x/pocket/types"
- servicemodule "github.com/pokt-network/poktroll/x/service"
+ proofmodulekeeper "github.com/pokt-network/poktroll/x/proof/keeper"
servicemodulekeeper "github.com/pokt-network/poktroll/x/service/keeper"
- servicemoduletypes "github.com/pokt-network/poktroll/x/service/types"
- sessionmodule "github.com/pokt-network/poktroll/x/session"
sessionmodulekeeper "github.com/pokt-network/poktroll/x/session/keeper"
- sessionmoduletypes "github.com/pokt-network/poktroll/x/session/types"
- suppliermodule "github.com/pokt-network/poktroll/x/supplier"
suppliermodulekeeper "github.com/pokt-network/poktroll/x/supplier/keeper"
- suppliermoduletypes "github.com/pokt-network/poktroll/x/supplier/types"
- tokenomicsmodule "github.com/pokt-network/poktroll/x/tokenomics"
tokenomicsmodulekeeper "github.com/pokt-network/poktroll/x/tokenomics/keeper"
- tokenomicsmoduletypes "github.com/pokt-network/poktroll/x/tokenomics/types"
- "github.com/spf13/cast"
+
+ // this line is used by starport scaffolding # stargate/app/moduleImport
+
+ "github.com/pokt-network/poktroll/docs"
)
const (
AccountAddressPrefix = "pokt"
- Name = "pocket"
+ Name = "poktroll"
// TODO_CLEANUP: Find a way to centralize the use of `upokt` throughout the codebase
DenomuPOKT = "upokt"
)
-// this line is used by starport scaffolding # stargate/wasm/app/enabledProposals
-
-func getGovProposalHandlers() []govclient.ProposalHandler {
- var govProposalHandlers []govclient.ProposalHandler
- // this line is used by starport scaffolding # stargate/app/govProposalHandlers
-
- govProposalHandlers = append(govProposalHandlers,
- paramsclient.ProposalHandler,
- upgradeclient.LegacyProposalHandler,
- upgradeclient.LegacyCancelProposalHandler,
- ibcclientclient.UpdateClientProposalHandler,
- ibcclientclient.UpgradeProposalHandler,
- // this line is used by starport scaffolding # stargate/app/govProposalHandler
- )
-
- return govProposalHandlers
-}
-
var (
// DefaultNodeHome default home directories for the application daemon
DefaultNodeHome string
-
- // ModuleBasics defines the module BasicManager is in charge of setting up basic,
- // non-dependant module elements, such as codec registration
- // and genesis verification.
- ModuleBasics = module.NewBasicManager(
- auth.AppModuleBasic{},
- authzmodule.AppModuleBasic{},
- // TODO_DISCUSS: Should we rename all instances of `Validator` to `Sequencer`?
- genutil.NewAppModuleBasic(genutiltypes.DefaultMessageValidator),
- bank.AppModuleBasic{},
- capability.AppModuleBasic{},
- staking.AppModuleBasic{},
- mint.AppModuleBasic{},
- distr.AppModuleBasic{},
- gov.NewAppModuleBasic(getGovProposalHandlers()),
- params.AppModuleBasic{},
- crisis.AppModuleBasic{},
- slashing.AppModuleBasic{},
- feegrantmodule.AppModuleBasic{},
- groupmodule.AppModuleBasic{},
- ibc.AppModuleBasic{},
- ibctm.AppModuleBasic{},
- solomachine.AppModuleBasic{},
- upgrade.AppModuleBasic{},
- evidence.AppModuleBasic{},
- transfer.AppModuleBasic{},
- ica.AppModuleBasic{},
- vesting.AppModuleBasic{},
- consensus.AppModuleBasic{},
- pocketmodule.AppModuleBasic{},
- servicemodule.AppModuleBasic{},
- sessionmodule.AppModuleBasic{},
- applicationmodule.AppModuleBasic{},
- suppliermodule.AppModuleBasic{},
- gatewaymodule.AppModuleBasic{},
- tokenomicsmodule.AppModuleBasic{},
- // this line is used by starport scaffolding # stargate/app/moduleBasic
- )
-
- // module account permissions
- maccPerms = map[string][]string{
- authtypes.FeeCollectorName: nil,
- distrtypes.ModuleName: nil,
- icatypes.ModuleName: nil,
- minttypes.ModuleName: {authtypes.Minter},
- stakingtypes.BondedPoolName: {authtypes.Burner, authtypes.Staking},
- stakingtypes.NotBondedPoolName: {authtypes.Burner, authtypes.Staking},
- govtypes.ModuleName: {authtypes.Burner},
- ibctransfertypes.ModuleName: {authtypes.Minter, authtypes.Burner},
- suppliermoduletypes.ModuleName: {authtypes.Minter, authtypes.Burner, authtypes.Staking},
- servicemoduletypes.ModuleName: {authtypes.Minter, authtypes.Burner, authtypes.Staking},
- applicationmoduletypes.ModuleName: {authtypes.Minter, authtypes.Burner, authtypes.Staking},
- gatewaymoduletypes.ModuleName: {authtypes.Minter, authtypes.Burner, authtypes.Staking},
- tokenomicsmoduletypes.ModuleName: {authtypes.Minter, authtypes.Burner},
- // this line is used by starport scaffolding # stargate/app/maccPerms
- }
)
var (
@@ -227,792 +83,292 @@ var (
_ servertypes.Application = (*App)(nil)
)
-func init() {
- userHomeDir, err := os.UserHomeDir()
- if err != nil {
- panic(err)
- }
-
- DefaultNodeHome = filepath.Join(userHomeDir, "."+Name)
-}
-
// App extends an ABCI application, but with most of its parameters exported.
// They are exported for convenience in creating helper functions, as object
// capabilities aren't needed for testing.
type App struct {
- *baseapp.BaseApp
-
- cdc *codec.LegacyAmino
+ *runtime.App
+ legacyAmino *codec.LegacyAmino
appCodec codec.Codec
- interfaceRegistry types.InterfaceRegistry
txConfig client.TxConfig
-
- invCheckPeriod uint
-
- // keys to access the substores
- keys map[string]*storetypes.KVStoreKey
- tkeys map[string]*storetypes.TransientStoreKey
- memKeys map[string]*storetypes.MemoryStoreKey
+ interfaceRegistry codectypes.InterfaceRegistry
// keepers
AccountKeeper authkeeper.AccountKeeper
- AuthzKeeper authzkeeper.Keeper
BankKeeper bankkeeper.Keeper
- CapabilityKeeper *capabilitykeeper.Keeper
StakingKeeper *stakingkeeper.Keeper
SlashingKeeper slashingkeeper.Keeper
MintKeeper mintkeeper.Keeper
DistrKeeper distrkeeper.Keeper
- GovKeeper govkeeper.Keeper
+ GovKeeper *govkeeper.Keeper
CrisisKeeper *crisiskeeper.Keeper
UpgradeKeeper *upgradekeeper.Keeper
ParamsKeeper paramskeeper.Keeper
- IBCKeeper *ibckeeper.Keeper // IBC Keeper must be a pointer in the app, so we can SetRouter on it correctly
+ AuthzKeeper authzkeeper.Keeper
EvidenceKeeper evidencekeeper.Keeper
- TransferKeeper ibctransferkeeper.Keeper
- ICAHostKeeper icahostkeeper.Keeper
FeeGrantKeeper feegrantkeeper.Keeper
GroupKeeper groupkeeper.Keeper
- ConsensusParamsKeeper consensusparamkeeper.Keeper
+ ConsensusParamsKeeper consensuskeeper.Keeper
+ CircuitBreakerKeeper circuitkeeper.Keeper
+
+ // IBC
+ IBCKeeper *ibckeeper.Keeper // IBC Keeper must be a pointer in the app, so we can SetRouter on it correctly
+ CapabilityKeeper *capabilitykeeper.Keeper
+ IBCFeeKeeper ibcfeekeeper.Keeper
+ ICAControllerKeeper icacontrollerkeeper.Keeper
+ ICAHostKeeper icahostkeeper.Keeper
+ TransferKeeper ibctransferkeeper.Keeper
+
+ // Scoped IBC
+ ScopedIBCKeeper capabilitykeeper.ScopedKeeper
+ ScopedIBCTransferKeeper capabilitykeeper.ScopedKeeper
+ ScopedICAControllerKeeper capabilitykeeper.ScopedKeeper
+ ScopedICAHostKeeper capabilitykeeper.ScopedKeeper
- // make scoped keepers public for test purposes
- ScopedIBCKeeper capabilitykeeper.ScopedKeeper
- ScopedTransferKeeper capabilitykeeper.ScopedKeeper
- ScopedICAHostKeeper capabilitykeeper.ScopedKeeper
-
- PocketKeeper pocketmodulekeeper.Keeper
ServiceKeeper servicemodulekeeper.Keeper
- SessionKeeper sessionmodulekeeper.Keeper
+ GatewayKeeper gatewaymodulekeeper.Keeper
ApplicationKeeper applicationmodulekeeper.Keeper
SupplierKeeper suppliermodulekeeper.Keeper
-
- GatewayKeeper gatewaymodulekeeper.Keeper
-
- TokenomicsKeeper tokenomicsmodulekeeper.Keeper
+ SessionKeeper sessionmodulekeeper.Keeper
+ ProofKeeper proofmodulekeeper.Keeper
+ TokenomicsKeeper tokenomicsmodulekeeper.Keeper
// this line is used by starport scaffolding # stargate/app/keeperDeclaration
- // mm is the module manager
- mm *module.Manager
-
- // sm is the simulation manager
- sm *module.SimulationManager
- configurator module.Configurator
+ // simulation manager
+ sm *module.SimulationManager
}
-// New returns a reference to an initialized blockchain app
-func New(
- logger log.Logger,
- db dbm.DB,
- traceStore io.Writer,
- loadLatest bool,
- skipUpgradeHeights map[int64]bool,
- homePath string,
- invCheckPeriod uint,
- encodingConfig appparams.EncodingConfig,
- appOpts servertypes.AppOptions,
- baseAppOptions ...func(*baseapp.BaseApp),
-) *App {
- appCodec := encodingConfig.Marshaler
- cdc := encodingConfig.Amino
- interfaceRegistry := encodingConfig.InterfaceRegistry
- txConfig := encodingConfig.TxConfig
-
- bApp := baseapp.NewBaseApp(
- Name,
- logger,
- db,
- encodingConfig.TxConfig.TxDecoder(),
- baseAppOptions...,
- )
- bApp.SetCommitMultiStoreTracer(traceStore)
- bApp.SetVersion(version.Version)
- bApp.SetInterfaceRegistry(interfaceRegistry)
- bApp.SetTxEncoder(txConfig.TxEncoder())
-
- keys := sdk.NewKVStoreKeys(
- authtypes.StoreKey, authz.ModuleName, banktypes.StoreKey, stakingtypes.StoreKey,
- crisistypes.StoreKey, minttypes.StoreKey, distrtypes.StoreKey, slashingtypes.StoreKey,
- govtypes.StoreKey, paramstypes.StoreKey, ibcexported.StoreKey, upgradetypes.StoreKey,
- feegrant.StoreKey, evidencetypes.StoreKey, ibctransfertypes.StoreKey, icahosttypes.StoreKey,
- capabilitytypes.StoreKey, group.StoreKey, icacontrollertypes.StoreKey, consensusparamtypes.StoreKey,
- pocketmoduletypes.StoreKey,
- servicemoduletypes.StoreKey,
- sessionmoduletypes.StoreKey,
- applicationmoduletypes.StoreKey,
- suppliermoduletypes.StoreKey,
- gatewaymoduletypes.StoreKey,
- tokenomicsmoduletypes.StoreKey,
- // this line is used by starport scaffolding # stargate/app/storeKey
- )
- tkeys := sdk.NewTransientStoreKeys(paramstypes.TStoreKey)
- memKeys := sdk.NewMemoryStoreKeys(capabilitytypes.MemStoreKey)
-
- // TODO_BLOCKER(#322): Change this to `authtypes.NewModuleAddress(govtypes.ModuleName)`
- // once we figure out the MVP for on-chain parameter governance.
- pnfAddress := "pokt1eeeksh2tvkh7wzmfrljnhw4wrhs55lcuvmekkw"
- authority := pnfAddress
-
- app := &App{
- BaseApp: bApp,
- cdc: cdc,
- appCodec: appCodec,
- interfaceRegistry: interfaceRegistry,
- txConfig: encodingConfig.TxConfig,
- invCheckPeriod: invCheckPeriod,
- keys: keys,
- tkeys: tkeys,
- memKeys: memKeys,
+func init() {
+ userHomeDir, err := os.UserHomeDir()
+ if err != nil {
+ panic(err)
}
- app.ParamsKeeper = initParamsKeeper(
- appCodec,
- cdc,
- keys[paramstypes.StoreKey],
- tkeys[paramstypes.TStoreKey],
- )
-
- // set the BaseApp's parameter store
- app.ConsensusParamsKeeper = consensusparamkeeper.NewKeeper(
- appCodec,
- keys[upgradetypes.StoreKey],
- authtypes.NewModuleAddress(govtypes.ModuleName).String(),
- )
- bApp.SetParamStore(&app.ConsensusParamsKeeper)
-
- // add capability keeper and ScopeToModule for ibc module
- app.CapabilityKeeper = capabilitykeeper.NewKeeper(
- appCodec,
- keys[capabilitytypes.StoreKey],
- memKeys[capabilitytypes.MemStoreKey],
- )
-
- // grant capabilities for the ibc and ibc-transfer modules
- scopedIBCKeeper := app.CapabilityKeeper.ScopeToModule(ibcexported.ModuleName)
- scopedICAControllerKeeper := app.CapabilityKeeper.ScopeToModule(icacontrollertypes.SubModuleName)
- scopedTransferKeeper := app.CapabilityKeeper.ScopeToModule(ibctransfertypes.ModuleName)
- scopedICAHostKeeper := app.CapabilityKeeper.ScopeToModule(icahosttypes.SubModuleName)
- // this line is used by starport scaffolding # stargate/app/scopedKeeper
-
- // add keepers
- app.AccountKeeper = authkeeper.NewAccountKeeper(
- appCodec,
- keys[authtypes.StoreKey],
- authtypes.ProtoBaseAccount,
- maccPerms,
- sdk.Bech32PrefixAccAddr,
- authtypes.NewModuleAddress(govtypes.ModuleName).String(),
- )
-
- app.AuthzKeeper = authzkeeper.NewKeeper(
- keys[authz.ModuleName],
- appCodec,
- app.MsgServiceRouter(),
- app.AccountKeeper,
- )
-
- app.BankKeeper = bankkeeper.NewBaseKeeper(
- appCodec,
- keys[banktypes.StoreKey],
- app.AccountKeeper,
- app.BlockedModuleAccountAddrs(),
- authtypes.NewModuleAddress(govtypes.ModuleName).String(),
- )
-
- app.StakingKeeper = stakingkeeper.NewKeeper(
- appCodec,
- keys[stakingtypes.StoreKey],
- app.AccountKeeper,
- app.BankKeeper,
- authtypes.NewModuleAddress(govtypes.ModuleName).String(),
- )
-
- app.FeeGrantKeeper = feegrantkeeper.NewKeeper(
- appCodec,
- keys[feegrant.StoreKey],
- app.AccountKeeper,
- )
-
- app.MintKeeper = mintkeeper.NewKeeper(
- appCodec,
- keys[minttypes.StoreKey],
- app.StakingKeeper,
- app.AccountKeeper,
- app.BankKeeper,
- authtypes.FeeCollectorName,
- authtypes.NewModuleAddress(govtypes.ModuleName).String(),
- )
-
- app.DistrKeeper = distrkeeper.NewKeeper(
- appCodec,
- keys[distrtypes.StoreKey],
- app.AccountKeeper,
- app.BankKeeper,
- app.StakingKeeper,
- authtypes.FeeCollectorName,
- authtypes.NewModuleAddress(govtypes.ModuleName).String(),
- )
-
- app.SlashingKeeper = slashingkeeper.NewKeeper(
- appCodec,
- cdc,
- keys[slashingtypes.StoreKey],
- app.StakingKeeper,
- authtypes.NewModuleAddress(govtypes.ModuleName).String(),
- )
-
- app.CrisisKeeper = crisiskeeper.NewKeeper(
- appCodec,
- keys[crisistypes.StoreKey],
- invCheckPeriod,
- app.BankKeeper,
- authtypes.FeeCollectorName,
- authtypes.NewModuleAddress(govtypes.ModuleName).String(),
- )
-
- groupConfig := group.DefaultConfig()
- /*
- Example of setting group params:
- groupConfig.MaxMetadataLen = 1000
- */
- app.GroupKeeper = groupkeeper.NewKeeper(
- keys[group.StoreKey],
- appCodec,
- app.MsgServiceRouter(),
- app.AccountKeeper,
- groupConfig,
- )
-
- app.UpgradeKeeper = upgradekeeper.NewKeeper(
- skipUpgradeHeights,
- keys[upgradetypes.StoreKey],
- appCodec,
- homePath,
- app.BaseApp,
- authtypes.NewModuleAddress(govtypes.ModuleName).String(),
- )
-
- // ... other modules keepers
-
- // Create IBC Keeper
- app.IBCKeeper = ibckeeper.NewKeeper(
- appCodec, keys[ibcexported.StoreKey],
- app.GetSubspace(ibcexported.ModuleName),
- app.StakingKeeper,
- app.UpgradeKeeper,
- scopedIBCKeeper,
- )
-
- // Create Transfer Keepers
- app.TransferKeeper = ibctransferkeeper.NewKeeper(
- appCodec,
- keys[ibctransfertypes.StoreKey],
- app.GetSubspace(ibctransfertypes.ModuleName),
- app.IBCKeeper.ChannelKeeper,
- app.IBCKeeper.ChannelKeeper,
- &app.IBCKeeper.PortKeeper,
- app.AccountKeeper,
- app.BankKeeper,
- scopedTransferKeeper,
- )
- transferModule := transfer.NewAppModule(app.TransferKeeper)
- transferIBCModule := transfer.NewIBCModule(app.TransferKeeper)
-
- app.ICAHostKeeper = icahostkeeper.NewKeeper(
- appCodec, keys[icahosttypes.StoreKey],
- app.GetSubspace(icahosttypes.SubModuleName),
- app.IBCKeeper.ChannelKeeper,
- app.IBCKeeper.ChannelKeeper,
- &app.IBCKeeper.PortKeeper,
- app.AccountKeeper,
- scopedICAHostKeeper,
- app.MsgServiceRouter(),
- )
- icaControllerKeeper := icacontrollerkeeper.NewKeeper(
- appCodec, keys[icacontrollertypes.StoreKey],
- app.GetSubspace(icacontrollertypes.SubModuleName),
- app.IBCKeeper.ChannelKeeper, // may be replaced with middleware such as ics29 fee
- app.IBCKeeper.ChannelKeeper, &app.IBCKeeper.PortKeeper,
- scopedICAControllerKeeper, app.MsgServiceRouter(),
- )
- icaModule := ica.NewAppModule(&icaControllerKeeper, &app.ICAHostKeeper)
- icaHostIBCModule := icahost.NewIBCModule(app.ICAHostKeeper)
+ DefaultNodeHome = filepath.Join(userHomeDir, "."+Name)
+}
- // Create evidence Keeper for to register the IBC light client misbehaviour evidence route
- evidenceKeeper := evidencekeeper.NewKeeper(
- appCodec,
- keys[evidencetypes.StoreKey],
- app.StakingKeeper,
- app.SlashingKeeper,
- )
- // If evidence needs to be handled for the app, set routes in router here and seal
- app.EvidenceKeeper = *evidenceKeeper
+// getGovProposalHandlers return the chain proposal handlers.
+func getGovProposalHandlers() []govclient.ProposalHandler {
+ var govProposalHandlers []govclient.ProposalHandler
+ // this line is used by starport scaffolding # stargate/app/govProposalHandlers
- govConfig := govtypes.DefaultConfig()
- govKeeper := govkeeper.NewKeeper(
- appCodec,
- keys[govtypes.StoreKey],
- app.AccountKeeper,
- app.BankKeeper,
- app.StakingKeeper,
- app.MsgServiceRouter(),
- govConfig,
- authtypes.NewModuleAddress(govtypes.ModuleName).String(),
+ govProposalHandlers = append(govProposalHandlers,
+ paramsclient.ProposalHandler,
+ // this line is used by starport scaffolding # stargate/app/govProposalHandler
)
- govRouter := govv1beta1.NewRouter()
- govRouter.
- AddRoute(govtypes.RouterKey, govv1beta1.ProposalHandler).
- AddRoute(paramproposal.RouterKey, params.NewParamChangeProposalHandler(app.ParamsKeeper)).
- AddRoute(upgradetypes.RouterKey, upgrade.NewSoftwareUpgradeProposalHandler(app.UpgradeKeeper)).
- AddRoute(ibcclienttypes.RouterKey, ibcclient.NewClientProposalHandler(app.IBCKeeper.ClientKeeper))
- govKeeper.SetLegacyRouter(govRouter)
+ return govProposalHandlers
+}
- app.GovKeeper = *govKeeper.SetHooks(
- govtypes.NewMultiGovHooks(
- // register the governance hooks
+// AppConfig returns the default app config.
+func AppConfig() depinject.Config {
+ return depinject.Configs(
+ appConfig,
+ // Loads the ao config from a YAML file.
+ // appconfig.LoadYAML(AppConfigYAML),
+ depinject.Supply(
+ // supply custom module basics
+ map[string]module.AppModuleBasic{
+ genutiltypes.ModuleName: genutil.NewAppModuleBasic(genutiltypes.DefaultMessageValidator),
+ govtypes.ModuleName: gov.NewAppModuleBasic(getGovProposalHandlers()),
+ // this line is used by starport scaffolding # stargate/appConfig/moduleBasic
+ },
),
)
+}
- app.PocketKeeper = *pocketmodulekeeper.NewKeeper(
- appCodec,
- keys[pocketmoduletypes.StoreKey],
- keys[pocketmoduletypes.MemStoreKey],
- app.GetSubspace(pocketmoduletypes.ModuleName),
- )
- pocketModule := pocketmodule.NewAppModule(appCodec, app.PocketKeeper, app.AccountKeeper, app.BankKeeper)
-
- app.ServiceKeeper = *servicemodulekeeper.NewKeeper(
- appCodec,
- keys[servicemoduletypes.StoreKey],
- keys[servicemoduletypes.MemStoreKey],
- app.GetSubspace(servicemoduletypes.ModuleName),
-
- app.BankKeeper,
- )
- serviceModule := servicemodule.NewAppModule(appCodec, app.ServiceKeeper, app.AccountKeeper, app.BankKeeper)
-
- app.GatewayKeeper = *gatewaymodulekeeper.NewKeeper(
- appCodec,
- keys[gatewaymoduletypes.StoreKey],
- keys[gatewaymoduletypes.MemStoreKey],
- app.GetSubspace(gatewaymoduletypes.ModuleName),
-
- app.BankKeeper,
- )
- gatewayModule := gatewaymodule.NewAppModule(appCodec, app.GatewayKeeper, app.AccountKeeper, app.BankKeeper)
-
- app.ApplicationKeeper = *applicationmodulekeeper.NewKeeper(
- appCodec,
- keys[applicationmoduletypes.StoreKey],
- keys[applicationmoduletypes.MemStoreKey],
- app.GetSubspace(applicationmoduletypes.ModuleName),
-
- app.BankKeeper,
- app.AccountKeeper,
- app.GatewayKeeper,
- )
- applicationModule := applicationmodule.NewAppModule(
- appCodec,
- app.ApplicationKeeper,
- app.AccountKeeper,
- app.BankKeeper,
- )
+// New returns a reference to an initialized App.
+func New(
+ logger log.Logger,
+ db dbm.DB,
+ traceStore io.Writer,
+ loadLatest bool,
+ appOpts servertypes.AppOptions,
+ baseAppOptions ...func(*baseapp.BaseApp),
+) (*App, error) {
+ var (
+ app = &App{}
+ appBuilder *runtime.AppBuilder
+
+ // merge the AppConfig and other configuration in one config
+ // TODO_BLOCKER(@Olshansk): Revisit the advanced configuration and understand if/where it fits in Shannon
+ appConfig = depinject.Configs(
+ AppConfig(),
+ depinject.Supply(
+ // Supply the application options
+ appOpts,
+ // Supply with IBC keeper getter for the IBC modules with App Wiring.
+ // The IBC Keeper cannot be passed because it has not been initiated yet.
+ // Passing the getter, the app IBC Keeper will always be accessible.
+ // This needs to be removed after IBC supports App Wiring.
+ app.GetIBCKeeper,
+ app.GetCapabilityScopedKeeper,
+ // Supply the logger
+ logger,
+
+ // ADVANCED CONFIGURATION
+ //
+ // AUTH
+ //
+ // For providing a custom function required in auth to generate custom account types
+ // add it below. By default the auth module uses simulation.RandomGenesisAccounts.
+ //
+ // authtypes.RandomGenesisAccountsFn(simulation.RandomGenesisAccounts),
+ //
+ // For providing a custom a base account type add it below.
+ // By default the auth module uses authtypes.ProtoBaseAccount().
+ //
+ // func() sdk.AccountI { return authtypes.ProtoBaseAccount() },
+ //
+ // For providing a different address codec, add it below.
+ // By default the auth module uses a Bech32 address codec,
+ // with the prefix defined in the auth module configuration.
+ //
+ // func() address.Codec { return <- custom address codec type -> }
+
+ //
+ // STAKING
+ //
+ // For provinding a different validator and consensus address codec, add it below.
+ // By default the staking module uses the bech32 prefix provided in the auth config,
+ // and appends "valoper" and "valcons" for validator and consensus addresses respectively.
+ // When providing a custom address codec in auth, custom address codecs must be provided here as well.
+ //
+ // func() runtime.ValidatorAddressCodec { return <- custom validator address codec type -> }
+ // func() runtime.ConsensusAddressCodec { return <- custom consensus address codec type -> }
+
+ //
+ // MINT
+ //
+
+ // For providing a custom inflation function for x/mint add here your
+ // custom function that implements the minttypes.InflationCalculationFn
+ // interface.
+ ),
+ )
+ )
+
+ if err := depinject.Inject(appConfig,
+ &appBuilder,
+ &app.appCodec,
+ &app.legacyAmino,
+ &app.txConfig,
+ &app.interfaceRegistry,
+ &app.AccountKeeper,
+ &app.BankKeeper,
+ &app.StakingKeeper,
+ &app.SlashingKeeper,
+ &app.MintKeeper,
+ &app.DistrKeeper,
+ &app.GovKeeper,
+ &app.CrisisKeeper,
+ &app.UpgradeKeeper,
+ &app.ParamsKeeper,
+ &app.AuthzKeeper,
+ &app.EvidenceKeeper,
+ &app.FeeGrantKeeper,
+ &app.GroupKeeper,
+ &app.ConsensusParamsKeeper,
+ &app.CircuitBreakerKeeper,
+ &app.ServiceKeeper,
+ &app.GatewayKeeper,
+ &app.ApplicationKeeper,
+ &app.SupplierKeeper,
+ &app.SessionKeeper,
+ &app.ProofKeeper,
+ &app.TokenomicsKeeper,
+ // this line is used by starport scaffolding # stargate/app/keeperDefinition
+ ); err != nil {
+ panic(err)
+ }
- // TODO_TECHDEBT: Evaluate if this NB goes away after we upgrade to cosmos 0.5x
- // NB: there is a circular dependency between the supplier and session keepers.
- // Because the keepers are values (as opposed to pointers), they are copied
- // when passed into their respective module constructor functions. For this
- // reason, the existing pattern of ignite-generated keeper/module construction
- // must be broken for these keepers and modules.
+ // Below we could construct and set an application specific mempool and
+ // ABCI 1.0 PrepareProposal and ProcessProposal handlers. These defaults are
+ // already set in the SDK's BaseApp, this shows an example of how to override
+ // them.
//
- // Order of operations:
- // 1. Construct supplier keeper
- // 2. Construct session keeper
- // 3. Provide session keeper to supplier keeper via custom #SupplySessionKeeper method.
- // 4. Construct supplier module
- // 5. Construct session module
- app.SupplierKeeper = *suppliermodulekeeper.NewKeeper(
- appCodec,
- keys[suppliermoduletypes.StoreKey],
- keys[suppliermoduletypes.MemStoreKey],
- app.GetSubspace(suppliermoduletypes.ModuleName),
-
- app.BankKeeper,
- )
-
- app.SessionKeeper = *sessionmodulekeeper.NewKeeper(
- appCodec,
- keys[sessionmoduletypes.StoreKey],
- keys[sessionmoduletypes.MemStoreKey],
- app.GetSubspace(sessionmoduletypes.ModuleName),
-
- app.ApplicationKeeper,
- app.SupplierKeeper,
- )
-
- app.SupplierKeeper.SupplySessionKeeper(app.SessionKeeper)
-
- supplierModule := suppliermodule.NewAppModule(appCodec, app.SupplierKeeper, app.AccountKeeper, app.BankKeeper)
- sessionModule := sessionmodule.NewAppModule(appCodec, app.SessionKeeper, app.AccountKeeper, app.BankKeeper)
-
- app.TokenomicsKeeper = *tokenomicsmodulekeeper.NewKeeper(
- appCodec,
- keys[tokenomicsmoduletypes.StoreKey],
- keys[tokenomicsmoduletypes.MemStoreKey],
- app.GetSubspace(tokenomicsmoduletypes.ModuleName),
- app.BankKeeper,
- app.ApplicationKeeper,
- app.SupplierKeeper,
- authority,
- )
- tokenomicsModule := tokenomicsmodule.NewAppModule(appCodec, app.TokenomicsKeeper, app.AccountKeeper, app.BankKeeper)
-
- // this line is used by starport scaffolding # stargate/app/keeperDefinition
-
- /**** IBC Routing ****/
-
- // Sealing prevents other modules from creating scoped sub-keepers
- app.CapabilityKeeper.Seal()
-
- // Create static IBC router, add transfer route, then set and seal it
- ibcRouter := ibcporttypes.NewRouter()
- ibcRouter.AddRoute(icahosttypes.SubModuleName, icaHostIBCModule).
- AddRoute(ibctransfertypes.ModuleName, transferIBCModule)
- // this line is used by starport scaffolding # ibc/app/router
- app.IBCKeeper.SetRouter(ibcRouter)
-
- /**** Module Hooks ****/
-
- // register hooks after all modules have been initialized
-
- app.StakingKeeper.SetHooks(
- stakingtypes.NewMultiStakingHooks(
- // insert staking hooks receivers here
- app.DistrKeeper.Hooks(),
- app.SlashingKeeper.Hooks(),
- ),
- )
-
- /**** Module Options ****/
-
- // NOTE: we may consider parsing `appOpts` inside module constructors. For the moment
- // we prefer to be more strict in what arguments the modules expect.
- skipGenesisInvariants := cast.ToBool(appOpts.Get(crisis.FlagSkipGenesisInvariants))
-
- // NOTE: Any module instantiated in the module manager that is later modified
- // must be passed by reference here.
-
- app.mm = module.NewManager(
- genutil.NewAppModule(
- app.AccountKeeper,
- app.StakingKeeper,
- app.BaseApp.DeliverTx,
- encodingConfig.TxConfig,
- ),
- auth.NewAppModule(
- appCodec,
- app.AccountKeeper,
- authsims.RandomGenesisAccounts,
- app.GetSubspace(authtypes.ModuleName),
- ),
- authzmodule.NewAppModule(appCodec, app.AuthzKeeper, app.AccountKeeper, app.BankKeeper, app.interfaceRegistry),
- vesting.NewAppModule(app.AccountKeeper, app.BankKeeper),
- bank.NewAppModule(appCodec, app.BankKeeper, app.AccountKeeper, app.GetSubspace(banktypes.ModuleName)),
- capability.NewAppModule(appCodec, *app.CapabilityKeeper, false),
- feegrantmodule.NewAppModule(
- appCodec,
- app.AccountKeeper,
- app.BankKeeper,
- app.FeeGrantKeeper,
- app.interfaceRegistry,
- ),
- groupmodule.NewAppModule(appCodec, app.GroupKeeper, app.AccountKeeper, app.BankKeeper, app.interfaceRegistry),
- gov.NewAppModule(
- appCodec,
- &app.GovKeeper,
- app.AccountKeeper,
- app.BankKeeper,
- app.GetSubspace(govtypes.ModuleName),
- ),
- mint.NewAppModule(appCodec, app.MintKeeper, app.AccountKeeper, nil, app.GetSubspace(minttypes.ModuleName)),
- slashing.NewAppModule(
- appCodec,
- app.SlashingKeeper,
- app.AccountKeeper,
- app.BankKeeper,
- app.StakingKeeper,
- app.GetSubspace(slashingtypes.ModuleName),
- ),
- distr.NewAppModule(
- appCodec,
- app.DistrKeeper,
- app.AccountKeeper,
- app.BankKeeper,
- app.StakingKeeper,
- app.GetSubspace(distrtypes.ModuleName),
- ),
- staking.NewAppModule(
- appCodec,
- app.StakingKeeper,
- app.AccountKeeper,
- app.BankKeeper,
- app.GetSubspace(stakingtypes.ModuleName),
- ),
- upgrade.NewAppModule(app.UpgradeKeeper),
- evidence.NewAppModule(app.EvidenceKeeper),
- consensus.NewAppModule(appCodec, app.ConsensusParamsKeeper),
- ibc.NewAppModule(app.IBCKeeper),
- params.NewAppModule(app.ParamsKeeper),
- transferModule,
- icaModule,
- pocketModule,
- serviceModule,
- sessionModule,
- applicationModule,
- supplierModule,
- gatewayModule,
- tokenomicsModule,
- // this line is used by starport scaffolding # stargate/app/appModule
-
- crisis.NewAppModule(
- app.CrisisKeeper,
- skipGenesisInvariants,
- app.GetSubspace(crisistypes.ModuleName),
- ), // always be last to make sure that it checks for all invariants and not only part of them
- )
+ // Example:
+ //
+ // app.App = appBuilder.Build(...)
+ // nonceMempool := mempool.NewSenderNonceMempool()
+ // abciPropHandler := NewDefaultProposalHandler(nonceMempool, app.App.BaseApp)
+ //
+ // app.App.BaseApp.SetMempool(nonceMempool)
+ // app.App.BaseApp.SetPrepareProposal(abciPropHandler.PrepareProposalHandler())
+ // app.App.BaseApp.SetProcessProposal(abciPropHandler.ProcessProposalHandler())
+ //
+ // Alternatively, you can construct BaseApp options, append those to
+ // baseAppOptions and pass them to the appBuilder.
+ //
+ // Example:
+ //
+ // prepareOpt = func(app *baseapp.BaseApp) {
+ // abciPropHandler := baseapp.NewDefaultProposalHandler(nonceMempool, app)
+ // app.SetPrepareProposal(abciPropHandler.PrepareProposalHandler())
+ // }
+ // baseAppOptions = append(baseAppOptions, prepareOpt)
+ //
+ // create and set vote extension handler
+ // voteExtOp := func(bApp *baseapp.BaseApp) {
+ // voteExtHandler := NewVoteExtensionHandler()
+ // voteExtHandler.SetHandlers(bApp)
+ // }
- // During begin block slashing happens after distr.BeginBlocker so that
- // there is nothing left over in the validator fee pool, so as to keep the
- // CanWithdrawInvariant invariant.
- // NOTE: staking module is required if HistoricalEntries param > 0
- app.mm.SetOrderBeginBlockers(
- // upgrades should be run first
- upgradetypes.ModuleName,
- capabilitytypes.ModuleName,
- minttypes.ModuleName,
- distrtypes.ModuleName,
- slashingtypes.ModuleName,
- evidencetypes.ModuleName,
- stakingtypes.ModuleName,
- authtypes.ModuleName,
- banktypes.ModuleName,
- govtypes.ModuleName,
- crisistypes.ModuleName,
- ibctransfertypes.ModuleName,
- ibcexported.ModuleName,
- icatypes.ModuleName,
- genutiltypes.ModuleName,
- authz.ModuleName,
- feegrant.ModuleName,
- group.ModuleName,
- paramstypes.ModuleName,
- vestingtypes.ModuleName,
- consensusparamtypes.ModuleName,
- pocketmoduletypes.ModuleName,
- servicemoduletypes.ModuleName,
- sessionmoduletypes.ModuleName,
- applicationmoduletypes.ModuleName,
- suppliermoduletypes.ModuleName,
- gatewaymoduletypes.ModuleName,
- tokenomicsmoduletypes.ModuleName,
- // this line is used by starport scaffolding # stargate/app/beginBlockers
- )
+ app.App = appBuilder.Build(db, traceStore, baseAppOptions...)
- app.mm.SetOrderEndBlockers(
- crisistypes.ModuleName,
- govtypes.ModuleName,
- stakingtypes.ModuleName,
- ibctransfertypes.ModuleName,
- ibcexported.ModuleName,
- icatypes.ModuleName,
- capabilitytypes.ModuleName,
- authtypes.ModuleName,
- banktypes.ModuleName,
- distrtypes.ModuleName,
- slashingtypes.ModuleName,
- minttypes.ModuleName,
- genutiltypes.ModuleName,
- evidencetypes.ModuleName,
- authz.ModuleName,
- feegrant.ModuleName,
- group.ModuleName,
- paramstypes.ModuleName,
- upgradetypes.ModuleName,
- vestingtypes.ModuleName,
- consensusparamtypes.ModuleName,
- pocketmoduletypes.ModuleName,
- servicemoduletypes.ModuleName,
- sessionmoduletypes.ModuleName,
- applicationmoduletypes.ModuleName,
- suppliermoduletypes.ModuleName,
- gatewaymoduletypes.ModuleName,
- tokenomicsmoduletypes.ModuleName,
- // this line is used by starport scaffolding # stargate/app/endBlockers
- )
+ // Register legacy modules
+ app.registerIBCModules()
- // NOTE: The genutils module must occur after staking so that pools are
- // properly initialized with tokens from genesis accounts.
- // NOTE: Capability module must occur first so that it can initialize any capabilities
- // so that other modules that want to create or claim capabilities afterwards in InitChain
- // can do so safely.
- genesisModuleOrder := []string{
- capabilitytypes.ModuleName,
- authtypes.ModuleName,
- banktypes.ModuleName,
- distrtypes.ModuleName,
- stakingtypes.ModuleName,
- slashingtypes.ModuleName,
- govtypes.ModuleName,
- minttypes.ModuleName,
- crisistypes.ModuleName,
- genutiltypes.ModuleName,
- ibctransfertypes.ModuleName,
- ibcexported.ModuleName,
- icatypes.ModuleName,
- evidencetypes.ModuleName,
- authz.ModuleName,
- feegrant.ModuleName,
- group.ModuleName,
- paramstypes.ModuleName,
- upgradetypes.ModuleName,
- vestingtypes.ModuleName,
- consensusparamtypes.ModuleName,
- pocketmoduletypes.ModuleName,
- servicemoduletypes.ModuleName,
- sessionmoduletypes.ModuleName,
- applicationmoduletypes.ModuleName,
- suppliermoduletypes.ModuleName,
- gatewaymoduletypes.ModuleName,
- tokenomicsmoduletypes.ModuleName,
- // this line is used by starport scaffolding # stargate/app/initGenesis
+ // register streaming services
+ if err := app.RegisterStreamingServices(appOpts, app.kvStoreKeys()); err != nil {
+ return nil, err
}
- app.mm.SetOrderInitGenesis(genesisModuleOrder...)
- app.mm.SetOrderExportGenesis(genesisModuleOrder...)
- // Uncomment if you want to set a custom migration order here.
- // app.mm.SetOrderMigrations(custom order)
+ /**** Module Options ****/
- app.mm.RegisterInvariants(app.CrisisKeeper)
- app.configurator = module.NewConfigurator(app.appCodec, app.MsgServiceRouter(), app.GRPCQueryRouter())
- app.mm.RegisterServices(app.configurator)
+ app.ModuleManager.RegisterInvariants(app.CrisisKeeper)
- autocliv1.RegisterQueryServer(app.GRPCQueryRouter(), runtimeservices.NewAutoCLIQueryService(app.mm.Modules))
- reflectionSvc, err := runtimeservices.NewReflectionService()
- if err != nil {
- panic(err)
- }
- reflectionv1.RegisterReflectionServiceServer(app.GRPCQueryRouter(), reflectionSvc)
+ // add test gRPC service for testing gRPC queries in isolation
+ testdata_pulsar.RegisterQueryServer(app.GRPCQueryRouter(), testdata_pulsar.QueryImpl{})
// create the simulation manager and define the order of the modules for deterministic simulations
+ //
+ // NOTE: this is not required apps that don't use the simulator for fuzz testing
+ // transactions
overrideModules := map[string]module.AppModuleSimulation{
- authtypes.ModuleName: auth.NewAppModule(
- app.appCodec,
- app.AccountKeeper,
- authsims.RandomGenesisAccounts,
- app.GetSubspace(authtypes.ModuleName),
- ),
- }
- app.sm = module.NewSimulationManagerFromAppModules(app.mm.Modules, overrideModules)
- app.sm.RegisterStoreDecoders()
-
- // initialize stores
- app.MountKVStores(keys)
- app.MountTransientStores(tkeys)
- app.MountMemoryStores(memKeys)
-
- // initialize BaseApp
- anteHandler, err := ante.NewAnteHandler(
- ante.HandlerOptions{
- AccountKeeper: app.AccountKeeper,
- BankKeeper: app.BankKeeper,
- SignModeHandler: encodingConfig.TxConfig.SignModeHandler(),
- FeegrantKeeper: app.FeeGrantKeeper,
- SigGasConsumer: ante.DefaultSigVerificationGasConsumer,
- },
- )
- if err != nil {
- panic(fmt.Errorf("failed to create AnteHandler: %w", err))
- }
-
- app.SetAnteHandler(anteHandler)
- app.SetInitChainer(app.InitChainer)
- app.SetBeginBlocker(app.BeginBlocker)
- app.SetEndBlocker(app.EndBlocker)
-
- if loadLatest {
- if err := app.LoadLatestVersion(); err != nil {
- tmos.Exit(err.Error())
- }
- }
-
- app.ScopedIBCKeeper = scopedIBCKeeper
- app.ScopedTransferKeeper = scopedTransferKeeper
- // this line is used by starport scaffolding # stargate/app/beforeInitReturn
-
- return app
-}
-
-// Name returns the name of the App
-func (app *App) Name() string { return app.BaseApp.Name() }
-
-// BeginBlocker application updates every begin block
-func (app *App) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock {
- return app.mm.BeginBlock(ctx, req)
-}
-
-// EndBlocker application updates every end block
-func (app *App) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock {
- return app.mm.EndBlock(ctx, req)
-}
-
-// InitChainer application update at chain initialization
-func (app *App) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain {
- var genesisState GenesisState
- if err := json.Unmarshal(req.AppStateBytes, &genesisState); err != nil {
- panic(err)
+ authtypes.ModuleName: auth.NewAppModule(app.appCodec, app.AccountKeeper, authsims.RandomGenesisAccounts, app.GetSubspace(authtypes.ModuleName)),
}
- app.UpgradeKeeper.SetModuleVersionMap(ctx, app.mm.GetVersionMap())
- return app.mm.InitGenesis(ctx, app.appCodec, genesisState)
-}
+ app.sm = module.NewSimulationManagerFromAppModules(app.ModuleManager.Modules, overrideModules)
-// Configurator get app configurator
-func (app *App) Configurator() module.Configurator {
- return app.configurator
-}
+ app.sm.RegisterStoreDecoders()
-// LoadHeight loads a particular height
-func (app *App) LoadHeight(height int64) error {
- return app.LoadVersion(height)
-}
+ // A custom InitChainer can be set if extra pre-init-genesis logic is required.
+ // By default, when using app wiring enabled module, this is not required.
+ // For instance, the upgrade module will set automatically the module version map in its init genesis thanks to app wiring.
+ // However, when registering a module manually (i.e. that does not support app wiring), the module version map
+ // must be set manually as follow. The upgrade module will de-duplicate the module version map.
+ //
+ // app.SetInitChainer(func(ctx sdk.Context, req *abci.RequestInitChain) (*abci.ResponseInitChain, error) {
+ // app.UpgradeKeeper.SetModuleVersionMap(ctx, app.ModuleManager.GetVersionMap())
+ // return app.App.InitChainer(ctx, req)
+ // })
-// ModuleAccountAddrs returns all the app's module account addresses.
-func (app *App) ModuleAccountAddrs() map[string]bool {
- modAccAddrs := make(map[string]bool)
- for acc := range maccPerms {
- modAccAddrs[authtypes.NewModuleAddress(acc).String()] = true
+ if err := app.Load(loadLatest); err != nil {
+ return nil, err
}
- return modAccAddrs
-}
-
-// BlockedModuleAccountAddrs returns all the app's blocked module account
-// addresses.
-func (app *App) BlockedModuleAccountAddrs() map[string]bool {
- modAccAddrs := app.ModuleAccountAddrs()
- delete(modAccAddrs, authtypes.NewModuleAddress(govtypes.ModuleName).String())
-
- return modAccAddrs
+ return app, nil
}
-// LegacyAmino returns SimApp's amino codec.
+// LegacyAmino returns App's amino codec.
//
// NOTE: This is solely to be used for testing purposes as it may be desirable
// for modules to register their own custom testing types.
func (app *App) LegacyAmino() *codec.LegacyAmino {
- return app.cdc
+ return app.legacyAmino
}
-// AppCodec returns an app codec.
+// AppCodec returns App's app codec.
//
// NOTE: This is solely to be used for testing purposes as it may be desirable
// for modules to register their own custom testing types.
@@ -1020,121 +376,93 @@ func (app *App) AppCodec() codec.Codec {
return app.appCodec
}
-// InterfaceRegistry returns an InterfaceRegistry
-func (app *App) InterfaceRegistry() types.InterfaceRegistry {
- return app.interfaceRegistry
-}
-
-// TxConfig returns SimApp's TxConfig
-func (app *App) TxConfig() client.TxConfig {
- return app.txConfig
-}
-
// GetKey returns the KVStoreKey for the provided store key.
-//
-// NOTE: This is solely to be used for testing purposes.
func (app *App) GetKey(storeKey string) *storetypes.KVStoreKey {
- return app.keys[storeKey]
+ kvStoreKey, ok := app.UnsafeFindStoreKey(storeKey).(*storetypes.KVStoreKey)
+ if !ok {
+ return nil
+ }
+ return kvStoreKey
}
-// GetTKey returns the TransientStoreKey for the provided store key.
-//
-// NOTE: This is solely to be used for testing purposes.
-func (app *App) GetTKey(storeKey string) *storetypes.TransientStoreKey {
- return app.tkeys[storeKey]
+// GetMemKey returns the MemoryStoreKey for the provided store key.
+func (app *App) GetMemKey(storeKey string) *storetypes.MemoryStoreKey {
+ key, ok := app.UnsafeFindStoreKey(storeKey).(*storetypes.MemoryStoreKey)
+ if !ok {
+ return nil
+ }
+
+ return key
}
-// GetMemKey returns the MemStoreKey for the provided mem key.
-//
-// NOTE: This is solely used for testing purposes.
-func (app *App) GetMemKey(storeKey string) *storetypes.MemoryStoreKey {
- return app.memKeys[storeKey]
+// kvStoreKeys returns all the kv store keys registered inside App.
+func (app *App) kvStoreKeys() map[string]*storetypes.KVStoreKey {
+ keys := make(map[string]*storetypes.KVStoreKey)
+ for _, k := range app.GetStoreKeys() {
+ if kv, ok := k.(*storetypes.KVStoreKey); ok {
+ keys[kv.Name()] = kv
+ }
+ }
+
+ return keys
}
// GetSubspace returns a param subspace for a given module name.
-//
-// NOTE: This is solely to be used for testing purposes.
func (app *App) GetSubspace(moduleName string) paramstypes.Subspace {
subspace, _ := app.ParamsKeeper.GetSubspace(moduleName)
return subspace
}
+// SimulationManager implements the SimulationApp interface.
+func (app *App) SimulationManager() *module.SimulationManager {
+ return app.sm
+}
+
// RegisterAPIRoutes registers all application module routes with the provided
// API server.
func (app *App) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig) {
- clientCtx := apiSvr.ClientCtx
- // Register new tx routes from grpc-gateway.
- authtx.RegisterGRPCGatewayRoutes(clientCtx, apiSvr.GRPCGatewayRouter)
- // Register new tendermint queries routes from grpc-gateway.
- tmservice.RegisterGRPCGatewayRoutes(clientCtx, apiSvr.GRPCGatewayRouter)
- // Register node gRPC service for grpc-gateway.
- nodeservice.RegisterGRPCGatewayRoutes(clientCtx, apiSvr.GRPCGatewayRouter)
-
- // Register grpc-gateway routes for all modules.
- ModuleBasics.RegisterGRPCGatewayRoutes(clientCtx, apiSvr.GRPCGatewayRouter)
+ app.App.RegisterAPIRoutes(apiSvr, apiConfig)
+ // register swagger API in app.go so that other applications can override easily
+ if err := server.RegisterSwaggerAPI(apiSvr.ClientCtx, apiSvr.Router, apiConfig.Swagger); err != nil {
+ panic(err)
+ }
// register app's OpenAPI routes.
docs.RegisterOpenAPIService(Name, apiSvr.Router)
}
-// RegisterTxService implements the Application.RegisterTxService method.
-func (app *App) RegisterTxService(clientCtx client.Context) {
- authtx.RegisterTxService(app.BaseApp.GRPCQueryRouter(), clientCtx, app.BaseApp.Simulate, app.interfaceRegistry)
+// GetIBCKeeper returns the IBC keeper.
+func (app *App) GetIBCKeeper() *ibckeeper.Keeper {
+ return app.IBCKeeper
}
-// RegisterTendermintService implements the Application.RegisterTendermintService method.
-func (app *App) RegisterTendermintService(clientCtx client.Context) {
- tmservice.RegisterTendermintService(
- clientCtx,
- app.BaseApp.GRPCQueryRouter(),
- app.interfaceRegistry,
- app.Query,
- )
-}
-
-// RegisterNodeService implements the Application.RegisterNodeService method.
-func (app *App) RegisterNodeService(clientCtx client.Context) {
- nodeservice.RegisterNodeService(clientCtx, app.GRPCQueryRouter())
-}
-
-// initParamsKeeper init params keeper and its subspaces
-func initParamsKeeper(
- appCodec codec.BinaryCodec,
- legacyAmino *codec.LegacyAmino,
- key, tkey storetypes.StoreKey,
-) paramskeeper.Keeper {
- paramsKeeper := paramskeeper.NewKeeper(appCodec, legacyAmino, key, tkey)
-
- paramsKeeper.Subspace(authtypes.ModuleName)
- paramsKeeper.Subspace(banktypes.ModuleName)
- paramsKeeper.Subspace(stakingtypes.ModuleName)
- paramsKeeper.Subspace(minttypes.ModuleName)
- paramsKeeper.Subspace(distrtypes.ModuleName)
- paramsKeeper.Subspace(slashingtypes.ModuleName)
- paramsKeeper.Subspace(govtypes.ModuleName).WithKeyTable(govv1.ParamKeyTable()) //nolint:staticcheck
- paramsKeeper.Subspace(crisistypes.ModuleName)
- paramsKeeper.Subspace(ibctransfertypes.ModuleName)
- paramsKeeper.Subspace(ibcexported.ModuleName)
- paramsKeeper.Subspace(icacontrollertypes.SubModuleName)
- paramsKeeper.Subspace(icahosttypes.SubModuleName)
- paramsKeeper.Subspace(pocketmoduletypes.ModuleName)
- paramsKeeper.Subspace(servicemoduletypes.ModuleName)
- paramsKeeper.Subspace(sessionmoduletypes.ModuleName)
- paramsKeeper.Subspace(applicationmoduletypes.ModuleName)
- paramsKeeper.Subspace(suppliermoduletypes.ModuleName)
- paramsKeeper.Subspace(gatewaymoduletypes.ModuleName)
- paramsKeeper.Subspace(tokenomicsmoduletypes.ModuleName)
- // this line is used by starport scaffolding # stargate/app/paramSubspace
-
- return paramsKeeper
+// GetCapabilityScopedKeeper returns the capability scoped keeper.
+func (app *App) GetCapabilityScopedKeeper(moduleName string) capabilitykeeper.ScopedKeeper {
+ return app.CapabilityKeeper.ScopeToModule(moduleName)
}
-// SimulationManager returns the app SimulationManager
-func (app *App) SimulationManager() *module.SimulationManager {
- return app.sm
+// GetMaccPerms returns a copy of the module account permissions
+//
+// NOTE: This is solely to be used for testing purposes.
+func GetMaccPerms() map[string][]string {
+ dup := make(map[string][]string)
+ for _, perms := range moduleAccPerms {
+ dup[perms.Account] = perms.Permissions
+ }
+ return dup
}
-// ModuleManager returns the app ModuleManager
-func (app *App) ModuleManager() *module.Manager {
- return app.mm
+// BlockedAddresses returns all the app's blocked account addresses.
+func BlockedAddresses() map[string]bool {
+ result := make(map[string]bool)
+ if len(blockAccAddrs) > 0 {
+ for _, addr := range blockAccAddrs {
+ result[addr] = true
+ }
+ } else {
+ for addr := range GetMaccPerms() {
+ result[addr] = true
+ }
+ }
+ return result
}
diff --git a/app/app_config.go b/app/app_config.go
new file mode 100644
index 000000000..fb5e1e833
--- /dev/null
+++ b/app/app_config.go
@@ -0,0 +1,380 @@
+package app
+
+import (
+ "time"
+
+ runtimev1alpha1 "cosmossdk.io/api/cosmos/app/runtime/v1alpha1"
+ appv1alpha1 "cosmossdk.io/api/cosmos/app/v1alpha1"
+ authmodulev1 "cosmossdk.io/api/cosmos/auth/module/v1"
+ authzmodulev1 "cosmossdk.io/api/cosmos/authz/module/v1"
+ bankmodulev1 "cosmossdk.io/api/cosmos/bank/module/v1"
+ circuitmodulev1 "cosmossdk.io/api/cosmos/circuit/module/v1"
+ consensusmodulev1 "cosmossdk.io/api/cosmos/consensus/module/v1"
+ crisismodulev1 "cosmossdk.io/api/cosmos/crisis/module/v1"
+ distrmodulev1 "cosmossdk.io/api/cosmos/distribution/module/v1"
+ evidencemodulev1 "cosmossdk.io/api/cosmos/evidence/module/v1"
+ feegrantmodulev1 "cosmossdk.io/api/cosmos/feegrant/module/v1"
+ genutilmodulev1 "cosmossdk.io/api/cosmos/genutil/module/v1"
+ govmodulev1 "cosmossdk.io/api/cosmos/gov/module/v1"
+ groupmodulev1 "cosmossdk.io/api/cosmos/group/module/v1"
+ mintmodulev1 "cosmossdk.io/api/cosmos/mint/module/v1"
+ paramsmodulev1 "cosmossdk.io/api/cosmos/params/module/v1"
+ slashingmodulev1 "cosmossdk.io/api/cosmos/slashing/module/v1"
+ stakingmodulev1 "cosmossdk.io/api/cosmos/staking/module/v1"
+ txconfigv1 "cosmossdk.io/api/cosmos/tx/config/v1"
+ upgrademodulev1 "cosmossdk.io/api/cosmos/upgrade/module/v1"
+ vestingmodulev1 "cosmossdk.io/api/cosmos/vesting/module/v1"
+ "cosmossdk.io/core/appconfig"
+ _ "cosmossdk.io/x/circuit" // import for side-effects
+ circuittypes "cosmossdk.io/x/circuit/types"
+ _ "cosmossdk.io/x/evidence" // import for side-effects
+ evidencetypes "cosmossdk.io/x/evidence/types"
+ "cosmossdk.io/x/feegrant"
+ _ "cosmossdk.io/x/feegrant/module" // import for side-effects
+ _ "cosmossdk.io/x/upgrade" // import for side-effects
+ upgradetypes "cosmossdk.io/x/upgrade/types"
+ "github.com/cosmos/cosmos-sdk/runtime"
+ _ "github.com/cosmos/cosmos-sdk/x/auth/tx/config" // import for side-effects
+ authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
+ _ "github.com/cosmos/cosmos-sdk/x/auth/vesting" // import for side-effects
+ vestingtypes "github.com/cosmos/cosmos-sdk/x/auth/vesting/types"
+ "github.com/cosmos/cosmos-sdk/x/authz"
+ _ "github.com/cosmos/cosmos-sdk/x/authz/module" // import for side-effects
+ _ "github.com/cosmos/cosmos-sdk/x/bank" // import for side-effects
+ banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
+ _ "github.com/cosmos/cosmos-sdk/x/consensus" // import for side-effects
+ consensusparamtypes "github.com/cosmos/cosmos-sdk/x/consensus/types"
+ consensustypes "github.com/cosmos/cosmos-sdk/x/consensus/types"
+ _ "github.com/cosmos/cosmos-sdk/x/crisis" // import for side-effects
+ crisistypes "github.com/cosmos/cosmos-sdk/x/crisis/types"
+ _ "github.com/cosmos/cosmos-sdk/x/distribution" // import for side-effects
+ distrtypes "github.com/cosmos/cosmos-sdk/x/distribution/types"
+ genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types"
+ govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"
+ "github.com/cosmos/cosmos-sdk/x/group"
+ _ "github.com/cosmos/cosmos-sdk/x/group/module" // import for side-effects
+ _ "github.com/cosmos/cosmos-sdk/x/mint" // import for side-effects
+ minttypes "github.com/cosmos/cosmos-sdk/x/mint/types"
+ _ "github.com/cosmos/cosmos-sdk/x/params" // import for side-effects
+ paramstypes "github.com/cosmos/cosmos-sdk/x/params/types"
+ _ "github.com/cosmos/cosmos-sdk/x/slashing" // import for side-effects
+ slashingtypes "github.com/cosmos/cosmos-sdk/x/slashing/types"
+ _ "github.com/cosmos/cosmos-sdk/x/staking" // import for side-effects
+ stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
+ _ "github.com/cosmos/ibc-go/modules/capability" // import for side-effects
+ capabilitytypes "github.com/cosmos/ibc-go/modules/capability/types"
+ _ "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts" // import for side-effects
+ icatypes "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/types"
+ _ "github.com/cosmos/ibc-go/v8/modules/apps/29-fee" // import for side-effects
+ ibcfeetypes "github.com/cosmos/ibc-go/v8/modules/apps/29-fee/types"
+ ibctransfertypes "github.com/cosmos/ibc-go/v8/modules/apps/transfer/types"
+ ibcexported "github.com/cosmos/ibc-go/v8/modules/core/exported"
+ applicationmodulev1 "github.com/pokt-network/poktroll/api/poktroll/application/module"
+ gatewaymodulev1 "github.com/pokt-network/poktroll/api/poktroll/gateway/module"
+ proofmodulev1 "github.com/pokt-network/poktroll/api/poktroll/proof/module"
+ servicemodulev1 "github.com/pokt-network/poktroll/api/poktroll/service/module"
+ sessionmodulev1 "github.com/pokt-network/poktroll/api/poktroll/session/module"
+ suppliermodulev1 "github.com/pokt-network/poktroll/api/poktroll/supplier/module"
+ tokenomicsmodulev1 "github.com/pokt-network/poktroll/api/poktroll/tokenomics/module"
+ _ "github.com/pokt-network/poktroll/x/application/module" // import for side-effects
+ applicationmoduletypes "github.com/pokt-network/poktroll/x/application/types"
+ _ "github.com/pokt-network/poktroll/x/gateway/module" // import for side-effects
+ gatewaymoduletypes "github.com/pokt-network/poktroll/x/gateway/types"
+ _ "github.com/pokt-network/poktroll/x/proof/module" // import for side-effects
+ proofmoduletypes "github.com/pokt-network/poktroll/x/proof/types"
+ _ "github.com/pokt-network/poktroll/x/service/module" // import for side-effects
+ servicemoduletypes "github.com/pokt-network/poktroll/x/service/types"
+ _ "github.com/pokt-network/poktroll/x/session/module" // import for side-effects
+ sessionmoduletypes "github.com/pokt-network/poktroll/x/session/types"
+ _ "github.com/pokt-network/poktroll/x/supplier/module" // import for side-effects
+ suppliermoduletypes "github.com/pokt-network/poktroll/x/supplier/types"
+ _ "github.com/pokt-network/poktroll/x/tokenomics/module" // import for side-effects
+ tokenomicsmoduletypes "github.com/pokt-network/poktroll/x/tokenomics/types"
+ "google.golang.org/protobuf/types/known/durationpb"
+ // this line is used by starport scaffolding # stargate/app/moduleImport
+)
+
+var (
+ // NOTE: The genutils module must occur after staking so that pools are
+ // properly initialized with tokens from genesis accounts.
+ // NOTE: The genutils module must also occur after auth so that it can access the params from auth.
+ // NOTE: Capability module must occur first so that it can initialize any capabilities
+ // so that other modules that want to create or claim capabilities afterwards in InitChain
+ // can do so safely.
+ genesisModuleOrder = []string{
+ // cosmos-sdk/ibc modules
+ capabilitytypes.ModuleName,
+ authtypes.ModuleName,
+ banktypes.ModuleName,
+ distrtypes.ModuleName,
+ stakingtypes.ModuleName,
+ slashingtypes.ModuleName,
+ govtypes.ModuleName,
+ minttypes.ModuleName,
+ crisistypes.ModuleName,
+ ibcexported.ModuleName,
+ genutiltypes.ModuleName,
+ evidencetypes.ModuleName,
+ authz.ModuleName,
+ ibctransfertypes.ModuleName,
+ icatypes.ModuleName,
+ ibcfeetypes.ModuleName,
+ feegrant.ModuleName,
+ paramstypes.ModuleName,
+ upgradetypes.ModuleName,
+ vestingtypes.ModuleName,
+ circuittypes.ModuleName,
+ group.ModuleName,
+ consensusparamtypes.ModuleName,
+ circuittypes.ModuleName,
+ // chain modules
+ servicemoduletypes.ModuleName,
+ gatewaymoduletypes.ModuleName,
+ applicationmoduletypes.ModuleName,
+ suppliermoduletypes.ModuleName,
+ sessionmoduletypes.ModuleName,
+ proofmoduletypes.ModuleName,
+ tokenomicsmoduletypes.ModuleName,
+ // this line is used by starport scaffolding # stargate/app/initGenesis
+ }
+
+ // During begin block slashing happens after distr.BeginBlocker so that
+ // there is nothing left over in the validator fee pool, so as to keep the
+ // CanWithdrawInvariant invariant.
+ // NOTE: staking module is required if HistoricalEntries param > 0
+ // NOTE: capability module's beginblocker must come before any modules using capabilities (e.g. IBC)
+ beginBlockers = []string{
+ // cosmos sdk modules
+ minttypes.ModuleName,
+ distrtypes.ModuleName,
+ slashingtypes.ModuleName,
+ evidencetypes.ModuleName,
+ stakingtypes.ModuleName,
+ authz.ModuleName,
+ genutiltypes.ModuleName,
+ // ibc modules
+ capabilitytypes.ModuleName,
+ ibcexported.ModuleName,
+ ibctransfertypes.ModuleName,
+ icatypes.ModuleName,
+ ibcfeetypes.ModuleName,
+ // chain modules
+ servicemoduletypes.ModuleName,
+ gatewaymoduletypes.ModuleName,
+ applicationmoduletypes.ModuleName,
+ suppliermoduletypes.ModuleName,
+ sessionmoduletypes.ModuleName,
+ proofmoduletypes.ModuleName,
+ tokenomicsmoduletypes.ModuleName,
+ // this line is used by starport scaffolding # stargate/app/beginBlockers
+ }
+
+ endBlockers = []string{
+ // cosmos sdk modules
+ crisistypes.ModuleName,
+ govtypes.ModuleName,
+ stakingtypes.ModuleName,
+ feegrant.ModuleName,
+ group.ModuleName,
+ genutiltypes.ModuleName,
+ // ibc modules
+ ibcexported.ModuleName,
+ ibctransfertypes.ModuleName,
+ capabilitytypes.ModuleName,
+ icatypes.ModuleName,
+ ibcfeetypes.ModuleName,
+ // chain modules
+ servicemoduletypes.ModuleName,
+ gatewaymoduletypes.ModuleName,
+ applicationmoduletypes.ModuleName,
+ suppliermoduletypes.ModuleName,
+ sessionmoduletypes.ModuleName,
+ proofmoduletypes.ModuleName,
+ tokenomicsmoduletypes.ModuleName,
+ // this line is used by starport scaffolding # stargate/app/endBlockers
+ }
+
+ preBlockers = []string{
+ upgradetypes.ModuleName,
+ // this line is used by starport scaffolding # stargate/app/preBlockers
+ }
+
+ // module account permissions
+ moduleAccPerms = []*authmodulev1.ModuleAccountPermission{
+ {Account: authtypes.FeeCollectorName},
+ {Account: distrtypes.ModuleName},
+ {Account: minttypes.ModuleName, Permissions: []string{authtypes.Minter}},
+ {Account: stakingtypes.BondedPoolName, Permissions: []string{authtypes.Burner, stakingtypes.ModuleName}},
+ {Account: stakingtypes.NotBondedPoolName, Permissions: []string{authtypes.Burner, stakingtypes.ModuleName}},
+ {Account: govtypes.ModuleName, Permissions: []string{authtypes.Burner}},
+ {Account: ibctransfertypes.ModuleName, Permissions: []string{authtypes.Minter, authtypes.Burner}},
+ {Account: ibcfeetypes.ModuleName},
+ {Account: icatypes.ModuleName},
+ {Account: servicemoduletypes.ModuleName, Permissions: []string{authtypes.Minter, authtypes.Burner, authtypes.Staking}},
+ {Account: gatewaymoduletypes.ModuleName, Permissions: []string{authtypes.Minter, authtypes.Burner, authtypes.Staking}},
+ {Account: applicationmoduletypes.ModuleName, Permissions: []string{authtypes.Minter, authtypes.Burner, authtypes.Staking}},
+ {Account: suppliermoduletypes.ModuleName, Permissions: []string{authtypes.Minter, authtypes.Burner, authtypes.Staking}},
+ {Account: sessionmoduletypes.ModuleName, Permissions: []string{authtypes.Minter, authtypes.Burner, authtypes.Staking}},
+ {Account: tokenomicsmoduletypes.ModuleName, Permissions: []string{authtypes.Minter, authtypes.Burner, authtypes.Staking}},
+ // this line is used by starport scaffolding # stargate/app/maccPerms }
+ }
+
+ // blocked account addresses
+ blockAccAddrs = []string{
+ authtypes.FeeCollectorName,
+ distrtypes.ModuleName,
+ minttypes.ModuleName,
+ stakingtypes.BondedPoolName,
+ stakingtypes.NotBondedPoolName,
+ // We allow the following module accounts to receive funds:
+ // govtypes.ModuleName
+ }
+
+ // appConfig application configuration (used by depinject)
+ appConfig = appconfig.Compose(&appv1alpha1.Config{
+ Modules: []*appv1alpha1.ModuleConfig{
+ {
+ Name: runtime.ModuleName,
+ Config: appconfig.WrapAny(&runtimev1alpha1.Module{
+ AppName: Name,
+ PreBlockers: preBlockers,
+ BeginBlockers: beginBlockers,
+ EndBlockers: endBlockers,
+ InitGenesis: genesisModuleOrder,
+ OverrideStoreKeys: []*runtimev1alpha1.StoreKeyConfig{
+ {
+ ModuleName: authtypes.ModuleName,
+ KvStoreKey: "acc",
+ },
+ },
+ // When ExportGenesis is not specified, the export genesis module order
+ // is equal to the init genesis order
+ // ExportGenesis: genesisModuleOrder,
+ // Uncomment if you want to set a custom migration order here.
+ // OrderMigrations: nil,
+ }),
+ },
+ {
+ Name: authtypes.ModuleName,
+ Config: appconfig.WrapAny(&authmodulev1.Module{
+ Bech32Prefix: AccountAddressPrefix,
+ ModuleAccountPermissions: moduleAccPerms,
+ // By default modules authority is the governance module. This is configurable with the following:
+ // Authority: "group", // A custom module authority can be set using a module name
+ // Authority: "cosmos1cwwv22j5ca08ggdv9c2uky355k908694z577tv", // or a specific address
+ }),
+ },
+ {
+ Name: vestingtypes.ModuleName,
+ Config: appconfig.WrapAny(&vestingmodulev1.Module{}),
+ },
+ {
+ Name: banktypes.ModuleName,
+ Config: appconfig.WrapAny(&bankmodulev1.Module{
+ BlockedModuleAccountsOverride: blockAccAddrs,
+ }),
+ },
+ {
+ Name: stakingtypes.ModuleName,
+ Config: appconfig.WrapAny(&stakingmodulev1.Module{
+ // NOTE: specifying a prefix is only necessary when using bech32 addresses
+ // If not specfied, the auth Bech32Prefix appended with "valoper" and "valcons" is used by default
+ Bech32PrefixValidator: AccountAddressPrefix + "valoper",
+ Bech32PrefixConsensus: AccountAddressPrefix + "valcons",
+ }),
+ },
+ {
+ Name: slashingtypes.ModuleName,
+ Config: appconfig.WrapAny(&slashingmodulev1.Module{}),
+ },
+ {
+ Name: paramstypes.ModuleName,
+ Config: appconfig.WrapAny(¶msmodulev1.Module{}),
+ },
+ {
+ Name: "tx",
+ Config: appconfig.WrapAny(&txconfigv1.Config{}),
+ },
+ {
+ Name: genutiltypes.ModuleName,
+ Config: appconfig.WrapAny(&genutilmodulev1.Module{}),
+ },
+ {
+ Name: authz.ModuleName,
+ Config: appconfig.WrapAny(&authzmodulev1.Module{}),
+ },
+ {
+ Name: upgradetypes.ModuleName,
+ Config: appconfig.WrapAny(&upgrademodulev1.Module{}),
+ },
+ {
+ Name: distrtypes.ModuleName,
+ Config: appconfig.WrapAny(&distrmodulev1.Module{}),
+ },
+ {
+ Name: evidencetypes.ModuleName,
+ Config: appconfig.WrapAny(&evidencemodulev1.Module{}),
+ },
+ {
+ Name: minttypes.ModuleName,
+ Config: appconfig.WrapAny(&mintmodulev1.Module{}),
+ },
+ {
+ Name: group.ModuleName,
+ Config: appconfig.WrapAny(&groupmodulev1.Module{
+ MaxExecutionPeriod: durationpb.New(time.Second * 1209600),
+ MaxMetadataLen: 255,
+ }),
+ },
+ {
+ Name: feegrant.ModuleName,
+ Config: appconfig.WrapAny(&feegrantmodulev1.Module{}),
+ },
+ {
+ Name: govtypes.ModuleName,
+ Config: appconfig.WrapAny(&govmodulev1.Module{}),
+ },
+ {
+ Name: crisistypes.ModuleName,
+ Config: appconfig.WrapAny(&crisismodulev1.Module{}),
+ },
+ {
+ Name: consensustypes.ModuleName,
+ Config: appconfig.WrapAny(&consensusmodulev1.Module{}),
+ },
+ {
+ Name: circuittypes.ModuleName,
+ Config: appconfig.WrapAny(&circuitmodulev1.Module{}),
+ },
+ {
+ Name: servicemoduletypes.ModuleName,
+ Config: appconfig.WrapAny(&servicemodulev1.Module{}),
+ },
+ {
+ Name: gatewaymoduletypes.ModuleName,
+ Config: appconfig.WrapAny(&gatewaymodulev1.Module{}),
+ },
+ {
+ Name: applicationmoduletypes.ModuleName,
+ Config: appconfig.WrapAny(&applicationmodulev1.Module{}),
+ },
+ {
+ Name: suppliermoduletypes.ModuleName,
+ Config: appconfig.WrapAny(&suppliermodulev1.Module{}),
+ },
+ {
+ Name: sessionmoduletypes.ModuleName,
+ Config: appconfig.WrapAny(&sessionmodulev1.Module{}),
+ },
+ {
+ Name: proofmoduletypes.ModuleName,
+ Config: appconfig.WrapAny(&proofmodulev1.Module{}),
+ },
+ {
+ Name: tokenomicsmoduletypes.ModuleName,
+ Config: appconfig.WrapAny(&tokenomicsmodulev1.Module{}),
+ },
+ // this line is used by starport scaffolding # stargate/app/moduleConfig
+ },
+ })
+)
diff --git a/app/encoding.go b/app/encoding.go
deleted file mode 100644
index 3e32bee43..000000000
--- a/app/encoding.go
+++ /dev/null
@@ -1,35 +0,0 @@
-package app
-
-import (
- "github.com/cosmos/cosmos-sdk/codec"
- "github.com/cosmos/cosmos-sdk/codec/types"
- "github.com/cosmos/cosmos-sdk/std"
- "github.com/cosmos/cosmos-sdk/x/auth/tx"
-
- "github.com/pokt-network/poktroll/app/params"
-)
-
-// makeEncodingConfig creates an EncodingConfig for an amino based test configuration.
-func makeEncodingConfig() params.EncodingConfig {
- amino := codec.NewLegacyAmino()
- interfaceRegistry := types.NewInterfaceRegistry()
- marshaler := codec.NewProtoCodec(interfaceRegistry)
- txCfg := tx.NewTxConfig(marshaler, tx.DefaultSignModes)
-
- return params.EncodingConfig{
- InterfaceRegistry: interfaceRegistry,
- Marshaler: marshaler,
- TxConfig: txCfg,
- Amino: amino,
- }
-}
-
-// MakeEncodingConfig creates an EncodingConfig for testing
-func MakeEncodingConfig() params.EncodingConfig {
- encodingConfig := makeEncodingConfig()
- std.RegisterLegacyAminoCodec(encodingConfig.Amino)
- std.RegisterInterfaces(encodingConfig.InterfaceRegistry)
- ModuleBasics.RegisterLegacyAminoCodec(encodingConfig.Amino)
- ModuleBasics.RegisterInterfaces(encodingConfig.InterfaceRegistry)
- return encodingConfig
-}
diff --git a/app/export.go b/app/export.go
index db240d2b6..21203b274 100644
--- a/app/export.go
+++ b/app/export.go
@@ -5,7 +5,8 @@ import (
"fmt"
"log"
- tmproto "github.com/cometbft/cometbft/proto/tendermint/types"
+ storetypes "cosmossdk.io/store/types"
+ cmtproto "github.com/cometbft/cometbft/proto/tendermint/types"
servertypes "github.com/cosmos/cosmos-sdk/server/types"
sdk "github.com/cosmos/cosmos-sdk/types"
slashingtypes "github.com/cosmos/cosmos-sdk/x/slashing/types"
@@ -15,23 +16,23 @@ import (
// ExportAppStateAndValidators exports the state of the application for a genesis
// file.
-func (app *App) ExportAppStateAndValidators(
- forZeroHeight bool,
- jailAllowedAddrs []string,
- modulesToExport []string,
-) (servertypes.ExportedApp, error) {
+func (app *App) ExportAppStateAndValidators(forZeroHeight bool, jailAllowedAddrs, modulesToExport []string) (servertypes.ExportedApp, error) {
// as if they could withdraw from the start of the next block
- ctx := app.NewContext(true, tmproto.Header{Height: app.LastBlockHeight()})
+ ctx := app.NewContextLegacy(true, cmtproto.Header{Height: app.LastBlockHeight()})
// We export at last height + 1, because that's the height at which
- // Tendermint will start InitChain.
+ // CometBFT will start InitChain.
height := app.LastBlockHeight() + 1
if forZeroHeight {
height = 0
app.prepForZeroHeightGenesis(ctx, jailAllowedAddrs)
}
- genState := app.mm.ExportGenesisForModules(ctx, app.appCodec, modulesToExport)
+ genState, err := app.ModuleManager.ExportGenesisForModules(ctx, app.appCodec, modulesToExport)
+ if err != nil {
+ return servertypes.ExportedApp{}, err
+ }
+
appState, err := json.MarshalIndent(genState, "", " ")
if err != nil {
return servertypes.ExportedApp{}, err
@@ -46,10 +47,10 @@ func (app *App) ExportAppStateAndValidators(
}, err
}
-// prepForZeroHeightGenesis prepares for a fresh genesis
-//
+// prepare for fresh start at zero height
// NOTE zero height genesis is a temporary feature which will be deprecated
-// in favour of export at a block height
+//
+// in favor of export at a block height
func (app *App) prepForZeroHeightGenesis(ctx sdk.Context, jailAllowedAddrs []string) {
applyAllowedAddrs := false
@@ -74,13 +75,24 @@ func (app *App) prepForZeroHeightGenesis(ctx sdk.Context, jailAllowedAddrs []str
/* Handle fee distribution state. */
// withdraw all validator commission
- app.StakingKeeper.IterateValidators(ctx, func(_ int64, val stakingtypes.ValidatorI) (stop bool) {
- _, _ = app.DistrKeeper.WithdrawValidatorCommission(ctx, val.GetOperator())
+ err := app.StakingKeeper.IterateValidators(ctx, func(_ int64, val stakingtypes.ValidatorI) (stop bool) {
+ valBz, err := app.StakingKeeper.ValidatorAddressCodec().StringToBytes(val.GetOperator())
+ if err != nil {
+ panic(err)
+ }
+ _, _ = app.DistrKeeper.WithdrawValidatorCommission(ctx, valBz)
return false
})
+ if err != nil {
+ panic(err)
+ }
// withdraw all delegator rewards
- dels := app.StakingKeeper.GetAllDelegations(ctx)
+ dels, err := app.StakingKeeper.GetAllDelegations(ctx)
+ if err != nil {
+ panic(err)
+ }
+
for _, delegation := range dels {
valAddr, err := sdk.ValAddressFromBech32(delegation.ValidatorAddress)
if err != nil {
@@ -103,14 +115,26 @@ func (app *App) prepForZeroHeightGenesis(ctx sdk.Context, jailAllowedAddrs []str
ctx = ctx.WithBlockHeight(0)
// reinitialize all validators
- app.StakingKeeper.IterateValidators(ctx, func(_ int64, val stakingtypes.ValidatorI) (stop bool) {
+ err = app.StakingKeeper.IterateValidators(ctx, func(_ int64, val stakingtypes.ValidatorI) (stop bool) {
+ valBz, err := app.StakingKeeper.ValidatorAddressCodec().StringToBytes(val.GetOperator())
+ if err != nil {
+ panic(err)
+ }
// donate any unwithdrawn outstanding reward fraction tokens to the community pool
- scraps := app.DistrKeeper.GetValidatorOutstandingRewardsCoins(ctx, val.GetOperator())
- feePool := app.DistrKeeper.GetFeePool(ctx)
+ scraps, err := app.DistrKeeper.GetValidatorOutstandingRewardsCoins(ctx, valBz)
+ if err != nil {
+ panic(err)
+ }
+ feePool, err := app.DistrKeeper.FeePool.Get(ctx)
+ if err != nil {
+ panic(err)
+ }
feePool.CommunityPool = feePool.CommunityPool.Add(scraps...)
- app.DistrKeeper.SetFeePool(ctx, feePool)
+ if err := app.DistrKeeper.FeePool.Set(ctx, feePool); err != nil {
+ panic(err)
+ }
- if err := app.DistrKeeper.Hooks().AfterValidatorCreated(ctx, val.GetOperator()); err != nil {
+ if err := app.DistrKeeper.Hooks().AfterValidatorCreated(ctx, valBz); err != nil {
panic(err)
}
return false
@@ -145,7 +169,10 @@ func (app *App) prepForZeroHeightGenesis(ctx sdk.Context, jailAllowedAddrs []str
for i := range red.Entries {
red.Entries[i].CreationHeight = 0
}
- app.StakingKeeper.SetRedelegation(ctx, red)
+ err = app.StakingKeeper.SetRedelegation(ctx, red)
+ if err != nil {
+ panic(err)
+ }
return false
})
@@ -154,20 +181,23 @@ func (app *App) prepForZeroHeightGenesis(ctx sdk.Context, jailAllowedAddrs []str
for i := range ubd.Entries {
ubd.Entries[i].CreationHeight = 0
}
- app.StakingKeeper.SetUnbondingDelegation(ctx, ubd)
+ err = app.StakingKeeper.SetUnbondingDelegation(ctx, ubd)
+ if err != nil {
+ panic(err)
+ }
return false
})
// Iterate through validators by power descending, reset bond heights, and
// update bond intra-tx counters.
store := ctx.KVStore(app.GetKey(stakingtypes.StoreKey))
- iter := sdk.KVStoreReversePrefixIterator(store, stakingtypes.ValidatorsKey)
+ iter := storetypes.KVStoreReversePrefixIterator(store, stakingtypes.ValidatorsKey)
counter := int16(0)
for ; iter.Valid(); iter.Next() {
addr := sdk.ValAddress(stakingtypes.AddressFromValidatorsKey(iter.Key()))
- validator, found := app.StakingKeeper.GetValidator(ctx, addr)
- if !found {
+ validator, err := app.StakingKeeper.GetValidator(ctx, addr)
+ if err != nil {
panic("expected validator, not found")
}
@@ -185,7 +215,7 @@ func (app *App) prepForZeroHeightGenesis(ctx sdk.Context, jailAllowedAddrs []str
return
}
- _, err := app.StakingKeeper.ApplyAndReturnValidatorSetUpdates(ctx)
+ _, err = app.StakingKeeper.ApplyAndReturnValidatorSetUpdates(ctx)
if err != nil {
log.Fatal(err)
}
diff --git a/app/genesis.go b/app/genesis.go
index 5bf0c1da8..a3b05bf0c 100644
--- a/app/genesis.go
+++ b/app/genesis.go
@@ -1,12 +1,8 @@
package app
-import (
- "encoding/json"
+import "encoding/json"
- "github.com/cosmos/cosmos-sdk/codec"
-)
-
-// The genesis state of the blockchain is represented here as a map of raw json
+// GenesisState of the blockchain is represented here as a map of raw json
// messages key'd by a identifier string.
// The identifier is used to determine which module genesis information belongs
// to so it may be appropriately routed during init chain.
@@ -14,8 +10,3 @@ import (
// the ModuleBasicManager which populates json from each BasicModule
// object provided to it during init.
type GenesisState map[string]json.RawMessage
-
-// NewDefaultGenesisState generates the default state for the application.
-func NewDefaultGenesisState(cdc codec.JSONCodec) GenesisState {
- return ModuleBasics.DefaultGenesis(cdc)
-}
diff --git a/app/genesis_account.go b/app/genesis_account.go
new file mode 100644
index 000000000..91ff4dfc4
--- /dev/null
+++ b/app/genesis_account.go
@@ -0,0 +1,47 @@
+package app
+
+import (
+ "errors"
+
+ sdk "github.com/cosmos/cosmos-sdk/types"
+ authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
+)
+
+var _ authtypes.GenesisAccount = (*GenesisAccount)(nil)
+
+// GenesisAccount defines a type that implements the GenesisAccount interface
+// to be used for simulation accounts in the genesis state.
+type GenesisAccount struct {
+ *authtypes.BaseAccount
+
+ // vesting account fields
+ OriginalVesting sdk.Coins `json:"original_vesting" yaml:"original_vesting"` // total vesting coins upon initialization
+ DelegatedFree sdk.Coins `json:"delegated_free" yaml:"delegated_free"` // delegated vested coins at time of delegation
+ DelegatedVesting sdk.Coins `json:"delegated_vesting" yaml:"delegated_vesting"` // delegated vesting coins at time of delegation
+ StartTime int64 `json:"start_time" yaml:"start_time"` // vesting start time (UNIX Epoch time)
+ EndTime int64 `json:"end_time" yaml:"end_time"` // vesting end time (UNIX Epoch time)
+
+ // module account fields
+ ModuleName string `json:"module_name" yaml:"module_name"` // name of the module account
+ ModulePermissions []string `json:"module_permissions" yaml:"module_permissions"` // permissions of module account
+}
+
+// Validate checks for errors on the vesting and module account parameters
+func (sga GenesisAccount) Validate() error {
+ if !sga.OriginalVesting.IsZero() {
+ if sga.StartTime >= sga.EndTime {
+ return errors.New("vesting start-time cannot be before end-time")
+ }
+ }
+
+ if sga.ModuleName != "" {
+ ma := authtypes.ModuleAccount{
+ BaseAccount: sga.BaseAccount, Name: sga.ModuleName, Permissions: sga.ModulePermissions,
+ }
+ if err := ma.Validate(); err != nil {
+ return err
+ }
+ }
+
+ return sga.BaseAccount.Validate()
+}
diff --git a/app/ibc.go b/app/ibc.go
new file mode 100644
index 000000000..2b0bd5691
--- /dev/null
+++ b/app/ibc.go
@@ -0,0 +1,205 @@
+package app
+
+import (
+ "cosmossdk.io/core/appmodule"
+ storetypes "cosmossdk.io/store/types"
+ cdctypes "github.com/cosmos/cosmos-sdk/codec/types"
+ authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
+ govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"
+ govv1beta1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1"
+ paramstypes "github.com/cosmos/cosmos-sdk/x/params/types"
+ "github.com/cosmos/ibc-go/modules/capability"
+ capabilitykeeper "github.com/cosmos/ibc-go/modules/capability/keeper"
+ capabilitytypes "github.com/cosmos/ibc-go/modules/capability/types"
+ icamodule "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts"
+ icacontroller "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/controller"
+ icacontrollerkeeper "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/controller/keeper"
+ icacontrollertypes "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/controller/types"
+ icahost "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/host"
+ icahostkeeper "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/host/keeper"
+ icahosttypes "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/host/types"
+ icatypes "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/types"
+ ibcfee "github.com/cosmos/ibc-go/v8/modules/apps/29-fee"
+ ibcfeekeeper "github.com/cosmos/ibc-go/v8/modules/apps/29-fee/keeper"
+ ibcfeetypes "github.com/cosmos/ibc-go/v8/modules/apps/29-fee/types"
+ ibctransfer "github.com/cosmos/ibc-go/v8/modules/apps/transfer"
+ 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"
+ 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"
+ ibcexported "github.com/cosmos/ibc-go/v8/modules/core/exported"
+ ibckeeper "github.com/cosmos/ibc-go/v8/modules/core/keeper"
+ solomachine "github.com/cosmos/ibc-go/v8/modules/light-clients/06-solomachine"
+ ibctm "github.com/cosmos/ibc-go/v8/modules/light-clients/07-tendermint"
+ // this line is used by starport scaffolding # ibc/app/import
+)
+
+// registerIBCModules register IBC keepers and non dependency inject modules.
+func (app *App) registerIBCModules() {
+ // set up non depinject support modules store keys
+ if err := app.RegisterStores(
+ storetypes.NewKVStoreKey(capabilitytypes.StoreKey),
+ storetypes.NewKVStoreKey(ibcexported.StoreKey),
+ storetypes.NewKVStoreKey(ibctransfertypes.StoreKey),
+ storetypes.NewKVStoreKey(ibcfeetypes.StoreKey),
+ storetypes.NewKVStoreKey(icahosttypes.StoreKey),
+ storetypes.NewKVStoreKey(icacontrollertypes.StoreKey),
+ storetypes.NewMemoryStoreKey(capabilitytypes.MemStoreKey),
+ storetypes.NewTransientStoreKey(paramstypes.TStoreKey),
+ ); err != nil {
+ panic(err)
+ }
+
+ // register the key tables for legacy param subspaces
+ keyTable := ibcclienttypes.ParamKeyTable()
+ keyTable.RegisterParamSet(&ibcconnectiontypes.Params{})
+ app.ParamsKeeper.Subspace(ibcexported.ModuleName).WithKeyTable(keyTable)
+ app.ParamsKeeper.Subspace(ibctransfertypes.ModuleName).WithKeyTable(ibctransfertypes.ParamKeyTable())
+ app.ParamsKeeper.Subspace(icacontrollertypes.SubModuleName).WithKeyTable(icacontrollertypes.ParamKeyTable())
+ app.ParamsKeeper.Subspace(icahosttypes.SubModuleName).WithKeyTable(icahosttypes.ParamKeyTable())
+
+ // add capability keeper and ScopeToModule for ibc module
+ app.CapabilityKeeper = capabilitykeeper.NewKeeper(
+ app.AppCodec(),
+ app.GetKey(capabilitytypes.StoreKey),
+ app.GetMemKey(capabilitytypes.MemStoreKey),
+ )
+
+ // add capability keeper and ScopeToModule for ibc module
+ scopedIBCKeeper := app.CapabilityKeeper.ScopeToModule(ibcexported.ModuleName)
+ scopedIBCTransferKeeper := app.CapabilityKeeper.ScopeToModule(ibctransfertypes.ModuleName)
+ scopedICAControllerKeeper := app.CapabilityKeeper.ScopeToModule(icacontrollertypes.SubModuleName)
+ scopedICAHostKeeper := app.CapabilityKeeper.ScopeToModule(icahosttypes.SubModuleName)
+
+ // Create IBC keeper
+ app.IBCKeeper = ibckeeper.NewKeeper(
+ app.appCodec,
+ app.GetKey(ibcexported.StoreKey),
+ app.GetSubspace(ibcexported.ModuleName),
+ app.StakingKeeper,
+ app.UpgradeKeeper,
+ scopedIBCKeeper,
+ authtypes.NewModuleAddress(govtypes.ModuleName).String(),
+ )
+
+ // Register the proposal types
+ // Deprecated: Avoid adding new handlers, instead use the new proposal flow
+ // by granting the governance module the right to execute the message.
+ // See: https://docs.cosmos.network/main/modules/gov#proposal-messages
+ govRouter := govv1beta1.NewRouter()
+ govRouter.AddRoute(govtypes.RouterKey, govv1beta1.ProposalHandler)
+
+ app.IBCFeeKeeper = ibcfeekeeper.NewKeeper(
+ app.appCodec, app.GetKey(ibcfeetypes.StoreKey),
+ app.IBCKeeper.ChannelKeeper, // may be replaced with IBC middleware
+ app.IBCKeeper.ChannelKeeper,
+ app.IBCKeeper.PortKeeper, app.AccountKeeper, app.BankKeeper,
+ )
+
+ // Create IBC transfer keeper
+ app.TransferKeeper = ibctransferkeeper.NewKeeper(
+ app.appCodec,
+ app.GetKey(ibctransfertypes.StoreKey),
+ app.GetSubspace(ibctransfertypes.ModuleName),
+ app.IBCFeeKeeper,
+ app.IBCKeeper.ChannelKeeper,
+ app.IBCKeeper.PortKeeper,
+ app.AccountKeeper,
+ app.BankKeeper,
+ scopedIBCTransferKeeper,
+ authtypes.NewModuleAddress(govtypes.ModuleName).String(),
+ )
+
+ // Create interchain account keepers
+ app.ICAHostKeeper = icahostkeeper.NewKeeper(
+ app.appCodec,
+ app.GetKey(icahosttypes.StoreKey),
+ app.GetSubspace(icahosttypes.SubModuleName),
+ app.IBCFeeKeeper, // use ics29 fee as ics4Wrapper in middleware stack
+ app.IBCKeeper.ChannelKeeper,
+ app.IBCKeeper.PortKeeper,
+ app.AccountKeeper,
+ scopedICAHostKeeper,
+ app.MsgServiceRouter(),
+ authtypes.NewModuleAddress(govtypes.ModuleName).String(),
+ )
+ app.ICAControllerKeeper = icacontrollerkeeper.NewKeeper(
+ app.appCodec,
+ app.GetKey(icacontrollertypes.StoreKey),
+ app.GetSubspace(icacontrollertypes.SubModuleName),
+ app.IBCFeeKeeper, // use ics29 fee as ics4Wrapper in middleware stack
+ app.IBCKeeper.ChannelKeeper,
+ app.IBCKeeper.PortKeeper,
+ scopedICAControllerKeeper,
+ app.MsgServiceRouter(),
+ authtypes.NewModuleAddress(govtypes.ModuleName).String(),
+ )
+ app.GovKeeper.SetLegacyRouter(govRouter)
+
+ // Create IBC modules with ibcfee middleware
+ transferIBCModule := ibcfee.NewIBCMiddleware(ibctransfer.NewIBCModule(app.TransferKeeper), app.IBCFeeKeeper)
+
+ // integration point for custom authentication modules
+ var noAuthzModule porttypes.IBCModule
+ icaControllerIBCModule := ibcfee.NewIBCMiddleware(
+ icacontroller.NewIBCMiddleware(noAuthzModule, app.ICAControllerKeeper),
+ app.IBCFeeKeeper,
+ )
+
+ icaHostIBCModule := ibcfee.NewIBCMiddleware(icahost.NewIBCModule(app.ICAHostKeeper), app.IBCFeeKeeper)
+
+ // Create static IBC router, add transfer route, then set and seal it
+ ibcRouter := porttypes.NewRouter().
+ AddRoute(ibctransfertypes.ModuleName, transferIBCModule).
+ AddRoute(icacontrollertypes.SubModuleName, icaControllerIBCModule).
+ AddRoute(icahosttypes.SubModuleName, icaHostIBCModule)
+
+ // this line is used by starport scaffolding # ibc/app/module
+
+ app.IBCKeeper.SetRouter(ibcRouter)
+
+ app.ScopedIBCKeeper = scopedIBCKeeper
+ app.ScopedIBCTransferKeeper = scopedIBCTransferKeeper
+ app.ScopedICAHostKeeper = scopedICAHostKeeper
+ app.ScopedICAControllerKeeper = scopedICAControllerKeeper
+
+ // register IBC modules
+ if err := app.RegisterModules(
+ ibc.NewAppModule(app.IBCKeeper),
+ ibctransfer.NewAppModule(app.TransferKeeper),
+ ibcfee.NewAppModule(app.IBCFeeKeeper),
+ icamodule.NewAppModule(&app.ICAControllerKeeper, &app.ICAHostKeeper),
+ capability.NewAppModule(app.appCodec, *app.CapabilityKeeper, false),
+ ibctm.AppModule{},
+ solomachine.AppModule{},
+ ); err != nil {
+ panic(err)
+ }
+}
+
+// Since the IBC modules don't support dependency injection, we need to
+// manually register the modules on the client side.
+// This needs to be removed after IBC supports App Wiring.
+func RegisterIBC(registry cdctypes.InterfaceRegistry) map[string]appmodule.AppModule {
+ modules := map[string]appmodule.AppModule{
+ ibcexported.ModuleName: ibc.AppModule{},
+ ibctransfertypes.ModuleName: ibctransfer.AppModule{},
+ ibcfeetypes.ModuleName: ibcfee.AppModule{},
+ icatypes.ModuleName: icamodule.AppModule{},
+ capabilitytypes.ModuleName: capability.AppModule{},
+ ibctm.ModuleName: ibctm.AppModule{},
+ solomachine.ModuleName: solomachine.AppModule{},
+ }
+
+ for _, module := range modules {
+ if mod, ok := module.(interface {
+ RegisterInterfaces(registry cdctypes.InterfaceRegistry)
+ }); ok {
+ mod.RegisterInterfaces(registry)
+ }
+ }
+
+ return modules
+}
diff --git a/app/params/encoding.go b/app/params/encoding.go
deleted file mode 100644
index 3d634abf1..000000000
--- a/app/params/encoding.go
+++ /dev/null
@@ -1,16 +0,0 @@
-package params
-
-import (
- "github.com/cosmos/cosmos-sdk/client"
- "github.com/cosmos/cosmos-sdk/codec"
- "github.com/cosmos/cosmos-sdk/codec/types"
-)
-
-// EncodingConfig specifies the concrete encoding types to use for a given app.
-// This is provided for compatibility between protobuf and amino implementations.
-type EncodingConfig struct {
- InterfaceRegistry types.InterfaceRegistry
- Marshaler codec.Codec
- TxConfig client.TxConfig
- Amino *codec.LegacyAmino
-}
diff --git a/app/sim_bench_test.go b/app/sim_bench_test.go
new file mode 100644
index 000000000..91d1eb1f4
--- /dev/null
+++ b/app/sim_bench_test.go
@@ -0,0 +1,150 @@
+package app_test
+
+import (
+ "fmt"
+ "os"
+ "testing"
+
+ cmtproto "github.com/cometbft/cometbft/proto/tendermint/types"
+ "github.com/cosmos/cosmos-sdk/client/flags"
+ "github.com/cosmos/cosmos-sdk/server"
+ simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims"
+ simtypes "github.com/cosmos/cosmos-sdk/types/simulation"
+ "github.com/cosmos/cosmos-sdk/x/simulation"
+ simcli "github.com/cosmos/cosmos-sdk/x/simulation/client/cli"
+ "github.com/stretchr/testify/require"
+
+ "github.com/pokt-network/poktroll/app"
+)
+
+// Profile with:
+// `go test -benchmem -run=^$ -bench ^BenchmarkFullAppSimulation ./app -Commit=true -cpuprofile cpu.out`
+func BenchmarkFullAppSimulation(b *testing.B) {
+ b.ReportAllocs()
+
+ config := simcli.NewConfigFromFlags()
+ config.ChainID = SimAppChainID
+
+ db, dir, logger, skip, err := simtestutil.SetupSimulation(config, "goleveldb-app-sim", "Simulation", simcli.FlagVerboseValue, simcli.FlagEnabledValue)
+ if err != nil {
+ b.Fatalf("simulation setup failed: %s", err.Error())
+ }
+
+ if skip {
+ b.Skip("skipping benchmark application simulation")
+ }
+
+ defer func() {
+ require.NoError(b, db.Close())
+ require.NoError(b, os.RemoveAll(dir))
+ }()
+
+ appOptions := make(simtestutil.AppOptionsMap, 0)
+ appOptions[flags.FlagHome] = app.DefaultNodeHome
+ appOptions[server.FlagInvCheckPeriod] = simcli.FlagPeriodValue
+
+ bApp, err := app.New(logger, db, nil, true, appOptions, interBlockCacheOpt())
+ require.NoError(b, err)
+ require.Equal(b, app.Name, bApp.Name())
+
+ // run randomized simulation
+ _, simParams, simErr := simulation.SimulateFromSeed(
+ b,
+ os.Stdout,
+ bApp.BaseApp,
+ simtestutil.AppStateFn(bApp.AppCodec(), bApp.SimulationManager(), bApp.DefaultGenesis()),
+ simtypes.RandomAccounts, // Replace with own random account function if using keys other than secp256k1
+ simtestutil.SimulationOperations(bApp, bApp.AppCodec(), config),
+ app.BlockedAddresses(),
+ config,
+ bApp.AppCodec(),
+ )
+
+ // export state and simParams before the simulation error is checked
+ if err = simtestutil.CheckExportSimulation(bApp, config, simParams); err != nil {
+ b.Fatal(err)
+ }
+
+ if simErr != nil {
+ b.Fatal(simErr)
+ }
+
+ if config.Commit {
+ simtestutil.PrintStats(db)
+ }
+}
+
+func BenchmarkInvariants(b *testing.B) {
+ b.ReportAllocs()
+
+ config := simcli.NewConfigFromFlags()
+ config.ChainID = SimAppChainID
+
+ db, dir, logger, skip, err := simtestutil.SetupSimulation(config, "leveldb-app-invariant-bench", "Simulation", simcli.FlagVerboseValue, simcli.FlagEnabledValue)
+ if err != nil {
+ b.Fatalf("simulation setup failed: %s", err.Error())
+ }
+
+ if skip {
+ b.Skip("skipping benchmark application simulation")
+ }
+
+ config.AllInvariants = false
+
+ defer func() {
+ require.NoError(b, db.Close())
+ require.NoError(b, os.RemoveAll(dir))
+ }()
+
+ appOptions := make(simtestutil.AppOptionsMap, 0)
+ appOptions[flags.FlagHome] = app.DefaultNodeHome
+ appOptions[server.FlagInvCheckPeriod] = simcli.FlagPeriodValue
+
+ bApp, err := app.New(logger, db, nil, true, appOptions, interBlockCacheOpt())
+ require.NoError(b, err)
+ require.Equal(b, app.Name, bApp.Name())
+
+ // run randomized simulation
+ _, simParams, simErr := simulation.SimulateFromSeed(
+ b,
+ os.Stdout,
+ bApp.BaseApp,
+ simtestutil.AppStateFn(bApp.AppCodec(), bApp.SimulationManager(), bApp.DefaultGenesis()),
+ simtypes.RandomAccounts, // Replace with own random account function if using keys other than secp256k1
+ simtestutil.SimulationOperations(bApp, bApp.AppCodec(), config),
+ app.BlockedAddresses(),
+ config,
+ bApp.AppCodec(),
+ )
+
+ // export state and simParams before the simulation error is checked
+ if err = simtestutil.CheckExportSimulation(bApp, config, simParams); err != nil {
+ b.Fatal(err)
+ }
+
+ if simErr != nil {
+ b.Fatal(simErr)
+ }
+
+ if config.Commit {
+ simtestutil.PrintStats(db)
+ }
+
+ ctx := bApp.NewContextLegacy(true, cmtproto.Header{Height: bApp.LastBlockHeight() + 1})
+
+ // 3. Benchmark each invariant separately
+ //
+ // NOTE: We use the crisis keeper as it has all the invariants registered with
+ // their respective metadata which makes it useful for testing/benchmarking.
+ for _, cr := range bApp.CrisisKeeper.Routes() {
+ cr := cr
+ b.Run(fmt.Sprintf("%s/%s", cr.ModuleName, cr.Route), func(b *testing.B) {
+ if res, stop := cr.Invar(ctx); stop {
+ b.Fatalf(
+ "broken invariant at block %d of %d\n%s",
+ ctx.BlockHeight()-1, config.NumBlocks, res,
+ )
+ }
+ })
+ }
+}
diff --git a/app/simulation_test.go b/app/sim_test.go
similarity index 52%
rename from app/simulation_test.go
rename to app/sim_test.go
index ee0ed33ad..c40e55ef6 100644
--- a/app/simulation_test.go
+++ b/app/sim_test.go
@@ -2,6 +2,7 @@ package app_test
import (
"encoding/json"
+ "flag"
"fmt"
"math/rand"
"os"
@@ -10,44 +11,39 @@ import (
"testing"
"time"
- dbm "github.com/cometbft/cometbft-db"
+ "cosmossdk.io/log"
+ "cosmossdk.io/store"
+ storetypes "cosmossdk.io/store/types"
+ "cosmossdk.io/x/feegrant"
abci "github.com/cometbft/cometbft/abci/types"
- "github.com/cometbft/cometbft/libs/log"
- tmproto "github.com/cometbft/cometbft/proto/tendermint/types"
+ cmtproto "github.com/cometbft/cometbft/proto/tendermint/types"
+ dbm "github.com/cosmos/cosmos-db"
"github.com/cosmos/cosmos-sdk/baseapp"
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/cosmos/cosmos-sdk/server"
- storetypes "github.com/cosmos/cosmos-sdk/store/types"
simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims"
- sdk "github.com/cosmos/cosmos-sdk/types"
simulationtypes "github.com/cosmos/cosmos-sdk/types/simulation"
- authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
authzkeeper "github.com/cosmos/cosmos-sdk/x/authz/keeper"
- banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
- capabilitytypes "github.com/cosmos/cosmos-sdk/x/capability/types"
- distrtypes "github.com/cosmos/cosmos-sdk/x/distribution/types"
- evidencetypes "github.com/cosmos/cosmos-sdk/x/evidence/types"
- govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"
- minttypes "github.com/cosmos/cosmos-sdk/x/mint/types"
- paramstypes "github.com/cosmos/cosmos-sdk/x/params/types"
"github.com/cosmos/cosmos-sdk/x/simulation"
simcli "github.com/cosmos/cosmos-sdk/x/simulation/client/cli"
slashingtypes "github.com/cosmos/cosmos-sdk/x/slashing/types"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
+ "github.com/spf13/viper"
"github.com/stretchr/testify/require"
"github.com/pokt-network/poktroll/app"
)
-type storeKeysPrefixes struct {
- A storetypes.StoreKey
- B storetypes.StoreKey
- Prefixes [][]byte
-}
+const (
+ SimAppChainID = "poktroll-simapp"
+)
+
+var FlagEnableStreamingValue bool
// Get flags every time the simulator is run
func init() {
simcli.GetSimulatorFlags()
+ flag.BoolVar(&FlagEnableStreamingValue, "EnableStreaming", false, "Enable streaming service")
}
// fauxMerkleModeOpt returns a BaseApp option to use a dbStoreAdapter instead of
@@ -56,9 +52,15 @@ func fauxMerkleModeOpt(bapp *baseapp.BaseApp) {
bapp.SetFauxMerkleMode()
}
+// interBlockCacheOpt returns a BaseApp option function that sets the persistent
+// inter-block write-through cache.
+func interBlockCacheOpt() func(*baseapp.BaseApp) {
+ return baseapp.SetInterBlockCache(store.NewCommitKVStoreCacheManager())
+}
+
// BenchmarkSimulation run the chain simulation
// Running using starport command:
-// `starport chain simulate -v --numBlocks 200 --blockSize 50`
+// `ignite chain simulate -v --numBlocks 200 --blockSize 50`
// Running as go benchmark test:
// `go test -benchmem -run=^$ -bench ^BenchmarkSimulation ./app -NumBlocks=200 -BlockSize 50 -Commit=true -Verbose=true -Enabled=true`
func BenchmarkSimulation(b *testing.B) {
@@ -68,37 +70,25 @@ func BenchmarkSimulation(b *testing.B) {
simcli.FlagEnabledValue = true
config := simcli.NewConfigFromFlags()
- config.ChainID = "mars-simapp"
- db, dir, logger, _, err := simtestutil.SetupSimulation(
- config,
- "leveldb-bApp-sim",
- "Simulation",
- simcli.FlagVerboseValue,
- simcli.FlagEnabledValue,
- )
+ config.ChainID = SimAppChainID
+
+ db, dir, logger, skip, err := simtestutil.SetupSimulation(config, "leveldb-app-sim", "Simulation", simcli.FlagVerboseValue, simcli.FlagEnabledValue)
+ if skip {
+ b.Skip("skipping application simulation")
+ }
require.NoError(b, err, "simulation setup failed")
- b.Cleanup(func() {
+ defer func() {
require.NoError(b, db.Close())
require.NoError(b, os.RemoveAll(dir))
- })
+ }()
appOptions := make(simtestutil.AppOptionsMap, 0)
appOptions[flags.FlagHome] = app.DefaultNodeHome
appOptions[server.FlagInvCheckPeriod] = simcli.FlagPeriodValue
- bApp := app.New(
- logger,
- db,
- nil,
- true,
- map[int64]bool{},
- app.DefaultNodeHome,
- 0,
- app.MakeEncodingConfig(),
- appOptions,
- baseapp.SetChainID(config.ChainID),
- )
+ bApp, err := app.New(logger, db, nil, true, appOptions, fauxMerkleModeOpt, baseapp.SetChainID(SimAppChainID))
+ require.NoError(b, err)
require.Equal(b, app.Name, bApp.Name())
// run randomized simulation
@@ -106,14 +96,10 @@ func BenchmarkSimulation(b *testing.B) {
b,
os.Stdout,
bApp.BaseApp,
- simtestutil.AppStateFn(
- bApp.AppCodec(),
- bApp.SimulationManager(),
- app.NewDefaultGenesisState(bApp.AppCodec()),
- ),
+ simtestutil.AppStateFn(bApp.AppCodec(), bApp.SimulationManager(), bApp.DefaultGenesis()),
simulationtypes.RandomAccounts,
simtestutil.SimulationOperations(bApp, bApp.AppCodec(), config),
- bApp.ModuleAccountAddrs(),
+ app.BlockedAddresses(),
config,
bApp.AppCodec(),
)
@@ -128,105 +114,11 @@ func BenchmarkSimulation(b *testing.B) {
}
}
-func TestAppStateDeterminism(t *testing.T) {
- if !simcli.FlagEnabledValue {
- t.Skip("skipping application simulation")
- }
-
- config := simcli.NewConfigFromFlags()
- config.InitialBlockHeight = 1
- config.ExportParamsPath = ""
- config.OnOperation = true
- config.AllInvariants = true
-
- var (
- r = rand.New(rand.NewSource(time.Now().Unix()))
- numSeeds = 3
- numTimesToRunPerSeed = 5
- appHashList = make([]json.RawMessage, numTimesToRunPerSeed)
- appOptions = make(simtestutil.AppOptionsMap, 0)
- )
- appOptions[flags.FlagHome] = app.DefaultNodeHome
- appOptions[server.FlagInvCheckPeriod] = simcli.FlagPeriodValue
-
- for i := 0; i < numSeeds; i++ {
- config.Seed = r.Int63()
-
- for j := 0; j < numTimesToRunPerSeed; j++ {
- var logger log.Logger
- if simcli.FlagVerboseValue {
- logger = log.TestingLogger()
- } else {
- logger = log.NewNopLogger()
- }
- chainID := fmt.Sprintf("chain-id-%d-%d", i, j)
- config.ChainID = chainID
-
- db := dbm.NewMemDB()
- bApp := app.New(
- logger,
- db,
- nil,
- true,
- map[int64]bool{},
- app.DefaultNodeHome,
- simcli.FlagPeriodValue,
- app.MakeEncodingConfig(),
- appOptions,
- fauxMerkleModeOpt,
- baseapp.SetChainID(chainID),
- )
-
- fmt.Printf(
- "running non-determinism simulation; seed %d: %d/%d, attempt: %d/%d\n",
- config.Seed, i+1, numSeeds, j+1, numTimesToRunPerSeed,
- )
-
- _, _, err := simulation.SimulateFromSeed(
- t,
- os.Stdout,
- bApp.BaseApp,
- simtestutil.AppStateFn(
- bApp.AppCodec(),
- bApp.SimulationManager(),
- app.NewDefaultGenesisState(bApp.AppCodec()),
- ),
- simulationtypes.RandomAccounts,
- simtestutil.SimulationOperations(bApp, bApp.AppCodec(), config),
- bApp.ModuleAccountAddrs(),
- config,
- bApp.AppCodec(),
- )
- require.NoError(t, err)
-
- if config.Commit {
- simtestutil.PrintStats(db)
- }
-
- appHash := bApp.LastCommitID().Hash
- appHashList[j] = appHash
-
- if j != 0 {
- require.Equal(
- t, string(appHashList[0]), string(appHashList[j]),
- "non-determinism in seed %d: %d/%d, attempt: %d/%d\n", config.Seed, i+1, numSeeds, j+1, numTimesToRunPerSeed,
- )
- }
- }
- }
-}
-
func TestAppImportExport(t *testing.T) {
config := simcli.NewConfigFromFlags()
- config.ChainID = "mars-simapp-import"
+ config.ChainID = SimAppChainID
- db, dir, logger, skip, err := simtestutil.SetupSimulation(
- config,
- "leveldb-app-sim",
- "Simulation",
- simcli.FlagVerboseValue,
- simcli.FlagEnabledValue,
- )
+ db, dir, logger, skip, err := simtestutil.SetupSimulation(config, "leveldb-app-sim", "Simulation", simcli.FlagVerboseValue, simcli.FlagEnabledValue)
if skip {
t.Skip("skipping application import/export simulation")
}
@@ -241,41 +133,27 @@ func TestAppImportExport(t *testing.T) {
appOptions[flags.FlagHome] = app.DefaultNodeHome
appOptions[server.FlagInvCheckPeriod] = simcli.FlagPeriodValue
- bApp := app.New(
- logger,
- db,
- nil,
- true,
- map[int64]bool{},
- app.DefaultNodeHome,
- 0,
- app.MakeEncodingConfig(),
- appOptions,
- baseapp.SetChainID(config.ChainID),
- )
+ bApp, err := app.New(logger, db, nil, true, appOptions, fauxMerkleModeOpt, baseapp.SetChainID(SimAppChainID))
+ require.NoError(t, err)
require.Equal(t, app.Name, bApp.Name())
- // run randomized simulation
+ // Run randomized simulation
_, simParams, simErr := simulation.SimulateFromSeed(
t,
os.Stdout,
bApp.BaseApp,
- simtestutil.AppStateFn(
- bApp.AppCodec(),
- bApp.SimulationManager(),
- app.NewDefaultGenesisState(bApp.AppCodec()),
- ),
+ simtestutil.AppStateFn(bApp.AppCodec(), bApp.SimulationManager(), bApp.DefaultGenesis()),
simulationtypes.RandomAccounts,
simtestutil.SimulationOperations(bApp, bApp.AppCodec(), config),
- bApp.BlockedModuleAccountAddrs(),
+ app.BlockedAddresses(),
config,
bApp.AppCodec(),
)
- require.NoError(t, simErr)
// export state and simParams before the simulation error is checked
err = simtestutil.CheckExportSimulation(bApp, config, simParams)
require.NoError(t, err)
+ require.NoError(t, simErr)
if config.Commit {
simtestutil.PrintStats(db)
@@ -288,13 +166,7 @@ func TestAppImportExport(t *testing.T) {
fmt.Printf("importing genesis...\n")
- newDB, newDir, _, _, err := simtestutil.SetupSimulation(
- config,
- "leveldb-app-sim-2",
- "Simulation-2",
- simcli.FlagVerboseValue,
- simcli.FlagEnabledValue,
- )
+ newDB, newDir, _, _, err := simtestutil.SetupSimulation(config, "leveldb-app-sim-2", "Simulation-2", simcli.FlagVerboseValue, simcli.FlagEnabledValue)
require.NoError(t, err, "simulation setup failed")
defer func() {
@@ -302,85 +174,71 @@ func TestAppImportExport(t *testing.T) {
require.NoError(t, os.RemoveAll(newDir))
}()
- newApp := app.New(
- log.NewNopLogger(),
- newDB,
- nil,
- true,
- map[int64]bool{},
- app.DefaultNodeHome,
- 0,
- app.MakeEncodingConfig(),
- appOptions,
- baseapp.SetChainID(config.ChainID),
- )
- require.Equal(t, app.Name, bApp.Name())
+ newApp, err := app.New(log.NewNopLogger(), newDB, nil, true, appOptions, fauxMerkleModeOpt, baseapp.SetChainID(SimAppChainID))
+ require.NoError(t, err)
+ require.Equal(t, app.Name, newApp.Name())
var genesisState app.GenesisState
err = json.Unmarshal(exported.AppState, &genesisState)
require.NoError(t, err)
- defer func() {
- if r := recover(); r != nil {
- err := fmt.Sprintf("%v", r)
- if !strings.Contains(err, "validator set is empty after InitGenesis") {
- panic(r)
- }
+ ctxA := bApp.NewContextLegacy(true, cmtproto.Header{Height: bApp.LastBlockHeight()})
+ ctxB := newApp.NewContextLegacy(true, cmtproto.Header{Height: bApp.LastBlockHeight()})
+ _, err = newApp.ModuleManager.InitGenesis(ctxB, bApp.AppCodec(), genesisState)
+
+ if err != nil {
+ if strings.Contains(err.Error(), "validator set is empty after InitGenesis") {
logger.Info("Skipping simulation as all validators have been unbonded")
logger.Info("err", err, "stacktrace", string(debug.Stack()))
+ return
}
- }()
-
- ctxA := bApp.NewContext(true, tmproto.Header{Height: bApp.LastBlockHeight()})
- ctxB := newApp.NewContext(true, tmproto.Header{Height: bApp.LastBlockHeight()})
- newApp.ModuleManager().InitGenesis(ctxB, bApp.AppCodec(), genesisState)
- newApp.StoreConsensusParams(ctxB, exported.ConsensusParams)
-
+ }
+ require.NoError(t, err)
+ err = newApp.StoreConsensusParams(ctxB, exported.ConsensusParams)
+ require.NoError(t, err)
fmt.Printf("comparing stores...\n")
- storeKeysPrefixes := []storeKeysPrefixes{
- {bApp.GetKey(authtypes.StoreKey), newApp.GetKey(authtypes.StoreKey), [][]byte{}},
- {
- bApp.GetKey(stakingtypes.StoreKey), newApp.GetKey(stakingtypes.StoreKey),
- [][]byte{
- stakingtypes.UnbondingQueueKey, stakingtypes.RedelegationQueueKey, stakingtypes.ValidatorQueueKey,
- stakingtypes.HistoricalInfoKey, stakingtypes.UnbondingIDKey, stakingtypes.UnbondingIndexKey, stakingtypes.UnbondingTypeKey, stakingtypes.ValidatorUpdatesKey,
- },
- }, // ordering may change but it doesn't matter
- {bApp.GetKey(slashingtypes.StoreKey), newApp.GetKey(slashingtypes.StoreKey), [][]byte{}},
- {bApp.GetKey(minttypes.StoreKey), newApp.GetKey(minttypes.StoreKey), [][]byte{}},
- {bApp.GetKey(distrtypes.StoreKey), newApp.GetKey(distrtypes.StoreKey), [][]byte{}},
- {bApp.GetKey(banktypes.StoreKey), newApp.GetKey(banktypes.StoreKey), [][]byte{banktypes.BalancesPrefix}},
- {bApp.GetKey(paramstypes.StoreKey), newApp.GetKey(paramstypes.StoreKey), [][]byte{}},
- {bApp.GetKey(govtypes.StoreKey), newApp.GetKey(govtypes.StoreKey), [][]byte{}},
- {bApp.GetKey(evidencetypes.StoreKey), newApp.GetKey(evidencetypes.StoreKey), [][]byte{}},
- {bApp.GetKey(capabilitytypes.StoreKey), newApp.GetKey(capabilitytypes.StoreKey), [][]byte{}},
- {bApp.GetKey(authzkeeper.StoreKey), newApp.GetKey(authzkeeper.StoreKey), [][]byte{authzkeeper.GrantKey, authzkeeper.GrantQueuePrefix}},
+ // skip certain prefixes
+ skipPrefixes := map[string][][]byte{
+ stakingtypes.StoreKey: {
+ stakingtypes.UnbondingQueueKey, stakingtypes.RedelegationQueueKey, stakingtypes.ValidatorQueueKey,
+ stakingtypes.HistoricalInfoKey, stakingtypes.UnbondingIDKey, stakingtypes.UnbondingIndexKey,
+ stakingtypes.UnbondingTypeKey, stakingtypes.ValidatorUpdatesKey,
+ },
+ authzkeeper.StoreKey: {authzkeeper.GrantQueuePrefix},
+ feegrant.StoreKey: {feegrant.FeeAllowanceQueueKeyPrefix},
+ slashingtypes.StoreKey: {slashingtypes.ValidatorMissedBlockBitmapKeyPrefix},
}
- for _, skp := range storeKeysPrefixes {
- storeA := ctxA.KVStore(skp.A)
- storeB := ctxB.KVStore(skp.B)
+ storeKeys := bApp.GetStoreKeys()
+ require.NotEmpty(t, storeKeys)
- failedKVAs, failedKVBs := sdk.DiffKVStores(storeA, storeB, skp.Prefixes)
- require.Equal(t, len(failedKVAs), len(failedKVBs), "unequal sets of key-values to compare")
+ for _, appKeyA := range storeKeys {
+ // only compare kvstores
+ if _, ok := appKeyA.(*storetypes.KVStoreKey); !ok {
+ continue
+ }
- fmt.Printf("compared %d different key/value pairs between %s and %s\n", len(failedKVAs), skp.A, skp.B)
- require.Equal(t, 0, len(failedKVAs), simtestutil.GetSimulationLog(skp.A.Name(), bApp.SimulationManager().StoreDecoders, failedKVAs, failedKVBs))
+ keyName := appKeyA.Name()
+ appKeyB := newApp.GetKey(keyName)
+
+ storeA := ctxA.KVStore(appKeyA)
+ storeB := ctxB.KVStore(appKeyB)
+
+ failedKVAs, failedKVBs := simtestutil.DiffKVStores(storeA, storeB, skipPrefixes[keyName])
+ require.Equal(t, len(failedKVAs), len(failedKVBs), "unequal sets of key-values to compare %s", keyName)
+
+ fmt.Printf("compared %d different key/value pairs between %s and %s\n", len(failedKVAs), appKeyA, appKeyB)
+
+ require.Equal(t, 0, len(failedKVAs), simtestutil.GetSimulationLog(keyName, bApp.SimulationManager().StoreDecoders, failedKVAs, failedKVBs))
}
}
func TestAppSimulationAfterImport(t *testing.T) {
config := simcli.NewConfigFromFlags()
- config.ChainID = "mars-simapp-after-import"
+ config.ChainID = SimAppChainID
- db, dir, logger, skip, err := simtestutil.SetupSimulation(
- config,
- "leveldb-app-sim",
- "Simulation",
- simcli.FlagVerboseValue,
- simcli.FlagEnabledValue,
- )
+ db, dir, logger, skip, err := simtestutil.SetupSimulation(config, "leveldb-app-sim", "Simulation", simcli.FlagVerboseValue, simcli.FlagEnabledValue)
if skip {
t.Skip("skipping application simulation after import")
}
@@ -395,42 +253,27 @@ func TestAppSimulationAfterImport(t *testing.T) {
appOptions[flags.FlagHome] = app.DefaultNodeHome
appOptions[server.FlagInvCheckPeriod] = simcli.FlagPeriodValue
- bApp := app.New(
- logger,
- db,
- nil,
- true,
- map[int64]bool{},
- app.DefaultNodeHome,
- 0,
- app.MakeEncodingConfig(),
- appOptions,
- fauxMerkleModeOpt,
- baseapp.SetChainID(config.ChainID),
- )
+ bApp, err := app.New(logger, db, nil, true, appOptions, fauxMerkleModeOpt, baseapp.SetChainID(SimAppChainID))
+ require.NoError(t, err)
require.Equal(t, app.Name, bApp.Name())
- // run randomized simulation
+ // Run randomized simulation
stopEarly, simParams, simErr := simulation.SimulateFromSeed(
t,
os.Stdout,
bApp.BaseApp,
- simtestutil.AppStateFn(
- bApp.AppCodec(),
- bApp.SimulationManager(),
- app.NewDefaultGenesisState(bApp.AppCodec()),
- ),
+ simtestutil.AppStateFn(bApp.AppCodec(), bApp.SimulationManager(), bApp.DefaultGenesis()),
simulationtypes.RandomAccounts,
simtestutil.SimulationOperations(bApp, bApp.AppCodec(), config),
- bApp.BlockedModuleAccountAddrs(),
+ app.BlockedAddresses(),
config,
bApp.AppCodec(),
)
- require.NoError(t, simErr)
// export state and simParams before the simulation error is checked
err = simtestutil.CheckExportSimulation(bApp, config, simParams)
require.NoError(t, err)
+ require.NoError(t, simErr)
if config.Commit {
simtestutil.PrintStats(db)
@@ -448,13 +291,7 @@ func TestAppSimulationAfterImport(t *testing.T) {
fmt.Printf("importing genesis...\n")
- newDB, newDir, _, _, err := simtestutil.SetupSimulation(
- config,
- "leveldb-app-sim-2",
- "Simulation-2",
- simcli.FlagVerboseValue,
- simcli.FlagEnabledValue,
- )
+ newDB, newDir, _, _, err := simtestutil.SetupSimulation(config, "leveldb-app-sim-2", "Simulation-2", simcli.FlagVerboseValue, simcli.FlagEnabledValue)
require.NoError(t, err, "simulation setup failed")
defer func() {
@@ -462,40 +299,129 @@ func TestAppSimulationAfterImport(t *testing.T) {
require.NoError(t, os.RemoveAll(newDir))
}()
- newApp := app.New(
- log.NewNopLogger(),
- newDB,
- nil,
- true,
- map[int64]bool{},
- app.DefaultNodeHome,
- 0,
- app.MakeEncodingConfig(),
- appOptions,
- fauxMerkleModeOpt,
- baseapp.SetChainID(config.ChainID),
- )
- require.Equal(t, app.Name, bApp.Name())
+ newApp, err := app.New(log.NewNopLogger(), newDB, nil, true, appOptions, fauxMerkleModeOpt, baseapp.SetChainID(SimAppChainID))
+ require.NoError(t, err)
+ require.Equal(t, app.Name, newApp.Name())
- newApp.InitChain(abci.RequestInitChain{
- ChainId: config.ChainID,
+ _, err = newApp.InitChain(&abci.RequestInitChain{
AppStateBytes: exported.AppState,
+ ChainId: SimAppChainID,
})
+ require.NoError(t, err)
_, _, err = simulation.SimulateFromSeed(
t,
os.Stdout,
newApp.BaseApp,
- simtestutil.AppStateFn(
- bApp.AppCodec(),
- bApp.SimulationManager(),
- app.NewDefaultGenesisState(bApp.AppCodec()),
- ),
+ simtestutil.AppStateFn(bApp.AppCodec(), bApp.SimulationManager(), bApp.DefaultGenesis()),
simulationtypes.RandomAccounts,
simtestutil.SimulationOperations(newApp, newApp.AppCodec(), config),
- newApp.BlockedModuleAccountAddrs(),
+ app.BlockedAddresses(),
config,
bApp.AppCodec(),
)
require.NoError(t, err)
}
+
+func TestAppStateDeterminism(t *testing.T) {
+ if !simcli.FlagEnabledValue {
+ t.Skip("skipping application simulation")
+ }
+
+ config := simcli.NewConfigFromFlags()
+ config.InitialBlockHeight = 1
+ config.ExportParamsPath = ""
+ config.OnOperation = true
+ config.AllInvariants = true
+
+ numSeeds := 3
+ numTimesToRunPerSeed := 3 // This used to be set to 5, but we've temporarily reduced it to 3 for the sake of faster CI.
+ appHashList := make([]json.RawMessage, numTimesToRunPerSeed)
+
+ // We will be overriding the random seed and just run a single simulation on the provided seed value
+ if config.Seed != simcli.DefaultSeedValue {
+ numSeeds = 1
+ }
+
+ appOptions := viper.New()
+ if FlagEnableStreamingValue {
+ m := make(map[string]interface{})
+ m["streaming.abci.keys"] = []string{"*"}
+ m["streaming.abci.plugin"] = "abci_v1"
+ m["streaming.abci.stop-node-on-err"] = true
+ for key, value := range m {
+ appOptions.SetDefault(key, value)
+ }
+ }
+ appOptions.SetDefault(flags.FlagHome, app.DefaultNodeHome)
+ appOptions.SetDefault(server.FlagInvCheckPeriod, simcli.FlagPeriodValue)
+ if simcli.FlagVerboseValue {
+ appOptions.SetDefault(flags.FlagLogLevel, "debug")
+ }
+
+ for i := 0; i < numSeeds; i++ {
+ if config.Seed == simcli.DefaultSeedValue {
+ config.Seed = rand.Int63()
+ }
+ fmt.Println("config.Seed: ", config.Seed)
+
+ for j := 0; j < numTimesToRunPerSeed; j++ {
+ var logger log.Logger
+ if simcli.FlagVerboseValue {
+ logger = log.NewTestLogger(t)
+ } else {
+ logger = log.NewNopLogger()
+ }
+ chainID := fmt.Sprintf("chain-id-%d-%d", i, j)
+ config.ChainID = chainID
+
+ db := dbm.NewMemDB()
+ bApp, err := app.New(
+ logger,
+ db,
+ nil,
+ true,
+ appOptions,
+ interBlockCacheOpt(),
+ baseapp.SetChainID(chainID),
+ )
+ require.NoError(t, err)
+
+ fmt.Printf(
+ "running non-determinism simulation; seed %d: %d/%d, attempt: %d/%d\n",
+ config.Seed, i+1, numSeeds, j+1, numTimesToRunPerSeed,
+ )
+
+ _, _, err = simulation.SimulateFromSeed(
+ t,
+ os.Stdout,
+ bApp.BaseApp,
+ simtestutil.AppStateFn(
+ bApp.AppCodec(),
+ bApp.SimulationManager(),
+ bApp.DefaultGenesis(),
+ ),
+ simulationtypes.RandomAccounts,
+ simtestutil.SimulationOperations(bApp, bApp.AppCodec(), config),
+ app.BlockedAddresses(),
+ config,
+ bApp.AppCodec(),
+ )
+ require.NoError(t, err)
+
+ if config.Commit {
+ simtestutil.PrintStats(db)
+ }
+
+ appHash := bApp.LastCommitID().Hash
+ appHashList[j] = appHash
+
+ if j != 0 {
+ require.Equal(
+ t, string(appHashList[0]), string(appHashList[j]),
+ "non-determinism in seed %d: %d/%d, attempt: %d/%d\n", config.Seed, i+1, numSeeds, j+1, numTimesToRunPerSeed,
+ )
+ }
+ }
+ }
+}
diff --git a/buf.work.yaml b/buf.work.yaml
new file mode 100644
index 000000000..1b4a0d95c
--- /dev/null
+++ b/buf.work.yaml
@@ -0,0 +1,8 @@
+# Generated by "buf config migrate-v1beta1". Edit as necessary, and
+# remove this comment when you're finished.
+#
+# This workspace file points to the roots found in your
+# previous "buf.yaml" configuration.
+version: v1
+directories:
+ - proto
diff --git a/cmd/pocketd/cmd/config.go b/cmd/pocketd/cmd/config.go
deleted file mode 100644
index 1182b1159..000000000
--- a/cmd/pocketd/cmd/config.go
+++ /dev/null
@@ -1,27 +0,0 @@
-package cmd
-
-import (
- sdk "github.com/cosmos/cosmos-sdk/types"
-
- "github.com/pokt-network/poktroll/app"
-)
-
-// InitSDKConfig initializes the SDK's config with the appropriate parameters
-// and prefixes so everything is named appropriately for Pocket Network.
-// TODO_DISCUSS: Exporting publically for testing purposes only.
-// Consider adding a helper per the discussion here: https://github.com/pokt-network/poktroll/pull/59#discussion_r1357816798
-func InitSDKConfig() {
- // Set prefixes
- accountPubKeyPrefix := app.AccountAddressPrefix + "pub"
- validatorAddressPrefix := app.AccountAddressPrefix + "valoper"
- validatorPubKeyPrefix := app.AccountAddressPrefix + "valoperpub"
- consNodeAddressPrefix := app.AccountAddressPrefix + "valcons"
- consNodePubKeyPrefix := app.AccountAddressPrefix + "valconspub"
-
- // Set and seal config
- config := sdk.GetConfig()
- config.SetBech32PrefixForAccount(app.AccountAddressPrefix, accountPubKeyPrefix)
- config.SetBech32PrefixForValidator(validatorAddressPrefix, validatorPubKeyPrefix)
- config.SetBech32PrefixForConsensusNode(consNodeAddressPrefix, consNodePubKeyPrefix)
- config.Seal()
-}
diff --git a/cmd/pocketd/cmd/genaccounts.go b/cmd/pocketd/cmd/genaccounts.go
deleted file mode 100644
index d5ec65337..000000000
--- a/cmd/pocketd/cmd/genaccounts.go
+++ /dev/null
@@ -1,192 +0,0 @@
-package cmd
-
-import (
- "bufio"
- "encoding/json"
- "errors"
- "fmt"
-
- "github.com/cosmos/cosmos-sdk/client"
- "github.com/cosmos/cosmos-sdk/client/flags"
- "github.com/cosmos/cosmos-sdk/crypto/keyring"
- "github.com/cosmos/cosmos-sdk/server"
- sdk "github.com/cosmos/cosmos-sdk/types"
- authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
- authvesting "github.com/cosmos/cosmos-sdk/x/auth/vesting/types"
- banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
- "github.com/cosmos/cosmos-sdk/x/genutil"
- genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types"
- "github.com/spf13/cobra"
-)
-
-const (
- flagVestingStart = "vesting-start-time"
- flagVestingEnd = "vesting-end-time"
- flagVestingAmt = "vesting-amount"
-)
-
-// AddGenesisAccountCmd returns add-genesis-account cobra Command.
-func AddGenesisAccountCmd(defaultNodeHome string) *cobra.Command {
- cmd := &cobra.Command{
- Use: "add-genesis-account [address_or_key_name] [coin][,[coin]]",
- Short: "Add a genesis account to genesis.json",
- Long: `Add a genesis account to genesis.json. The provided account must specify
-the account address or key name and a list of initial coins. If a key name is given,
-the address will be looked up in the local Keybase. The list of initial tokens must
-contain valid denominations. Accounts may optionally be supplied with vesting parameters.
-`,
- Args: cobra.ExactArgs(2),
- RunE: func(cmd *cobra.Command, args []string) error {
- clientCtx := client.GetClientContextFromCmd(cmd)
- cdc := clientCtx.Codec
-
- serverCtx := server.GetServerContextFromCmd(cmd)
- config := serverCtx.Config
-
- config.SetRoot(clientCtx.HomeDir)
-
- coins, err := sdk.ParseCoinsNormalized(args[1])
- if err != nil {
- return fmt.Errorf("failed to parse coins: %w", err)
- }
-
- addr, err := sdk.AccAddressFromBech32(args[0])
- if err != nil {
- inBuf := bufio.NewReader(cmd.InOrStdin())
- keyringBackend, err := cmd.Flags().GetString(flags.FlagKeyringBackend)
- if err != nil {
- return err
- }
-
- // attempt to lookup address from Keybase if no address was provided
- kb, err := keyring.New(sdk.KeyringServiceName(), keyringBackend, clientCtx.HomeDir, inBuf, cdc)
- if err != nil {
- return err
- }
-
- info, err := kb.Key(args[0])
- if err != nil {
- return fmt.Errorf("failed to get address from Keybase: %w", err)
- }
-
- addr, err = info.GetAddress()
- if err != nil {
- return fmt.Errorf("failed to get address from Keybase: %w", err)
- }
- }
-
- vestingStart, err := cmd.Flags().GetInt64(flagVestingStart)
- if err != nil {
- return err
- }
- vestingEnd, err := cmd.Flags().GetInt64(flagVestingEnd)
- if err != nil {
- return err
- }
- vestingAmtStr, err := cmd.Flags().GetString(flagVestingAmt)
- if err != nil {
- return err
- }
-
- vestingAmt, err := sdk.ParseCoinsNormalized(vestingAmtStr)
- if err != nil {
- return fmt.Errorf("failed to parse vesting amount: %w", err)
- }
-
- // create concrete account type based on input parameters
- var genAccount authtypes.GenesisAccount
-
- balances := banktypes.Balance{Address: addr.String(), Coins: coins.Sort()}
- baseAccount := authtypes.NewBaseAccount(addr, nil, 0, 0)
-
- if !vestingAmt.IsZero() {
- baseVestingAccount := authvesting.NewBaseVestingAccount(baseAccount, vestingAmt.Sort(), vestingEnd)
-
- if (balances.Coins.IsZero() && !baseVestingAccount.OriginalVesting.IsZero()) ||
- baseVestingAccount.OriginalVesting.IsAnyGT(balances.Coins) {
- return errors.New("vesting amount cannot be greater than total amount")
- }
-
- switch {
- case vestingStart != 0 && vestingEnd != 0:
- genAccount = authvesting.NewContinuousVestingAccountRaw(baseVestingAccount, vestingStart)
-
- case vestingEnd != 0:
- genAccount = authvesting.NewDelayedVestingAccountRaw(baseVestingAccount)
-
- default:
- return errors.New("invalid vesting parameters; must supply start and end time or end time")
- }
- } else {
- genAccount = baseAccount
- }
-
- if err := genAccount.Validate(); err != nil {
- return fmt.Errorf("failed to validate new genesis account: %w", err)
- }
-
- genFile := config.GenesisFile()
- appState, genDoc, err := genutiltypes.GenesisStateFromGenFile(genFile)
- if err != nil {
- return fmt.Errorf("failed to unmarshal genesis state: %w", err)
- }
-
- authGenState := authtypes.GetGenesisStateFromAppState(cdc, appState)
-
- accs, err := authtypes.UnpackAccounts(authGenState.Accounts)
- if err != nil {
- return fmt.Errorf("failed to get accounts from any: %w", err)
- }
-
- if accs.Contains(addr) {
- return fmt.Errorf("cannot add account at existing address %s", addr)
- }
-
- // Add the new account to the set of genesis accounts and sanitize the
- // accounts afterwards.
- accs = append(accs, genAccount)
- accs = authtypes.SanitizeGenesisAccounts(accs)
-
- genAccs, err := authtypes.PackAccounts(accs)
- if err != nil {
- return fmt.Errorf("failed to convert accounts into any's: %w", err)
- }
- authGenState.Accounts = genAccs
-
- authGenStateBz, err := cdc.MarshalJSON(&authGenState)
- if err != nil {
- return fmt.Errorf("failed to marshal auth genesis state: %w", err)
- }
-
- appState[authtypes.ModuleName] = authGenStateBz
-
- bankGenState := banktypes.GetGenesisStateFromAppState(cdc, appState)
- bankGenState.Balances = append(bankGenState.Balances, balances)
- bankGenState.Balances = banktypes.SanitizeGenesisBalances(bankGenState.Balances)
-
- bankGenStateBz, err := cdc.MarshalJSON(bankGenState)
- if err != nil {
- return fmt.Errorf("failed to marshal bank genesis state: %w", err)
- }
-
- appState[banktypes.ModuleName] = bankGenStateBz
-
- appStateJSON, err := json.Marshal(appState)
- if err != nil {
- return fmt.Errorf("failed to marshal application genesis state: %w", err)
- }
-
- genDoc.AppState = appStateJSON
- return genutil.ExportGenesisFile(genDoc, genFile)
- },
- }
-
- cmd.Flags().String(flags.FlagKeyringBackend, flags.DefaultKeyringBackend, "Select keyring's backend (os|file|kwallet|pass|test)")
- cmd.Flags().String(flags.FlagHome, defaultNodeHome, "The application home directory")
- cmd.Flags().String(flagVestingAmt, "", "amount of coins for vesting accounts")
- cmd.Flags().Int64(flagVestingStart, 0, "schedule start time (unix epoch) for vesting accounts")
- cmd.Flags().Int64(flagVestingEnd, 0, "schedule end time (unix epoch) for vesting accounts")
- flags.AddQueryFlagsToCmd(cmd)
-
- return cmd
-}
diff --git a/cmd/pocketd/cmd/root.go b/cmd/pocketd/cmd/root.go
deleted file mode 100644
index 55b7071fc..000000000
--- a/cmd/pocketd/cmd/root.go
+++ /dev/null
@@ -1,386 +0,0 @@
-package cmd
-
-import (
- "errors"
- "io"
- "os"
- "path/filepath"
- "strings"
-
- // this line is used by starport scaffolding # root/moduleImport
-
- dbm "github.com/cometbft/cometbft-db"
- tmcfg "github.com/cometbft/cometbft/config"
- tmcli "github.com/cometbft/cometbft/libs/cli"
- "github.com/cometbft/cometbft/libs/log"
- tmtypes "github.com/cometbft/cometbft/types"
- "github.com/cosmos/cosmos-sdk/baseapp"
- "github.com/cosmos/cosmos-sdk/client"
- "github.com/cosmos/cosmos-sdk/client/config"
- "github.com/cosmos/cosmos-sdk/client/debug"
- "github.com/cosmos/cosmos-sdk/client/flags"
- "github.com/cosmos/cosmos-sdk/client/keys"
- "github.com/cosmos/cosmos-sdk/client/rpc"
- "github.com/cosmos/cosmos-sdk/server"
- serverconfig "github.com/cosmos/cosmos-sdk/server/config"
- servertypes "github.com/cosmos/cosmos-sdk/server/types"
- "github.com/cosmos/cosmos-sdk/snapshots"
- snapshottypes "github.com/cosmos/cosmos-sdk/snapshots/types"
- "github.com/cosmos/cosmos-sdk/store"
- sdk "github.com/cosmos/cosmos-sdk/types"
- authcmd "github.com/cosmos/cosmos-sdk/x/auth/client/cli"
- "github.com/cosmos/cosmos-sdk/x/auth/types"
- banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
- "github.com/cosmos/cosmos-sdk/x/crisis"
- "github.com/cosmos/cosmos-sdk/x/genutil"
- genutilcli "github.com/cosmos/cosmos-sdk/x/genutil/client/cli"
- genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types"
- "github.com/spf13/cast"
- "github.com/spf13/cobra"
- "github.com/spf13/pflag"
-
- // this line is used by starport scaffolding # root/moduleImport
-
- "github.com/pokt-network/poktroll/app"
- appparams "github.com/pokt-network/poktroll/app/params"
- appgateservercmd "github.com/pokt-network/poktroll/pkg/appgateserver/cmd"
- relayercmd "github.com/pokt-network/poktroll/pkg/relayer/cmd"
-)
-
-// NewRootCmd creates a new root command for a Cosmos SDK application
-func NewRootCmd() (*cobra.Command, appparams.EncodingConfig) {
- encodingConfig := app.MakeEncodingConfig()
- initClientCtx := client.Context{}.
- WithCodec(encodingConfig.Marshaler).
- WithInterfaceRegistry(encodingConfig.InterfaceRegistry).
- WithTxConfig(encodingConfig.TxConfig).
- WithLegacyAmino(encodingConfig.Amino).
- WithInput(os.Stdin).
- WithAccountRetriever(types.AccountRetriever{}).
- WithHomeDir(app.DefaultNodeHome).
- WithViper("")
-
- rootCmd := &cobra.Command{
- Use: app.Name + "d",
- Short: "Start pocket node",
- PersistentPreRunE: func(cmd *cobra.Command, _ []string) error {
- // set the default command outputs
- cmd.SetOut(cmd.OutOrStdout())
- cmd.SetErr(cmd.ErrOrStderr())
- initClientCtx, err := client.ReadPersistentCommandFlags(initClientCtx, cmd.Flags())
- if err != nil {
- return err
- }
- initClientCtx, err = config.ReadFromClientConfig(initClientCtx)
- if err != nil {
- return err
- }
-
- if err := client.SetCmdClientContextHandler(initClientCtx, cmd); err != nil {
- return err
- }
-
- customAppTemplate, customAppConfig := initAppConfig()
- customTMConfig := initTendermintConfig()
- return server.InterceptConfigsPreRunHandler(
- cmd, customAppTemplate, customAppConfig, customTMConfig,
- )
- },
- }
-
- initRootCmd(rootCmd, encodingConfig)
- overwriteFlagDefaults(rootCmd, map[string]string{
- flags.FlagChainID: strings.ReplaceAll(app.Name, "-", ""),
- flags.FlagKeyringBackend: "test",
- })
-
- return rootCmd, encodingConfig
-}
-
-// initTendermintConfig helps to override default Tendermint Config values.
-// return tmcfg.DefaultConfig if no custom configuration is required for the application.
-func initTendermintConfig() *tmcfg.Config {
- cfg := tmcfg.DefaultConfig()
- return cfg
-}
-
-func initRootCmd(
- rootCmd *cobra.Command,
- encodingConfig appparams.EncodingConfig,
-) {
- // Set config
- InitSDKConfig()
-
- gentxModule := app.ModuleBasics[genutiltypes.ModuleName].(genutil.AppModuleBasic)
- rootCmd.AddCommand(
- genutilcli.InitCmd(app.ModuleBasics, app.DefaultNodeHome),
- genutilcli.CollectGenTxsCmd(banktypes.GenesisBalancesIterator{}, app.DefaultNodeHome, gentxModule.GenTxValidator),
- genutilcli.MigrateGenesisCmd(),
- genutilcli.GenTxCmd(
- app.ModuleBasics,
- encodingConfig.TxConfig,
- banktypes.GenesisBalancesIterator{},
- app.DefaultNodeHome,
- ),
- genutilcli.ValidateGenesisCmd(app.ModuleBasics),
- AddGenesisAccountCmd(app.DefaultNodeHome),
- tmcli.NewCompletionCmd(rootCmd, true),
- debug.Cmd(),
- config.Cmd(),
- // this line is used by starport scaffolding # root/commands
- )
-
- a := appCreator{
- encodingConfig,
- }
-
- // add server commands
- server.AddCommands(
- rootCmd,
- app.DefaultNodeHome,
- a.newApp,
- a.appExport,
- addModuleInitFlags,
- )
-
- // add relayer command
- rootCmd.AddCommand(
- relayercmd.RelayerCmd(),
- )
-
- // add keybase, auxiliary RPC, query, and tx child commands
- rootCmd.AddCommand(
- rpc.StatusCommand(),
- queryCommand(),
- txCommand(),
- keys.Commands(app.DefaultNodeHome),
- )
-
- // add the appgate server command
- rootCmd.AddCommand(
- appgateservercmd.AppGateServerCmd(),
- )
-}
-
-// queryCommand returns the sub-command to send queries to the app
-func queryCommand() *cobra.Command {
- cmd := &cobra.Command{
- Use: "query",
- Aliases: []string{"q"},
- Short: "Querying subcommands",
- DisableFlagParsing: true,
- SuggestionsMinimumDistance: 2,
- RunE: client.ValidateCmd,
- }
-
- cmd.AddCommand(
- authcmd.GetAccountCmd(),
- rpc.ValidatorCommand(),
- rpc.BlockCommand(),
- authcmd.QueryTxsByEventsCmd(),
- authcmd.QueryTxCmd(),
- )
-
- app.ModuleBasics.AddQueryCommands(cmd)
- cmd.PersistentFlags().String(flags.FlagChainID, "", "The network chain ID")
-
- return cmd
-}
-
-// txCommand returns the sub-command to send transactions to the app
-func txCommand() *cobra.Command {
- cmd := &cobra.Command{
- Use: "tx",
- Short: "Transactions subcommands",
- DisableFlagParsing: true,
- SuggestionsMinimumDistance: 2,
- RunE: client.ValidateCmd,
- }
-
- cmd.AddCommand(
- authcmd.GetSignCommand(),
- authcmd.GetSignBatchCommand(),
- authcmd.GetMultiSignCommand(),
- authcmd.GetValidateSignaturesCommand(),
- flags.LineBreak,
- authcmd.GetBroadcastCommand(),
- authcmd.GetEncodeCommand(),
- authcmd.GetDecodeCommand(),
- )
-
- app.ModuleBasics.AddTxCommands(cmd)
- cmd.PersistentFlags().String(flags.FlagChainID, "", "The network chain ID")
-
- return cmd
-}
-
-func addModuleInitFlags(startCmd *cobra.Command) {
- crisis.AddModuleInitFlags(startCmd)
- // this line is used by starport scaffolding # root/arguments
-}
-
-func overwriteFlagDefaults(c *cobra.Command, defaults map[string]string) {
- set := func(s *pflag.FlagSet, key, val string) {
- if f := s.Lookup(key); f != nil {
- f.DefValue = val
- f.Value.Set(val)
- }
- }
- for key, val := range defaults {
- set(c.Flags(), key, val)
- set(c.PersistentFlags(), key, val)
- }
- for _, c := range c.Commands() {
- overwriteFlagDefaults(c, defaults)
- }
-}
-
-type appCreator struct {
- encodingConfig appparams.EncodingConfig
-}
-
-// newApp creates a new Cosmos SDK app
-func (a appCreator) newApp(
- logger log.Logger,
- db dbm.DB,
- traceStore io.Writer,
- appOpts servertypes.AppOptions,
-) servertypes.Application {
- var cache sdk.MultiStorePersistentCache
-
- if cast.ToBool(appOpts.Get(server.FlagInterBlockCache)) {
- cache = store.NewCommitKVStoreCacheManager()
- }
-
- skipUpgradeHeights := make(map[int64]bool)
- for _, h := range cast.ToIntSlice(appOpts.Get(server.FlagUnsafeSkipUpgrades)) {
- skipUpgradeHeights[int64(h)] = true
- }
-
- pruningOpts, err := server.GetPruningOptionsFromFlags(appOpts)
- if err != nil {
- panic(err)
- }
-
- homeDir := cast.ToString(appOpts.Get(flags.FlagHome))
- chainID := cast.ToString(appOpts.Get(flags.FlagChainID))
- if chainID == "" {
- // fallback to genesis chain-id
- appGenesis, err := tmtypes.GenesisDocFromFile(filepath.Join(homeDir, "config", "genesis.json"))
- if err != nil {
- panic(err)
- }
-
- chainID = appGenesis.ChainID
- }
-
- snapshotDir := filepath.Join(cast.ToString(appOpts.Get(flags.FlagHome)), "data", "snapshots")
- snapshotDB, err := dbm.NewDB("metadata", dbm.GoLevelDBBackend, snapshotDir)
- if err != nil {
- panic(err)
- }
- snapshotStore, err := snapshots.NewStore(snapshotDB, snapshotDir)
- if err != nil {
- panic(err)
- }
-
- snapshotOptions := snapshottypes.NewSnapshotOptions(
- cast.ToUint64(appOpts.Get(server.FlagStateSyncSnapshotInterval)),
- cast.ToUint32(appOpts.Get(server.FlagStateSyncSnapshotKeepRecent)),
- )
-
- return app.New(
- logger,
- db,
- traceStore,
- true,
- skipUpgradeHeights,
- cast.ToString(appOpts.Get(flags.FlagHome)),
- cast.ToUint(appOpts.Get(server.FlagInvCheckPeriod)),
- a.encodingConfig,
- appOpts,
- baseapp.SetPruning(pruningOpts),
- baseapp.SetMinGasPrices(cast.ToString(appOpts.Get(server.FlagMinGasPrices))),
- baseapp.SetHaltHeight(cast.ToUint64(appOpts.Get(server.FlagHaltHeight))),
- baseapp.SetHaltTime(cast.ToUint64(appOpts.Get(server.FlagHaltTime))),
- baseapp.SetMinRetainBlocks(cast.ToUint64(appOpts.Get(server.FlagMinRetainBlocks))),
- baseapp.SetInterBlockCache(cache),
- baseapp.SetTrace(cast.ToBool(appOpts.Get(server.FlagTrace))),
- baseapp.SetIndexEvents(cast.ToStringSlice(appOpts.Get(server.FlagIndexEvents))),
- baseapp.SetSnapshot(snapshotStore, snapshotOptions),
- baseapp.SetIAVLCacheSize(cast.ToInt(appOpts.Get(server.FlagIAVLCacheSize))),
- baseapp.SetIAVLDisableFastNode(cast.ToBool(appOpts.Get(server.FlagDisableIAVLFastNode))),
- baseapp.SetChainID(chainID),
- )
-}
-
-// appExport creates a new simapp (optionally at a given height)
-func (a appCreator) appExport(
- logger log.Logger,
- db dbm.DB,
- traceStore io.Writer,
- height int64,
- forZeroHeight bool,
- jailAllowedAddrs []string,
- appOpts servertypes.AppOptions,
- modulesToExport []string,
-) (servertypes.ExportedApp, error) {
- homePath, ok := appOpts.Get(flags.FlagHome).(string)
- if !ok || homePath == "" {
- return servertypes.ExportedApp{}, errors.New("application home not set")
- }
-
- app := app.New(
- logger,
- db,
- traceStore,
- height == -1, // -1: no height provided
- map[int64]bool{},
- homePath,
- uint(1),
- a.encodingConfig,
- appOpts,
- )
-
- if height != -1 {
- if err := app.LoadHeight(height); err != nil {
- return servertypes.ExportedApp{}, err
- }
- }
-
- return app.ExportAppStateAndValidators(forZeroHeight, jailAllowedAddrs, modulesToExport)
-}
-
-// initAppConfig helps to override default appConfig template and configs.
-// return "", nil if no custom configuration is required for the application.
-func initAppConfig() (string, interface{}) {
- // The following code snippet is just for reference.
-
- type CustomAppConfig struct {
- serverconfig.Config
- }
-
- // Optionally allow the chain developer to overwrite the SDK's default
- // server config.
- srvCfg := serverconfig.DefaultConfig()
- // The SDK's default minimum gas price is set to "" (empty value) inside
- // app.toml. If left empty by validators, the node will halt on startup.
- // However, the chain developer can set a default app.toml value for their
- // validators here.
- //
- // In summary:
- // - if you leave srvCfg.MinGasPrices = "", all validators MUST tweak their
- // own app.toml config,
- // - if you set srvCfg.MinGasPrices non-empty, validators CAN tweak their
- // own app.toml to override, or use this default value.
- //
- // In simapp, we set the min gas prices to 0.
- srvCfg.MinGasPrices = "0upokt"
-
- customAppConfig := CustomAppConfig{
- Config: *srvCfg,
- }
- customAppTemplate := serverconfig.DefaultConfigTemplate
-
- return customAppTemplate, customAppConfig
-}
diff --git a/cmd/pocketd/main.go b/cmd/pocketd/main.go
deleted file mode 100644
index 25c7ebcef..000000000
--- a/cmd/pocketd/main.go
+++ /dev/null
@@ -1,24 +0,0 @@
-package main
-
-import (
- "os"
-
- "github.com/cosmos/cosmos-sdk/server"
- svrcmd "github.com/cosmos/cosmos-sdk/server/cmd"
-
- "github.com/pokt-network/poktroll/app"
- "github.com/pokt-network/poktroll/cmd/pocketd/cmd"
-)
-
-func main() {
- rootCmd, _ := cmd.NewRootCmd()
- if err := svrcmd.Execute(rootCmd, "", app.DefaultNodeHome); err != nil {
- switch e := err.(type) {
- case server.ErrorCode:
- os.Exit(e.Code)
-
- default:
- os.Exit(1)
- }
- }
-}
diff --git a/cmd/poktrolld/cmd/commands.go b/cmd/poktrolld/cmd/commands.go
new file mode 100644
index 000000000..7eb957904
--- /dev/null
+++ b/cmd/poktrolld/cmd/commands.go
@@ -0,0 +1,191 @@
+package cmd
+
+import (
+ "errors"
+ "io"
+
+ "cosmossdk.io/log"
+ confixcmd "cosmossdk.io/tools/confix/cmd"
+ dbm "github.com/cosmos/cosmos-db"
+ "github.com/cosmos/cosmos-sdk/client"
+ "github.com/cosmos/cosmos-sdk/client/debug"
+ "github.com/cosmos/cosmos-sdk/client/flags"
+ "github.com/cosmos/cosmos-sdk/client/keys"
+ "github.com/cosmos/cosmos-sdk/client/pruning"
+ "github.com/cosmos/cosmos-sdk/client/rpc"
+ "github.com/cosmos/cosmos-sdk/client/snapshot"
+ "github.com/cosmos/cosmos-sdk/codec"
+ codectypes "github.com/cosmos/cosmos-sdk/codec/types"
+ "github.com/cosmos/cosmos-sdk/server"
+ servertypes "github.com/cosmos/cosmos-sdk/server/types"
+ "github.com/cosmos/cosmos-sdk/types/module"
+ authcmd "github.com/cosmos/cosmos-sdk/x/auth/client/cli"
+ "github.com/cosmos/cosmos-sdk/x/crisis"
+ genutilcli "github.com/cosmos/cosmos-sdk/x/genutil/client/cli"
+ "github.com/spf13/cobra"
+ "github.com/spf13/viper"
+
+ "github.com/pokt-network/poktroll/app"
+)
+
+func initRootCmd(
+ rootCmd *cobra.Command,
+ txConfig client.TxConfig,
+ interfaceRegistry codectypes.InterfaceRegistry,
+ appCodec codec.Codec,
+ basicManager module.BasicManager,
+) {
+ rootCmd.AddCommand(
+ genutilcli.InitCmd(basicManager, app.DefaultNodeHome),
+ debug.Cmd(),
+ confixcmd.ConfigCommand(),
+ pruning.Cmd(newApp, app.DefaultNodeHome),
+ snapshot.Cmd(newApp),
+ )
+
+ server.AddCommands(rootCmd, app.DefaultNodeHome, newApp, appExport, addModuleInitFlags)
+
+ // add keybase, auxiliary RPC, query, genesis, and tx child commands
+ rootCmd.AddCommand(
+ server.StatusCommand(),
+ genesisCommand(txConfig, basicManager),
+ queryCommand(),
+ txCommand(),
+ keys.Commands(),
+ )
+}
+
+func addModuleInitFlags(startCmd *cobra.Command) {
+ crisis.AddModuleInitFlags(startCmd)
+}
+
+// genesisCommand builds genesis-related `poktrolld genesis` command. Users may provide application specific commands as a parameter
+func genesisCommand(txConfig client.TxConfig, basicManager module.BasicManager, cmds ...*cobra.Command) *cobra.Command {
+ cmd := genutilcli.Commands(txConfig, basicManager, app.DefaultNodeHome)
+
+ for _, subCmd := range cmds {
+ cmd.AddCommand(subCmd)
+ }
+ return cmd
+}
+
+func queryCommand() *cobra.Command {
+ cmd := &cobra.Command{
+ Use: "query",
+ Aliases: []string{"q"},
+ Short: "Querying subcommands",
+ DisableFlagParsing: false,
+ SuggestionsMinimumDistance: 2,
+ RunE: client.ValidateCmd,
+ }
+
+ cmd.AddCommand(
+ rpc.QueryEventForTxCmd(),
+ rpc.ValidatorCommand(),
+ server.QueryBlockCmd(),
+ authcmd.QueryTxsByEventsCmd(),
+ server.QueryBlocksCmd(),
+ authcmd.QueryTxCmd(),
+ server.QueryBlockResultsCmd(),
+ )
+ cmd.PersistentFlags().String(flags.FlagChainID, "", "The network chain ID")
+
+ return cmd
+}
+
+func txCommand() *cobra.Command {
+ cmd := &cobra.Command{
+ Use: "tx",
+ Short: "Transactions subcommands",
+ DisableFlagParsing: false,
+ SuggestionsMinimumDistance: 2,
+ RunE: client.ValidateCmd,
+ }
+
+ cmd.AddCommand(
+ authcmd.GetSignCommand(),
+ authcmd.GetSignBatchCommand(),
+ authcmd.GetMultiSignCommand(),
+ authcmd.GetMultiSignBatchCmd(),
+ authcmd.GetValidateSignaturesCommand(),
+ flags.LineBreak,
+ authcmd.GetBroadcastCommand(),
+ authcmd.GetEncodeCommand(),
+ authcmd.GetDecodeCommand(),
+ authcmd.GetSimulateCmd(),
+ )
+ cmd.PersistentFlags().String(flags.FlagChainID, "", "The network chain ID")
+
+ return cmd
+}
+
+// newApp creates the application
+func newApp(
+ logger log.Logger,
+ db dbm.DB,
+ traceStore io.Writer,
+ appOpts servertypes.AppOptions,
+) servertypes.Application {
+ baseappOptions := server.DefaultBaseappOptions(appOpts)
+
+ app, err := app.New(
+ logger, db, traceStore, true,
+ appOpts,
+ baseappOptions...,
+ )
+ if err != nil {
+ panic(err)
+ }
+ return app
+}
+
+// appExport creates a new app (optionally at a given height) and exports state.
+func appExport(
+ logger log.Logger,
+ db dbm.DB,
+ traceStore io.Writer,
+ height int64,
+ forZeroHeight bool,
+ jailAllowedAddrs []string,
+ appOpts servertypes.AppOptions,
+ modulesToExport []string,
+) (servertypes.ExportedApp, error) {
+ var (
+ bApp *app.App
+ err error
+ )
+
+ // this check is necessary as we use the flag in x/upgrade.
+ // we can exit more gracefully by checking the flag here.
+ homePath, ok := appOpts.Get(flags.FlagHome).(string)
+ if !ok || homePath == "" {
+ return servertypes.ExportedApp{}, errors.New("application home not set")
+ }
+
+ viperAppOpts, ok := appOpts.(*viper.Viper)
+ if !ok {
+ return servertypes.ExportedApp{}, errors.New("appOpts is not viper.Viper")
+ }
+
+ // overwrite the FlagInvCheckPeriod
+ viperAppOpts.Set(server.FlagInvCheckPeriod, 1)
+ appOpts = viperAppOpts
+
+ if height != -1 {
+ bApp, err = app.New(logger, db, traceStore, false, appOpts)
+ if err != nil {
+ return servertypes.ExportedApp{}, err
+ }
+
+ if err := bApp.LoadHeight(height); err != nil {
+ return servertypes.ExportedApp{}, err
+ }
+ } else {
+ bApp, err = app.New(logger, db, traceStore, true, appOpts)
+ if err != nil {
+ return servertypes.ExportedApp{}, err
+ }
+ }
+
+ return bApp.ExportAppStateAndValidators(forZeroHeight, jailAllowedAddrs, modulesToExport)
+}
diff --git a/cmd/poktrolld/cmd/config.go b/cmd/poktrolld/cmd/config.go
new file mode 100644
index 000000000..0041179d1
--- /dev/null
+++ b/cmd/poktrolld/cmd/config.go
@@ -0,0 +1,91 @@
+package cmd
+
+import (
+ "sync"
+
+ cmtcfg "github.com/cometbft/cometbft/config"
+ serverconfig "github.com/cosmos/cosmos-sdk/server/config"
+ sdk "github.com/cosmos/cosmos-sdk/types"
+
+ "github.com/pokt-network/poktroll/app"
+)
+
+var once sync.Once
+
+func InitSDKConfig() {
+ once.Do(func() {
+ initSDKConfig()
+ })
+}
+
+func initSDKConfig() {
+ // Set prefixes
+ accountPubKeyPrefix := app.AccountAddressPrefix + "pub"
+ validatorAddressPrefix := app.AccountAddressPrefix + "valoper"
+ validatorPubKeyPrefix := app.AccountAddressPrefix + "valoperpub"
+ consNodeAddressPrefix := app.AccountAddressPrefix + "valcons"
+ consNodePubKeyPrefix := app.AccountAddressPrefix + "valconspub"
+
+ // Set and seal config
+ config := sdk.GetConfig()
+ config.SetBech32PrefixForAccount(app.AccountAddressPrefix, accountPubKeyPrefix)
+ config.SetBech32PrefixForValidator(validatorAddressPrefix, validatorPubKeyPrefix)
+ config.SetBech32PrefixForConsensusNode(consNodeAddressPrefix, consNodePubKeyPrefix)
+ config.Seal()
+}
+
+// initCometBFTConfig helps to override default CometBFT Config values.
+// return cmtcfg.DefaultConfig if no custom configuration is required for the application.
+func initCometBFTConfig() *cmtcfg.Config {
+ cfg := cmtcfg.DefaultConfig()
+
+ // these values put a higher strain on node memory
+ // cfg.P2P.MaxNumInboundPeers = 100
+ // cfg.P2P.MaxNumOutboundPeers = 40
+
+ return cfg
+}
+
+// initAppConfig helps to override default appConfig template and configs.
+// return "", nil if no custom configuration is required for the application.
+func initAppConfig() (string, interface{}) {
+ // The following code snippet is just for reference.
+ type CustomAppConfig struct {
+ serverconfig.Config `mapstructure:",squash"`
+ }
+
+ // Optionally allow the chain developer to overwrite the SDK's default
+ // server config.
+ srvCfg := serverconfig.DefaultConfig()
+ // The SDK's default minimum gas price is set to "" (empty value) inside
+ // app.toml. If left empty by validators, the node will halt on startup.
+ // However, the chain developer can set a default app.toml value for their
+ // validators here.
+ //
+ // In summary:
+ // - if you leave srvCfg.MinGasPrices = "", all validators MUST tweak their
+ // own app.toml config,
+ // - if you set srvCfg.MinGasPrices non-empty, validators CAN tweak their
+ // own app.toml to override, or use this default value.
+ //
+ // In tests, we set the min gas prices to 0.
+ // srvCfg.MinGasPrices = "0stake"
+ // srvCfg.BaseConfig.IAVLDisableFastNode = true // disable fastnode by default
+
+ customAppConfig := CustomAppConfig{
+ Config: *srvCfg,
+ }
+
+ customAppTemplate := serverconfig.DefaultConfigTemplate
+ // Edit the default template file
+ //
+ // customAppTemplate := serverconfig.DefaultConfigTemplate + `
+ // [wasm]
+ // # This is the maximum sdk gas (wasm and storage) that we allow for any x/wasm "smart" queries
+ // query_gas_limit = 300000
+ // # This is the number of wasm vm instances we keep cached in memory for speed-up
+ // # Warning: this is currently unstable and may lead to crashes, best to keep for 0 unless testing locally
+ // lru_size = 0`
+
+ return customAppTemplate, customAppConfig
+}
diff --git a/cmd/poktrolld/cmd/root.go b/cmd/poktrolld/cmd/root.go
new file mode 100644
index 000000000..045e3505a
--- /dev/null
+++ b/cmd/poktrolld/cmd/root.go
@@ -0,0 +1,185 @@
+package cmd
+
+import (
+ "os"
+ "strings"
+
+ "cosmossdk.io/client/v2/autocli"
+ clientv2keyring "cosmossdk.io/client/v2/autocli/keyring"
+ "cosmossdk.io/core/address"
+ "cosmossdk.io/depinject"
+ "cosmossdk.io/log"
+ "github.com/cosmos/cosmos-sdk/client"
+ "github.com/cosmos/cosmos-sdk/client/config"
+ "github.com/cosmos/cosmos-sdk/client/flags"
+ "github.com/cosmos/cosmos-sdk/codec"
+ codectypes "github.com/cosmos/cosmos-sdk/codec/types"
+ "github.com/cosmos/cosmos-sdk/crypto/keyring"
+ "github.com/cosmos/cosmos-sdk/server"
+ "github.com/cosmos/cosmos-sdk/types/module"
+ "github.com/cosmos/cosmos-sdk/types/tx/signing"
+ "github.com/cosmos/cosmos-sdk/x/auth/tx"
+ txmodule "github.com/cosmos/cosmos-sdk/x/auth/tx/config"
+ "github.com/cosmos/cosmos-sdk/x/auth/types"
+ "github.com/spf13/cobra"
+ "github.com/spf13/pflag"
+
+ "github.com/pokt-network/poktroll/app"
+ appgateservercmd "github.com/pokt-network/poktroll/pkg/appgateserver/cmd"
+ relayercmd "github.com/pokt-network/poktroll/pkg/relayer/cmd"
+)
+
+// NewRootCmd creates a new root command for poktrolld. It is called once in the main function.
+func NewRootCmd() *cobra.Command {
+ InitSDKConfig()
+
+ var (
+ txConfigOpts tx.ConfigOptions
+ autoCliOpts autocli.AppOptions
+ moduleBasicManager module.BasicManager
+ clientCtx client.Context
+ )
+
+ if err := depinject.Inject(
+ depinject.Configs(app.AppConfig(),
+ depinject.Supply(
+ log.NewNopLogger(),
+ ),
+ depinject.Provide(
+ ProvideClientContext,
+ ProvideKeyring,
+ ),
+ ),
+ &txConfigOpts,
+ &autoCliOpts,
+ &moduleBasicManager,
+ &clientCtx,
+ ); err != nil {
+ panic(err)
+ }
+
+ rootCmd := &cobra.Command{
+ Use: app.Name + "d",
+ Short: "Start poktroll node",
+ SilenceErrors: true,
+ PersistentPreRunE: func(cmd *cobra.Command, _ []string) error {
+ // set the default command outputs
+ cmd.SetOut(cmd.OutOrStdout())
+ cmd.SetErr(cmd.ErrOrStderr())
+
+ clientCtx = clientCtx.WithCmdContext(cmd.Context())
+ clientCtx, err := client.ReadPersistentCommandFlags(clientCtx, cmd.Flags())
+ if err != nil {
+ return err
+ }
+
+ clientCtx, err = config.ReadFromClientConfig(clientCtx)
+ if err != nil {
+ return err
+ }
+
+ // This needs to go after ReadFromClientConfig, as that function
+ // sets the RPC client needed for SIGN_MODE_TEXTUAL.
+ txConfigOpts.EnabledSignModes = append(txConfigOpts.EnabledSignModes, signing.SignMode_SIGN_MODE_TEXTUAL)
+ txConfigOpts.TextualCoinMetadataQueryFn = txmodule.NewGRPCCoinMetadataQueryFn(clientCtx)
+ txConfigWithTextual, err := tx.NewTxConfigWithOptions(
+ codec.NewProtoCodec(clientCtx.InterfaceRegistry),
+ txConfigOpts,
+ )
+ if err != nil {
+ return err
+ }
+
+ clientCtx = clientCtx.WithTxConfig(txConfigWithTextual)
+ if err := client.SetCmdClientContextHandler(clientCtx, cmd); err != nil {
+ return err
+ }
+
+ if err := client.SetCmdClientContextHandler(clientCtx, cmd); err != nil {
+ return err
+ }
+
+ customAppTemplate, customAppConfig := initAppConfig()
+ customCMTConfig := initCometBFTConfig()
+
+ return server.InterceptConfigsPreRunHandler(cmd, customAppTemplate, customAppConfig, customCMTConfig)
+ },
+ }
+
+ // Since the IBC modules don't support dependency injection, we need to
+ // manually register the modules on the client side.
+ // This needs to be removed after IBC supports App Wiring.
+ ibcModules := app.RegisterIBC(clientCtx.InterfaceRegistry)
+ for name, module := range ibcModules {
+ autoCliOpts.Modules[name] = module
+ }
+ initRootCmd(rootCmd, clientCtx.TxConfig, clientCtx.InterfaceRegistry, clientCtx.Codec, moduleBasicManager)
+
+ overwriteFlagDefaults(rootCmd, map[string]string{
+ flags.FlagChainID: strings.ReplaceAll(app.Name, "-", ""),
+ flags.FlagKeyringBackend: "test",
+ })
+
+ if err := autoCliOpts.EnhanceRootCommand(rootCmd); err != nil {
+ panic(err)
+ }
+
+ // add relayer command
+ rootCmd.AddCommand(
+ relayercmd.RelayerCmd(),
+ )
+
+ // add the appgate server command
+ rootCmd.AddCommand(
+ appgateservercmd.AppGateServerCmd(),
+ )
+
+ return rootCmd
+}
+
+func overwriteFlagDefaults(c *cobra.Command, defaults map[string]string) {
+ set := func(s *pflag.FlagSet, key, val string) {
+ if f := s.Lookup(key); f != nil {
+ f.DefValue = val
+ f.Value.Set(val)
+ }
+ }
+ for key, val := range defaults {
+ set(c.Flags(), key, val)
+ set(c.PersistentFlags(), key, val)
+ }
+ for _, c := range c.Commands() {
+ overwriteFlagDefaults(c, defaults)
+ }
+}
+
+func ProvideClientContext(
+ appCodec codec.Codec,
+ interfaceRegistry codectypes.InterfaceRegistry,
+ txConfig client.TxConfig,
+ legacyAmino *codec.LegacyAmino,
+) client.Context {
+ clientCtx := client.Context{}.
+ WithCodec(appCodec).
+ WithInterfaceRegistry(interfaceRegistry).
+ WithTxConfig(txConfig).
+ WithLegacyAmino(legacyAmino).
+ WithInput(os.Stdin).
+ WithAccountRetriever(types.AccountRetriever{}).
+ WithHomeDir(app.DefaultNodeHome).
+ WithViper(app.Name) // env variable prefix
+
+ // Read the config again to overwrite the default values with the values from the config file
+ clientCtx, _ = config.ReadFromClientConfig(clientCtx)
+
+ return clientCtx
+}
+
+func ProvideKeyring(clientCtx client.Context, addressCodec address.Codec) (clientv2keyring.Keyring, error) {
+ kb, err := client.NewKeyringFromBackend(clientCtx, clientCtx.Keyring.Backend())
+ if err != nil {
+ return nil, err
+ }
+
+ return keyring.NewAutoCLIKeyring(kb)
+}
diff --git a/cmd/poktrolld/main.go b/cmd/poktrolld/main.go
new file mode 100644
index 000000000..c5aee5e20
--- /dev/null
+++ b/cmd/poktrolld/main.go
@@ -0,0 +1,19 @@
+package main
+
+import (
+ "fmt"
+ "os"
+
+ svrcmd "github.com/cosmos/cosmos-sdk/server/cmd"
+
+ "github.com/pokt-network/poktroll/app"
+ "github.com/pokt-network/poktroll/cmd/poktrolld/cmd"
+)
+
+func main() {
+ rootCmd := cmd.NewRootCmd()
+ if err := svrcmd.Execute(rootCmd, "", app.DefaultNodeHome); err != nil {
+ fmt.Fprintln(rootCmd.OutOrStderr(), err)
+ os.Exit(1)
+ }
+}
diff --git a/config.yml b/config.yml
index d55021f8f..5e603e59b 100644
--- a/config.yml
+++ b/config.yml
@@ -1,6 +1,6 @@
version: 1
build:
- main: cmd/pocketd
+ main: cmd/poktrolld
accounts:
- name: faucet
mnemonic: "baby advance work soap slow exclude blur humble lucky rough teach wide chuckle captain rack laundry butter main very cannon donate armor dress follow"
@@ -88,7 +88,7 @@ genesis:
denom: upokt
application:
params:
- maxDelegatedGateways: 7
+ max_delegated_gateways: "7"
applicationList:
- address: pokt1mrqt5f7qh8uxs27cjm9t7v9e74a9vvdnq5jva4
delegatee_gateway_addresses: []
@@ -115,4 +115,4 @@ genesis:
denom: upokt
service:
params:
- addServiceFee: 1000000000
+ add_service_fee: "1000000000"
diff --git a/docs/static/openapi.yml b/docs/static/openapi.yml
index aec5c71d6..c9122d232 100644
--- a/docs/static/openapi.yml
+++ b/docs/static/openapi.yml
@@ -4,204 +4,26 @@ info:
name: ''
description: ''
paths:
- /cosmos/auth/v1beta1/account_info/{address}:
- get:
- summary: AccountInfo queries account info which is common to all account types.
+ /cosmos.auth.v1beta1.Msg/UpdateParams:
+ post:
+ summary: >-
+ UpdateParams defines a (governance) operation for updating the x/auth
+ module
+
+ parameters. The authority defaults to the x/gov module account.
description: 'Since: cosmos-sdk 0.47'
- operationId: CosmosAuthV1Beta1AccountInfo
+ operationId: CosmosAuthV1Beta1Msg_UpdateParams
responses:
'200':
description: A successful response.
schema:
type: object
- properties:
- info:
- description: info is the account info which is represented by BaseAccount.
- type: object
- properties:
- address:
- type: string
- pub_key:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type
- of the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be
- in a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results
- based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty
- scheme) might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any
- values in the form
-
- of utility functions or additional generated methods of
- the Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and
- the unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will
- yield type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a
- custom JSON
-
- representation, that representation will be embedded
- adding a field
+ description: >-
+ MsgUpdateParamsResponse defines the response structure for
+ executing a
- `value` which holds the custom JSON in addition to the
- `@type`
+ MsgUpdateParams message.
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- account_number:
- type: string
- format: uint64
- sequence:
- type: string
- format: uint64
- description: |-
- QueryAccountInfoResponse is the Query/AccountInfo response type.
Since: cosmos-sdk 0.47
default:
@@ -310,8 +132,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -321,7 +147,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -349,10 +175,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -390,32 +214,79 @@ paths:
"value": "1.212s"
}
parameters:
- - name: address
- description: address is the account address string.
- in: path
- required: true
- type: string
- tags:
- - Query
- /cosmos/auth/v1beta1/accounts:
- get:
- summary: Accounts returns all the existing accounts.
- description: >-
- When called from another module, this query might consume a high amount
- of
+ - name: body
+ description: |-
+ MsgUpdateParams is the Msg/UpdateParams request type.
- gas if the pagination field is incorrectly set.
+ Since: cosmos-sdk 0.47
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ authority:
+ type: string
+ description: >-
+ authority is the address that controls the module (defaults to
+ x/gov unless overwritten).
+ params:
+ description: |-
+ params defines the x/auth parameters to update.
+ NOTE: All parameters must be supplied.
+ type: object
+ properties:
+ max_memo_characters:
+ type: string
+ format: uint64
+ tx_sig_limit:
+ type: string
+ format: uint64
+ tx_size_cost_per_byte:
+ type: string
+ format: uint64
+ sig_verify_cost_ed25519:
+ type: string
+ format: uint64
+ sig_verify_cost_secp256k1:
+ type: string
+ format: uint64
+ description: |-
+ MsgUpdateParams is the Msg/UpdateParams request type.
- Since: cosmos-sdk 0.43
- operationId: CosmosAuthV1Beta1Accounts
+ Since: cosmos-sdk 0.47
+ tags:
+ - Msg
+ /cosmos.authz.v1beta1.Msg/Exec:
+ post:
+ summary: |-
+ Exec attempts to execute the provided messages using
+ authorizations granted to the grantee. Each message should have only
+ one signer corresponding to the granter of the authorization.
+ operationId: CosmosAuthzV1Beta1Msg_Exec
responses:
'200':
description: A successful response.
schema:
type: object
properties:
- accounts:
+ results:
+ type: array
+ items:
+ type: string
+ format: byte
+ description: MsgExecResponse defines the Msg/MsgExecResponse response type.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
type: array
items:
type: object
@@ -511,8 +382,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -522,7 +397,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -550,10 +425,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -590,43 +463,20 @@ paths:
"@type": "type.googleapis.com/google.protobuf.Duration",
"value": "1.212s"
}
- title: accounts are the existing accounts
- pagination:
- description: pagination defines the pagination in the response.
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
-
- was set, its value is undefined otherwise
- description: >-
- QueryAccountsResponse is the response type for the Query/Accounts
- RPC method.
-
-
- Since: cosmos-sdk 0.43
- default:
- description: An unexpected error response.
+ parameters:
+ - name: body
+ description: |-
+ MsgExec attempts to execute the provided messages using
+ authorizations granted to the grantee. Each message should have only
+ one signer corresponding to the granter of the authorization.
+ in: body
+ required: true
schema:
type: object
properties:
- code:
- type: integer
- format: int32
- message:
+ grantee:
type: string
- details:
+ msgs:
type: array
items:
type: object
@@ -722,8 +572,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -733,7 +587,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -761,10 +615,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -801,247 +653,36 @@ paths:
"@type": "type.googleapis.com/google.protobuf.Duration",
"value": "1.212s"
}
- parameters:
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
+ description: >-
+ Execute Msg.
- count_total is only respected when offset is used. It is ignored
- when key
+ The x/authz will try to find a grant matching (msg.signers[0],
+ grantee, MsgTypeURL(msg))
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
+ triple and validate it.
+ description: >-
+ MsgExec attempts to execute the provided messages using
+ authorizations granted to the grantee. Each message should have
+ only
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
+ one signer corresponding to the granter of the authorization.
tags:
- - Query
- /cosmos/auth/v1beta1/accounts/{address}:
- get:
- summary: Account returns account details based on address.
- operationId: CosmosAuthV1Beta1Account
+ - Msg
+ /cosmos.authz.v1beta1.Msg/Grant:
+ post:
+ summary: |-
+ Grant grants the provided authorization to the grantee on the granter's
+ account with the provided expiration time. If there is already a grant
+ for the given (granter, grantee, Authorization) triple, then the grant
+ will be overwritten.
+ operationId: CosmosAuthzV1Beta1Msg_Grant
responses:
'200':
description: A successful response.
schema:
type: object
- properties:
- account:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at least
-
- one "/" character. The last segment of the URL's path must
- represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in a
- canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary all
- types that they
-
- expect it to use in the context of Any. However, for URLs
- which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in the
- official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer message
- along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values in
- the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by default
- use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the last
- '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with an
-
- additional field `@type` which contains the type URL. Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding a
- field
-
- `value` which holds the custom JSON in addition to the `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- description: >-
- QueryAccountResponse is the response type for the Query/Account
- RPC method.
+ description: MsgGrantResponse defines the Msg/MsgGrant response type.
default:
description: An unexpected error response.
schema:
@@ -1148,8 +789,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -1159,7 +804,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -1187,10 +832,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -1228,30 +871,234 @@ paths:
"value": "1.212s"
}
parameters:
- - name: address
- description: address defines the address to query for.
- in: path
+ - name: body
+ description: >-
+ MsgGrant is a request type for Grant method. It declares
+ authorization to the grantee
+
+ on behalf of the granter with the provided expiration time.
+ in: body
required: true
- type: string
+ schema:
+ type: object
+ properties:
+ granter:
+ type: string
+ grantee:
+ type: string
+ grant:
+ type: object
+ properties:
+ authorization:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type
+ of the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be
+ in a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can
+ optionally set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results
+ based on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty
+ scheme) might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any
+ values in the form
+
+ of utility functions or additional generated methods of
+ the Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and
+ the unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will
+ yield type
+
+ name "y.z".
+
+
+ JSON
+
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a
+ custom JSON
+
+ representation, that representation will be embedded
+ adding a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ expiration:
+ type: string
+ format: date-time
+ title: >-
+ time when the grant will expire and will be pruned. If
+ null, then the grant
+
+ doesn't have a time expiration (other conditions in
+ `authorization`
+
+ may apply to invalidate the grant)
+ description: |-
+ Grant gives permissions to execute
+ the provide method with expiration time.
+ description: >-
+ MsgGrant is a request type for Grant method. It declares
+ authorization to the grantee
+
+ on behalf of the granter with the provided expiration time.
tags:
- - Query
- /cosmos/auth/v1beta1/address_by_id/{id}:
- get:
- summary: AccountAddressByID returns account address based on account number.
- description: 'Since: cosmos-sdk 0.46.2'
- operationId: CosmosAuthV1Beta1AccountAddressByID
+ - Msg
+ /cosmos.authz.v1beta1.Msg/Revoke:
+ post:
+ summary: >-
+ Revoke revokes any authorization corresponding to the provided method
+ name on the
+
+ granter's account that has been granted to the grantee.
+ operationId: CosmosAuthzV1Beta1Msg_Revoke
responses:
'200':
description: A successful response.
schema:
type: object
- properties:
- account_address:
- type: string
- description: 'Since: cosmos-sdk 0.46.2'
- title: >-
- QueryAccountAddressByIDResponse is the response type for
- AccountAddressByID rpc method
+ description: MsgRevokeResponse defines the Msg/MsgRevokeResponse response type.
default:
description: An unexpected error response.
schema:
@@ -1358,8 +1205,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -1369,7 +1220,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -1397,10 +1248,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -1438,47 +1287,42 @@ paths:
"value": "1.212s"
}
parameters:
- - name: id
- description: |-
- Deprecated, use account_id instead
+ - name: body
+ description: >-
+ MsgRevoke revokes any authorization with the provided sdk.Msg type
+ on the
- id is the account number of the address to be queried. This field
- should have been an uint64 (like all account numbers), and will be
- updated to uint64 in a future version of the auth query.
- in: path
+ granter's account with that has been granted to the grantee.
+ in: body
required: true
- type: string
- format: int64
- - name: account_id
- description: |-
- account_id is the account number of the address to be queried.
+ schema:
+ type: object
+ properties:
+ granter:
+ type: string
+ grantee:
+ type: string
+ msg_type_url:
+ type: string
+ description: >-
+ MsgRevoke revokes any authorization with the provided sdk.Msg type
+ on the
- Since: cosmos-sdk 0.47
- in: query
- required: false
- type: string
- format: uint64
+ granter's account with that has been granted to the grantee.
tags:
- - Query
- /cosmos/auth/v1beta1/bech32:
- get:
- summary: Bech32Prefix queries bech32Prefix
- description: 'Since: cosmos-sdk 0.46'
- operationId: CosmosAuthV1Beta1Bech32Prefix
+ - Msg
+ /cosmos.bank.v1beta1.Msg/MultiSend:
+ post:
+ summary: >-
+ MultiSend defines a method for sending coins from some accounts to other
+ accounts.
+ operationId: CosmosBankV1Beta1Msg_MultiSend
responses:
'200':
description: A successful response.
schema:
type: object
- properties:
- bech32_prefix:
- type: string
- description: >-
- Bech32PrefixResponse is the response type for Bech32Prefix rpc
- method.
-
-
- Since: cosmos-sdk 0.46
+ description: MsgMultiSendResponse defines the Msg/MultiSend response type.
default:
description: An unexpected error response.
schema:
@@ -1496,195 +1340,361 @@ paths:
properties:
'@type':
type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
+ additionalProperties: {}
+ parameters:
+ - name: body
+ description: >-
+ MsgMultiSend represents an arbitrary multi-in, multi-out send
+ message.
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ inputs:
+ type: array
+ items:
+ type: object
+ properties:
+ address:
+ type: string
+ coins:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an
+ amount.
- In practice, teams usually precompile into the binary
- all types that they
+ NOTE: The amount field is an Int which implements the
+ custom method
- expect it to use in the context of Any. However, for
- URLs which use the
+ signatures required by gogoproto.
+ description: Input models transaction input.
+ description: >-
+ Inputs, despite being `repeated`, only allows one sender
+ input. This is
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
+ checked in MsgMultiSend's ValidateBasic.
+ outputs:
+ type: array
+ items:
+ type: object
+ properties:
+ address:
+ type: string
+ coins:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an
+ amount.
- Schemes other than `http`, `https` (or the empty scheme)
- might be
+ NOTE: The amount field is an Int which implements the
+ custom method
- used with implementation specific semantics.
+ signatures required by gogoproto.
+ description: Output models transaction outputs.
+ description: >-
+ MsgMultiSend represents an arbitrary multi-in, multi-out send
+ message.
+ tags:
+ - Msg
+ /cosmos.bank.v1beta1.Msg/Send:
+ post:
+ summary: >-
+ Send defines a method for sending coins from one account to another
+ account.
+ operationId: CosmosBankV1Beta1Msg_Send
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ description: MsgSendResponse defines the Msg/Send response type.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
additionalProperties: {}
+ parameters:
+ - name: body
+ description: >-
+ MsgSend represents a message to send coins from one account to
+ another.
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ from_address:
+ type: string
+ to_address:
+ type: string
+ amount:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
+ Coin defines a token with a denomination and an amount.
- Example 1: Pack and unpack a message in C++.
+ NOTE: The amount field is an Int which implements the custom
+ method
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
+ signatures required by gogoproto.
+ description: >-
+ MsgSend represents a message to send coins from one account to
+ another.
+ tags:
+ - Msg
+ /cosmos.bank.v1beta1.Msg/SetSendEnabled:
+ post:
+ summary: >-
+ SetSendEnabled is a governance operation for setting the SendEnabled
+ flag
- Example 2: Pack and unpack a message in Java.
+ on any number of Denoms. Only the entries to add or update should be
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
+ included. Entries that already exist in the store, but that aren't
- Example 3: Pack and unpack a message in Python.
+ included in this message, will be left unchanged.
+ description: 'Since: cosmos-sdk 0.47'
+ operationId: CosmosBankV1Beta1Msg_SetSendEnabled
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ description: >-
+ MsgSetSendEnabledResponse defines the Msg/SetSendEnabled response
+ type.
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
- Example 4: Pack and unpack a message in Go
+ Since: cosmos-sdk 0.47
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ parameters:
+ - name: body
+ description: |-
+ MsgSetSendEnabled is the Msg/SetSendEnabled request type.
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
+ Only entries to add/update/delete need to be included.
+ Existing SendEnabled entries that are not included in this
+ message are left unchanged.
- The pack methods provided by protobuf library will by
- default use
+ Since: cosmos-sdk 0.47
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ authority:
+ type: string
+ description: authority is the address that controls the module.
+ send_enabled:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ enabled:
+ type: boolean
+ description: >-
+ SendEnabled maps coin denom to a send_enabled status
+ (whether a denom is
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
+ sendable).
+ description: send_enabled is the list of entries to add or update.
+ use_default_for:
+ type: array
+ items:
+ type: string
+ description: >-
+ use_default_for is a list of denoms that should use the
+ params.default_send_enabled value.
- methods only use the fully qualified type name after the
- last '/'
+ Denoms listed here will have their SendEnabled entries
+ deleted.
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
+ If a denom is included that doesn't have a SendEnabled entry,
- name "y.z".
+ it will be ignored.
+ description: |-
+ MsgSetSendEnabled is the Msg/SetSendEnabled request type.
+ Only entries to add/update/delete need to be included.
+ Existing SendEnabled entries that are not included in this
+ message are left unchanged.
+ Since: cosmos-sdk 0.47
+ tags:
+ - Msg
+ /cosmos.bank.v1beta1.Msg/UpdateParams:
+ post:
+ summary: >-
+ UpdateParams defines a governance operation for updating the x/bank
+ module parameters.
- JSON
+ The authority is defined in the keeper.
+ description: 'Since: cosmos-sdk 0.47'
+ operationId: CosmosBankV1Beta1Msg_UpdateParams
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ description: >-
+ MsgUpdateParamsResponse defines the response structure for
+ executing a
- ====
+ MsgUpdateParams message.
- The JSON representation of an `Any` value uses the regular
- representation of the deserialized, embedded message, with
- an
+ Since: cosmos-sdk 0.47
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ parameters:
+ - name: body
+ description: |-
+ MsgUpdateParams is the Msg/UpdateParams request type.
- additional field `@type` which contains the type URL.
- Example:
+ Since: cosmos-sdk 0.47
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ authority:
+ type: string
+ description: >-
+ authority is the address that controls the module (defaults to
+ x/gov unless overwritten).
+ params:
+ description: |-
+ params defines the x/bank parameters to update.
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
+ NOTE: All parameters must be supplied.
+ type: object
+ properties:
+ send_enabled:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ enabled:
+ type: boolean
+ description: >-
+ SendEnabled maps coin denom to a send_enabled status
+ (whether a denom is
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
+ sendable).
+ description: >-
+ Deprecated: Use of SendEnabled in params is deprecated.
- If the embedded message type is well-known and has a custom
- JSON
+ For genesis, use the newly added send_enabled field in the
+ genesis object.
- representation, that representation will be embedded adding
- a field
+ Storage, lookup, and manipulation of this information is
+ now in the keeper.
- `value` which holds the custom JSON in addition to the
- `@type`
- field. Example (for message [google.protobuf.Duration][]):
+ As of cosmos-sdk 0.47, this only exists for backwards
+ compatibility of genesis files.
+ default_send_enabled:
+ type: boolean
+ description: |-
+ MsgUpdateParams is the Msg/UpdateParams request type.
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
+ Since: cosmos-sdk 0.47
tags:
- - Query
- /cosmos/auth/v1beta1/bech32/{address_bytes}:
+ - Msg
+ /cosmos/base/node/v1beta1/config:
get:
- summary: AddressBytesToString converts Account Address bytes to string
- description: 'Since: cosmos-sdk 0.46'
- operationId: CosmosAuthV1Beta1AddressBytesToString
+ summary: Config queries for the operator configuration.
+ operationId: CosmosBaseNodeV1Beta1Service_Config
responses:
'200':
description: A successful response.
schema:
type: object
properties:
- address_string:
+ minimum_gas_price:
+ type: string
+ pruning_keep_recent:
+ type: string
+ title: pruning settings
+ pruning_interval:
type: string
description: >-
- AddressBytesToStringResponse is the response type for
- AddressString rpc method.
-
-
- Since: cosmos-sdk 0.46
+ ConfigResponse defines the response structure for the Config gRPC
+ query.
default:
description: An unexpected error response.
schema:
@@ -1702,202 +1712,42 @@ paths:
properties:
'@type':
type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: address_bytes
- in: path
- required: true
- type: string
- format: byte
tags:
- - Query
- /cosmos/auth/v1beta1/bech32/{address_string}:
+ - Service
+ /cosmos/base/node/v1beta1/status:
get:
- summary: AddressStringToBytes converts Address string to bytes
- description: 'Since: cosmos-sdk 0.46'
- operationId: CosmosAuthV1Beta1AddressStringToBytes
+ summary: Status queries for the node status.
+ operationId: CosmosBaseNodeV1Beta1Service_Status
responses:
'200':
description: A successful response.
schema:
type: object
properties:
- address_bytes:
+ earliest_store_height:
+ type: string
+ format: uint64
+ title: earliest block height available in the store
+ height:
+ type: string
+ format: uint64
+ title: current block height
+ timestamp:
+ type: string
+ format: date-time
+ title: block height timestamp
+ app_hash:
+ type: string
+ format: byte
+ title: app hash of the current block
+ validator_hash:
type: string
format: byte
+ title: validator hash provided by the consensus header
description: >-
- AddressStringToBytesResponse is the response type for AddressBytes
- rpc method.
-
-
- Since: cosmos-sdk 0.46
+ StateResponse defines the response structure for the status of a
+ node.
default:
description: An unexpected error response.
schema:
@@ -1915,373 +1765,417 @@ paths:
properties:
'@type':
type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
+ additionalProperties: {}
+ tags:
+ - Service
+ /cosmos.consensus.v1.Msg/UpdateParams:
+ post:
+ summary: >-
+ UpdateParams defines a governance operation for updating the x/consensus
+ module parameters.
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
+ The authority is defined in the keeper.
+ description: 'Since: cosmos-sdk 0.47'
+ operationId: CosmosConsensusV1Msg_UpdateParams
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ description: >-
+ MsgUpdateParamsResponse defines the response structure for
+ executing a
- used with implementation specific semantics.
+ MsgUpdateParams message.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
+ parameters:
+ - name: body
+ description: MsgUpdateParams is the Msg/UpdateParams request type.
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ authority:
+ type: string
+ description: >-
+ authority is the address that controls the module (defaults to
+ x/gov unless overwritten).
+ block:
+ description: >-
+ params defines the x/consensus parameters to update.
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
+ VersionsParams is not included in this Msg because it is
+ tracked
- Example 2: Pack and unpack a message in Java.
+ separarately in x/upgrade.
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
- Example 3: Pack and unpack a message in Python.
+ NOTE: All parameters must be supplied.
+ type: object
+ properties:
+ max_bytes:
+ type: string
+ format: int64
+ title: |-
+ Max block size, in bytes.
+ Note: must be greater than 0
+ max_gas:
+ type: string
+ format: int64
+ title: |-
+ Max gas per block.
+ Note: must be greater or equal to -1
+ evidence:
+ type: object
+ properties:
+ max_age_num_blocks:
+ type: string
+ format: int64
+ description: >-
+ Max age of evidence, in blocks.
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
- Example 4: Pack and unpack a message in Go
+ The basic formula for calculating this is: MaxAgeDuration
+ / {average block
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
+ time}.
+ max_age_duration:
+ type: string
+ description: >-
+ Max age of evidence, in time.
- The pack methods provided by protobuf library will by
- default use
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
+ It should correspond with an app's "unbonding period" or
+ other similar
- methods only use the fully qualified type name after the
- last '/'
+ mechanism for handling [Nothing-At-Stake
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
+ attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed).
+ max_bytes:
+ type: string
+ format: int64
+ title: >-
+ This sets the maximum size of total evidence in bytes that
+ can be committed in a single block.
- name "y.z".
+ and should fall comfortably under the max block bytes.
+ Default is 1048576 or 1MB
+ description: >-
+ EvidenceParams determine how we handle evidence of
+ malfeasance.
+ validator:
+ type: object
+ properties:
+ pub_key_types:
+ type: array
+ items:
+ type: string
+ description: >-
+ ValidatorParams restrict the public key types validators can
+ use.
+ NOTE: uses ABCI pubkey naming, not Amino names.
+ abci:
+ title: 'Since: cosmos-sdk 0.50'
+ type: object
+ properties:
+ vote_extensions_enable_height:
+ type: string
+ format: int64
+ description: >-
+ vote_extensions_enable_height configures the first height
+ during which
- JSON
+ vote extensions will be enabled. During this specified
+ height, and for all
- ====
+ subsequent heights, precommit messages that do not contain
+ valid extension data
- The JSON representation of an `Any` value uses the regular
+ will be considered invalid. Prior to this height, vote
+ extensions will not
- representation of the deserialized, embedded message, with
- an
+ be used or accepted by validators on the network.
- additional field `@type` which contains the type URL.
- Example:
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
+ Once enabled, vote extensions will be created by the
+ application in ExtendVote,
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
+ passed to the application for validation in
+ VerifyVoteExtension and given
- If the embedded message type is well-known and has a custom
- JSON
+ to the application to use when proposing a block during
+ PrepareProposal.
+ description: >-
+ ABCIParams configure functionality specific to the Application
+ Blockchain Interface.
+ description: MsgUpdateParams is the Msg/UpdateParams request type.
+ tags:
+ - Msg
+ /cosmos.crisis.v1beta1.Msg/UpdateParams:
+ post:
+ summary: >-
+ UpdateParams defines a governance operation for updating the x/crisis
+ module
- representation, that representation will be embedded adding
- a field
+ parameters. The authority is defined in the keeper.
+ description: 'Since: cosmos-sdk 0.47'
+ operationId: CosmosCrisisV1Beta1Msg_UpdateParams
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ description: >-
+ MsgUpdateParamsResponse defines the response structure for
+ executing a
- `value` which holds the custom JSON in addition to the
- `@type`
+ MsgUpdateParams message.
- field. Example (for message [google.protobuf.Duration][]):
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
+ Since: cosmos-sdk 0.47
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
parameters:
- - name: address_string
- in: path
+ - name: body
+ description: |-
+ MsgUpdateParams is the Msg/UpdateParams request type.
+
+ Since: cosmos-sdk 0.47
+ in: body
required: true
- type: string
+ schema:
+ type: object
+ properties:
+ authority:
+ type: string
+ description: >-
+ authority is the address that controls the module (defaults to
+ x/gov unless overwritten).
+ constant_fee:
+ description: constant_fee defines the x/crisis parameter.
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: |-
+ MsgUpdateParams is the Msg/UpdateParams request type.
+
+ Since: cosmos-sdk 0.47
tags:
- - Query
- /cosmos/auth/v1beta1/module_accounts:
- get:
- summary: ModuleAccounts returns all the existing module accounts.
- description: 'Since: cosmos-sdk 0.46'
- operationId: CosmosAuthV1Beta1ModuleAccounts
+ - Msg
+ /cosmos.crisis.v1beta1.Msg/VerifyInvariant:
+ post:
+ summary: VerifyInvariant defines a method to verify a particular invariant.
+ operationId: CosmosCrisisV1Beta1Msg_VerifyInvariant
responses:
'200':
description: A successful response.
+ schema:
+ type: object
+ description: >-
+ MsgVerifyInvariantResponse defines the Msg/VerifyInvariant
+ response type.
+ default:
+ description: An unexpected error response.
schema:
type: object
properties:
- accounts:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
type: array
items:
type: object
properties:
'@type':
type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
+ parameters:
+ - name: body
+ description: >-
+ MsgVerifyInvariant represents a message to verify a particular
+ invariance.
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ sender:
+ type: string
+ description: >-
+ sender is the account address of private key to send coins to
+ fee collector account.
+ invariant_module_name:
+ type: string
+ description: name of the invariant module.
+ invariant_route:
+ type: string
+ description: invariant_route is the msg's invariant route.
+ description: >-
+ MsgVerifyInvariant represents a message to verify a particular
+ invariance.
+ tags:
+ - Msg
+ /cosmos.distribution.v1beta1.Msg/CommunityPoolSpend:
+ post:
+ summary: >-
+ CommunityPoolSpend defines a governance operation for sending tokens
+ from
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
+ the community pool in the x/distribution module to another account,
+ which
- name "y.z".
+ could be the governance module itself. The authority is defined in the
+ keeper.
+ description: 'Since: cosmos-sdk 0.47'
+ operationId: CosmosDistributionV1Beta1Msg_CommunityPoolSpend
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ description: |-
+ MsgCommunityPoolSpendResponse defines the response to executing a
+ MsgCommunityPoolSpend message.
+ Since: cosmos-sdk 0.47
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ parameters:
+ - name: body
+ description: >-
+ MsgCommunityPoolSpend defines a message for sending tokens from the
+ community
- JSON
+ pool to another account. This message is typically executed via a
+ governance
- ====
+ proposal with the governance module being the executing authority.
- The JSON representation of an `Any` value uses the regular
- representation of the deserialized, embedded message, with
- an
+ Since: cosmos-sdk 0.47
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ authority:
+ type: string
+ description: >-
+ authority is the address that controls the module (defaults to
+ x/gov unless overwritten).
+ recipient:
+ type: string
+ amount:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an amount.
- additional field `@type` which contains the type URL.
- Example:
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
+ NOTE: The amount field is an Int which implements the custom
+ method
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
+ signatures required by gogoproto.
+ description: >-
+ MsgCommunityPoolSpend defines a message for sending tokens from
+ the community
- If the embedded message type is well-known and has a custom
- JSON
+ pool to another account. This message is typically executed via a
+ governance
- representation, that representation will be embedded adding
- a field
+ proposal with the governance module being the executing authority.
- `value` which holds the custom JSON in addition to the
- `@type`
- field. Example (for message [google.protobuf.Duration][]):
+ Since: cosmos-sdk 0.47
+ tags:
+ - Msg
+ /cosmos.distribution.v1beta1.Msg/DepositValidatorRewardsPool:
+ post:
+ summary: >-
+ DepositValidatorRewardsPool defines a method to provide additional
+ rewards
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
+ to delegators to a specific validator.
+ description: 'Since: cosmos-sdk 0.50'
+ operationId: CosmosDistributionV1Beta1Msg_DepositValidatorRewardsPool
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
description: >-
- QueryModuleAccountsResponse is the response type for the
- Query/ModuleAccounts RPC method.
+ MsgDepositValidatorRewardsPoolResponse defines the response to
+ executing a
+ MsgDepositValidatorRewardsPool message.
- Since: cosmos-sdk 0.46
+
+ Since: cosmos-sdk 0.50
default:
description: An unexpected error response.
schema:
@@ -2299,22 +2193,460 @@ paths:
properties:
'@type':
type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
+ additionalProperties: {}
+ parameters:
+ - name: body
+ description: |-
+ DepositValidatorRewardsPool defines the request structure to provide
+ additional rewards to delegators from a specific validator.
+
+ Since: cosmos-sdk 0.50
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ depositor:
+ type: string
+ validator_address:
+ type: string
+ amount:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an amount.
+
+
+ NOTE: The amount field is an Int which implements the custom
+ method
+
+ signatures required by gogoproto.
+ description: >-
+ DepositValidatorRewardsPool defines the request structure to
+ provide
+
+ additional rewards to delegators from a specific validator.
+
+
+ Since: cosmos-sdk 0.50
+ tags:
+ - Msg
+ /cosmos.distribution.v1beta1.Msg/FundCommunityPool:
+ post:
+ summary: |-
+ FundCommunityPool defines a method to allow an account to directly
+ fund the community pool.
+ operationId: CosmosDistributionV1Beta1Msg_FundCommunityPool
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ description: >-
+ MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool
+ response type.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ parameters:
+ - name: body
+ description: |-
+ MsgFundCommunityPool allows an account to directly
+ fund the community pool.
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ amount:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an amount.
+
+
+ NOTE: The amount field is an Int which implements the custom
+ method
+
+ signatures required by gogoproto.
+ depositor:
+ type: string
+ description: |-
+ MsgFundCommunityPool allows an account to directly
+ fund the community pool.
+ tags:
+ - Msg
+ /cosmos.distribution.v1beta1.Msg/SetWithdrawAddress:
+ post:
+ summary: |-
+ SetWithdrawAddress defines a method to change the withdraw address
+ for a delegator (or validator self-delegation).
+ operationId: CosmosDistributionV1Beta1Msg_SetWithdrawAddress
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ description: >-
+ MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress
+ response
+
+ type.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ parameters:
+ - name: body
+ description: |-
+ MsgSetWithdrawAddress sets the withdraw address for
+ a delegator (or validator self-delegation).
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ delegator_address:
+ type: string
+ withdraw_address:
+ type: string
+ description: |-
+ MsgSetWithdrawAddress sets the withdraw address for
+ a delegator (or validator self-delegation).
+ tags:
+ - Msg
+ /cosmos.distribution.v1beta1.Msg/UpdateParams:
+ post:
+ summary: >-
+ UpdateParams defines a governance operation for updating the
+ x/distribution
+
+ module parameters. The authority is defined in the keeper.
+ description: 'Since: cosmos-sdk 0.47'
+ operationId: CosmosDistributionV1Beta1Msg_UpdateParams
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ description: >-
+ MsgUpdateParamsResponse defines the response structure for
+ executing a
+
+ MsgUpdateParams message.
+
+
+ Since: cosmos-sdk 0.47
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ parameters:
+ - name: body
+ description: |-
+ MsgUpdateParams is the Msg/UpdateParams request type.
+
+ Since: cosmos-sdk 0.47
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ authority:
+ type: string
+ description: >-
+ authority is the address that controls the module (defaults to
+ x/gov unless overwritten).
+ params:
+ description: |-
+ params defines the x/distribution parameters to update.
+
+ NOTE: All parameters must be supplied.
+ type: object
+ properties:
+ community_tax:
+ type: string
+ base_proposer_reward:
+ type: string
+ description: >-
+ Deprecated: The base_proposer_reward field is deprecated
+ and is no longer used
+
+ in the x/distribution module's reward mechanism.
+ bonus_proposer_reward:
+ type: string
+ description: >-
+ Deprecated: The bonus_proposer_reward field is deprecated
+ and is no longer used
+
+ in the x/distribution module's reward mechanism.
+ withdraw_addr_enabled:
+ type: boolean
+ description: |-
+ MsgUpdateParams is the Msg/UpdateParams request type.
+
+ Since: cosmos-sdk 0.47
+ tags:
+ - Msg
+ /cosmos.distribution.v1beta1.Msg/WithdrawDelegatorReward:
+ post:
+ summary: >-
+ WithdrawDelegatorReward defines a method to withdraw rewards of
+ delegator
+
+ from a single validator.
+ operationId: CosmosDistributionV1Beta1Msg_WithdrawDelegatorReward
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ amount:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an amount.
+
+
+ NOTE: The amount field is an Int which implements the custom
+ method
+
+ signatures required by gogoproto.
+ title: 'Since: cosmos-sdk 0.46'
+ description: >-
+ MsgWithdrawDelegatorRewardResponse defines the
+ Msg/WithdrawDelegatorReward
+
+ response type.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ parameters:
+ - name: body
+ description: >-
+ MsgWithdrawDelegatorReward represents delegation withdrawal to a
+ delegator
+
+ from a single validator.
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ delegator_address:
+ type: string
+ validator_address:
+ type: string
+ description: >-
+ MsgWithdrawDelegatorReward represents delegation withdrawal to a
+ delegator
+
+ from a single validator.
+ tags:
+ - Msg
+ /cosmos.distribution.v1beta1.Msg/WithdrawValidatorCommission:
+ post:
+ summary: |-
+ WithdrawValidatorCommission defines a method to withdraw the
+ full commission to the validator address.
+ operationId: CosmosDistributionV1Beta1Msg_WithdrawValidatorCommission
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ amount:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an amount.
+
+
+ NOTE: The amount field is an Int which implements the custom
+ method
+
+ signatures required by gogoproto.
+ title: 'Since: cosmos-sdk 0.46'
+ description: |-
+ MsgWithdrawValidatorCommissionResponse defines the
+ Msg/WithdrawValidatorCommission response type.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ parameters:
+ - name: body
+ description: >-
+ MsgWithdrawValidatorCommission withdraws the full commission to the
+ validator
+
+ address.
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ validator_address:
+ type: string
+ description: >-
+ MsgWithdrawValidatorCommission withdraws the full commission to
+ the validator
+
+ address.
+ tags:
+ - Msg
+ /cosmos.evidence.v1beta1.Msg/SubmitEvidence:
+ post:
+ summary: >-
+ SubmitEvidence submits an arbitrary Evidence of misbehavior such as
+ equivocation or
+
+ counterfactual signing.
+ operationId: CosmosEvidenceV1Beta1Msg_SubmitEvidence
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ hash:
+ type: string
+ format: byte
+ description: hash defines the hash of the evidence.
+ description: >-
+ MsgSubmitEvidenceResponse defines the Msg/SubmitEvidence response
+ type.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
In practice, teams usually precompile into the binary
@@ -2388,8 +2720,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -2399,7 +2735,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -2427,10 +2763,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -2467,19 +2801,24 @@ paths:
"@type": "type.googleapis.com/google.protobuf.Duration",
"value": "1.212s"
}
- tags:
- - Query
- /cosmos/auth/v1beta1/module_accounts/{name}:
- get:
- summary: ModuleAccountByName returns the module account info by module name
- operationId: CosmosAuthV1Beta1ModuleAccountByName
- responses:
- '200':
- description: A successful response.
+ parameters:
+ - name: body
+ description: >-
+ MsgSubmitEvidence represents a message that supports submitting
+ arbitrary
+
+ Evidence of misbehavior such as equivocation or counterfactual
+ signing.
+ in: body
+ required: true
schema:
type: object
properties:
- account:
+ submitter:
+ type: string
+ description: submitter is the signer account address of evidence.
+ evidence:
+ description: evidence defines the evidence of misbehavior.
type: object
properties:
'@type':
@@ -2540,117 +2879,28 @@ paths:
used with implementation specific semantics.
additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer message
- along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values in
- the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by default
- use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the last
- '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with an
-
- additional field `@type` which contains the type URL. Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding a
- field
-
- `value` which holds the custom JSON in addition to the `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
+ description: >-
+ MsgSubmitEvidence represents a message that supports submitting
+ arbitrary
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
+ Evidence of misbehavior such as equivocation or counterfactual
+ signing.
+ tags:
+ - Msg
+ /cosmos.feegrant.v1beta1.Msg/GrantAllowance:
+ post:
+ summary: |-
+ GrantAllowance grants fee allowance to the grantee on the granter's
+ account with the provided expiration time.
+ operationId: CosmosFeegrantV1Beta1Msg_GrantAllowance
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
description: >-
- QueryModuleAccountByNameResponse is the response type for the
- Query/ModuleAccountByName RPC method.
+ MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse
+ response type.
default:
description: An unexpected error response.
schema:
@@ -2757,8 +3007,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -2768,7 +3022,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -2796,10 +3050,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -2837,44 +3089,116 @@ paths:
"value": "1.212s"
}
parameters:
- - name: name
- in: path
+ - name: body
+ description: >-
+ MsgGrantAllowance adds permission for Grantee to spend up to
+ Allowance
+
+ of fees from the account of Granter.
+ in: body
required: true
- type: string
- tags:
- - Query
- /cosmos/auth/v1beta1/params:
- get:
- summary: Params queries all parameters.
- operationId: CosmosAuthV1Beta1Params
- responses:
- '200':
- description: A successful response.
schema:
type: object
properties:
- params:
- description: params defines the parameters of the module.
+ granter:
+ type: string
+ description: >-
+ granter is the address of the user granting an allowance of
+ their funds.
+ grantee:
+ type: string
+ description: >-
+ grantee is the address of the user being granted an allowance
+ of another user's funds.
+ allowance:
+ description: >-
+ allowance can be any of basic, periodic, allowed fee
+ allowance.
type: object
properties:
- max_memo_characters:
- type: string
- format: uint64
- tx_sig_limit:
- type: string
- format: uint64
- tx_size_cost_per_byte:
- type: string
- format: uint64
- sig_verify_cost_ed25519:
- type: string
- format: uint64
- sig_verify_cost_secp256k1:
+ '@type':
type: string
- format: uint64
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at least
+
+ one "/" character. The last segment of the URL's path must
+ represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary all
+ types that they
+
+ expect it to use in the context of Any. However, for URLs
+ which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in the
+ official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
description: >-
- QueryParamsResponse is the response type for the Query/Params RPC
- method.
+ MsgGrantAllowance adds permission for Grantee to spend up to
+ Allowance
+
+ of fees from the account of Granter.
+ tags:
+ - Msg
+ /cosmos.feegrant.v1beta1.Msg/PruneAllowances:
+ post:
+ summary: >-
+ PruneAllowances prunes expired fee allowances, currently up to 75 at a
+ time.
+ description: Since cosmos-sdk 0.50
+ operationId: CosmosFeegrantV1Beta1Msg_PruneAllowances
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ description: >-
+ MsgPruneAllowancesResponse defines the Msg/PruneAllowancesResponse
+ response type.
+
+
+ Since cosmos-sdk 0.50
default:
description: An unexpected error response.
schema:
@@ -2981,8 +3305,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -2992,7 +3320,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -3020,10 +3348,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -3060,237 +3386,285 @@ paths:
"@type": "type.googleapis.com/google.protobuf.Duration",
"value": "1.212s"
}
+ parameters:
+ - name: body
+ description: |-
+ MsgPruneAllowances prunes expired fee allowances.
+
+ Since cosmos-sdk 0.50
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ pruner:
+ type: string
+ description: pruner is the address of the user pruning expired allowances.
+ description: |-
+ MsgPruneAllowances prunes expired fee allowances.
+
+ Since cosmos-sdk 0.50
tags:
- - Query
- /cosmos/authz/v1beta1/grants:
- get:
- summary: Returns list of `Authorization`, granted to the grantee by the granter.
- operationId: CosmosAuthzV1Beta1Grants
+ - Msg
+ /cosmos.feegrant.v1beta1.Msg/RevokeAllowance:
+ post:
+ summary: |-
+ RevokeAllowance revokes any fee allowance of granter's account that
+ has been granted to the grantee.
+ operationId: CosmosFeegrantV1Beta1Msg_RevokeAllowance
responses:
'200':
description: A successful response.
+ schema:
+ type: object
+ description: >-
+ MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse
+ response type.
+ default:
+ description: An unexpected error response.
schema:
type: object
properties:
- grants:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
type: array
items:
type: object
properties:
- authorization:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the
- type of the serialized
-
- protocol buffer message. This string must contain at
- least
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
- one "/" character. The last segment of the URL's
- path must represent
+ protocol buffer message. This string must contain at
+ least
- the fully qualified name of the type (as in
+ one "/" character. The last segment of the URL's path
+ must represent
- `path/google.protobuf.Duration`). The name should be
- in a canonical form
+ the fully qualified name of the type (as in
- (e.g., leading "." is not accepted).
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+ (e.g., leading "." is not accepted).
- In practice, teams usually precompile into the
- binary all types that they
- expect it to use in the context of Any. However, for
- URLs which use the
+ In practice, teams usually precompile into the binary
+ all types that they
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
+ expect it to use in the context of Any. However, for
+ URLs which use the
- server that maps type URLs to message definitions as
- follows:
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+ server that maps type URLs to message definitions as
+ follows:
- * If no scheme is provided, `https` is assumed.
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results
- based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
+ * If no scheme is provided, `https` is assumed.
- Note: this functionality is not currently available
- in the official
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
- protobuf release, and it is not used for type URLs
- beginning with
+ Note: this functionality is not currently available in
+ the official
- type.googleapis.com.
+ protobuf release, and it is not used for type URLs
+ beginning with
+ type.googleapis.com.
- Schemes other than `http`, `https` (or the empty
- scheme) might be
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
- URL that describes the type of the serialized message.
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+ URL that describes the type of the serialized message.
- Protobuf library provides support to pack/unpack Any
- values in the form
- of utility functions or additional generated methods of
- the Any type.
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+ of utility functions or additional generated methods of the
+ Any type.
- Example 1: Pack and unpack a message in C++.
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
+ Example 1: Pack and unpack a message in C++.
- Example 2: Pack and unpack a message in Java.
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
+ Example 2: Pack and unpack a message in Java.
- Example 3: Pack and unpack a message in Python.
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
+ Example 3: Pack and unpack a message in Python.
- Example 4: Pack and unpack a message in Go
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
+ Example 4: Pack and unpack a message in Go
- The pack methods provided by protobuf library will by
- default use
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
- 'type.googleapis.com/full.type.name' as the type URL and
- the unpack
+ The pack methods provided by protobuf library will by
+ default use
- methods only use the fully qualified type name after the
- last '/'
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
- in the type URL, for example "foo.bar.com/x/y.z" will
- yield type
+ methods only use the fully qualified type name after the
+ last '/'
- name "y.z".
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+ name "y.z".
- JSON
+ JSON
- ====
- The JSON representation of an `Any` value uses the
- regular
+ The JSON representation of an `Any` value uses the regular
- representation of the deserialized, embedded message,
- with an
+ representation of the deserialized, embedded message, with
+ an
- additional field `@type` which contains the type URL.
- Example:
+ additional field `@type` which contains the type URL.
+ Example:
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
- If the embedded message type is well-known and has a
- custom JSON
+ If the embedded message type is well-known and has a custom
+ JSON
- representation, that representation will be embedded
- adding a field
+ representation, that representation will be embedded adding
+ a field
- `value` which holds the custom JSON in addition to the
- `@type`
+ `value` which holds the custom JSON in addition to the
+ `@type`
- field. Example (for message
- [google.protobuf.Duration][]):
+ field. Example (for message [google.protobuf.Duration][]):
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- expiration:
- type: string
- format: date-time
- title: >-
- time when the grant will expire and will be pruned. If
- null, then the grant
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: body
+ description: >-
+ MsgRevokeAllowance removes any existing Allowance from Granter to
+ Grantee.
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ granter:
+ type: string
+ description: >-
+ granter is the address of the user granting an allowance of
+ their funds.
+ grantee:
+ type: string
+ description: >-
+ grantee is the address of the user being granted an allowance
+ of another user's funds.
+ description: >-
+ MsgRevokeAllowance removes any existing Allowance from Granter to
+ Grantee.
+ tags:
+ - Msg
+ /cosmos.gov.v1.Msg/CancelProposal:
+ post:
+ summary: CancelProposal defines a method to cancel governance proposal
+ description: 'Since: cosmos-sdk 0.50'
+ operationId: CosmosGovV1Msg_CancelProposal
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ proposal_id:
+ type: string
+ format: uint64
+ description: proposal_id defines the unique id of the proposal.
+ canceled_time:
+ type: string
+ format: date-time
+ description: canceled_time is the time when proposal is canceled.
+ canceled_height:
+ type: string
+ format: uint64
+ description: >-
+ canceled_height defines the block height at which the proposal
+ is canceled.
+ description: >-
+ MsgCancelProposalResponse defines the response structure for
+ executing a
- doesn't have a time expiration (other conditions in
- `authorization`
+ MsgCancelProposal message.
- may apply to invalidate the grant)
- description: |-
- Grant gives permissions to execute
- the provide method with expiration time.
- description: >-
- authorizations is a list of grants granted for grantee by
- granter.
- pagination:
- description: pagination defines an pagination for the response.
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
- was set, its value is undefined otherwise
- description: >-
- QueryGrantsResponse is the response type for the
- Query/Authorizations RPC method.
+ Since: cosmos-sdk 0.50
default:
description: An unexpected error response.
schema:
@@ -3397,8 +3771,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -3408,7 +3786,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -3436,10 +3814,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -3477,305 +3853,39 @@ paths:
"value": "1.212s"
}
parameters:
- - name: granter
- in: query
- required: false
- type: string
- - name: grantee
- in: query
- required: false
- type: string
- - name: msg_type_url
- description: >-
- Optional, msg_type_url, when set, will query only grants matching
- given msg type.
- in: query
- required: false
- type: string
- - name: pagination.key
+ - name: body
description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
+ MsgCancelProposal is the Msg/CancelProposal request type.
+ Since: cosmos-sdk 0.50
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ proposal_id:
+ type: string
+ format: uint64
+ description: proposal_id defines the unique id of the proposal.
+ proposer:
+ type: string
+ description: proposer is the account address of the proposer.
+ description: |-
+ MsgCancelProposal is the Msg/CancelProposal request type.
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
+ Since: cosmos-sdk 0.50
tags:
- - Query
- /cosmos/authz/v1beta1/grants/grantee/{grantee}:
- get:
- summary: GranteeGrants returns a list of `GrantAuthorization` by grantee.
- description: 'Since: cosmos-sdk 0.46'
- operationId: CosmosAuthzV1Beta1GranteeGrants
+ - Msg
+ /cosmos.gov.v1.Msg/Deposit:
+ post:
+ summary: Deposit defines a method to add deposit on a specific proposal.
+ operationId: CosmosGovV1Msg_Deposit
responses:
'200':
description: A successful response.
schema:
type: object
- properties:
- grants:
- type: array
- items:
- type: object
- properties:
- granter:
- type: string
- grantee:
- type: string
- authorization:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the
- type of the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's
- path must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be
- in a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the
- binary all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results
- based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available
- in the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty
- scheme) might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any
- values in the form
-
- of utility functions or additional generated methods of
- the Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and
- the unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will
- yield type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the
- regular
-
- representation of the deserialized, embedded message,
- with an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a
- custom JSON
-
- representation, that representation will be embedded
- adding a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message
- [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- expiration:
- type: string
- format: date-time
- title: >-
- GrantAuthorization extends a grant with both the addresses
- of the grantee and granter.
-
- It is used in genesis.proto and query.proto
- description: grants is a list of grants granted to the grantee.
- pagination:
- description: pagination defines an pagination for the response.
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
-
- was set, its value is undefined otherwise
- description: >-
- QueryGranteeGrantsResponse is the response type for the
- Query/GranteeGrants RPC method.
+ description: MsgDepositResponse defines the Msg/Deposit response type.
default:
description: An unexpected error response.
schema:
@@ -3882,8 +3992,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -3893,7 +4007,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -3921,10 +4035,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -3962,294 +4074,350 @@ paths:
"value": "1.212s"
}
parameters:
- - name: grantee
- in: path
- required: true
- type: string
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
+ - name: body
description: >-
- offset is a numeric offset that can be used when key is unavailable.
+ MsgDeposit defines a message to submit a deposit to an existing
+ proposal.
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ proposal_id:
+ type: string
+ format: uint64
+ description: proposal_id defines the unique id of the proposal.
+ depositor:
+ type: string
+ description: depositor defines the deposit addresses from the proposals.
+ amount:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an amount.
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
+ NOTE: The amount field is an Int which implements the custom
+ method
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
+ signatures required by gogoproto.
+ description: amount to be deposited by depositor.
+ description: >-
+ MsgDeposit defines a message to submit a deposit to an existing
+ proposal.
tags:
- - Query
- /cosmos/authz/v1beta1/grants/granter/{granter}:
- get:
- summary: GranterGrants returns list of `GrantAuthorization`, granted by granter.
- description: 'Since: cosmos-sdk 0.46'
- operationId: CosmosAuthzV1Beta1GranterGrants
+ - Msg
+ /cosmos.gov.v1.Msg/ExecLegacyContent:
+ post:
+ summary: |-
+ ExecLegacyContent defines a Msg to be in included in a MsgSubmitProposal
+ to execute a legacy content-based proposal.
+ operationId: CosmosGovV1Msg_ExecLegacyContent
responses:
'200':
description: A successful response.
+ schema:
+ type: object
+ description: >-
+ MsgExecLegacyContentResponse defines the Msg/ExecLegacyContent
+ response type.
+ default:
+ description: An unexpected error response.
schema:
type: object
properties:
- grants:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
type: array
items:
type: object
properties:
- granter:
- type: string
- grantee:
+ '@type':
type: string
- authorization:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the
- type of the serialized
-
- protocol buffer message. This string must contain at
- least
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
- one "/" character. The last segment of the URL's
- path must represent
+ protocol buffer message. This string must contain at
+ least
- the fully qualified name of the type (as in
+ one "/" character. The last segment of the URL's path
+ must represent
- `path/google.protobuf.Duration`). The name should be
- in a canonical form
+ the fully qualified name of the type (as in
- (e.g., leading "." is not accepted).
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+ (e.g., leading "." is not accepted).
- In practice, teams usually precompile into the
- binary all types that they
- expect it to use in the context of Any. However, for
- URLs which use the
+ In practice, teams usually precompile into the binary
+ all types that they
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
+ expect it to use in the context of Any. However, for
+ URLs which use the
- server that maps type URLs to message definitions as
- follows:
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+ server that maps type URLs to message definitions as
+ follows:
- * If no scheme is provided, `https` is assumed.
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results
- based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
+ * If no scheme is provided, `https` is assumed.
- Note: this functionality is not currently available
- in the official
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
- protobuf release, and it is not used for type URLs
- beginning with
+ Note: this functionality is not currently available in
+ the official
- type.googleapis.com.
+ protobuf release, and it is not used for type URLs
+ beginning with
+ type.googleapis.com.
- Schemes other than `http`, `https` (or the empty
- scheme) might be
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
- URL that describes the type of the serialized message.
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+ URL that describes the type of the serialized message.
- Protobuf library provides support to pack/unpack Any
- values in the form
- of utility functions or additional generated methods of
- the Any type.
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+ of utility functions or additional generated methods of the
+ Any type.
- Example 1: Pack and unpack a message in C++.
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
+ Example 1: Pack and unpack a message in C++.
- Example 2: Pack and unpack a message in Java.
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
+ Example 2: Pack and unpack a message in Java.
- Example 3: Pack and unpack a message in Python.
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
+ Example 3: Pack and unpack a message in Python.
- Example 4: Pack and unpack a message in Go
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
+ Example 4: Pack and unpack a message in Go
- The pack methods provided by protobuf library will by
- default use
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
- 'type.googleapis.com/full.type.name' as the type URL and
- the unpack
+ The pack methods provided by protobuf library will by
+ default use
- methods only use the fully qualified type name after the
- last '/'
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
- in the type URL, for example "foo.bar.com/x/y.z" will
- yield type
+ methods only use the fully qualified type name after the
+ last '/'
- name "y.z".
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+ name "y.z".
- JSON
+ JSON
- ====
- The JSON representation of an `Any` value uses the
- regular
+ The JSON representation of an `Any` value uses the regular
- representation of the deserialized, embedded message,
- with an
+ representation of the deserialized, embedded message, with
+ an
- additional field `@type` which contains the type URL.
- Example:
+ additional field `@type` which contains the type URL.
+ Example:
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
- If the embedded message type is well-known and has a
- custom JSON
+ If the embedded message type is well-known and has a custom
+ JSON
- representation, that representation will be embedded
- adding a field
+ representation, that representation will be embedded adding
+ a field
- `value` which holds the custom JSON in addition to the
- `@type`
+ `value` which holds the custom JSON in addition to the
+ `@type`
- field. Example (for message
- [google.protobuf.Duration][]):
+ field. Example (for message [google.protobuf.Duration][]):
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- expiration:
- type: string
- format: date-time
- title: >-
- GrantAuthorization extends a grant with both the addresses
- of the grantee and granter.
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: body
+ description: >-
+ MsgExecLegacyContent is used to wrap the legacy content field into a
+ message.
- It is used in genesis.proto and query.proto
- description: grants is a list of grants granted by the granter.
- pagination:
- description: pagination defines an pagination for the response.
+ This ensures backwards compatibility with v1beta1.MsgSubmitProposal.
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ content:
+ description: content is the proposal's content.
type: object
properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
+ '@type':
type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
- was set, its value is undefined otherwise
+ protocol buffer message. This string must contain at least
+
+ one "/" character. The last segment of the URL's path must
+ represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary all
+ types that they
+
+ expect it to use in the context of Any. However, for URLs
+ which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in the
+ official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ authority:
+ type: string
+ description: authority must be the gov module address.
+ description: >-
+ MsgExecLegacyContent is used to wrap the legacy content field into
+ a message.
+
+ This ensures backwards compatibility with
+ v1beta1.MsgSubmitProposal.
+ tags:
+ - Msg
+ /cosmos.gov.v1.Msg/SubmitProposal:
+ post:
+ summary: >-
+ SubmitProposal defines a method to create new proposal given the
+ messages.
+ operationId: CosmosGovV1Msg_SubmitProposal
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ proposal_id:
+ type: string
+ format: uint64
+ description: proposal_id defines the unique id of the proposal.
description: >-
- QueryGranterGrantsResponse is the response type for the
- Query/GranterGrants RPC method.
+ MsgSubmitProposalResponse defines the Msg/SubmitProposal response
+ type.
default:
description: An unexpected error response.
schema:
@@ -4356,8 +4524,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -4367,7 +4539,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -4395,10 +4567,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -4436,84 +4606,198 @@ paths:
"value": "1.212s"
}
parameters:
- - name: granter
- in: path
- required: true
- type: string
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
+ - name: body
description: >-
- offset is a numeric offset that can be used when key is unavailable.
+ MsgSubmitProposal defines an sdk.Msg type that supports submitting
+ arbitrary
- It is less efficient than using key. Only one of offset or key
- should
+ proposal Content.
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ messages:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
+ protocol buffer message. This string must contain at
+ least
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
+ one "/" character. The last segment of the URL's path
+ must represent
- a count of the total number of items available for pagination in
- UIs.
+ the fully qualified name of the type (as in
- count_total is only respected when offset is used. It is ignored
- when key
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
+ (e.g., leading "." is not accepted).
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /cosmos/bank/v1beta1/balances/{address}:
- get:
- summary: AllBalances queries the balance of all coins for a single account.
- description: >-
- When called from another module, this query might consume a high amount
- of
+ In practice, teams usually precompile into the binary
+ all types that they
- gas if the pagination field is incorrectly set.
- operationId: CosmosBankV1Beta1AllBalances
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- balances:
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+ JSON
+
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ description: >-
+ messages are the arbitrary messages to be executed if proposal
+ passes.
+ initial_deposit:
type: array
items:
type: object
@@ -4530,31 +4814,58 @@ paths:
method
signatures required by gogoproto.
- description: balances is the balances of all the coins.
- pagination:
- description: pagination defines the pagination in the response.
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
+ description: >-
+ initial_deposit is the deposit value that must be paid at
+ proposal submission.
+ proposer:
+ type: string
+ description: proposer is the account address of the proposer.
+ metadata:
+ type: string
+ description: metadata is any arbitrary metadata attached to the proposal.
+ title:
+ type: string
+ description: |-
+ title is the title of the proposal.
- was set, its value is undefined otherwise
+ Since: cosmos-sdk 0.47
+ summary:
+ type: string
+ description: 'Since: cosmos-sdk 0.47'
+ title: summary is the summary of the proposal
+ expedited:
+ type: boolean
+ description: 'Since: cosmos-sdk 0.50'
+ title: expedited defines if the proposal is expedited or not
description: >-
- QueryAllBalancesResponse is the response type for the
- Query/AllBalances RPC
+ MsgSubmitProposal defines an sdk.Msg type that supports submitting
+ arbitrary
- method.
+ proposal Content.
+ tags:
+ - Msg
+ /cosmos.gov.v1.Msg/UpdateParams:
+ post:
+ summary: >-
+ UpdateParams defines a governance operation for updating the x/gov
+ module
+
+ parameters. The authority is defined in the keeper.
+ description: 'Since: cosmos-sdk 0.47'
+ operationId: CosmosGovV1Msg_UpdateParams
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ description: >-
+ MsgUpdateParamsResponse defines the response structure for
+ executing a
+
+ MsgUpdateParams message.
+
+
+ Since: cosmos-sdk 0.47
default:
description: An unexpected error response.
schema:
@@ -4572,667 +4883,340 @@ paths:
properties:
'@type':
type: string
- additionalProperties: {}
- parameters:
- - name: address
- description: address is the address to query balances for.
- in: path
- required: true
- type: string
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
- It is less efficient than using key. Only one of offset or key
- should
+ protocol buffer message. This string must contain at
+ least
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
+ one "/" character. The last segment of the URL's path
+ must represent
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
+ the fully qualified name of the type (as in
- a count of the total number of items available for pagination in
- UIs.
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
- count_total is only respected when offset is used. It is ignored
- when key
+ (e.g., leading "." is not accepted).
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
+ In practice, teams usually precompile into the binary
+ all types that they
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /cosmos/bank/v1beta1/balances/{address}/by_denom:
- get:
- summary: Balance queries the balance of a single coin for a single account.
- operationId: CosmosBankV1Beta1Balance
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- balance:
- description: balance is the balance of the coin.
- type: object
- properties:
- denom:
- type: string
- amount:
- type: string
- description: >-
- QueryBalanceResponse is the response type for the Query/Balance
- RPC method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- additionalProperties: {}
- parameters:
- - name: address
- description: address is the address to query balances for.
- in: path
- required: true
- type: string
- - name: denom
- description: denom is the coin denom to query balances for.
- in: query
- required: false
- type: string
- tags:
- - Query
- /cosmos/bank/v1beta1/denom_owners/{denom}:
- get:
- summary: >-
- DenomOwners queries for all account addresses that own a particular
- token
+ expect it to use in the context of Any. However, for
+ URLs which use the
- denomination.
- description: >-
- When called from another module, this query might consume a high amount
- of
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
- gas if the pagination field is incorrectly set.
+ server that maps type URLs to message definitions as
+ follows:
- Since: cosmos-sdk 0.46
- operationId: CosmosBankV1Beta1DenomOwners
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- denom_owners:
- type: array
- items:
- type: object
- properties:
- address:
- type: string
- description: >-
- address defines the address that owns a particular
- denomination.
- balance:
- description: >-
- balance is the balance of the denominated coin for an
- account.
- type: object
- properties:
- denom:
- type: string
- amount:
- type: string
- description: >-
- DenomOwner defines structure representing an account that
- owns or holds a
+ * If no scheme is provided, `https` is assumed.
- particular denominated token. It contains the account
- address and account
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
- balance of the denominated token.
+ Note: this functionality is not currently available in
+ the official
+ protobuf release, and it is not used for type URLs
+ beginning with
- Since: cosmos-sdk 0.46
- pagination:
- description: pagination defines the pagination in the response.
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
+ type.googleapis.com.
- was set, its value is undefined otherwise
- description: >-
- QueryDenomOwnersResponse defines the RPC response of a DenomOwners
- RPC query.
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
- Since: cosmos-sdk 0.46
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
+ used with implementation specific semantics.
additionalProperties: {}
- parameters:
- - name: denom
- description: >-
- denom defines the coin denomination to query all account holders
- for.
- in: path
- required: true
- type: string
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
- It is less efficient than using key. Only one of offset or key
- should
+ URL that describes the type of the serialized message.
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
+ Protobuf library provides support to pack/unpack Any values
+ in the form
- a count of the total number of items available for pagination in
- UIs.
+ of utility functions or additional generated methods of the
+ Any type.
- count_total is only respected when offset is used. It is ignored
- when key
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
+ Example 1: Pack and unpack a message in C++.
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /cosmos/bank/v1beta1/denoms_metadata:
- get:
- summary: |-
- DenomsMetadata queries the client metadata for all registered coin
- denominations.
- operationId: CosmosBankV1Beta1DenomsMetadata
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- metadatas:
- type: array
- items:
- type: object
- properties:
- description:
- type: string
- denom_units:
- type: array
- items:
- type: object
- properties:
- denom:
- type: string
- description: >-
- denom represents the string name of the given
- denom unit (e.g uatom).
- exponent:
- type: integer
- format: int64
- description: >-
- exponent represents power of 10 exponent that one
- must
+ Example 2: Pack and unpack a message in Java.
- raise the base_denom to in order to equal the
- given DenomUnit's denom
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- 1 denom = 10^exponent base_denom
+ Example 3: Pack and unpack a message in Python.
- (e.g. with a base_denom of uatom, one can create a
- DenomUnit of 'atom' with
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
- exponent = 6, thus: 1 atom = 10^6 uatom).
- aliases:
- type: array
- items:
- type: string
- title: >-
- aliases is a list of string aliases for the given
- denom
- description: |-
- DenomUnit represents a struct that describes a given
- denomination unit of the basic token.
- title: >-
- denom_units represents the list of DenomUnit's for a
- given coin
- base:
- type: string
- description: >-
- base represents the base denom (should be the DenomUnit
- with exponent = 0).
- display:
- type: string
- description: |-
- display indicates the suggested denom that should be
- displayed in clients.
- name:
- type: string
- description: 'Since: cosmos-sdk 0.43'
- title: 'name defines the name of the token (eg: Cosmos Atom)'
- symbol:
- type: string
- description: >-
- symbol is the token symbol usually shown on exchanges
- (eg: ATOM). This can
+ Example 4: Pack and unpack a message in Go
- be the same as the display.
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+ The pack methods provided by protobuf library will by
+ default use
- Since: cosmos-sdk 0.43
- uri:
- type: string
- description: >-
- URI to a document (on or off-chain) that contains
- additional information. Optional.
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+ methods only use the fully qualified type name after the
+ last '/'
- Since: cosmos-sdk 0.46
- uri_hash:
- type: string
- description: >-
- URIHash is a sha256 hash of a document pointed by URI.
- It's used to verify that
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
- the document didn't change. Optional.
+ name "y.z".
- Since: cosmos-sdk 0.46
- description: |-
- Metadata represents a struct that describes
- a basic token.
- description: >-
- metadata provides the client information for all the
- registered tokens.
- pagination:
- description: pagination defines the pagination in the response.
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
+ JSON
- was set, its value is undefined otherwise
- description: >-
- QueryDenomsMetadataResponse is the response type for the
- Query/DenomsMetadata RPC
- method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- additionalProperties: {}
- parameters:
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
+ The JSON representation of an `Any` value uses the regular
- It is less efficient than using key. Only one of offset or key
- should
+ representation of the deserialized, embedded message, with
+ an
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
+ additional field `@type` which contains the type URL.
+ Example:
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
- a count of the total number of items available for pagination in
- UIs.
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
- count_total is only respected when offset is used. It is ignored
- when key
+ If the embedded message type is well-known and has a custom
+ JSON
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+ field. Example (for message [google.protobuf.Duration][]):
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /cosmos/bank/v1beta1/denoms_metadata/{denom}:
- get:
- summary: DenomsMetadata queries the client metadata of a given coin denomination.
- operationId: CosmosBankV1Beta1DenomMetadata
- responses:
- '200':
- description: A successful response.
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: body
+ description: |-
+ MsgUpdateParams is the Msg/UpdateParams request type.
+
+ Since: cosmos-sdk 0.47
+ in: body
+ required: true
schema:
type: object
properties:
- metadata:
+ authority:
+ type: string
description: >-
- metadata describes and provides all the client information for
- the requested token.
+ authority is the address that controls the module (defaults to
+ x/gov unless overwritten).
+ params:
+ description: |-
+ params defines the x/gov parameters to update.
+
+ NOTE: All parameters must be supplied.
type: object
properties:
- description:
- type: string
- denom_units:
+ min_deposit:
type: array
items:
type: object
properties:
denom:
type: string
- description: >-
- denom represents the string name of the given denom
- unit (e.g uatom).
- exponent:
- type: integer
- format: int64
- description: >-
- exponent represents power of 10 exponent that one
- must
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an amount.
- raise the base_denom to in order to equal the given
- DenomUnit's denom
- 1 denom = 10^exponent base_denom
+ NOTE: The amount field is an Int which implements the
+ custom method
- (e.g. with a base_denom of uatom, one can create a
- DenomUnit of 'atom' with
+ signatures required by gogoproto.
+ description: Minimum deposit for a proposal to enter voting period.
+ max_deposit_period:
+ type: string
+ description: >-
+ Maximum period for Atom holders to deposit on a proposal.
+ Initial value: 2
- exponent = 6, thus: 1 atom = 10^6 uatom).
- aliases:
- type: array
- items:
- type: string
- title: >-
- aliases is a list of string aliases for the given
- denom
- description: |-
- DenomUnit represents a struct that describes a given
- denomination unit of the basic token.
- title: >-
- denom_units represents the list of DenomUnit's for a given
- coin
- base:
+ months.
+ voting_period:
+ type: string
+ description: Duration of the voting period.
+ quorum:
type: string
description: >-
- base represents the base denom (should be the DenomUnit
- with exponent = 0).
- display:
+ Minimum percentage of total stake needed to vote for a
+ result to be
+ considered valid.
+ threshold:
type: string
- description: |-
- display indicates the suggested denom that should be
- displayed in clients.
- name:
+ description: >-
+ Minimum proportion of Yes votes for proposal to pass.
+ Default value: 0.5.
+ veto_threshold:
type: string
- description: 'Since: cosmos-sdk 0.43'
- title: 'name defines the name of the token (eg: Cosmos Atom)'
- symbol:
+ description: >-
+ Minimum value of Veto votes to Total votes ratio for
+ proposal to be
+ vetoed. Default value: 1/3.
+ min_initial_deposit_ratio:
type: string
description: >-
- symbol is the token symbol usually shown on exchanges (eg:
- ATOM). This can
-
- be the same as the display.
-
-
- Since: cosmos-sdk 0.43
- uri:
+ The ratio representing the proportion of the deposit value
+ that must be paid at proposal submission.
+ proposal_cancel_ratio:
type: string
description: >-
- URI to a document (on or off-chain) that contains
- additional information. Optional.
+ The cancel ratio which will not be returned back to the
+ depositors when a proposal is cancelled.
- Since: cosmos-sdk 0.46
- uri_hash:
+ Since: cosmos-sdk 0.50
+ proposal_cancel_dest:
type: string
description: >-
- URIHash is a sha256 hash of a document pointed by URI.
- It's used to verify that
+ The address which will receive (proposal_cancel_ratio *
+ deposit) proposal deposits.
- the document didn't change. Optional.
+ If empty, the (proposal_cancel_ratio * deposit) proposal
+ deposits will be burned.
- Since: cosmos-sdk 0.46
- description: >-
- QueryDenomMetadataResponse is the response type for the
- Query/DenomMetadata RPC
+ Since: cosmos-sdk 0.50
+ expedited_voting_period:
+ type: string
+ description: |-
+ Duration of the voting period of an expedited proposal.
- method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- additionalProperties: {}
- parameters:
- - name: denom
- description: denom is the coin denom to query the metadata for.
- in: path
- required: true
- type: string
- tags:
- - Query
- /cosmos/bank/v1beta1/params:
- get:
- summary: Params queries the parameters of x/bank module.
- operationId: CosmosBankV1Beta1Params
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- params:
- type: object
- properties:
- send_enabled:
+ Since: cosmos-sdk 0.50
+ expedited_threshold:
+ type: string
+ description: >-
+ Minimum proportion of Yes votes for proposal to pass.
+ Default value: 0.67.
+
+
+ Since: cosmos-sdk 0.50
+ expedited_min_deposit:
type: array
items:
type: object
properties:
denom:
type: string
- enabled:
- type: boolean
+ amount:
+ type: string
description: >-
- SendEnabled maps coin denom to a send_enabled status
- (whether a denom is
+ Coin defines a token with a denomination and an amount.
- sendable).
+
+ NOTE: The amount field is an Int which implements the
+ custom method
+
+ signatures required by gogoproto.
description: >-
- Deprecated: Use of SendEnabled in params is deprecated.
+ Minimum expedited deposit for a proposal to enter voting
+ period.
+ burn_vote_quorum:
+ type: boolean
+ title: burn deposits if a proposal does not meet quorum
+ burn_proposal_deposit_prevote:
+ type: boolean
+ title: burn deposits if the proposal does not enter voting period
+ burn_vote_veto:
+ type: boolean
+ title: burn deposits if quorum with vote type no_veto is met
+ min_deposit_ratio:
+ type: string
+ description: >-
+ The ratio representing the proportion of the deposit value
+ minimum that must be met when making a deposit.
- For genesis, use the newly added send_enabled field in the
- genesis object.
+ Default value: 0.01. Meaning that for a chain with a
+ min_deposit of 100stake, a deposit of 1stake would be
- Storage, lookup, and manipulation of this information is
- now in the keeper.
+ required.
- As of cosmos-sdk 0.47, this only exists for backwards
- compatibility of genesis files.
- default_send_enabled:
- type: boolean
- description: Params defines the parameters for the bank module.
- description: >-
- QueryParamsResponse defines the response type for querying x/bank
- parameters.
+ Since: cosmos-sdk 0.50
+ description: |-
+ MsgUpdateParams is the Msg/UpdateParams request type.
+
+ Since: cosmos-sdk 0.47
+ tags:
+ - Msg
+ /cosmos.gov.v1.Msg/Vote:
+ post:
+ summary: Vote defines a method to add a vote on a specific proposal.
+ operationId: CosmosGovV1Msg_Vote
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ description: MsgVoteResponse defines the Msg/Vote response type.
default:
description: An unexpected error response.
schema:
@@ -5250,227 +5234,221 @@ paths:
properties:
'@type':
type: string
- additionalProperties: {}
- tags:
- - Query
- /cosmos/bank/v1beta1/send_enabled:
- get:
- summary: SendEnabled queries for SendEnabled entries.
- description: >-
- This query only returns denominations that have specific SendEnabled
- settings.
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
- Any denomination that does not have a specific setting will use the
- default
+ protocol buffer message. This string must contain at
+ least
- params.default_send_enabled, and will not be returned by this query.
+ one "/" character. The last segment of the URL's path
+ must represent
+ the fully qualified name of the type (as in
- Since: cosmos-sdk 0.47
- operationId: CosmosBankV1Beta1SendEnabled
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- send_enabled:
- type: array
- items:
- type: object
- properties:
- denom:
- type: string
- enabled:
- type: boolean
- description: >-
- SendEnabled maps coin denom to a send_enabled status
- (whether a denom is
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
- sendable).
- pagination:
- description: >-
- pagination defines the pagination in the response. This field
- is only
+ (e.g., leading "." is not accepted).
- populated if the denoms field in the request is empty.
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
- was set, its value is undefined otherwise
- description: >-
- QuerySendEnabledResponse defines the RPC response of a SendEnable
- query.
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
- Since: cosmos-sdk 0.47
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
additionalProperties: {}
- parameters:
- - name: denoms
- description: >-
- denoms is the specific denoms you want look up. Leave empty to get
- all entries.
- in: query
- required: false
- type: array
- items:
- type: string
- collectionFormat: multi
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
- It is less efficient than using key. Only one of offset or key
- should
+ URL that describes the type of the serialized message.
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
+ Protobuf library provides support to pack/unpack Any values
+ in the form
- a count of the total number of items available for pagination in
- UIs.
+ of utility functions or additional generated methods of the
+ Any type.
- count_total is only respected when offset is used. It is ignored
- when key
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
+ Example 1: Pack and unpack a message in C++.
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /cosmos/bank/v1beta1/spendable_balances/{address}:
- get:
- summary: >-
- SpendableBalances queries the spendable balance of all coins for a
- single
+ Example 2: Pack and unpack a message in Java.
- account.
- description: >-
- When called from another module, this query might consume a high amount
- of
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- gas if the pagination field is incorrectly set.
+ Example 3: Pack and unpack a message in Python.
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
- Since: cosmos-sdk 0.46
- operationId: CosmosBankV1Beta1SpendableBalances
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- balances:
- type: array
- items:
- type: object
- properties:
- denom:
- type: string
- amount:
- type: string
- description: >-
- Coin defines a token with a denomination and an amount.
+ Example 4: Pack and unpack a message in Go
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
- NOTE: The amount field is an Int which implements the custom
- method
+ The pack methods provided by protobuf library will by
+ default use
- signatures required by gogoproto.
- description: balances is the spendable balances of all the coins.
- pagination:
- description: pagination defines the pagination in the response.
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
- was set, its value is undefined otherwise
- description: >-
- QuerySpendableBalancesResponse defines the gRPC response structure
- for querying
+ methods only use the fully qualified type name after the
+ last '/'
- an account's spendable balances.
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+ name "y.z".
- Since: cosmos-sdk 0.46
+
+ JSON
+
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: body
+ description: MsgVote defines a message to cast a vote.
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ proposal_id:
+ type: string
+ format: uint64
+ description: proposal_id defines the unique id of the proposal.
+ voter:
+ type: string
+ description: voter is the voter address for the proposal.
+ option:
+ description: option defines the vote option.
+ type: string
+ enum:
+ - VOTE_OPTION_UNSPECIFIED
+ - VOTE_OPTION_YES
+ - VOTE_OPTION_ABSTAIN
+ - VOTE_OPTION_NO
+ - VOTE_OPTION_NO_WITH_VETO
+ default: VOTE_OPTION_UNSPECIFIED
+ metadata:
+ type: string
+ description: metadata is any arbitrary metadata attached to the Vote.
+ description: MsgVote defines a message to cast a vote.
+ tags:
+ - Msg
+ /cosmos.gov.v1.Msg/VoteWeighted:
+ post:
+ summary: >-
+ VoteWeighted defines a method to add a weighted vote on a specific
+ proposal.
+ operationId: CosmosGovV1Msg_VoteWeighted
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ description: >-
+ MsgVoteWeightedResponse defines the Msg/VoteWeighted response
+ type.
default:
description: An unexpected error response.
schema:
@@ -5488,448 +5466,233 @@ paths:
properties:
'@type':
type: string
- additionalProperties: {}
- parameters:
- - name: address
- description: address is the address to query spendable balances for.
- in: path
- required: true
- type: string
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
+ protocol buffer message. This string must contain at
+ least
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
+ one "/" character. The last segment of the URL's path
+ must represent
- a count of the total number of items available for pagination in
- UIs.
+ the fully qualified name of the type (as in
- count_total is only respected when offset is used. It is ignored
- when key
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
+ (e.g., leading "." is not accepted).
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /cosmos/bank/v1beta1/spendable_balances/{address}/by_denom:
- get:
- summary: >-
- SpendableBalanceByDenom queries the spendable balance of a single denom
- for
+ In practice, teams usually precompile into the binary
+ all types that they
- a single account.
- description: >-
- When called from another module, this query might consume a high amount
- of
+ expect it to use in the context of Any. However, for
+ URLs which use the
- gas if the pagination field is incorrectly set.
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+ server that maps type URLs to message definitions as
+ follows:
- Since: cosmos-sdk 0.47
- operationId: CosmosBankV1Beta1SpendableBalanceByDenom
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- balance:
- description: balance is the balance of the coin.
- type: object
- properties:
- denom:
- type: string
- amount:
- type: string
- description: >-
- QuerySpendableBalanceByDenomResponse defines the gRPC response
- structure for
- querying an account's spendable balance for a specific denom.
+ * If no scheme is provided, `https` is assumed.
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
- Since: cosmos-sdk 0.47
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- additionalProperties: {}
- parameters:
- - name: address
- description: address is the address to query balances for.
- in: path
- required: true
- type: string
- - name: denom
- description: denom is the coin denom to query balances for.
- in: query
- required: false
- type: string
- tags:
- - Query
- /cosmos/bank/v1beta1/supply:
- get:
- summary: TotalSupply queries the total supply of all coins.
- description: >-
- When called from another module, this query might consume a high amount
- of
+ Note: this functionality is not currently available in
+ the official
- gas if the pagination field is incorrectly set.
- operationId: CosmosBankV1Beta1TotalSupply
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- supply:
- type: array
- items:
- type: object
- properties:
- denom:
- type: string
- amount:
- type: string
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
description: >-
- Coin defines a token with a denomination and an amount.
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+ URL that describes the type of the serialized message.
- NOTE: The amount field is an Int which implements the custom
- method
- signatures required by gogoproto.
- title: supply is the supply of the coins
- pagination:
- description: |-
- pagination defines the pagination in the response.
+ Protobuf library provides support to pack/unpack Any values
+ in the form
- Since: cosmos-sdk 0.43
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
+ of utility functions or additional generated methods of the
+ Any type.
- was set, its value is undefined otherwise
- title: >-
- QueryTotalSupplyResponse is the response type for the
- Query/TotalSupply RPC
- method
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- additionalProperties: {}
- parameters:
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
+ Example 1: Pack and unpack a message in C++.
- It is less efficient than using key. Only one of offset or key
- should
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
+ Example 2: Pack and unpack a message in Java.
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- a count of the total number of items available for pagination in
- UIs.
+ Example 3: Pack and unpack a message in Python.
- count_total is only respected when offset is used. It is ignored
- when key
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
+ Example 4: Pack and unpack a message in Go
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /cosmos/bank/v1beta1/supply/by_denom:
- get:
- summary: SupplyOf queries the supply of a single coin.
- description: >-
- When called from another module, this query might consume a high amount
- of
+ The pack methods provided by protobuf library will by
+ default use
- gas if the pagination field is incorrectly set.
- operationId: CosmosBankV1Beta1SupplyOf
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- amount:
- description: amount is the supply of the coin.
- type: object
- properties:
- denom:
- type: string
- amount:
- type: string
- description: >-
- QuerySupplyOfResponse is the response type for the Query/SupplyOf
- RPC method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- additionalProperties: {}
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+ JSON
+
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
parameters:
- - name: denom
- description: denom is the coin denom to query balances for.
- in: query
- required: false
- type: string
- tags:
- - Query
- /cosmos/base/node/v1beta1/config:
- get:
- summary: Config queries for the operator configuration.
- operationId: CosmosBaseNodeV1Beta1Config
- responses:
- '200':
- description: A successful response.
+ - name: body
+ description: MsgVoteWeighted defines a message to cast a vote.
+ in: body
+ required: true
schema:
type: object
properties:
- minimum_gas_price:
+ proposal_id:
type: string
- description: >-
- ConfigResponse defines the response structure for the Config gRPC
- query.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
+ format: uint64
+ description: proposal_id defines the unique id of the proposal.
+ voter:
type: string
- details:
+ description: voter is the voter address for the proposal.
+ options:
type: array
items:
type: object
properties:
- '@type':
+ option:
+ description: >-
+ option defines the valid vote options, it must not
+ contain duplicate vote options.
type: string
- additionalProperties: {}
+ enum:
+ - VOTE_OPTION_UNSPECIFIED
+ - VOTE_OPTION_YES
+ - VOTE_OPTION_ABSTAIN
+ - VOTE_OPTION_NO
+ - VOTE_OPTION_NO_WITH_VETO
+ default: VOTE_OPTION_UNSPECIFIED
+ weight:
+ type: string
+ description: >-
+ weight is the vote weight associated with the vote
+ option.
+ description: WeightedVoteOption defines a unit of vote for vote split.
+ description: options defines the weighted vote options.
+ metadata:
+ type: string
+ description: >-
+ metadata is any arbitrary metadata attached to the
+ VoteWeighted.
+ description: MsgVoteWeighted defines a message to cast a vote.
tags:
- - Service
- /cosmos/base/tendermint/v1beta1/abci_query:
- get:
- summary: >-
- ABCIQuery defines a query handler that supports ABCI queries directly to
- the
-
- application, bypassing Tendermint completely. The ABCI query must
- contain
-
- a valid and supported path, including app, custom, p2p, and store.
- description: 'Since: cosmos-sdk 0.46'
- operationId: CosmosBaseTendermintV1Beta1ABCIQuery
+ - Msg
+ /cosmos.gov.v1beta1.Msg/Deposit:
+ post:
+ summary: Deposit defines a method to add deposit on a specific proposal.
+ operationId: CosmosGovV1Beta1Msg_Deposit
responses:
'200':
description: A successful response.
schema:
type: object
- properties:
- code:
- type: integer
- format: int64
- log:
- type: string
- title: nondeterministic
- info:
- type: string
- title: nondeterministic
- index:
- type: string
- format: int64
- key:
- type: string
- format: byte
- value:
- type: string
- format: byte
- proof_ops:
- type: object
- properties:
- ops:
- type: array
- items:
- type: object
- properties:
- type:
- type: string
- key:
- type: string
- format: byte
- data:
- type: string
- format: byte
- description: >-
- ProofOp defines an operation used for calculating Merkle
- root. The data could
-
- be arbitrary format, providing necessary data for
- example neighbouring node
-
- hash.
-
-
- Note: This type is a duplicate of the ProofOp proto type
- defined in Tendermint.
- description: >-
- ProofOps is Merkle proof defined by the list of ProofOps.
-
-
- Note: This type is a duplicate of the ProofOps proto type
- defined in Tendermint.
- height:
- type: string
- format: int64
- codespace:
- type: string
- description: >-
- ABCIQueryResponse defines the response structure for the ABCIQuery
- gRPC query.
-
-
- Note: This type is a duplicate of the ResponseQuery proto type
- defined in
-
- Tendermint.
+ description: MsgDepositResponse defines the Msg/Deposit response type.
default:
description: An unexpected error response.
schema:
@@ -6036,8 +5799,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -6047,7 +5814,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -6075,10 +5842,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -6116,1221 +5881,85 @@ paths:
"value": "1.212s"
}
parameters:
- - name: data
- in: query
- required: false
- type: string
- format: byte
- - name: path
- in: query
- required: false
- type: string
- - name: height
- in: query
- required: false
- type: string
- format: int64
- - name: prove
- in: query
- required: false
- type: boolean
+ - name: body
+ description: >-
+ MsgDeposit defines a message to submit a deposit to an existing
+ proposal.
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ proposal_id:
+ type: string
+ format: uint64
+ description: proposal_id defines the unique id of the proposal.
+ depositor:
+ type: string
+ description: depositor defines the deposit addresses from the proposals.
+ amount:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an amount.
+
+
+ NOTE: The amount field is an Int which implements the custom
+ method
+
+ signatures required by gogoproto.
+ description: amount to be deposited by depositor.
+ description: >-
+ MsgDeposit defines a message to submit a deposit to an existing
+ proposal.
tags:
- - Service
- /cosmos/base/tendermint/v1beta1/blocks/latest:
- get:
- summary: GetLatestBlock returns the latest block.
- operationId: CosmosBaseTendermintV1Beta1GetLatestBlock
+ - Msg
+ /cosmos.gov.v1beta1.Msg/SubmitProposal:
+ post:
+ summary: SubmitProposal defines a method to create new proposal given a content.
+ operationId: CosmosGovV1Beta1Msg_SubmitProposal
responses:
'200':
description: A successful response.
schema:
type: object
properties:
- block_id:
- type: object
- properties:
- hash:
- type: string
- format: byte
- part_set_header:
- type: object
- properties:
- total:
- type: integer
- format: int64
- hash:
- type: string
- format: byte
- title: PartsetHeader
- title: BlockID
- block:
- title: 'Deprecated: please use `sdk_block` instead'
- type: object
- properties:
- header:
- type: object
- properties:
- version:
- title: basic block info
- type: object
- properties:
- block:
- type: string
- format: uint64
- app:
- type: string
- format: uint64
- description: >-
- Consensus captures the consensus rules for processing
- a block in the blockchain,
+ proposal_id:
+ type: string
+ format: uint64
+ description: proposal_id defines the unique id of the proposal.
+ description: >-
+ MsgSubmitProposalResponse defines the Msg/SubmitProposal response
+ type.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
- including all blockchain data structures and the rules
- of the application's
-
- state transition machine.
- chain_id:
- type: string
- height:
- type: string
- format: int64
- time:
- type: string
- format: date-time
- last_block_id:
- type: object
- properties:
- hash:
- type: string
- format: byte
- part_set_header:
- type: object
- properties:
- total:
- type: integer
- format: int64
- hash:
- type: string
- format: byte
- title: PartsetHeader
- title: BlockID
- last_commit_hash:
- type: string
- format: byte
- description: commit from validators from the last block
- title: hashes of block data
- data_hash:
- type: string
- format: byte
- title: transactions
- validators_hash:
- type: string
- format: byte
- description: validators for the current block
- title: hashes from the app output from the prev block
- next_validators_hash:
- type: string
- format: byte
- title: validators for the next block
- consensus_hash:
- type: string
- format: byte
- title: consensus params for current block
- app_hash:
- type: string
- format: byte
- title: state after txs from the previous block
- last_results_hash:
- type: string
- format: byte
- title: >-
- root hash of all results from the txs from the
- previous block
- evidence_hash:
- type: string
- format: byte
- description: evidence included in the block
- title: consensus info
- proposer_address:
- type: string
- format: byte
- title: original proposer of the block
- description: Header defines the structure of a block header.
- data:
- type: object
- properties:
- txs:
- type: array
- items:
- type: string
- format: byte
- description: >-
- Txs that will be applied by state @ block.Height+1.
-
- NOTE: not all txs here are valid. We're just agreeing
- on the order first.
-
- This means that block.AppHash does not include these
- txs.
- title: >-
- Data contains the set of transactions included in the
- block
- evidence:
- type: object
- properties:
- evidence:
- type: array
- items:
- type: object
- properties:
- duplicate_vote_evidence:
- type: object
- properties:
- vote_a:
- type: object
- properties:
- type:
- type: string
- enum:
- - SIGNED_MSG_TYPE_UNKNOWN
- - SIGNED_MSG_TYPE_PREVOTE
- - SIGNED_MSG_TYPE_PRECOMMIT
- - SIGNED_MSG_TYPE_PROPOSAL
- default: SIGNED_MSG_TYPE_UNKNOWN
- description: >-
- SignedMsgType is a type of signed
- message in the consensus.
-
- - SIGNED_MSG_TYPE_PREVOTE: Votes
- - SIGNED_MSG_TYPE_PROPOSAL: Proposals
- height:
- type: string
- format: int64
- round:
- type: integer
- format: int32
- block_id:
- type: object
- properties:
- hash:
- type: string
- format: byte
- part_set_header:
- type: object
- properties:
- total:
- type: integer
- format: int64
- hash:
- type: string
- format: byte
- title: PartsetHeader
- title: BlockID
- description: zero if vote is nil.
- timestamp:
- type: string
- format: date-time
- validator_address:
- type: string
- format: byte
- validator_index:
- type: integer
- format: int32
- signature:
- type: string
- format: byte
- description: >-
- Vote represents a prevote, precommit, or
- commit vote from validators for
-
- consensus.
- vote_b:
- type: object
- properties:
- type:
- type: string
- enum:
- - SIGNED_MSG_TYPE_UNKNOWN
- - SIGNED_MSG_TYPE_PREVOTE
- - SIGNED_MSG_TYPE_PRECOMMIT
- - SIGNED_MSG_TYPE_PROPOSAL
- default: SIGNED_MSG_TYPE_UNKNOWN
- description: >-
- SignedMsgType is a type of signed
- message in the consensus.
-
- - SIGNED_MSG_TYPE_PREVOTE: Votes
- - SIGNED_MSG_TYPE_PROPOSAL: Proposals
- height:
- type: string
- format: int64
- round:
- type: integer
- format: int32
- block_id:
- type: object
- properties:
- hash:
- type: string
- format: byte
- part_set_header:
- type: object
- properties:
- total:
- type: integer
- format: int64
- hash:
- type: string
- format: byte
- title: PartsetHeader
- title: BlockID
- description: zero if vote is nil.
- timestamp:
- type: string
- format: date-time
- validator_address:
- type: string
- format: byte
- validator_index:
- type: integer
- format: int32
- signature:
- type: string
- format: byte
- description: >-
- Vote represents a prevote, precommit, or
- commit vote from validators for
-
- consensus.
- total_voting_power:
- type: string
- format: int64
- validator_power:
- type: string
- format: int64
- timestamp:
- type: string
- format: date-time
- description: >-
- DuplicateVoteEvidence contains evidence of a
- validator signed two conflicting votes.
- light_client_attack_evidence:
- type: object
- properties:
- conflicting_block:
- type: object
- properties:
- signed_header:
- type: object
- properties:
- header:
- type: object
- properties:
- version:
- title: basic block info
- type: object
- properties:
- block:
- type: string
- format: uint64
- app:
- type: string
- format: uint64
- description: >-
- Consensus captures the consensus rules
- for processing a block in the
- blockchain,
-
- including all blockchain data structures
- and the rules of the application's
-
- state transition machine.
- chain_id:
- type: string
- height:
- type: string
- format: int64
- time:
- type: string
- format: date-time
- last_block_id:
- type: object
- properties:
- hash:
- type: string
- format: byte
- part_set_header:
- type: object
- properties:
- total:
- type: integer
- format: int64
- hash:
- type: string
- format: byte
- title: PartsetHeader
- title: BlockID
- last_commit_hash:
- type: string
- format: byte
- description: >-
- commit from validators from the last
- block
- title: hashes of block data
- data_hash:
- type: string
- format: byte
- title: transactions
- validators_hash:
- type: string
- format: byte
- description: validators for the current block
- title: >-
- hashes from the app output from the prev
- block
- next_validators_hash:
- type: string
- format: byte
- title: validators for the next block
- consensus_hash:
- type: string
- format: byte
- title: consensus params for current block
- app_hash:
- type: string
- format: byte
- title: state after txs from the previous block
- last_results_hash:
- type: string
- format: byte
- title: >-
- root hash of all results from the txs
- from the previous block
- evidence_hash:
- type: string
- format: byte
- description: evidence included in the block
- title: consensus info
- proposer_address:
- type: string
- format: byte
- title: original proposer of the block
- description: >-
- Header defines the structure of a block
- header.
- commit:
- type: object
- properties:
- height:
- type: string
- format: int64
- round:
- type: integer
- format: int32
- block_id:
- type: object
- properties:
- hash:
- type: string
- format: byte
- part_set_header:
- type: object
- properties:
- total:
- type: integer
- format: int64
- hash:
- type: string
- format: byte
- title: PartsetHeader
- title: BlockID
- signatures:
- type: array
- items:
- type: object
- properties:
- block_id_flag:
- type: string
- enum:
- - BLOCK_ID_FLAG_UNKNOWN
- - BLOCK_ID_FLAG_ABSENT
- - BLOCK_ID_FLAG_COMMIT
- - BLOCK_ID_FLAG_NIL
- default: BLOCK_ID_FLAG_UNKNOWN
- title: >-
- BlockIdFlag indicates which BlcokID the
- signature is for
- validator_address:
- type: string
- format: byte
- timestamp:
- type: string
- format: date-time
- signature:
- type: string
- format: byte
- description: >-
- CommitSig is a part of the Vote included
- in a Commit.
- description: >-
- Commit contains the evidence that a
- block was committed by a set of
- validators.
- validator_set:
- type: object
- properties:
- validators:
- type: array
- items:
- type: object
- properties:
- address:
- type: string
- format: byte
- pub_key:
- type: object
- properties:
- ed25519:
- type: string
- format: byte
- secp256k1:
- type: string
- format: byte
- title: >-
- PublicKey defines the keys available for
- use with Validators
- voting_power:
- type: string
- format: int64
- proposer_priority:
- type: string
- format: int64
- proposer:
- type: object
- properties:
- address:
- type: string
- format: byte
- pub_key:
- type: object
- properties:
- ed25519:
- type: string
- format: byte
- secp256k1:
- type: string
- format: byte
- title: >-
- PublicKey defines the keys available for
- use with Validators
- voting_power:
- type: string
- format: int64
- proposer_priority:
- type: string
- format: int64
- total_voting_power:
- type: string
- format: int64
- common_height:
- type: string
- format: int64
- byzantine_validators:
- type: array
- items:
- type: object
- properties:
- address:
- type: string
- format: byte
- pub_key:
- type: object
- properties:
- ed25519:
- type: string
- format: byte
- secp256k1:
- type: string
- format: byte
- title: >-
- PublicKey defines the keys available for
- use with Validators
- voting_power:
- type: string
- format: int64
- proposer_priority:
- type: string
- format: int64
- total_voting_power:
- type: string
- format: int64
- timestamp:
- type: string
- format: date-time
- description: >-
- LightClientAttackEvidence contains evidence of a
- set of validators attempting to mislead a light
- client.
- last_commit:
- type: object
- properties:
- height:
- type: string
- format: int64
- round:
- type: integer
- format: int32
- block_id:
- type: object
- properties:
- hash:
- type: string
- format: byte
- part_set_header:
- type: object
- properties:
- total:
- type: integer
- format: int64
- hash:
- type: string
- format: byte
- title: PartsetHeader
- title: BlockID
- signatures:
- type: array
- items:
- type: object
- properties:
- block_id_flag:
- type: string
- enum:
- - BLOCK_ID_FLAG_UNKNOWN
- - BLOCK_ID_FLAG_ABSENT
- - BLOCK_ID_FLAG_COMMIT
- - BLOCK_ID_FLAG_NIL
- default: BLOCK_ID_FLAG_UNKNOWN
- title: >-
- BlockIdFlag indicates which BlcokID the
- signature is for
- validator_address:
- type: string
- format: byte
- timestamp:
- type: string
- format: date-time
- signature:
- type: string
- format: byte
- description: >-
- CommitSig is a part of the Vote included in a
- Commit.
- description: >-
- Commit contains the evidence that a block was committed by
- a set of validators.
- sdk_block:
- title: 'Since: cosmos-sdk 0.47'
- type: object
- properties:
- header:
- type: object
- properties:
- version:
- title: basic block info
- type: object
- properties:
- block:
- type: string
- format: uint64
- app:
- type: string
- format: uint64
- description: >-
- Consensus captures the consensus rules for processing
- a block in the blockchain,
-
- including all blockchain data structures and the rules
- of the application's
-
- state transition machine.
- chain_id:
- type: string
- height:
- type: string
- format: int64
- time:
- type: string
- format: date-time
- last_block_id:
- type: object
- properties:
- hash:
- type: string
- format: byte
- part_set_header:
- type: object
- properties:
- total:
- type: integer
- format: int64
- hash:
- type: string
- format: byte
- title: PartsetHeader
- title: BlockID
- last_commit_hash:
- type: string
- format: byte
- description: commit from validators from the last block
- title: hashes of block data
- data_hash:
- type: string
- format: byte
- title: transactions
- validators_hash:
- type: string
- format: byte
- description: validators for the current block
- title: hashes from the app output from the prev block
- next_validators_hash:
- type: string
- format: byte
- title: validators for the next block
- consensus_hash:
- type: string
- format: byte
- title: consensus params for current block
- app_hash:
- type: string
- format: byte
- title: state after txs from the previous block
- last_results_hash:
- type: string
- format: byte
- title: >-
- root hash of all results from the txs from the
- previous block
- evidence_hash:
- type: string
- format: byte
- description: evidence included in the block
- title: consensus info
- proposer_address:
- type: string
- description: >-
- proposer_address is the original block proposer
- address, formatted as a Bech32 string.
-
- In Tendermint, this type is `bytes`, but in the SDK,
- we convert it to a Bech32 string
-
- for better UX.
-
-
- original proposer of the block
- description: Header defines the structure of a Tendermint block header.
- data:
- type: object
- properties:
- txs:
- type: array
- items:
- type: string
- format: byte
- description: >-
- Txs that will be applied by state @ block.Height+1.
-
- NOTE: not all txs here are valid. We're just agreeing
- on the order first.
-
- This means that block.AppHash does not include these
- txs.
- title: >-
- Data contains the set of transactions included in the
- block
- evidence:
- type: object
- properties:
- evidence:
- type: array
- items:
- type: object
- properties:
- duplicate_vote_evidence:
- type: object
- properties:
- vote_a:
- type: object
- properties:
- type:
- type: string
- enum:
- - SIGNED_MSG_TYPE_UNKNOWN
- - SIGNED_MSG_TYPE_PREVOTE
- - SIGNED_MSG_TYPE_PRECOMMIT
- - SIGNED_MSG_TYPE_PROPOSAL
- default: SIGNED_MSG_TYPE_UNKNOWN
- description: >-
- SignedMsgType is a type of signed
- message in the consensus.
-
- - SIGNED_MSG_TYPE_PREVOTE: Votes
- - SIGNED_MSG_TYPE_PROPOSAL: Proposals
- height:
- type: string
- format: int64
- round:
- type: integer
- format: int32
- block_id:
- type: object
- properties:
- hash:
- type: string
- format: byte
- part_set_header:
- type: object
- properties:
- total:
- type: integer
- format: int64
- hash:
- type: string
- format: byte
- title: PartsetHeader
- title: BlockID
- description: zero if vote is nil.
- timestamp:
- type: string
- format: date-time
- validator_address:
- type: string
- format: byte
- validator_index:
- type: integer
- format: int32
- signature:
- type: string
- format: byte
- description: >-
- Vote represents a prevote, precommit, or
- commit vote from validators for
-
- consensus.
- vote_b:
- type: object
- properties:
- type:
- type: string
- enum:
- - SIGNED_MSG_TYPE_UNKNOWN
- - SIGNED_MSG_TYPE_PREVOTE
- - SIGNED_MSG_TYPE_PRECOMMIT
- - SIGNED_MSG_TYPE_PROPOSAL
- default: SIGNED_MSG_TYPE_UNKNOWN
- description: >-
- SignedMsgType is a type of signed
- message in the consensus.
-
- - SIGNED_MSG_TYPE_PREVOTE: Votes
- - SIGNED_MSG_TYPE_PROPOSAL: Proposals
- height:
- type: string
- format: int64
- round:
- type: integer
- format: int32
- block_id:
- type: object
- properties:
- hash:
- type: string
- format: byte
- part_set_header:
- type: object
- properties:
- total:
- type: integer
- format: int64
- hash:
- type: string
- format: byte
- title: PartsetHeader
- title: BlockID
- description: zero if vote is nil.
- timestamp:
- type: string
- format: date-time
- validator_address:
- type: string
- format: byte
- validator_index:
- type: integer
- format: int32
- signature:
- type: string
- format: byte
- description: >-
- Vote represents a prevote, precommit, or
- commit vote from validators for
-
- consensus.
- total_voting_power:
- type: string
- format: int64
- validator_power:
- type: string
- format: int64
- timestamp:
- type: string
- format: date-time
- description: >-
- DuplicateVoteEvidence contains evidence of a
- validator signed two conflicting votes.
- light_client_attack_evidence:
- type: object
- properties:
- conflicting_block:
- type: object
- properties:
- signed_header:
- type: object
- properties:
- header:
- type: object
- properties:
- version:
- title: basic block info
- type: object
- properties:
- block:
- type: string
- format: uint64
- app:
- type: string
- format: uint64
- description: >-
- Consensus captures the consensus rules
- for processing a block in the
- blockchain,
-
- including all blockchain data structures
- and the rules of the application's
-
- state transition machine.
- chain_id:
- type: string
- height:
- type: string
- format: int64
- time:
- type: string
- format: date-time
- last_block_id:
- type: object
- properties:
- hash:
- type: string
- format: byte
- part_set_header:
- type: object
- properties:
- total:
- type: integer
- format: int64
- hash:
- type: string
- format: byte
- title: PartsetHeader
- title: BlockID
- last_commit_hash:
- type: string
- format: byte
- description: >-
- commit from validators from the last
- block
- title: hashes of block data
- data_hash:
- type: string
- format: byte
- title: transactions
- validators_hash:
- type: string
- format: byte
- description: validators for the current block
- title: >-
- hashes from the app output from the prev
- block
- next_validators_hash:
- type: string
- format: byte
- title: validators for the next block
- consensus_hash:
- type: string
- format: byte
- title: consensus params for current block
- app_hash:
- type: string
- format: byte
- title: state after txs from the previous block
- last_results_hash:
- type: string
- format: byte
- title: >-
- root hash of all results from the txs
- from the previous block
- evidence_hash:
- type: string
- format: byte
- description: evidence included in the block
- title: consensus info
- proposer_address:
- type: string
- format: byte
- title: original proposer of the block
- description: >-
- Header defines the structure of a block
- header.
- commit:
- type: object
- properties:
- height:
- type: string
- format: int64
- round:
- type: integer
- format: int32
- block_id:
- type: object
- properties:
- hash:
- type: string
- format: byte
- part_set_header:
- type: object
- properties:
- total:
- type: integer
- format: int64
- hash:
- type: string
- format: byte
- title: PartsetHeader
- title: BlockID
- signatures:
- type: array
- items:
- type: object
- properties:
- block_id_flag:
- type: string
- enum:
- - BLOCK_ID_FLAG_UNKNOWN
- - BLOCK_ID_FLAG_ABSENT
- - BLOCK_ID_FLAG_COMMIT
- - BLOCK_ID_FLAG_NIL
- default: BLOCK_ID_FLAG_UNKNOWN
- title: >-
- BlockIdFlag indicates which BlcokID the
- signature is for
- validator_address:
- type: string
- format: byte
- timestamp:
- type: string
- format: date-time
- signature:
- type: string
- format: byte
- description: >-
- CommitSig is a part of the Vote included
- in a Commit.
- description: >-
- Commit contains the evidence that a
- block was committed by a set of
- validators.
- validator_set:
- type: object
- properties:
- validators:
- type: array
- items:
- type: object
- properties:
- address:
- type: string
- format: byte
- pub_key:
- type: object
- properties:
- ed25519:
- type: string
- format: byte
- secp256k1:
- type: string
- format: byte
- title: >-
- PublicKey defines the keys available for
- use with Validators
- voting_power:
- type: string
- format: int64
- proposer_priority:
- type: string
- format: int64
- proposer:
- type: object
- properties:
- address:
- type: string
- format: byte
- pub_key:
- type: object
- properties:
- ed25519:
- type: string
- format: byte
- secp256k1:
- type: string
- format: byte
- title: >-
- PublicKey defines the keys available for
- use with Validators
- voting_power:
- type: string
- format: int64
- proposer_priority:
- type: string
- format: int64
- total_voting_power:
- type: string
- format: int64
- common_height:
- type: string
- format: int64
- byzantine_validators:
- type: array
- items:
- type: object
- properties:
- address:
- type: string
- format: byte
- pub_key:
- type: object
- properties:
- ed25519:
- type: string
- format: byte
- secp256k1:
- type: string
- format: byte
- title: >-
- PublicKey defines the keys available for
- use with Validators
- voting_power:
- type: string
- format: int64
- proposer_priority:
- type: string
- format: int64
- total_voting_power:
- type: string
- format: int64
- timestamp:
- type: string
- format: date-time
- description: >-
- LightClientAttackEvidence contains evidence of a
- set of validators attempting to mislead a light
- client.
- last_commit:
- type: object
- properties:
- height:
- type: string
- format: int64
- round:
- type: integer
- format: int32
- block_id:
- type: object
- properties:
- hash:
- type: string
- format: byte
- part_set_header:
- type: object
- properties:
- total:
- type: integer
- format: int64
- hash:
- type: string
- format: byte
- title: PartsetHeader
- title: BlockID
- signatures:
- type: array
- items:
- type: object
- properties:
- block_id_flag:
- type: string
- enum:
- - BLOCK_ID_FLAG_UNKNOWN
- - BLOCK_ID_FLAG_ABSENT
- - BLOCK_ID_FLAG_COMMIT
- - BLOCK_ID_FLAG_NIL
- default: BLOCK_ID_FLAG_UNKNOWN
- title: >-
- BlockIdFlag indicates which BlcokID the
- signature is for
- validator_address:
- type: string
- format: byte
- timestamp:
- type: string
- format: date-time
- signature:
- type: string
- format: byte
- description: >-
- CommitSig is a part of the Vote included in a
- Commit.
- description: >-
- Commit contains the evidence that a block was committed by
- a set of validators.
- description: >-
- Block is tendermint type Block, with the Header proposer
- address
-
- field converted to bech32 string.
- description: >-
- GetLatestBlockResponse is the response type for the
- Query/GetLatestBlock RPC method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
+ protocol buffer message. This string must contain at
+ least
one "/" character. The last segment of the URL's path
must represent
@@ -7414,8 +6043,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -7425,7 +6058,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -7453,10 +6086,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -7493,1180 +6124,120 @@ paths:
"@type": "type.googleapis.com/google.protobuf.Duration",
"value": "1.212s"
}
- tags:
- - Service
- /cosmos/base/tendermint/v1beta1/blocks/{height}:
- get:
- summary: GetBlockByHeight queries block for given height.
- operationId: CosmosBaseTendermintV1Beta1GetBlockByHeight
- responses:
- '200':
- description: A successful response.
+ parameters:
+ - name: body
+ description: >-
+ MsgSubmitProposal defines an sdk.Msg type that supports submitting
+ arbitrary
+
+ proposal Content.
+ in: body
+ required: true
schema:
type: object
properties:
- block_id:
+ content:
+ description: content is the proposal's content.
type: object
properties:
- hash:
+ '@type':
type: string
- format: byte
- part_set_header:
- type: object
- properties:
- total:
- type: integer
- format: int64
- hash:
- type: string
- format: byte
- title: PartsetHeader
- title: BlockID
- block:
- title: 'Deprecated: please use `sdk_block` instead'
- type: object
- properties:
- header:
- type: object
- properties:
- version:
- title: basic block info
- type: object
- properties:
- block:
- type: string
- format: uint64
- app:
- type: string
- format: uint64
- description: >-
- Consensus captures the consensus rules for processing
- a block in the blockchain,
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
- including all blockchain data structures and the rules
- of the application's
+ protocol buffer message. This string must contain at least
- state transition machine.
- chain_id:
- type: string
- height:
- type: string
- format: int64
- time:
- type: string
- format: date-time
- last_block_id:
- type: object
- properties:
- hash:
- type: string
- format: byte
- part_set_header:
- type: object
- properties:
- total:
- type: integer
- format: int64
- hash:
- type: string
- format: byte
- title: PartsetHeader
- title: BlockID
- last_commit_hash:
- type: string
- format: byte
- description: commit from validators from the last block
- title: hashes of block data
- data_hash:
- type: string
- format: byte
- title: transactions
- validators_hash:
- type: string
- format: byte
- description: validators for the current block
- title: hashes from the app output from the prev block
- next_validators_hash:
- type: string
- format: byte
- title: validators for the next block
- consensus_hash:
- type: string
- format: byte
- title: consensus params for current block
- app_hash:
- type: string
- format: byte
- title: state after txs from the previous block
- last_results_hash:
- type: string
- format: byte
- title: >-
- root hash of all results from the txs from the
- previous block
- evidence_hash:
- type: string
- format: byte
- description: evidence included in the block
- title: consensus info
- proposer_address:
- type: string
- format: byte
- title: original proposer of the block
- description: Header defines the structure of a block header.
- data:
- type: object
- properties:
- txs:
- type: array
- items:
- type: string
- format: byte
- description: >-
- Txs that will be applied by state @ block.Height+1.
+ one "/" character. The last segment of the URL's path must
+ represent
- NOTE: not all txs here are valid. We're just agreeing
- on the order first.
+ the fully qualified name of the type (as in
- This means that block.AppHash does not include these
- txs.
- title: >-
- Data contains the set of transactions included in the
- block
- evidence:
- type: object
- properties:
- evidence:
- type: array
- items:
- type: object
- properties:
- duplicate_vote_evidence:
- type: object
- properties:
- vote_a:
- type: object
- properties:
- type:
- type: string
- enum:
- - SIGNED_MSG_TYPE_UNKNOWN
- - SIGNED_MSG_TYPE_PREVOTE
- - SIGNED_MSG_TYPE_PRECOMMIT
- - SIGNED_MSG_TYPE_PROPOSAL
- default: SIGNED_MSG_TYPE_UNKNOWN
- description: >-
- SignedMsgType is a type of signed
- message in the consensus.
-
- - SIGNED_MSG_TYPE_PREVOTE: Votes
- - SIGNED_MSG_TYPE_PROPOSAL: Proposals
- height:
- type: string
- format: int64
- round:
- type: integer
- format: int32
- block_id:
- type: object
- properties:
- hash:
- type: string
- format: byte
- part_set_header:
- type: object
- properties:
- total:
- type: integer
- format: int64
- hash:
- type: string
- format: byte
- title: PartsetHeader
- title: BlockID
- description: zero if vote is nil.
- timestamp:
- type: string
- format: date-time
- validator_address:
- type: string
- format: byte
- validator_index:
- type: integer
- format: int32
- signature:
- type: string
- format: byte
- description: >-
- Vote represents a prevote, precommit, or
- commit vote from validators for
-
- consensus.
- vote_b:
- type: object
- properties:
- type:
- type: string
- enum:
- - SIGNED_MSG_TYPE_UNKNOWN
- - SIGNED_MSG_TYPE_PREVOTE
- - SIGNED_MSG_TYPE_PRECOMMIT
- - SIGNED_MSG_TYPE_PROPOSAL
- default: SIGNED_MSG_TYPE_UNKNOWN
- description: >-
- SignedMsgType is a type of signed
- message in the consensus.
-
- - SIGNED_MSG_TYPE_PREVOTE: Votes
- - SIGNED_MSG_TYPE_PROPOSAL: Proposals
- height:
- type: string
- format: int64
- round:
- type: integer
- format: int32
- block_id:
- type: object
- properties:
- hash:
- type: string
- format: byte
- part_set_header:
- type: object
- properties:
- total:
- type: integer
- format: int64
- hash:
- type: string
- format: byte
- title: PartsetHeader
- title: BlockID
- description: zero if vote is nil.
- timestamp:
- type: string
- format: date-time
- validator_address:
- type: string
- format: byte
- validator_index:
- type: integer
- format: int32
- signature:
- type: string
- format: byte
- description: >-
- Vote represents a prevote, precommit, or
- commit vote from validators for
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
- consensus.
- total_voting_power:
- type: string
- format: int64
- validator_power:
- type: string
- format: int64
- timestamp:
- type: string
- format: date-time
- description: >-
- DuplicateVoteEvidence contains evidence of a
- validator signed two conflicting votes.
- light_client_attack_evidence:
- type: object
- properties:
- conflicting_block:
- type: object
- properties:
- signed_header:
- type: object
- properties:
- header:
- type: object
- properties:
- version:
- title: basic block info
- type: object
- properties:
- block:
- type: string
- format: uint64
- app:
- type: string
- format: uint64
- description: >-
- Consensus captures the consensus rules
- for processing a block in the
- blockchain,
-
- including all blockchain data structures
- and the rules of the application's
-
- state transition machine.
- chain_id:
- type: string
- height:
- type: string
- format: int64
- time:
- type: string
- format: date-time
- last_block_id:
- type: object
- properties:
- hash:
- type: string
- format: byte
- part_set_header:
- type: object
- properties:
- total:
- type: integer
- format: int64
- hash:
- type: string
- format: byte
- title: PartsetHeader
- title: BlockID
- last_commit_hash:
- type: string
- format: byte
- description: >-
- commit from validators from the last
- block
- title: hashes of block data
- data_hash:
- type: string
- format: byte
- title: transactions
- validators_hash:
- type: string
- format: byte
- description: validators for the current block
- title: >-
- hashes from the app output from the prev
- block
- next_validators_hash:
- type: string
- format: byte
- title: validators for the next block
- consensus_hash:
- type: string
- format: byte
- title: consensus params for current block
- app_hash:
- type: string
- format: byte
- title: state after txs from the previous block
- last_results_hash:
- type: string
- format: byte
- title: >-
- root hash of all results from the txs
- from the previous block
- evidence_hash:
- type: string
- format: byte
- description: evidence included in the block
- title: consensus info
- proposer_address:
- type: string
- format: byte
- title: original proposer of the block
- description: >-
- Header defines the structure of a block
- header.
- commit:
- type: object
- properties:
- height:
- type: string
- format: int64
- round:
- type: integer
- format: int32
- block_id:
- type: object
- properties:
- hash:
- type: string
- format: byte
- part_set_header:
- type: object
- properties:
- total:
- type: integer
- format: int64
- hash:
- type: string
- format: byte
- title: PartsetHeader
- title: BlockID
- signatures:
- type: array
- items:
- type: object
- properties:
- block_id_flag:
- type: string
- enum:
- - BLOCK_ID_FLAG_UNKNOWN
- - BLOCK_ID_FLAG_ABSENT
- - BLOCK_ID_FLAG_COMMIT
- - BLOCK_ID_FLAG_NIL
- default: BLOCK_ID_FLAG_UNKNOWN
- title: >-
- BlockIdFlag indicates which BlcokID the
- signature is for
- validator_address:
- type: string
- format: byte
- timestamp:
- type: string
- format: date-time
- signature:
- type: string
- format: byte
- description: >-
- CommitSig is a part of the Vote included
- in a Commit.
- description: >-
- Commit contains the evidence that a
- block was committed by a set of
- validators.
- validator_set:
- type: object
- properties:
- validators:
- type: array
- items:
- type: object
- properties:
- address:
- type: string
- format: byte
- pub_key:
- type: object
- properties:
- ed25519:
- type: string
- format: byte
- secp256k1:
- type: string
- format: byte
- title: >-
- PublicKey defines the keys available for
- use with Validators
- voting_power:
- type: string
- format: int64
- proposer_priority:
- type: string
- format: int64
- proposer:
- type: object
- properties:
- address:
- type: string
- format: byte
- pub_key:
- type: object
- properties:
- ed25519:
- type: string
- format: byte
- secp256k1:
- type: string
- format: byte
- title: >-
- PublicKey defines the keys available for
- use with Validators
- voting_power:
- type: string
- format: int64
- proposer_priority:
- type: string
- format: int64
- total_voting_power:
- type: string
- format: int64
- common_height:
- type: string
- format: int64
- byzantine_validators:
- type: array
- items:
- type: object
- properties:
- address:
- type: string
- format: byte
- pub_key:
- type: object
- properties:
- ed25519:
- type: string
- format: byte
- secp256k1:
- type: string
- format: byte
- title: >-
- PublicKey defines the keys available for
- use with Validators
- voting_power:
- type: string
- format: int64
- proposer_priority:
- type: string
- format: int64
- total_voting_power:
- type: string
- format: int64
- timestamp:
- type: string
- format: date-time
- description: >-
- LightClientAttackEvidence contains evidence of a
- set of validators attempting to mislead a light
- client.
- last_commit:
- type: object
- properties:
- height:
- type: string
- format: int64
- round:
- type: integer
- format: int32
- block_id:
- type: object
- properties:
- hash:
- type: string
- format: byte
- part_set_header:
- type: object
- properties:
- total:
- type: integer
- format: int64
- hash:
- type: string
- format: byte
- title: PartsetHeader
- title: BlockID
- signatures:
- type: array
- items:
- type: object
- properties:
- block_id_flag:
- type: string
- enum:
- - BLOCK_ID_FLAG_UNKNOWN
- - BLOCK_ID_FLAG_ABSENT
- - BLOCK_ID_FLAG_COMMIT
- - BLOCK_ID_FLAG_NIL
- default: BLOCK_ID_FLAG_UNKNOWN
- title: >-
- BlockIdFlag indicates which BlcokID the
- signature is for
- validator_address:
- type: string
- format: byte
- timestamp:
- type: string
- format: date-time
- signature:
- type: string
- format: byte
- description: >-
- CommitSig is a part of the Vote included in a
- Commit.
- description: >-
- Commit contains the evidence that a block was committed by
- a set of validators.
- sdk_block:
- title: 'Since: cosmos-sdk 0.47'
- type: object
- properties:
- header:
- type: object
- properties:
- version:
- title: basic block info
- type: object
- properties:
- block:
- type: string
- format: uint64
- app:
- type: string
- format: uint64
- description: >-
- Consensus captures the consensus rules for processing
- a block in the blockchain,
+ (e.g., leading "." is not accepted).
- including all blockchain data structures and the rules
- of the application's
- state transition machine.
- chain_id:
- type: string
- height:
- type: string
- format: int64
- time:
- type: string
- format: date-time
- last_block_id:
- type: object
- properties:
- hash:
- type: string
- format: byte
- part_set_header:
- type: object
- properties:
- total:
- type: integer
- format: int64
- hash:
- type: string
- format: byte
- title: PartsetHeader
- title: BlockID
- last_commit_hash:
- type: string
- format: byte
- description: commit from validators from the last block
- title: hashes of block data
- data_hash:
- type: string
- format: byte
- title: transactions
- validators_hash:
- type: string
- format: byte
- description: validators for the current block
- title: hashes from the app output from the prev block
- next_validators_hash:
- type: string
- format: byte
- title: validators for the next block
- consensus_hash:
- type: string
- format: byte
- title: consensus params for current block
- app_hash:
- type: string
- format: byte
- title: state after txs from the previous block
- last_results_hash:
- type: string
- format: byte
- title: >-
- root hash of all results from the txs from the
- previous block
- evidence_hash:
- type: string
- format: byte
- description: evidence included in the block
- title: consensus info
- proposer_address:
- type: string
- description: >-
- proposer_address is the original block proposer
- address, formatted as a Bech32 string.
+ In practice, teams usually precompile into the binary all
+ types that they
- In Tendermint, this type is `bytes`, but in the SDK,
- we convert it to a Bech32 string
+ expect it to use in the context of Any. However, for URLs
+ which use the
- for better UX.
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+ server that maps type URLs to message definitions as
+ follows:
- original proposer of the block
- description: Header defines the structure of a Tendermint block header.
- data:
- type: object
- properties:
- txs:
- type: array
- items:
- type: string
- format: byte
- description: >-
- Txs that will be applied by state @ block.Height+1.
- NOTE: not all txs here are valid. We're just agreeing
- on the order first.
+ * If no scheme is provided, `https` is assumed.
- This means that block.AppHash does not include these
- txs.
- title: >-
- Data contains the set of transactions included in the
- block
- evidence:
- type: object
- properties:
- evidence:
- type: array
- items:
- type: object
- properties:
- duplicate_vote_evidence:
- type: object
- properties:
- vote_a:
- type: object
- properties:
- type:
- type: string
- enum:
- - SIGNED_MSG_TYPE_UNKNOWN
- - SIGNED_MSG_TYPE_PREVOTE
- - SIGNED_MSG_TYPE_PRECOMMIT
- - SIGNED_MSG_TYPE_PROPOSAL
- default: SIGNED_MSG_TYPE_UNKNOWN
- description: >-
- SignedMsgType is a type of signed
- message in the consensus.
-
- - SIGNED_MSG_TYPE_PREVOTE: Votes
- - SIGNED_MSG_TYPE_PROPOSAL: Proposals
- height:
- type: string
- format: int64
- round:
- type: integer
- format: int32
- block_id:
- type: object
- properties:
- hash:
- type: string
- format: byte
- part_set_header:
- type: object
- properties:
- total:
- type: integer
- format: int64
- hash:
- type: string
- format: byte
- title: PartsetHeader
- title: BlockID
- description: zero if vote is nil.
- timestamp:
- type: string
- format: date-time
- validator_address:
- type: string
- format: byte
- validator_index:
- type: integer
- format: int32
- signature:
- type: string
- format: byte
- description: >-
- Vote represents a prevote, precommit, or
- commit vote from validators for
-
- consensus.
- vote_b:
- type: object
- properties:
- type:
- type: string
- enum:
- - SIGNED_MSG_TYPE_UNKNOWN
- - SIGNED_MSG_TYPE_PREVOTE
- - SIGNED_MSG_TYPE_PRECOMMIT
- - SIGNED_MSG_TYPE_PROPOSAL
- default: SIGNED_MSG_TYPE_UNKNOWN
- description: >-
- SignedMsgType is a type of signed
- message in the consensus.
-
- - SIGNED_MSG_TYPE_PREVOTE: Votes
- - SIGNED_MSG_TYPE_PROPOSAL: Proposals
- height:
- type: string
- format: int64
- round:
- type: integer
- format: int32
- block_id:
- type: object
- properties:
- hash:
- type: string
- format: byte
- part_set_header:
- type: object
- properties:
- total:
- type: integer
- format: int64
- hash:
- type: string
- format: byte
- title: PartsetHeader
- title: BlockID
- description: zero if vote is nil.
- timestamp:
- type: string
- format: date-time
- validator_address:
- type: string
- format: byte
- validator_index:
- type: integer
- format: int32
- signature:
- type: string
- format: byte
- description: >-
- Vote represents a prevote, precommit, or
- commit vote from validators for
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
- consensus.
- total_voting_power:
- type: string
- format: int64
- validator_power:
- type: string
- format: int64
- timestamp:
- type: string
- format: date-time
- description: >-
- DuplicateVoteEvidence contains evidence of a
- validator signed two conflicting votes.
- light_client_attack_evidence:
- type: object
- properties:
- conflicting_block:
- type: object
- properties:
- signed_header:
- type: object
- properties:
- header:
- type: object
- properties:
- version:
- title: basic block info
- type: object
- properties:
- block:
- type: string
- format: uint64
- app:
- type: string
- format: uint64
- description: >-
- Consensus captures the consensus rules
- for processing a block in the
- blockchain,
-
- including all blockchain data structures
- and the rules of the application's
-
- state transition machine.
- chain_id:
- type: string
- height:
- type: string
- format: int64
- time:
- type: string
- format: date-time
- last_block_id:
- type: object
- properties:
- hash:
- type: string
- format: byte
- part_set_header:
- type: object
- properties:
- total:
- type: integer
- format: int64
- hash:
- type: string
- format: byte
- title: PartsetHeader
- title: BlockID
- last_commit_hash:
- type: string
- format: byte
- description: >-
- commit from validators from the last
- block
- title: hashes of block data
- data_hash:
- type: string
- format: byte
- title: transactions
- validators_hash:
- type: string
- format: byte
- description: validators for the current block
- title: >-
- hashes from the app output from the prev
- block
- next_validators_hash:
- type: string
- format: byte
- title: validators for the next block
- consensus_hash:
- type: string
- format: byte
- title: consensus params for current block
- app_hash:
- type: string
- format: byte
- title: state after txs from the previous block
- last_results_hash:
- type: string
- format: byte
- title: >-
- root hash of all results from the txs
- from the previous block
- evidence_hash:
- type: string
- format: byte
- description: evidence included in the block
- title: consensus info
- proposer_address:
- type: string
- format: byte
- title: original proposer of the block
- description: >-
- Header defines the structure of a block
- header.
- commit:
- type: object
- properties:
- height:
- type: string
- format: int64
- round:
- type: integer
- format: int32
- block_id:
- type: object
- properties:
- hash:
- type: string
- format: byte
- part_set_header:
- type: object
- properties:
- total:
- type: integer
- format: int64
- hash:
- type: string
- format: byte
- title: PartsetHeader
- title: BlockID
- signatures:
- type: array
- items:
- type: object
- properties:
- block_id_flag:
- type: string
- enum:
- - BLOCK_ID_FLAG_UNKNOWN
- - BLOCK_ID_FLAG_ABSENT
- - BLOCK_ID_FLAG_COMMIT
- - BLOCK_ID_FLAG_NIL
- default: BLOCK_ID_FLAG_UNKNOWN
- title: >-
- BlockIdFlag indicates which BlcokID the
- signature is for
- validator_address:
- type: string
- format: byte
- timestamp:
- type: string
- format: date-time
- signature:
- type: string
- format: byte
- description: >-
- CommitSig is a part of the Vote included
- in a Commit.
- description: >-
- Commit contains the evidence that a
- block was committed by a set of
- validators.
- validator_set:
- type: object
- properties:
- validators:
- type: array
- items:
- type: object
- properties:
- address:
- type: string
- format: byte
- pub_key:
- type: object
- properties:
- ed25519:
- type: string
- format: byte
- secp256k1:
- type: string
- format: byte
- title: >-
- PublicKey defines the keys available for
- use with Validators
- voting_power:
- type: string
- format: int64
- proposer_priority:
- type: string
- format: int64
- proposer:
- type: object
- properties:
- address:
- type: string
- format: byte
- pub_key:
- type: object
- properties:
- ed25519:
- type: string
- format: byte
- secp256k1:
- type: string
- format: byte
- title: >-
- PublicKey defines the keys available for
- use with Validators
- voting_power:
- type: string
- format: int64
- proposer_priority:
- type: string
- format: int64
- total_voting_power:
- type: string
- format: int64
- common_height:
- type: string
- format: int64
- byzantine_validators:
- type: array
- items:
- type: object
- properties:
- address:
- type: string
- format: byte
- pub_key:
- type: object
- properties:
- ed25519:
- type: string
- format: byte
- secp256k1:
- type: string
- format: byte
- title: >-
- PublicKey defines the keys available for
- use with Validators
- voting_power:
- type: string
- format: int64
- proposer_priority:
- type: string
- format: int64
- total_voting_power:
- type: string
- format: int64
- timestamp:
- type: string
- format: date-time
- description: >-
- LightClientAttackEvidence contains evidence of a
- set of validators attempting to mislead a light
- client.
- last_commit:
- type: object
- properties:
- height:
- type: string
- format: int64
- round:
- type: integer
- format: int32
- block_id:
- type: object
- properties:
- hash:
- type: string
- format: byte
- part_set_header:
- type: object
- properties:
- total:
- type: integer
- format: int64
- hash:
- type: string
- format: byte
- title: PartsetHeader
- title: BlockID
- signatures:
- type: array
- items:
- type: object
- properties:
- block_id_flag:
- type: string
- enum:
- - BLOCK_ID_FLAG_UNKNOWN
- - BLOCK_ID_FLAG_ABSENT
- - BLOCK_ID_FLAG_COMMIT
- - BLOCK_ID_FLAG_NIL
- default: BLOCK_ID_FLAG_UNKNOWN
- title: >-
- BlockIdFlag indicates which BlcokID the
- signature is for
- validator_address:
- type: string
- format: byte
- timestamp:
- type: string
- format: date-time
- signature:
- type: string
- format: byte
- description: >-
- CommitSig is a part of the Vote included in a
- Commit.
- description: >-
- Commit contains the evidence that a block was committed by
- a set of validators.
- description: >-
- Block is tendermint type Block, with the Header proposer
- address
+ Note: this functionality is not currently available in the
+ official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ initial_deposit:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an amount.
+
+
+ NOTE: The amount field is an Int which implements the custom
+ method
- field converted to bech32 string.
+ signatures required by gogoproto.
+ description: >-
+ initial_deposit is the deposit value that must be paid at
+ proposal submission.
+ proposer:
+ type: string
+ description: proposer is the account address of the proposer.
description: >-
- GetBlockByHeightResponse is the response type for the
- Query/GetBlockByHeight RPC method.
+ MsgSubmitProposal defines an sdk.Msg type that supports submitting
+ arbitrary
+
+ proposal Content.
+ tags:
+ - Msg
+ /cosmos.gov.v1beta1.Msg/Vote:
+ post:
+ summary: Vote defines a method to add a vote on a specific proposal.
+ operationId: CosmosGovV1Beta1Msg_Vote
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ description: MsgVoteResponse defines the Msg/Vote response type.
default:
description: An unexpected error response.
schema:
@@ -8773,8 +6344,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -8784,7 +6359,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -8812,10 +6387,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -8853,95 +6426,51 @@ paths:
"value": "1.212s"
}
parameters:
- - name: height
- in: path
+ - name: body
+ description: MsgVote defines a message to cast a vote.
+ in: body
required: true
- type: string
- format: int64
+ schema:
+ type: object
+ properties:
+ proposal_id:
+ type: string
+ format: uint64
+ description: proposal_id defines the unique id of the proposal.
+ voter:
+ type: string
+ description: voter is the voter address for the proposal.
+ option:
+ description: option defines the vote option.
+ type: string
+ enum:
+ - VOTE_OPTION_UNSPECIFIED
+ - VOTE_OPTION_YES
+ - VOTE_OPTION_ABSTAIN
+ - VOTE_OPTION_NO
+ - VOTE_OPTION_NO_WITH_VETO
+ default: VOTE_OPTION_UNSPECIFIED
+ description: MsgVote defines a message to cast a vote.
tags:
- - Service
- /cosmos/base/tendermint/v1beta1/node_info:
- get:
- summary: GetNodeInfo queries the current node info.
- operationId: CosmosBaseTendermintV1Beta1GetNodeInfo
+ - Msg
+ /cosmos.gov.v1beta1.Msg/VoteWeighted:
+ post:
+ summary: >-
+ VoteWeighted defines a method to add a weighted vote on a specific
+ proposal.
+ description: 'Since: cosmos-sdk 0.43'
+ operationId: CosmosGovV1Beta1Msg_VoteWeighted
responses:
'200':
description: A successful response.
schema:
type: object
- properties:
- default_node_info:
- type: object
- properties:
- protocol_version:
- type: object
- properties:
- p2p:
- type: string
- format: uint64
- block:
- type: string
- format: uint64
- app:
- type: string
- format: uint64
- default_node_id:
- type: string
- listen_addr:
- type: string
- network:
- type: string
- version:
- type: string
- channels:
- type: string
- format: byte
- moniker:
- type: string
- other:
- type: object
- properties:
- tx_index:
- type: string
- rpc_address:
- type: string
- application_version:
- type: object
- properties:
- name:
- type: string
- app_name:
- type: string
- version:
- type: string
- git_commit:
- type: string
- build_tags:
- type: string
- go_version:
- type: string
- build_deps:
- type: array
- items:
- type: object
- properties:
- path:
- type: string
- title: module path
- version:
- type: string
- title: module version
- sum:
- type: string
- title: checksum
- title: Module is the type for VersionInfo
- cosmos_sdk_version:
- type: string
- title: 'Since: cosmos-sdk 0.43'
- description: VersionInfo is the type for the GetNodeInfoResponse message.
description: >-
- GetNodeInfoResponse is the response type for the Query/GetNodeInfo
- RPC method.
+ MsgVoteWeightedResponse defines the Msg/VoteWeighted response
+ type.
+
+
+ Since: cosmos-sdk 0.43
default:
description: An unexpected error response.
schema:
@@ -9048,8 +6577,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -9059,7 +6592,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -9087,10 +6620,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -9127,23 +6658,410 @@ paths:
"@type": "type.googleapis.com/google.protobuf.Duration",
"value": "1.212s"
}
- tags:
- - Service
- /cosmos/base/tendermint/v1beta1/syncing:
- get:
- summary: GetSyncing queries node syncing.
- operationId: CosmosBaseTendermintV1Beta1GetSyncing
- responses:
- '200':
- description: A successful response.
+ parameters:
+ - name: body
+ description: |-
+ MsgVoteWeighted defines a message to cast a vote.
+
+ Since: cosmos-sdk 0.43
+ in: body
+ required: true
schema:
type: object
properties:
- syncing:
- type: boolean
- description: >-
- GetSyncingResponse is the response type for the Query/GetSyncing
- RPC method.
+ proposal_id:
+ type: string
+ format: uint64
+ description: proposal_id defines the unique id of the proposal.
+ voter:
+ type: string
+ description: voter is the voter address for the proposal.
+ options:
+ type: array
+ items:
+ type: object
+ properties:
+ option:
+ description: >-
+ option defines the valid vote options, it must not
+ contain duplicate vote options.
+ type: string
+ enum:
+ - VOTE_OPTION_UNSPECIFIED
+ - VOTE_OPTION_YES
+ - VOTE_OPTION_ABSTAIN
+ - VOTE_OPTION_NO
+ - VOTE_OPTION_NO_WITH_VETO
+ default: VOTE_OPTION_UNSPECIFIED
+ weight:
+ type: string
+ description: >-
+ weight is the vote weight associated with the vote
+ option.
+ description: |-
+ WeightedVoteOption defines a unit of vote for vote split.
+
+ Since: cosmos-sdk 0.43
+ description: options defines the weighted vote options.
+ description: |-
+ MsgVoteWeighted defines a message to cast a vote.
+
+ Since: cosmos-sdk 0.43
+ tags:
+ - Msg
+ /cosmos.mint.v1beta1.Msg/UpdateParams:
+ post:
+ summary: >-
+ UpdateParams defines a governance operation for updating the x/mint
+ module
+
+ parameters. The authority is defaults to the x/gov module account.
+ description: 'Since: cosmos-sdk 0.47'
+ operationId: CosmosMintV1Beta1Msg_UpdateParams
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ description: >-
+ MsgUpdateParamsResponse defines the response structure for
+ executing a
+
+ MsgUpdateParams message.
+
+
+ Since: cosmos-sdk 0.47
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ parameters:
+ - name: body
+ description: |-
+ MsgUpdateParams is the Msg/UpdateParams request type.
+
+ Since: cosmos-sdk 0.47
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ authority:
+ type: string
+ description: >-
+ authority is the address that controls the module (defaults to
+ x/gov unless overwritten).
+ params:
+ description: |-
+ params defines the x/mint parameters to update.
+
+ NOTE: All parameters must be supplied.
+ type: object
+ properties:
+ mint_denom:
+ type: string
+ title: type of coin to mint
+ inflation_rate_change:
+ type: string
+ title: maximum annual change in inflation rate
+ inflation_max:
+ type: string
+ title: maximum inflation rate
+ inflation_min:
+ type: string
+ title: minimum inflation rate
+ goal_bonded:
+ type: string
+ title: goal of percent bonded atoms
+ blocks_per_year:
+ type: string
+ format: uint64
+ title: expected blocks per year
+ description: |-
+ MsgUpdateParams is the Msg/UpdateParams request type.
+
+ Since: cosmos-sdk 0.47
+ tags:
+ - Msg
+ /cosmos/params/v1beta1/params:
+ get:
+ summary: |-
+ Params queries a specific parameter of a module, given its subspace and
+ key.
+ operationId: CosmosParamsV1Beta1Query_Params
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ param:
+ description: param defines the queried parameter.
+ type: object
+ properties:
+ subspace:
+ type: string
+ key:
+ type: string
+ value:
+ type: string
+ description: >-
+ QueryParamsResponse is response type for the Query/Params RPC
+ method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ parameters:
+ - name: subspace
+ description: subspace defines the module to query the parameter for.
+ in: query
+ required: false
+ type: string
+ - name: key
+ description: key defines the key of the parameter in the subspace.
+ in: query
+ required: false
+ type: string
+ tags:
+ - Query
+ /cosmos/params/v1beta1/subspaces:
+ get:
+ summary: >-
+ Subspaces queries for all registered subspaces and all keys for a
+ subspace.
+ description: 'Since: cosmos-sdk 0.46'
+ operationId: CosmosParamsV1Beta1Query_Subspaces
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ subspaces:
+ type: array
+ items:
+ type: object
+ properties:
+ subspace:
+ type: string
+ keys:
+ type: array
+ items:
+ type: string
+ description: >-
+ Subspace defines a parameter subspace name and all the keys
+ that exist for
+
+ the subspace.
+
+
+ Since: cosmos-sdk 0.46
+ description: >-
+ QuerySubspacesResponse defines the response types for querying for
+ all
+
+ registered subspaces and all keys for a subspace.
+
+
+ Since: cosmos-sdk 0.46
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ tags:
+ - Query
+ /cosmos.slashing.v1beta1.Msg/Unjail:
+ post:
+ summary: >-
+ Unjail defines a method for unjailing a jailed validator, thus returning
+
+ them into the bonded validator set, so they can begin receiving
+ provisions
+
+ and rewards again.
+ operationId: CosmosSlashingV1Beta1Msg_Unjail
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ title: MsgUnjailResponse defines the Msg/Unjail response type
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ parameters:
+ - name: body
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ validator_addr:
+ type: string
+ title: MsgUnjail defines the Msg/Unjail request type
+ tags:
+ - Msg
+ /cosmos.slashing.v1beta1.Msg/UpdateParams:
+ post:
+ summary: >-
+ UpdateParams defines a governance operation for updating the x/slashing
+ module
+
+ parameters. The authority defaults to the x/gov module account.
+ description: 'Since: cosmos-sdk 0.47'
+ operationId: CosmosSlashingV1Beta1Msg_UpdateParams
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ description: >-
+ MsgUpdateParamsResponse defines the response structure for
+ executing a
+
+ MsgUpdateParams message.
+
+
+ Since: cosmos-sdk 0.47
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ parameters:
+ - name: body
+ description: |-
+ MsgUpdateParams is the Msg/UpdateParams request type.
+
+ Since: cosmos-sdk 0.47
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ authority:
+ type: string
+ description: >-
+ authority is the address that controls the module (defaults to
+ x/gov unless overwritten).
+ params:
+ description: |-
+ params defines the x/slashing parameters to update.
+
+ NOTE: All parameters must be supplied.
+ type: object
+ properties:
+ signed_blocks_window:
+ type: string
+ format: int64
+ min_signed_per_window:
+ type: string
+ format: byte
+ downtime_jail_duration:
+ type: string
+ slash_fraction_double_sign:
+ type: string
+ format: byte
+ slash_fraction_downtime:
+ type: string
+ format: byte
+ description: |-
+ MsgUpdateParams is the Msg/UpdateParams request type.
+
+ Since: cosmos-sdk 0.47
+ tags:
+ - Msg
+ /cosmos.staking.v1beta1.Msg/BeginRedelegate:
+ post:
+ summary: >-
+ BeginRedelegate defines a method for performing a redelegation
+
+ of coins from a delegator and source validator to a destination
+ validator.
+ operationId: CosmosStakingV1Beta1Msg_BeginRedelegate
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ completion_time:
+ type: string
+ format: date-time
+ description: >-
+ MsgBeginRedelegateResponse defines the Msg/BeginRedelegate
+ response type.
default:
description: An unexpected error response.
schema:
@@ -9250,8 +7168,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -9261,7 +7183,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -9289,10 +7211,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -9329,232 +7249,64 @@ paths:
"@type": "type.googleapis.com/google.protobuf.Duration",
"value": "1.212s"
}
- tags:
- - Service
- /cosmos/base/tendermint/v1beta1/validatorsets/latest:
- get:
- summary: GetLatestValidatorSet queries latest validator-set.
- operationId: CosmosBaseTendermintV1Beta1GetLatestValidatorSet
- responses:
- '200':
- description: A successful response.
+ parameters:
+ - name: body
+ description: >-
+ MsgBeginRedelegate defines a SDK message for performing a
+ redelegation
+
+ of coins from a delegator and source validator to a destination
+ validator.
+ in: body
+ required: true
schema:
type: object
properties:
- block_height:
+ delegator_address:
type: string
- format: int64
- validators:
- type: array
- items:
- type: object
- properties:
- address:
- type: string
- pub_key:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the
- type of the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's
- path must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be
- in a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the
- binary all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results
- based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available
- in the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty
- scheme) might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any
- values in the form
-
- of utility functions or additional generated methods of
- the Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and
- the unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will
- yield type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the
- regular
-
- representation of the deserialized, embedded message,
- with an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a
- custom JSON
-
- representation, that representation will be embedded
- adding a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message
- [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- voting_power:
- type: string
- format: int64
- proposer_priority:
- type: string
- format: int64
- description: Validator is the type for the validator-set.
- pagination:
- description: pagination defines an pagination for the response.
+ validator_src_address:
+ type: string
+ validator_dst_address:
+ type: string
+ amount:
type: object
properties:
- next_key:
+ denom:
type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
+ amount:
type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
+ description: >-
+ Coin defines a token with a denomination and an amount.
- was set, its value is undefined otherwise
+
+ NOTE: The amount field is an Int which implements the custom
+ method
+
+ signatures required by gogoproto.
description: >-
- GetLatestValidatorSetResponse is the response type for the
- Query/GetValidatorSetByHeight RPC method.
+ MsgBeginRedelegate defines a SDK message for performing a
+ redelegation
+
+ of coins from a delegator and source validator to a destination
+ validator.
+ tags:
+ - Msg
+ /cosmos.staking.v1beta1.Msg/CancelUnbondingDelegation:
+ post:
+ summary: >-
+ CancelUnbondingDelegation defines a method for performing canceling the
+ unbonding delegation
+
+ and delegate back to previous validator.
+ description: 'Since: cosmos-sdk 0.46'
+ operationId: CosmosStakingV1Beta1Msg_CancelUnbondingDelegation
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ description: 'Since: cosmos-sdk 0.46'
+ title: MsgCancelUnbondingDelegationResponse
default:
description: An unexpected error response.
schema:
@@ -9661,8 +7413,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -9672,7 +7428,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -9700,10 +7456,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -9741,288 +7495,517 @@ paths:
"value": "1.212s"
}
parameters:
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
+ - name: body
+ description: 'Since: cosmos-sdk 0.46'
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ delegator_address:
+ type: string
+ validator_address:
+ type: string
+ amount:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an amount.
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
- a count of the total number of items available for pagination in
- UIs.
+ NOTE: The amount field is an Int which implements the custom
+ method
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
-
-
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
+ signatures required by gogoproto.
+ title: >-
+ amount is always less than or equal to unbonding delegation
+ entry balance
+ creation_height:
+ type: string
+ format: int64
+ description: creation_height is the height which the unbonding took place.
+ description: 'Since: cosmos-sdk 0.46'
+ title: >-
+ MsgCancelUnbondingDelegation defines the SDK message for
+ performing a cancel unbonding delegation for delegator
tags:
- - Service
- /cosmos/base/tendermint/v1beta1/validatorsets/{height}:
- get:
- summary: GetValidatorSetByHeight queries validator-set at a given height.
- operationId: CosmosBaseTendermintV1Beta1GetValidatorSetByHeight
+ - Msg
+ /cosmos.staking.v1beta1.Msg/CreateValidator:
+ post:
+ summary: CreateValidator defines a method for creating a new validator.
+ operationId: CosmosStakingV1Beta1Msg_CreateValidator
responses:
'200':
description: A successful response.
+ schema:
+ type: object
+ description: >-
+ MsgCreateValidatorResponse defines the Msg/CreateValidator
+ response type.
+ default:
+ description: An unexpected error response.
schema:
type: object
properties:
- block_height:
+ code:
+ type: integer
+ format: int32
+ message:
type: string
- format: int64
- validators:
+ details:
type: array
items:
type: object
properties:
- address:
+ '@type':
type: string
- pub_key:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the
- type of the serialized
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
- protocol buffer message. This string must contain at
- least
+ one "/" character. The last segment of the URL's path
+ must represent
- one "/" character. The last segment of the URL's
- path must represent
+ the fully qualified name of the type (as in
- the fully qualified name of the type (as in
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
- `path/google.protobuf.Duration`). The name should be
- in a canonical form
+ (e.g., leading "." is not accepted).
- (e.g., leading "." is not accepted).
+ In practice, teams usually precompile into the binary
+ all types that they
- In practice, teams usually precompile into the
- binary all types that they
+ expect it to use in the context of Any. However, for
+ URLs which use the
- expect it to use in the context of Any. However, for
- URLs which use the
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
+ server that maps type URLs to message definitions as
+ follows:
- server that maps type URLs to message definitions as
- follows:
+ * If no scheme is provided, `https` is assumed.
- * If no scheme is provided, `https` is assumed.
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results
- based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
+ Note: this functionality is not currently available in
+ the official
- Note: this functionality is not currently available
- in the official
+ protobuf release, and it is not used for type URLs
+ beginning with
- protobuf release, and it is not used for type URLs
- beginning with
+ type.googleapis.com.
- type.googleapis.com.
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
- Schemes other than `http`, `https` (or the empty
- scheme) might be
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
+ URL that describes the type of the serialized message.
- URL that describes the type of the serialized message.
+ Protobuf library provides support to pack/unpack Any values
+ in the form
- Protobuf library provides support to pack/unpack Any
- values in the form
+ of utility functions or additional generated methods of the
+ Any type.
- of utility functions or additional generated methods of
- the Any type.
+ Example 1: Pack and unpack a message in C++.
- Example 1: Pack and unpack a message in C++.
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
+ Example 2: Pack and unpack a message in Java.
- Example 2: Pack and unpack a message in Java.
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
+ Example 3: Pack and unpack a message in Python.
- Example 3: Pack and unpack a message in Python.
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
+ Example 4: Pack and unpack a message in Go
- Example 4: Pack and unpack a message in Go
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
- The pack methods provided by protobuf library will by
- default use
+ methods only use the fully qualified type name after the
+ last '/'
- 'type.googleapis.com/full.type.name' as the type URL and
- the unpack
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
- methods only use the fully qualified type name after the
- last '/'
+ name "y.z".
- in the type URL, for example "foo.bar.com/x/y.z" will
- yield type
- name "y.z".
+ JSON
+ The JSON representation of an `Any` value uses the regular
- JSON
+ representation of the deserialized, embedded message, with
+ an
- ====
+ additional field `@type` which contains the type URL.
+ Example:
- The JSON representation of an `Any` value uses the
- regular
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
- representation of the deserialized, embedded message,
- with an
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
- additional field `@type` which contains the type URL.
- Example:
+ If the embedded message type is well-known and has a custom
+ JSON
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
+ representation, that representation will be embedded adding
+ a field
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
+ `value` which holds the custom JSON in addition to the
+ `@type`
- If the embedded message type is well-known and has a
- custom JSON
+ field. Example (for message [google.protobuf.Duration][]):
- representation, that representation will be embedded
- adding a field
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: body
+ description: >-
+ MsgCreateValidator defines a SDK message for creating a new
+ validator.
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ description:
+ type: object
+ properties:
+ moniker:
+ type: string
+ description: moniker defines a human-readable name for the validator.
+ identity:
+ type: string
+ description: >-
+ identity defines an optional identity signature (ex. UPort
+ or Keybase).
+ website:
+ type: string
+ description: website defines an optional website link.
+ security_contact:
+ type: string
+ description: >-
+ security_contact defines an optional email for security
+ contact.
+ details:
+ type: string
+ description: details define other optional details.
+ description: Description defines a validator description.
+ commission:
+ type: object
+ properties:
+ rate:
+ type: string
+ description: >-
+ rate is the commission rate charged to delegators, as a
+ fraction.
+ max_rate:
+ type: string
+ description: >-
+ max_rate defines the maximum commission rate which
+ validator can ever charge, as a fraction.
+ max_change_rate:
+ type: string
+ description: >-
+ max_change_rate defines the maximum daily increase of the
+ validator commission, as a fraction.
+ description: >-
+ CommissionRates defines the initial commission rates to be
+ used for creating
- `value` which holds the custom JSON in addition to the
- `@type`
+ a validator.
+ min_self_delegation:
+ type: string
+ delegator_address:
+ type: string
+ description: >-
+ Deprecated: Use of Delegator Address in MsgCreateValidator is
+ deprecated.
- field. Example (for message
- [google.protobuf.Duration][]):
+ The validator address bytes and delegator address bytes refer
+ to the same account while creating validator (defer
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- voting_power:
- type: string
- format: int64
- proposer_priority:
- type: string
- format: int64
- description: Validator is the type for the validator-set.
- pagination:
- description: pagination defines an pagination for the response.
+ only in bech32 notation).
+ validator_address:
+ type: string
+ pubkey:
type: object
properties:
- next_key:
+ '@type':
type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at least
+
+ one "/" character. The last segment of the URL's path must
+ represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary all
+ types that they
+
+ expect it to use in the context of Any. However, for URLs
+ which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in the
+ official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message
+ along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values in
+ the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by default
+ use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the last
+ '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+ JSON
+
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with an
+
+ additional field `@type` which contains the type URL. Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding a
+ field
+
+ `value` which holds the custom JSON in addition to the `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ value:
+ type: object
+ properties:
+ denom:
type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an amount.
- was set, its value is undefined otherwise
+
+ NOTE: The amount field is an Int which implements the custom
+ method
+
+ signatures required by gogoproto.
description: >-
- GetValidatorSetByHeightResponse is the response type for the
- Query/GetValidatorSetByHeight RPC method.
+ MsgCreateValidator defines a SDK message for creating a new
+ validator.
+ tags:
+ - Msg
+ /cosmos.staking.v1beta1.Msg/Delegate:
+ post:
+ summary: |-
+ Delegate defines a method for performing a delegation of coins
+ from a delegator to a validator.
+ operationId: CosmosStakingV1Beta1Msg_Delegate
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ description: MsgDelegateResponse defines the Msg/Delegate response type.
default:
description: An unexpected error response.
schema:
@@ -10129,8 +8112,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -10140,7 +8127,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -10168,10 +8155,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -10209,221 +8194,328 @@ paths:
"value": "1.212s"
}
parameters:
- - name: height
- in: path
- required: true
- type: string
- format: int64
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
+ - name: body
description: >-
- count_total is set to true to indicate that the result set should
- include
+ MsgDelegate defines a SDK message for performing a delegation of
+ coins
- a count of the total number of items available for pagination in
- UIs.
+ from a delegator to a validator.
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ delegator_address:
+ type: string
+ validator_address:
+ type: string
+ amount:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an amount.
- count_total is only respected when offset is used. It is ignored
- when key
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
+ NOTE: The amount field is an Int which implements the custom
+ method
+ signatures required by gogoproto.
+ description: >-
+ MsgDelegate defines a SDK message for performing a delegation of
+ coins
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
+ from a delegator to a validator.
tags:
- - Service
- /cosmos/consensus/v1/params:
- get:
- summary: Params queries the parameters of x/consensus_param module.
- operationId: CosmosConsensusV1Params
+ - Msg
+ /cosmos.staking.v1beta1.Msg/EditValidator:
+ post:
+ summary: EditValidator defines a method for editing an existing validator.
+ operationId: CosmosStakingV1Beta1Msg_EditValidator
responses:
'200':
description: A successful response.
+ schema:
+ type: object
+ description: >-
+ MsgEditValidatorResponse defines the Msg/EditValidator response
+ type.
+ default:
+ description: An unexpected error response.
schema:
type: object
properties:
- params:
- description: >-
- params are the tendermint consensus params stored in the
- consensus module.
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
- Please note that `params.version` is not populated in this
- response, it is
+ protocol buffer message. This string must contain at
+ least
- tracked separately in the x/upgrade module.
- type: object
- properties:
- block:
- type: object
- properties:
- max_bytes:
- type: string
- format: int64
- title: |-
- Max block size, in bytes.
- Note: must be greater than 0
- max_gas:
- type: string
- format: int64
- title: |-
- Max gas per block.
- Note: must be greater or equal to -1
- description: BlockParams contains limits on the block size.
- evidence:
- type: object
- properties:
- max_age_num_blocks:
- type: string
- format: int64
- description: >-
- Max age of evidence, in blocks.
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
- The basic formula for calculating this is:
- MaxAgeDuration / {average block
+ (e.g., leading "." is not accepted).
- time}.
- max_age_duration:
- type: string
- description: >-
- Max age of evidence, in time.
+ In practice, teams usually precompile into the binary
+ all types that they
- It should correspond with an app's "unbonding period"
- or other similar
+ expect it to use in the context of Any. However, for
+ URLs which use the
- mechanism for handling [Nothing-At-Stake
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
- attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed).
- max_bytes:
- type: string
- format: int64
- title: >-
- This sets the maximum size of total evidence in bytes
- that can be committed in a single block.
+ server that maps type URLs to message definitions as
+ follows:
- and should fall comfortably under the max block bytes.
- Default is 1048576 or 1MB
- description: >-
- EvidenceParams determine how we handle evidence of
- malfeasance.
- validator:
- type: object
- properties:
- pub_key_types:
- type: array
- items:
- type: string
- description: >-
- ValidatorParams restrict the public key types validators
- can use.
+ * If no scheme is provided, `https` is assumed.
- NOTE: uses ABCI pubkey naming, not Amino names.
- version:
- type: object
- properties:
- app:
- type: string
- format: uint64
- description: VersionParams contains the ABCI application version.
- description: >-
- QueryParamsResponse defines the response type for querying
- x/consensus parameters.
- default:
- description: An unexpected error response.
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+ JSON
+
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: body
+ description: >-
+ MsgEditValidator defines a SDK message for editing an existing
+ validator.
+ in: body
+ required: true
schema:
type: object
properties:
- code:
- type: integer
- format: int32
- message:
+ description:
+ type: object
+ properties:
+ moniker:
+ type: string
+ description: moniker defines a human-readable name for the validator.
+ identity:
+ type: string
+ description: >-
+ identity defines an optional identity signature (ex. UPort
+ or Keybase).
+ website:
+ type: string
+ description: website defines an optional website link.
+ security_contact:
+ type: string
+ description: >-
+ security_contact defines an optional email for security
+ contact.
+ details:
+ type: string
+ description: details define other optional details.
+ description: Description defines a validator description.
+ validator_address:
type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- additionalProperties: {}
+ commission_rate:
+ type: string
+ title: >-
+ We pass a reference to the new commission rate and min self
+ delegation as
+
+ it's not mandatory to update. If not updated, the deserialized
+ rate will be
+
+ zero with no way to distinguish if an update was intended.
+
+ REF: #2373
+ min_self_delegation:
+ type: string
+ description: >-
+ MsgEditValidator defines a SDK message for editing an existing
+ validator.
tags:
- - Query
- /cosmos/distribution/v1beta1/community_pool:
- get:
- summary: CommunityPool queries the community pool coins.
- operationId: CosmosDistributionV1Beta1CommunityPool
+ - Msg
+ /cosmos.staking.v1beta1.Msg/Undelegate:
+ post:
+ summary: |-
+ Undelegate defines a method for performing an undelegation from a
+ delegate and a validator.
+ operationId: CosmosStakingV1Beta1Msg_Undelegate
responses:
'200':
description: A successful response.
schema:
type: object
properties:
- pool:
- type: array
- items:
- type: object
- properties:
- denom:
- type: string
- amount:
- type: string
- description: >-
- DecCoin defines a token with a denomination and a decimal
- amount.
-
+ completion_time:
+ type: string
+ format: date-time
+ amount:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an amount.
- NOTE: The amount field is an Dec which implements the custom
- method
- signatures required by gogoproto.
- description: pool defines community pool's coins.
- description: >-
- QueryCommunityPoolResponse is the response type for the
- Query/CommunityPool
+ NOTE: The amount field is an Int which implements the custom
+ method
- RPC method.
+ signatures required by gogoproto.
+ title: amount returns the amount of undelegated coins
+ description: MsgUndelegateResponse defines the Msg/Undelegate response type.
default:
description: An unexpected error response.
schema:
@@ -10441,130 +8533,234 @@ paths:
properties:
'@type':
type: string
- additionalProperties: {}
- tags:
- - Query
- /cosmos/distribution/v1beta1/delegators/{delegator_address}/rewards:
- get:
- summary: |-
- DelegationTotalRewards queries the total rewards accrued by a each
- validator.
- operationId: CosmosDistributionV1Beta1DelegationTotalRewards
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- rewards:
- type: array
- items:
- type: object
- properties:
- validator_address:
- type: string
- reward:
- type: array
- items:
- type: object
- properties:
- denom:
- type: string
- amount:
- type: string
- description: >-
- DecCoin defines a token with a denomination and a
- decimal amount.
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+ protocol buffer message. This string must contain at
+ least
- NOTE: The amount field is an Dec which implements the
- custom method
+ one "/" character. The last segment of the URL's path
+ must represent
- signatures required by gogoproto.
- description: |-
- DelegationDelegatorReward represents the properties
- of a delegator's delegation reward.
- description: rewards defines all the rewards accrued by a delegator.
- total:
- type: array
- items:
- type: object
- properties:
- denom:
- type: string
- amount:
- type: string
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
description: >-
- DecCoin defines a token with a denomination and a decimal
- amount.
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+ URL that describes the type of the serialized message.
- NOTE: The amount field is an Dec which implements the custom
- method
- signatures required by gogoproto.
- description: total defines the sum of all the rewards.
- description: |-
- QueryDelegationTotalRewardsResponse is the response type for the
- Query/DelegationTotalRewards RPC method.
- default:
- description: An unexpected error response.
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+ JSON
+
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: body
+ description: >-
+ MsgUndelegate defines a SDK message for performing an undelegation
+ from a
+
+ delegate and a validator.
+ in: body
+ required: true
schema:
type: object
properties:
- code:
- type: integer
- format: int32
- message:
+ delegator_address:
type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- additionalProperties: {}
- parameters:
- - name: delegator_address
- description: delegator_address defines the delegator address to query for.
- in: path
- required: true
- type: string
+ validator_address:
+ type: string
+ amount:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an amount.
+
+
+ NOTE: The amount field is an Int which implements the custom
+ method
+
+ signatures required by gogoproto.
+ description: >-
+ MsgUndelegate defines a SDK message for performing an undelegation
+ from a
+
+ delegate and a validator.
tags:
- - Query
- /cosmos/distribution/v1beta1/delegators/{delegator_address}/rewards/{validator_address}:
- get:
- summary: DelegationRewards queries the total rewards accrued by a delegation.
- operationId: CosmosDistributionV1Beta1DelegationRewards
+ - Msg
+ /cosmos.staking.v1beta1.Msg/UpdateParams:
+ post:
+ summary: |-
+ UpdateParams defines an operation for updating the x/staking module
+ parameters.
+ Since: cosmos-sdk 0.47
+ operationId: CosmosStakingV1Beta1Msg_UpdateParams
responses:
'200':
description: A successful response.
schema:
type: object
- properties:
- rewards:
- type: array
- items:
- type: object
- properties:
- denom:
- type: string
- amount:
- type: string
- description: >-
- DecCoin defines a token with a denomination and a decimal
- amount.
+ description: >-
+ MsgUpdateParamsResponse defines the response structure for
+ executing a
+ MsgUpdateParams message.
- NOTE: The amount field is an Dec which implements the custom
- method
- signatures required by gogoproto.
- description: rewards defines the rewards accrued by a delegation.
- description: |-
- QueryDelegationRewardsResponse is the response type for the
- Query/DelegationRewards RPC method.
+ Since: cosmos-sdk 0.47
default:
description: An unexpected error response.
schema:
@@ -10576,542 +8772,6 @@ paths:
message:
type: string
details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- additionalProperties: {}
- parameters:
- - name: delegator_address
- description: delegator_address defines the delegator address to query for.
- in: path
- required: true
- type: string
- - name: validator_address
- description: validator_address defines the validator address to query for.
- in: path
- required: true
- type: string
- tags:
- - Query
- /cosmos/distribution/v1beta1/delegators/{delegator_address}/validators:
- get:
- summary: DelegatorValidators queries the validators of a delegator.
- operationId: CosmosDistributionV1Beta1DelegatorValidators
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- validators:
- type: array
- items:
- type: string
- description: >-
- validators defines the validators a delegator is delegating
- for.
- description: |-
- QueryDelegatorValidatorsResponse is the response type for the
- Query/DelegatorValidators RPC method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- additionalProperties: {}
- parameters:
- - name: delegator_address
- description: delegator_address defines the delegator address to query for.
- in: path
- required: true
- type: string
- tags:
- - Query
- /cosmos/distribution/v1beta1/delegators/{delegator_address}/withdraw_address:
- get:
- summary: DelegatorWithdrawAddress queries withdraw address of a delegator.
- operationId: CosmosDistributionV1Beta1DelegatorWithdrawAddress
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- withdraw_address:
- type: string
- description: withdraw_address defines the delegator address to query for.
- description: |-
- QueryDelegatorWithdrawAddressResponse is the response type for the
- Query/DelegatorWithdrawAddress RPC method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- additionalProperties: {}
- parameters:
- - name: delegator_address
- description: delegator_address defines the delegator address to query for.
- in: path
- required: true
- type: string
- tags:
- - Query
- /cosmos/distribution/v1beta1/params:
- get:
- summary: Params queries params of the distribution module.
- operationId: CosmosDistributionV1Beta1Params
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- params:
- description: params defines the parameters of the module.
- type: object
- properties:
- community_tax:
- type: string
- base_proposer_reward:
- type: string
- description: >-
- Deprecated: The base_proposer_reward field is deprecated
- and is no longer used
-
- in the x/distribution module's reward mechanism.
- bonus_proposer_reward:
- type: string
- description: >-
- Deprecated: The bonus_proposer_reward field is deprecated
- and is no longer used
-
- in the x/distribution module's reward mechanism.
- withdraw_addr_enabled:
- type: boolean
- description: >-
- QueryParamsResponse is the response type for the Query/Params RPC
- method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- additionalProperties: {}
- tags:
- - Query
- /cosmos/distribution/v1beta1/validators/{validator_address}:
- get:
- summary: >-
- ValidatorDistributionInfo queries validator commission and
- self-delegation rewards for validator
- operationId: CosmosDistributionV1Beta1ValidatorDistributionInfo
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- operator_address:
- type: string
- description: operator_address defines the validator operator address.
- self_bond_rewards:
- type: array
- items:
- type: object
- properties:
- denom:
- type: string
- amount:
- type: string
- description: >-
- DecCoin defines a token with a denomination and a decimal
- amount.
-
-
- NOTE: The amount field is an Dec which implements the custom
- method
-
- signatures required by gogoproto.
- description: self_bond_rewards defines the self delegations rewards.
- commission:
- type: array
- items:
- type: object
- properties:
- denom:
- type: string
- amount:
- type: string
- description: >-
- DecCoin defines a token with a denomination and a decimal
- amount.
-
-
- NOTE: The amount field is an Dec which implements the custom
- method
-
- signatures required by gogoproto.
- description: commission defines the commission the validator received.
- description: >-
- QueryValidatorDistributionInfoResponse is the response type for
- the Query/ValidatorDistributionInfo RPC method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- additionalProperties: {}
- parameters:
- - name: validator_address
- description: validator_address defines the validator address to query for.
- in: path
- required: true
- type: string
- tags:
- - Query
- /cosmos/distribution/v1beta1/validators/{validator_address}/commission:
- get:
- summary: ValidatorCommission queries accumulated commission for a validator.
- operationId: CosmosDistributionV1Beta1ValidatorCommission
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- commission:
- description: commission defines the commission the validator received.
- type: object
- properties:
- commission:
- type: array
- items:
- type: object
- properties:
- denom:
- type: string
- amount:
- type: string
- description: >-
- DecCoin defines a token with a denomination and a
- decimal amount.
-
-
- NOTE: The amount field is an Dec which implements the
- custom method
-
- signatures required by gogoproto.
- title: |-
- QueryValidatorCommissionResponse is the response type for the
- Query/ValidatorCommission RPC method
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- additionalProperties: {}
- parameters:
- - name: validator_address
- description: validator_address defines the validator address to query for.
- in: path
- required: true
- type: string
- tags:
- - Query
- /cosmos/distribution/v1beta1/validators/{validator_address}/outstanding_rewards:
- get:
- summary: ValidatorOutstandingRewards queries rewards of a validator address.
- operationId: CosmosDistributionV1Beta1ValidatorOutstandingRewards
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- rewards:
- type: object
- properties:
- rewards:
- type: array
- items:
- type: object
- properties:
- denom:
- type: string
- amount:
- type: string
- description: >-
- DecCoin defines a token with a denomination and a
- decimal amount.
-
-
- NOTE: The amount field is an Dec which implements the
- custom method
-
- signatures required by gogoproto.
- description: >-
- ValidatorOutstandingRewards represents outstanding
- (un-withdrawn) rewards
-
- for a validator inexpensive to track, allows simple sanity
- checks.
- description: >-
- QueryValidatorOutstandingRewardsResponse is the response type for
- the
-
- Query/ValidatorOutstandingRewards RPC method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- additionalProperties: {}
- parameters:
- - name: validator_address
- description: validator_address defines the validator address to query for.
- in: path
- required: true
- type: string
- tags:
- - Query
- /cosmos/distribution/v1beta1/validators/{validator_address}/slashes:
- get:
- summary: ValidatorSlashes queries slash events of a validator.
- operationId: CosmosDistributionV1Beta1ValidatorSlashes
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- slashes:
- type: array
- items:
- type: object
- properties:
- validator_period:
- type: string
- format: uint64
- fraction:
- type: string
- description: >-
- ValidatorSlashEvent represents a validator slash event.
-
- Height is implicit within the store key.
-
- This is needed to calculate appropriate amount of staking
- tokens
-
- for delegations which are withdrawn after a slash has
- occurred.
- description: slashes defines the slashes the validator received.
- pagination:
- description: pagination defines the pagination in the response.
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
-
- was set, its value is undefined otherwise
- description: |-
- QueryValidatorSlashesResponse is the response type for the
- Query/ValidatorSlashes RPC method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- additionalProperties: {}
- parameters:
- - name: validator_address
- description: validator_address defines the validator address to query for.
- in: path
- required: true
- type: string
- - name: starting_height
- description: >-
- starting_height defines the optional starting height to query the
- slashes.
- in: query
- required: false
- type: string
- format: uint64
- - name: ending_height
- description: >-
- starting_height defines the optional ending height to query the
- slashes.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
-
-
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /cosmos/evidence/v1beta1/evidence:
- get:
- summary: AllEvidence queries all evidence.
- operationId: CosmosEvidenceV1Beta1AllEvidence
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- evidence:
type: array
items:
type: object
@@ -11207,8 +8867,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -11218,7 +8882,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -11246,10 +8910,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -11286,31 +8948,85 @@ paths:
"@type": "type.googleapis.com/google.protobuf.Duration",
"value": "1.212s"
}
- description: evidence returns all evidences.
- pagination:
- description: pagination defines the pagination in the response.
+ parameters:
+ - name: body
+ description: |-
+ MsgUpdateParams is the Msg/UpdateParams request type.
+
+ Since: cosmos-sdk 0.47
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ authority:
+ type: string
+ description: >-
+ authority is the address that controls the module (defaults to
+ x/gov unless overwritten).
+ params:
+ description: |-
+ params defines the x/staking parameters to update.
+
+ NOTE: All parameters must be supplied.
type: object
properties:
- next_key:
+ unbonding_time:
type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
+ description: unbonding_time is the time duration of unbonding.
+ max_validators:
+ type: integer
+ format: int64
+ description: max_validators is the maximum number of validators.
+ max_entries:
+ type: integer
+ format: int64
+ description: >-
+ max_entries is the max entries for either unbonding
+ delegation or redelegation (per pair/trio).
+ historical_entries:
+ type: integer
+ format: int64
+ description: >-
+ historical_entries is the number of historical entries to
+ persist.
+ bond_denom:
+ type: string
+ description: bond_denom defines the bondable coin denomination.
+ min_commission_rate:
type: string
- format: uint64
title: >-
- total is total number of results available if
- PageRequest.count_total
+ min_commission_rate is the chain-wide minimum commission
+ rate that a validator can charge their delegators
+ description: |-
+ MsgUpdateParams is the Msg/UpdateParams request type.
- was set, its value is undefined otherwise
- description: >-
- QueryAllEvidenceResponse is the response type for the
- Query/AllEvidence RPC
+ Since: cosmos-sdk 0.47
+ tags:
+ - Msg
+ /ibc.applications.fee.v1.Msg/PayPacketFee:
+ post:
+ summary: >-
+ PayPacketFee defines a rpc handler method for MsgPayPacketFee
- method.
+ PayPacketFee is an open callback that may be called by any module/user
+ that wishes to escrow funds in order to
+
+ incentivize the relaying of the packet at the next sequence
+
+ NOTE: This method is intended to be used within a multi msg transaction,
+ where the subsequent msg that follows
+
+ initiates the lifecycle of the incentivized packet
+ operationId: IbcApplicationsFeeV1Msg_PayPacketFee
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ title: >-
+ MsgPayPacketFeeResponse defines the response type for the
+ PayPacketFee rpc
default:
description: An unexpected error response.
schema:
@@ -11417,8 +9133,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -11428,7 +9148,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -11456,10 +9176,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -11497,139 +9215,114 @@ paths:
"value": "1.212s"
}
parameters:
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
-
-
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /cosmos/evidence/v1beta1/evidence/{hash}:
- get:
- summary: Evidence queries evidence based on evidence hash.
- operationId: CosmosEvidenceV1Beta1Evidence
- responses:
- '200':
- description: A successful response.
+ - name: body
+ in: body
+ required: true
schema:
type: object
properties:
- evidence:
- description: evidence returns the requested evidence.
+ fee:
+ title: >-
+ fee encapsulates the recv, ack and timeout fees associated
+ with an IBC packet
type: object
properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at least
-
- one "/" character. The last segment of the URL's path must
- represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in a
- canonical form
-
- (e.g., leading "." is not accepted).
-
+ recv_fee:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an amount.
- In practice, teams usually precompile into the binary all
- types that they
- expect it to use in the context of Any. However, for URLs
- which use the
+ NOTE: The amount field is an Int which implements the
+ custom method
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
+ signatures required by gogoproto.
+ title: the packet receive fee
+ ack_fee:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an amount.
- server that maps type URLs to message definitions as
- follows:
+ NOTE: The amount field is an Int which implements the
+ custom method
- * If no scheme is provided, `https` is assumed.
+ signatures required by gogoproto.
+ title: the packet acknowledgement fee
+ timeout_fee:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an amount.
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
- Note: this functionality is not currently available in the
- official
+ NOTE: The amount field is an Int which implements the
+ custom method
- protobuf release, and it is not used for type URLs
- beginning with
+ signatures required by gogoproto.
+ title: the packet timeout fee
+ source_port_id:
+ type: string
+ title: the source port unique identifier
+ source_channel_id:
+ type: string
+ title: the source channel unique identifer
+ signer:
+ type: string
+ title: account address to refund fee if necessary
+ relayers:
+ type: array
+ items:
+ type: string
+ title: optional list of relayers permitted to the receive packet fees
+ title: >-
+ MsgPayPacketFee defines the request type for the PayPacketFee rpc
- type.googleapis.com.
+ This Msg can be used to pay for a packet at the next sequence send
+ & should be combined with the Msg that will be
+ paid for
+ tags:
+ - Msg
+ /ibc.applications.fee.v1.Msg/PayPacketFeeAsync:
+ post:
+ summary: >-
+ PayPacketFeeAsync defines a rpc handler method for MsgPayPacketFeeAsync
- Schemes other than `http`, `https` (or the empty scheme)
- might be
+ PayPacketFeeAsync is an open callback that may be called by any
+ module/user that wishes to escrow funds in order to
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- QueryEvidenceResponse is the response type for the Query/Evidence
- RPC method.
+ incentivize the relaying of a known packet (i.e. at a particular
+ sequence)
+ operationId: IbcApplicationsFeeV1Msg_PayPacketFeeAsync
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ title: >-
+ MsgPayPacketFeeAsyncResponse defines the response type for the
+ PayPacketFeeAsync rpc
default:
description: An unexpected error response.
schema:
@@ -11736,8 +9429,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -11747,7 +9444,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -11775,10 +9472,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -11816,119 +9511,137 @@ paths:
"value": "1.212s"
}
parameters:
- - name: hash
- description: |-
- hash defines the evidence hash of the requested evidence.
-
- Since: cosmos-sdk 0.47
- in: path
+ - name: body
+ in: body
required: true
- type: string
- - name: evidence_hash
- description: |-
- evidence_hash defines the hash of the requested evidence.
- Deprecated: Use hash, a HEX encoded string, instead.
- in: query
- required: false
- type: string
- format: byte
- tags:
- - Query
- /cosmos/feegrant/v1beta1/allowance/{granter}/{grantee}:
- get:
- summary: Allowance returns fee granted to the grantee by the granter.
- operationId: CosmosFeegrantV1Beta1Allowance
- responses:
- '200':
- description: A successful response.
schema:
type: object
properties:
- allowance:
- description: allowance is a allowance granted for grantee by granter.
+ packet_id:
+ title: >-
+ unique packet identifier comprised of the channel ID, port ID
+ and sequence
type: object
properties:
- granter:
+ port_id:
type: string
- description: >-
- granter is the address of the user granting an allowance
- of their funds.
- grantee:
+ title: channel port identifier
+ channel_id:
type: string
- description: >-
- grantee is the address of the user being granted an
- allowance of another user's funds.
- allowance:
- description: >-
- allowance can be any of basic, periodic, allowed fee
- allowance.
+ title: channel unique identifier
+ sequence:
+ type: string
+ format: uint64
+ title: packet sequence
+ packet_fee:
+ title: the packet fee associated with a particular IBC packet
+ type: object
+ properties:
+ fee:
+ title: >-
+ fee encapsulates the recv, ack and timeout fees associated
+ with an IBC packet
type: object
properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type
- of the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be
- in a canonical form
-
- (e.g., leading "." is not accepted).
+ recv_fee:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an
+ amount.
- In practice, teams usually precompile into the binary
- all types that they
+ NOTE: The amount field is an Int which implements
+ the custom method
- expect it to use in the context of Any. However, for
- URLs which use the
+ signatures required by gogoproto.
+ title: the packet receive fee
+ ack_fee:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an
+ amount.
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
- server that maps type URLs to message definitions as
- follows:
+ NOTE: The amount field is an Int which implements
+ the custom method
+ signatures required by gogoproto.
+ title: the packet acknowledgement fee
+ timeout_fee:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an
+ amount.
- * If no scheme is provided, `https` is assumed.
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results
- based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
+ NOTE: The amount field is an Int which implements
+ the custom method
- Note: this functionality is not currently available in
- the official
+ signatures required by gogoproto.
+ title: the packet timeout fee
+ refund_address:
+ type: string
+ title: the refund address for unspent fees
+ relayers:
+ type: array
+ items:
+ type: string
+ title: optional list of relayers permitted to receive fees
+ title: >-
+ MsgPayPacketFeeAsync defines the request type for the
+ PayPacketFeeAsync rpc
- protobuf release, and it is not used for type URLs
- beginning with
+ This Msg can be used to pay for a packet at a specified sequence
+ (instead of the next sequence send)
+ tags:
+ - Msg
+ /ibc.applications.fee.v1.Msg/RegisterCounterpartyPayee:
+ post:
+ summary: >-
+ RegisterCounterpartyPayee defines a rpc handler method for
+ MsgRegisterCounterpartyPayee
- type.googleapis.com.
+ RegisterCounterpartyPayee is called by the relayer on each channelEnd
+ and allows them to specify the counterparty
+ payee address before relaying. This ensures they will be properly
+ compensated for forward relaying since
- Schemes other than `http`, `https` (or the empty
- scheme) might be
+ the destination chain must include the registered counterparty payee
+ address in the acknowledgement. This function
- used with implementation specific semantics.
- additionalProperties: {}
- title: >-
- Grant is stored in the KVStore to record a grant with full
- context
- description: >-
- QueryAllowanceResponse is the response type for the
- Query/Allowance RPC method.
+ may be called more than once by a relayer, in which case, the latest
+ counterparty payee address is always used.
+ operationId: IbcApplicationsFeeV1Msg_RegisterCounterpartyPayee
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ title: >-
+ MsgRegisterCounterpartyPayeeResponse defines the response type for
+ the RegisterCounterpartyPayee rpc
default:
description: An unexpected error response.
schema:
@@ -12035,8 +9748,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -12046,7 +9763,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -12074,10 +9791,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -12115,138 +9830,54 @@ paths:
"value": "1.212s"
}
parameters:
- - name: granter
- description: >-
- granter is the address of the user granting an allowance of their
- funds.
- in: path
- required: true
- type: string
- - name: grantee
- description: >-
- grantee is the address of the user being granted an allowance of
- another user's funds.
- in: path
+ - name: body
+ in: body
required: true
- type: string
- tags:
- - Query
- /cosmos/feegrant/v1beta1/allowances/{grantee}:
- get:
- summary: Allowances returns all the grants for address.
- operationId: CosmosFeegrantV1Beta1Allowances
- responses:
- '200':
- description: A successful response.
schema:
type: object
properties:
- allowances:
- type: array
- items:
- type: object
- properties:
- granter:
- type: string
- description: >-
- granter is the address of the user granting an allowance
- of their funds.
- grantee:
- type: string
- description: >-
- grantee is the address of the user being granted an
- allowance of another user's funds.
- allowance:
- description: >-
- allowance can be any of basic, periodic, allowed fee
- allowance.
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the
- type of the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's
- path must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be
- in a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the
- binary all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results
- based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available
- in the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
+ port_id:
+ type: string
+ title: unique port identifier
+ channel_id:
+ type: string
+ title: unique channel identifier
+ relayer:
+ type: string
+ title: the relayer address
+ counterparty_payee:
+ type: string
+ title: the counterparty payee address
+ title: >-
+ MsgRegisterCounterpartyPayee defines the request type for the
+ RegisterCounterpartyPayee rpc
+ tags:
+ - Msg
+ /ibc.applications.fee.v1.Msg/RegisterPayee:
+ post:
+ summary: >-
+ RegisterPayee defines a rpc handler method for MsgRegisterPayee
+ RegisterPayee is called by the relayer on each channelEnd and allows
+ them to set an optional
- Schemes other than `http`, `https` (or the empty
- scheme) might be
+ payee to which reverse and timeout relayer packet fees will be paid out.
+ The payee should be registered on
- used with implementation specific semantics.
- additionalProperties: {}
- title: >-
- Grant is stored in the KVStore to record a grant with full
- context
- description: allowances are allowance's granted for grantee by granter.
- pagination:
- description: pagination defines an pagination for the response.
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
+ the source chain from which packets originate as this is where fee
+ distribution takes place. This function may be
- was set, its value is undefined otherwise
- description: >-
- QueryAllowancesResponse is the response type for the
- Query/Allowances RPC method.
+ called more than once by a relayer, in which case, the latest payee is
+ always used.
+ operationId: IbcApplicationsFeeV1Msg_RegisterPayee
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ title: >-
+ MsgRegisterPayeeResponse defines the response type for the
+ RegisterPayee rpc
default:
description: An unexpected error response.
schema:
@@ -12353,8 +9984,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -12364,7 +9999,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -12392,10 +10027,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -12433,188 +10066,49 @@ paths:
"value": "1.212s"
}
parameters:
- - name: grantee
- in: path
+ - name: body
+ in: body
required: true
- type: string
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
-
-
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
+ schema:
+ type: object
+ properties:
+ port_id:
+ type: string
+ title: unique port identifier
+ channel_id:
+ type: string
+ title: unique channel identifier
+ relayer:
+ type: string
+ title: the relayer address
+ payee:
+ type: string
+ title: the payee address
+ title: >-
+ MsgRegisterPayee defines the request type for the RegisterPayee
+ rpc
tags:
- - Query
- /cosmos/feegrant/v1beta1/issued/{granter}:
- get:
- summary: AllowancesByGranter returns all the grants given by an address
- description: 'Since: cosmos-sdk 0.46'
- operationId: CosmosFeegrantV1Beta1AllowancesByGranter
+ - Msg
+ /ibc.applications.interchain_accounts.controller.v1.Msg/RegisterInterchainAccount:
+ post:
+ summary: >-
+ RegisterInterchainAccount defines a rpc handler for
+ MsgRegisterInterchainAccount.
+ operationId: >-
+ IbcApplicationsInterchainAccountsControllerV1Msg_RegisterInterchainAccount
responses:
'200':
description: A successful response.
schema:
type: object
properties:
- allowances:
- type: array
- items:
- type: object
- properties:
- granter:
- type: string
- description: >-
- granter is the address of the user granting an allowance
- of their funds.
- grantee:
- type: string
- description: >-
- grantee is the address of the user being granted an
- allowance of another user's funds.
- allowance:
- description: >-
- allowance can be any of basic, periodic, allowed fee
- allowance.
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the
- type of the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's
- path must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be
- in a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the
- binary all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results
- based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available
- in the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty
- scheme) might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- title: >-
- Grant is stored in the KVStore to record a grant with full
- context
- description: allowances that have been issued by the granter.
- pagination:
- description: pagination defines an pagination for the response.
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
-
- was set, its value is undefined otherwise
- description: >-
- QueryAllowancesByGranterResponse is the response type for the
- Query/AllowancesByGranter RPC method.
-
-
- Since: cosmos-sdk 0.46
+ channel_id:
+ type: string
+ port_id:
+ type: string
+ title: >-
+ MsgRegisterInterchainAccountResponse defines the response for
+ Msg/RegisterAccount
default:
description: An unexpected error response.
schema:
@@ -12721,8 +10215,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -12732,7 +10230,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -12760,10 +10258,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -12801,212 +10297,37 @@ paths:
"value": "1.212s"
}
parameters:
- - name: granter
- in: path
+ - name: body
+ in: body
required: true
- type: string
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
-
-
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
+ schema:
+ type: object
+ properties:
+ owner:
+ type: string
+ connection_id:
+ type: string
+ version:
+ type: string
+ title: >-
+ MsgRegisterInterchainAccount defines the payload for
+ Msg/RegisterAccount
tags:
- - Query
- /cosmos/gov/v1/params/{params_type}:
- get:
- summary: Params queries all parameters of the gov module.
- operationId: CosmosGovV1Params
+ - Msg
+ /ibc.applications.interchain_accounts.controller.v1.Msg/SendTx:
+ post:
+ summary: SendTx defines a rpc handler for MsgSendTx.
+ operationId: IbcApplicationsInterchainAccountsControllerV1Msg_SendTx
responses:
'200':
description: A successful response.
schema:
type: object
properties:
- voting_params:
- description: |-
- Deprecated: Prefer to use `params` instead.
- voting_params defines the parameters related to voting.
- type: object
- properties:
- voting_period:
- type: string
- description: Duration of the voting period.
- deposit_params:
- description: |-
- Deprecated: Prefer to use `params` instead.
- deposit_params defines the parameters related to deposit.
- type: object
- properties:
- min_deposit:
- type: array
- items:
- type: object
- properties:
- denom:
- type: string
- amount:
- type: string
- description: >-
- Coin defines a token with a denomination and an amount.
-
-
- NOTE: The amount field is an Int which implements the
- custom method
-
- signatures required by gogoproto.
- description: Minimum deposit for a proposal to enter voting period.
- max_deposit_period:
- type: string
- description: >-
- Maximum period for Atom holders to deposit on a proposal.
- Initial value: 2
-
- months.
- tally_params:
- description: |-
- Deprecated: Prefer to use `params` instead.
- tally_params defines the parameters related to tally.
- type: object
- properties:
- quorum:
- type: string
- description: >-
- Minimum percentage of total stake needed to vote for a
- result to be
-
- considered valid.
- threshold:
- type: string
- description: >-
- Minimum proportion of Yes votes for proposal to pass.
- Default value: 0.5.
- veto_threshold:
- type: string
- description: >-
- Minimum value of Veto votes to Total votes ratio for
- proposal to be
-
- vetoed. Default value: 1/3.
- params:
- description: |-
- params defines all the paramaters of x/gov module.
-
- Since: cosmos-sdk 0.47
- type: object
- properties:
- min_deposit:
- type: array
- items:
- type: object
- properties:
- denom:
- type: string
- amount:
- type: string
- description: >-
- Coin defines a token with a denomination and an amount.
-
-
- NOTE: The amount field is an Int which implements the
- custom method
-
- signatures required by gogoproto.
- description: Minimum deposit for a proposal to enter voting period.
- max_deposit_period:
- type: string
- description: >-
- Maximum period for Atom holders to deposit on a proposal.
- Initial value: 2
-
- months.
- voting_period:
- type: string
- description: Duration of the voting period.
- quorum:
- type: string
- description: >-
- Minimum percentage of total stake needed to vote for a
- result to be
- considered valid.
- threshold:
- type: string
- description: >-
- Minimum proportion of Yes votes for proposal to pass.
- Default value: 0.5.
- veto_threshold:
- type: string
- description: >-
- Minimum value of Veto votes to Total votes ratio for
- proposal to be
- vetoed. Default value: 1/3.
- min_initial_deposit_ratio:
- type: string
- description: >-
- The ratio representing the proportion of the deposit value
- that must be paid at proposal submission.
- burn_vote_quorum:
- type: boolean
- title: burn deposits if a proposal does not meet quorum
- burn_proposal_deposit_prevote:
- type: boolean
- title: burn deposits if the proposal does not enter voting period
- burn_vote_veto:
- type: boolean
- title: burn deposits if quorum with vote type no_veto is met
- description: >-
- QueryParamsResponse is the response type for the Query/Params RPC
- method.
+ sequence:
+ type: string
+ format: uint64
+ title: MsgSendTxResponse defines the response for MsgSendTx
default:
description: An unexpected error response.
schema:
@@ -13113,8 +10434,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -13124,7 +10449,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -13152,10 +10477,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -13193,336 +10516,351 @@ paths:
"value": "1.212s"
}
parameters:
- - name: params_type
- description: >-
- params_type defines which parameters to query for, can be one of
- "voting",
-
- "tallying" or "deposit".
- in: path
+ - name: body
+ in: body
required: true
- type: string
+ schema:
+ type: object
+ properties:
+ owner:
+ type: string
+ connection_id:
+ type: string
+ packet_data:
+ type: object
+ properties:
+ type:
+ type: string
+ enum:
+ - TYPE_UNSPECIFIED
+ - TYPE_EXECUTE_TX
+ default: TYPE_UNSPECIFIED
+ description: |-
+ - TYPE_UNSPECIFIED: Default zero value enumeration
+ - TYPE_EXECUTE_TX: Execute a transaction on an interchain accounts host chain
+ title: >-
+ Type defines a classification of message issued from a
+ controller chain to its associated interchain accounts
+
+ host
+ data:
+ type: string
+ format: byte
+ memo:
+ type: string
+ description: >-
+ InterchainAccountPacketData is comprised of a raw transaction,
+ type of transaction and optional memo field.
+ relative_timeout:
+ type: string
+ format: uint64
+ description: >-
+ Relative timeout timestamp provided will be added to the
+ current block time during transaction execution.
+
+ The timeout timestamp must be non-zero.
+ title: MsgSendTx defines the payload for Msg/SendTx
tags:
- - Query
- /cosmos/gov/v1/proposals:
- get:
- summary: Proposals queries all proposals based on given status.
- operationId: CosmosGovV1Proposals
+ - Msg
+ /ibc.applications.interchain_accounts.controller.v1.Msg/UpdateParams:
+ post:
+ summary: UpdateParams defines a rpc handler for MsgUpdateParams.
+ operationId: IbcApplicationsInterchainAccountsControllerV1Msg_UpdateParams
responses:
'200':
description: A successful response.
+ schema:
+ type: object
+ title: MsgUpdateParamsResponse defines the response for Msg/UpdateParams
+ default:
+ description: An unexpected error response.
schema:
type: object
properties:
- proposals:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
type: array
items:
type: object
properties:
- id:
+ '@type':
type: string
- format: uint64
- description: id defines the unique id of the proposal.
- messages:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the
- type of the serialized
-
- protocol buffer message. This string must contain
- at least
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
- one "/" character. The last segment of the URL's
- path must represent
+ protocol buffer message. This string must contain at
+ least
- the fully qualified name of the type (as in
+ one "/" character. The last segment of the URL's path
+ must represent
- `path/google.protobuf.Duration`). The name should
- be in a canonical form
+ the fully qualified name of the type (as in
- (e.g., leading "." is not accepted).
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+ (e.g., leading "." is not accepted).
- In practice, teams usually precompile into the
- binary all types that they
- expect it to use in the context of Any. However,
- for URLs which use the
+ In practice, teams usually precompile into the binary
+ all types that they
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
+ expect it to use in the context of Any. However, for
+ URLs which use the
- server that maps type URLs to message definitions
- as follows:
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+ server that maps type URLs to message definitions as
+ follows:
- * If no scheme is provided, `https` is assumed.
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results
- based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
+ * If no scheme is provided, `https` is assumed.
- Note: this functionality is not currently
- available in the official
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
- protobuf release, and it is not used for type URLs
- beginning with
+ Note: this functionality is not currently available in
+ the official
- type.googleapis.com.
+ protobuf release, and it is not used for type URLs
+ beginning with
+ type.googleapis.com.
- Schemes other than `http`, `https` (or the empty
- scheme) might be
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
- URL that describes the type of the serialized message.
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+ URL that describes the type of the serialized message.
- Protobuf library provides support to pack/unpack Any
- values in the form
- of utility functions or additional generated methods
- of the Any type.
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+ of utility functions or additional generated methods of the
+ Any type.
- Example 1: Pack and unpack a message in C++.
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
+ Example 1: Pack and unpack a message in C++.
- Example 2: Pack and unpack a message in Java.
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
+ Example 2: Pack and unpack a message in Java.
- Example 3: Pack and unpack a message in Python.
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
+ Example 3: Pack and unpack a message in Python.
- Example 4: Pack and unpack a message in Go
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
+ Example 4: Pack and unpack a message in Go
- The pack methods provided by protobuf library will by
- default use
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
- 'type.googleapis.com/full.type.name' as the type URL
- and the unpack
+ The pack methods provided by protobuf library will by
+ default use
- methods only use the fully qualified type name after
- the last '/'
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
- in the type URL, for example "foo.bar.com/x/y.z" will
- yield type
+ methods only use the fully qualified type name after the
+ last '/'
- name "y.z".
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+ name "y.z".
- JSON
+ JSON
- ====
- The JSON representation of an `Any` value uses the
- regular
+ The JSON representation of an `Any` value uses the regular
- representation of the deserialized, embedded message,
- with an
+ representation of the deserialized, embedded message, with
+ an
- additional field `@type` which contains the type URL.
- Example:
+ additional field `@type` which contains the type URL.
+ Example:
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
- If the embedded message type is well-known and has a
- custom JSON
+ If the embedded message type is well-known and has a custom
+ JSON
- representation, that representation will be embedded
- adding a field
+ representation, that representation will be embedded adding
+ a field
- `value` which holds the custom JSON in addition to the
- `@type`
+ `value` which holds the custom JSON in addition to the
+ `@type`
- field. Example (for message
- [google.protobuf.Duration][]):
+ field. Example (for message [google.protobuf.Duration][]):
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- description: >-
- messages are the arbitrary messages to be executed if
- the proposal passes.
- status:
- description: status defines the proposal status.
- type: string
- enum:
- - PROPOSAL_STATUS_UNSPECIFIED
- - PROPOSAL_STATUS_DEPOSIT_PERIOD
- - PROPOSAL_STATUS_VOTING_PERIOD
- - PROPOSAL_STATUS_PASSED
- - PROPOSAL_STATUS_REJECTED
- - PROPOSAL_STATUS_FAILED
- default: PROPOSAL_STATUS_UNSPECIFIED
- final_tally_result:
- description: >-
- final_tally_result is the final tally result of the
- proposal. When
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: body
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ signer:
+ type: string
+ title: signer address
+ params:
+ description: >-
+ params defines the 27-interchain-accounts/controller
+ parameters to update.
- querying a proposal via gRPC, this field is not
- populated until the
- proposal's voting period has ended.
- type: object
- properties:
- yes_count:
- type: string
- description: yes_count is the number of yes votes on a proposal.
- abstain_count:
- type: string
- description: >-
- abstain_count is the number of abstain votes on a
- proposal.
- no_count:
- type: string
- description: no_count is the number of no votes on a proposal.
- no_with_veto_count:
- type: string
- description: >-
- no_with_veto_count is the number of no with veto
- votes on a proposal.
- submit_time:
- type: string
- format: date-time
- description: submit_time is the time of proposal submission.
- deposit_end_time:
+ NOTE: All parameters must be supplied.
+ type: object
+ properties:
+ controller_enabled:
+ type: boolean
+ description: >-
+ controller_enabled enables or disables the controller
+ submodule.
+ title: MsgUpdateParams defines the payload for Msg/UpdateParams
+ tags:
+ - Msg
+ /ibc.applications.interchain_accounts.host.v1.Msg/UpdateParams:
+ post:
+ summary: UpdateParams defines a rpc handler for MsgUpdateParams.
+ operationId: IbcApplicationsInterchainAccountsHostV1Msg_UpdateParams
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ title: MsgUpdateParamsResponse defines the response for Msg/UpdateParams
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
type: string
- format: date-time
- description: deposit_end_time is the end time for deposition.
- total_deposit:
- type: array
- items:
- type: object
- properties:
- denom:
- type: string
- amount:
- type: string
- description: >-
- Coin defines a token with a denomination and an
- amount.
-
+ additionalProperties: {}
+ parameters:
+ - name: body
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ signer:
+ type: string
+ title: signer address
+ params:
+ description: >-
+ params defines the 27-interchain-accounts/host parameters to
+ update.
- NOTE: The amount field is an Int which implements the
- custom method
- signatures required by gogoproto.
- description: total_deposit is the total deposit on the proposal.
- voting_start_time:
- type: string
- format: date-time
- description: >-
- voting_start_time is the starting time to vote on a
- proposal.
- voting_end_time:
- type: string
- format: date-time
- description: voting_end_time is the end time of voting on a proposal.
- metadata:
- type: string
- description: >-
- metadata is any arbitrary metadata attached to the
- proposal.
- title:
- type: string
- description: 'Since: cosmos-sdk 0.47'
- title: title is the title of the proposal
- summary:
- type: string
- description: 'Since: cosmos-sdk 0.47'
- title: summary is a short summary of the proposal
- proposer:
- type: string
- description: 'Since: cosmos-sdk 0.47'
- title: Proposer is the address of the proposal sumbitter
- description: >-
- Proposal defines the core field members of a governance
- proposal.
- description: proposals defines all the requested governance proposals.
- pagination:
- description: pagination defines the pagination in the response.
+ NOTE: All parameters must be supplied.
type: object
properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
-
- was set, its value is undefined otherwise
- description: >-
- QueryProposalsResponse is the response type for the
- Query/Proposals RPC
-
- method.
+ host_enabled:
+ type: boolean
+ description: host_enabled enables or disables the host submodule.
+ allow_messages:
+ type: array
+ items:
+ type: string
+ description: >-
+ allow_messages defines a list of sdk message typeURLs
+ allowed to be executed on a host chain.
+ title: MsgUpdateParams defines the payload for Msg/UpdateParams
+ tags:
+ - Msg
+ /ibc.applications.transfer.v1.Msg/Transfer:
+ post:
+ summary: Transfer defines a rpc handler method for MsgTransfer.
+ operationId: IbcApplicationsTransferV1Msg_Transfer
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ sequence:
+ type: string
+ format: uint64
+ title: sequence number of the transfer packet sent
+ description: MsgTransferResponse defines the Msg/Transfer response type.
default:
description: An unexpected error response.
schema:
@@ -13629,8 +10967,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -13640,7 +10982,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -13668,10 +11010,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -13709,392 +11049,93 @@ paths:
"value": "1.212s"
}
parameters:
- - name: proposal_status
- description: |-
- proposal_status defines the status of the proposals.
-
- - PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status.
- - PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit
- period.
- - PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting
- period.
- - PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has
- passed.
- - PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has
- been rejected.
- - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has
- failed.
- in: query
- required: false
- type: string
- enum:
- - PROPOSAL_STATUS_UNSPECIFIED
- - PROPOSAL_STATUS_DEPOSIT_PERIOD
- - PROPOSAL_STATUS_VOTING_PERIOD
- - PROPOSAL_STATUS_PASSED
- - PROPOSAL_STATUS_REJECTED
- - PROPOSAL_STATUS_FAILED
- default: PROPOSAL_STATUS_UNSPECIFIED
- - name: voter
- description: voter defines the voter address for the proposals.
- in: query
- required: false
- type: string
- - name: depositor
- description: depositor defines the deposit addresses from the proposals.
- in: query
- required: false
- type: string
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
-
-
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /cosmos/gov/v1/proposals/{proposal_id}:
- get:
- summary: Proposal queries proposal details based on ProposalID.
- operationId: CosmosGovV1Proposal
- responses:
- '200':
- description: A successful response.
+ - name: body
+ in: body
+ required: true
schema:
type: object
properties:
- proposal:
- description: proposal is the requested governance proposal.
+ source_port:
+ type: string
+ title: the port on which the packet will be sent
+ source_channel:
+ type: string
+ title: the channel by which the packet will be sent
+ token:
+ title: the tokens to be transferred
type: object
properties:
- id:
+ denom:
type: string
- format: uint64
- description: id defines the unique id of the proposal.
- messages:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the
- type of the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's
- path must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be
- in a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the
- binary all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results
- based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available
- in the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty
- scheme) might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any
- values in the form
-
- of utility functions or additional generated methods of
- the Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and
- the unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will
- yield type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the
- regular
-
- representation of the deserialized, embedded message,
- with an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a
- custom JSON
-
- representation, that representation will be embedded
- adding a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message
- [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- description: >-
- messages are the arbitrary messages to be executed if the
- proposal passes.
- status:
- description: status defines the proposal status.
+ amount:
type: string
- enum:
- - PROPOSAL_STATUS_UNSPECIFIED
- - PROPOSAL_STATUS_DEPOSIT_PERIOD
- - PROPOSAL_STATUS_VOTING_PERIOD
- - PROPOSAL_STATUS_PASSED
- - PROPOSAL_STATUS_REJECTED
- - PROPOSAL_STATUS_FAILED
- default: PROPOSAL_STATUS_UNSPECIFIED
- final_tally_result:
- description: >-
- final_tally_result is the final tally result of the
- proposal. When
+ description: >-
+ Coin defines a token with a denomination and an amount.
- querying a proposal via gRPC, this field is not populated
- until the
- proposal's voting period has ended.
- type: object
- properties:
- yes_count:
- type: string
- description: yes_count is the number of yes votes on a proposal.
- abstain_count:
- type: string
- description: >-
- abstain_count is the number of abstain votes on a
- proposal.
- no_count:
- type: string
- description: no_count is the number of no votes on a proposal.
- no_with_veto_count:
- type: string
- description: >-
- no_with_veto_count is the number of no with veto votes
- on a proposal.
- submit_time:
+ NOTE: The amount field is an Int which implements the custom
+ method
+
+ signatures required by gogoproto.
+ sender:
+ type: string
+ title: the sender address
+ receiver:
+ type: string
+ title: the recipient address on the destination chain
+ timeout_height:
+ description: |-
+ Timeout height relative to the current block height.
+ The timeout is disabled when set to 0.
+ type: object
+ properties:
+ revision_number:
type: string
- format: date-time
- description: submit_time is the time of proposal submission.
- deposit_end_time:
+ format: uint64
+ title: the revision that the client is currently on
+ revision_height:
type: string
- format: date-time
- description: deposit_end_time is the end time for deposition.
- total_deposit:
- type: array
- items:
- type: object
- properties:
- denom:
- type: string
- amount:
- type: string
- description: >-
- Coin defines a token with a denomination and an amount.
+ format: uint64
+ title: the height within the given revision
+ title: >-
+ Height is a monotonically increasing data type
+ that can be compared against another Height for the purposes
+ of updating and
- NOTE: The amount field is an Int which implements the
- custom method
+ freezing clients
+ timeout_timestamp:
+ type: string
+ format: uint64
+ description: |-
+ Timeout timestamp in absolute nanoseconds since unix epoch.
+ The timeout is disabled when set to 0.
+ memo:
+ type: string
+ title: optional memo
+ title: >-
+ MsgTransfer defines a msg to transfer fungible tokens (i.e Coins)
+ between
- signatures required by gogoproto.
- description: total_deposit is the total deposit on the proposal.
- voting_start_time:
- type: string
- format: date-time
- description: >-
- voting_start_time is the starting time to vote on a
- proposal.
- voting_end_time:
- type: string
- format: date-time
- description: voting_end_time is the end time of voting on a proposal.
- metadata:
- type: string
- description: >-
- metadata is any arbitrary metadata attached to the
- proposal.
- title:
- type: string
- description: 'Since: cosmos-sdk 0.47'
- title: title is the title of the proposal
- summary:
- type: string
- description: 'Since: cosmos-sdk 0.47'
- title: summary is a short summary of the proposal
- proposer:
- type: string
- description: 'Since: cosmos-sdk 0.47'
- title: Proposer is the address of the proposal sumbitter
+ ICS20 enabled chains. See ICS Spec here:
+
+ https://github.com/cosmos/ibc/tree/master/spec/app/ics-020-fungible-token-transfer#data-structures
+ tags:
+ - Msg
+ /ibc.applications.transfer.v1.Msg/UpdateParams:
+ post:
+ summary: UpdateParams defines a rpc handler for MsgUpdateParams.
+ operationId: IbcApplicationsTransferV1Msg_UpdateParams
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
description: >-
- QueryProposalResponse is the response type for the Query/Proposal
- RPC method.
+ MsgUpdateParamsResponse defines the response structure for
+ executing a
+
+ MsgUpdateParams message.
default:
description: An unexpected error response.
schema:
@@ -14201,8 +11242,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -14212,7 +11257,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -14240,10 +11285,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -14281,85 +11324,68 @@ paths:
"value": "1.212s"
}
parameters:
- - name: proposal_id
- description: proposal_id defines the unique id of the proposal.
- in: path
+ - name: body
+ description: MsgUpdateParams is the Msg/UpdateParams request type.
+ in: body
required: true
- type: string
- format: uint64
- tags:
- - Query
- /cosmos/gov/v1/proposals/{proposal_id}/deposits:
- get:
- summary: Deposits queries all deposits of a single proposal.
- operationId: CosmosGovV1Deposits
- responses:
- '200':
- description: A successful response.
schema:
type: object
properties:
- deposits:
- type: array
- items:
- type: object
- properties:
- proposal_id:
- type: string
- format: uint64
- description: proposal_id defines the unique id of the proposal.
- depositor:
- type: string
- description: >-
- depositor defines the deposit addresses from the
- proposals.
- amount:
- type: array
- items:
- type: object
- properties:
- denom:
- type: string
- amount:
- type: string
- description: >-
- Coin defines a token with a denomination and an
- amount.
-
-
- NOTE: The amount field is an Int which implements the
- custom method
-
- signatures required by gogoproto.
- description: amount to be deposited by depositor.
- description: >-
- Deposit defines an amount deposited by an account address to
- an active
+ signer:
+ type: string
+ title: signer address
+ params:
+ description: |-
+ params defines the transfer parameters to update.
- proposal.
- description: deposits defines the requested deposits.
- pagination:
- description: pagination defines the pagination in the response.
+ NOTE: All parameters must be supplied.
type: object
properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
+ send_enabled:
+ type: boolean
+ description: >-
+ send_enabled enables or disables all cross-chain token
+ transfers from this
- was set, its value is undefined otherwise
+ chain.
+ receive_enabled:
+ type: boolean
+ description: >-
+ receive_enabled enables or disables all cross-chain token
+ transfers to this
+
+ chain.
+ description: MsgUpdateParams is the Msg/UpdateParams request type.
+ tags:
+ - Msg
+ /ibc.core.channel.v1.Msg/Acknowledgement:
+ post:
+ summary: Acknowledgement defines a rpc handler method for MsgAcknowledgement.
+ operationId: IbcCoreChannelV1Msg_Acknowledgement
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ result:
+ type: string
+ enum:
+ - RESPONSE_RESULT_TYPE_UNSPECIFIED
+ - RESPONSE_RESULT_TYPE_NOOP
+ - RESPONSE_RESULT_TYPE_SUCCESS
+ default: RESPONSE_RESULT_TYPE_UNSPECIFIED
+ description: >-
+ - RESPONSE_RESULT_TYPE_UNSPECIFIED: Default zero value
+ enumeration
+ - RESPONSE_RESULT_TYPE_NOOP: The message did not call the IBC application callbacks (because, for example, the packet had already been relayed)
+ - RESPONSE_RESULT_TYPE_SUCCESS: The message was executed successfully
+ title: >-
+ ResponseResultType defines the possible outcomes of the
+ execution of a message
description: >-
- QueryDepositsResponse is the response type for the Query/Deposits
- RPC method.
+ MsgAcknowledgementResponse defines the Msg/Acknowledgement
+ response type.
default:
description: An unexpected error response.
schema:
@@ -14466,8 +11492,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -14477,7 +11507,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -14505,10 +11535,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -14546,116 +11574,144 @@ paths:
"value": "1.212s"
}
parameters:
- - name: proposal_id
- description: proposal_id defines the unique id of the proposal.
- in: path
+ - name: body
+ in: body
required: true
- type: string
- format: uint64
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
+ schema:
+ type: object
+ properties:
+ packet:
+ type: object
+ properties:
+ sequence:
+ type: string
+ format: uint64
+ description: >-
+ number corresponds to the order of sends and receives,
+ where a Packet
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
+ with an earlier sequence number must be sent and received
+ before a Packet
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
+ with a later sequence number.
+ source_port:
+ type: string
+ description: identifies the port on the sending chain.
+ source_channel:
+ type: string
+ description: identifies the channel end on the sending chain.
+ destination_port:
+ type: string
+ description: identifies the port on the receiving chain.
+ destination_channel:
+ type: string
+ description: identifies the channel end on the receiving chain.
+ data:
+ type: string
+ format: byte
+ title: >-
+ actual opaque bytes transferred directly to the
+ application module
+ timeout_height:
+ title: block height after which the packet times out
+ type: object
+ properties:
+ revision_number:
+ type: string
+ format: uint64
+ title: the revision that the client is currently on
+ revision_height:
+ type: string
+ format: uint64
+ title: the height within the given revision
+ description: >-
+ Normally the RevisionHeight is incremented at each height
+ while keeping
- a count of the total number of items available for pagination in
- UIs.
+ RevisionNumber the same. However some consensus algorithms
+ may choose to
- count_total is only respected when offset is used. It is ignored
- when key
+ reset the height in certain conditions e.g. hard forks,
+ state-machine
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
+ breaking changes In these cases, the RevisionNumber is
+ incremented so that
+ height continues to be monitonically increasing even as
+ the RevisionHeight
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /cosmos/gov/v1/proposals/{proposal_id}/deposits/{depositor}:
- get:
- summary: >-
- Deposit queries single deposit information based proposalID,
- depositAddr.
- operationId: CosmosGovV1Deposit
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- deposit:
- description: deposit defines the requested deposit.
+ gets reset
+ timeout_timestamp:
+ type: string
+ format: uint64
+ title: >-
+ block timestamp (in nanoseconds) after which the packet
+ times out
+ title: >-
+ Packet defines a type that carries data across different
+ chains through IBC
+ acknowledgement:
+ type: string
+ format: byte
+ proof_acked:
+ type: string
+ format: byte
+ proof_height:
type: object
properties:
- proposal_id:
+ revision_number:
type: string
format: uint64
- description: proposal_id defines the unique id of the proposal.
- depositor:
+ title: the revision that the client is currently on
+ revision_height:
type: string
- description: >-
- depositor defines the deposit addresses from the
- proposals.
- amount:
- type: array
- items:
- type: object
- properties:
- denom:
- type: string
- amount:
- type: string
- description: >-
- Coin defines a token with a denomination and an amount.
+ format: uint64
+ title: the height within the given revision
+ description: >-
+ Normally the RevisionHeight is incremented at each height
+ while keeping
+
+ RevisionNumber the same. However some consensus algorithms may
+ choose to
+ reset the height in certain conditions e.g. hard forks,
+ state-machine
- NOTE: The amount field is an Int which implements the
- custom method
+ breaking changes In these cases, the RevisionNumber is
+ incremented so that
- signatures required by gogoproto.
- description: amount to be deposited by depositor.
+ height continues to be monitonically increasing even as the
+ RevisionHeight
+
+ gets reset
+ title: >-
+ Height is a monotonically increasing data type
+
+ that can be compared against another Height for the purposes
+ of updating and
+
+ freezing clients
+ signer:
+ type: string
+ title: MsgAcknowledgement receives incoming IBC acknowledgement
+ tags:
+ - Msg
+ /ibc.core.channel.v1.Msg/ChannelCloseConfirm:
+ post:
+ summary: |-
+ ChannelCloseConfirm defines a rpc handler method for
+ MsgChannelCloseConfirm.
+ operationId: IbcCoreChannelV1Msg_ChannelCloseConfirm
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
description: >-
- QueryDepositResponse is the response type for the Query/Deposit
- RPC method.
+ MsgChannelCloseConfirmResponse defines the Msg/ChannelCloseConfirm
+ response
+
+ type.
default:
description: An unexpected error response.
schema:
@@ -14762,8 +11818,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -14773,7 +11833,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -14801,10 +11861,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -14842,52 +11900,76 @@ paths:
"value": "1.212s"
}
parameters:
- - name: proposal_id
- description: proposal_id defines the unique id of the proposal.
- in: path
- required: true
- type: string
- format: uint64
- - name: depositor
- description: depositor defines the deposit addresses from the proposals.
- in: path
+ - name: body
+ description: |-
+ MsgChannelCloseConfirm defines a msg sent by a Relayer to Chain B
+ to acknowledge the change of channel state to CLOSED on Chain A.
+ in: body
required: true
- type: string
- tags:
- - Query
- /cosmos/gov/v1/proposals/{proposal_id}/tally:
- get:
- summary: TallyResult queries the tally of a proposal vote.
- operationId: CosmosGovV1TallyResult
- responses:
- '200':
- description: A successful response.
schema:
type: object
properties:
- tally:
- description: tally defines the requested tally.
+ port_id:
+ type: string
+ channel_id:
+ type: string
+ proof_init:
+ type: string
+ format: byte
+ proof_height:
type: object
properties:
- yes_count:
- type: string
- description: yes_count is the number of yes votes on a proposal.
- abstain_count:
- type: string
- description: >-
- abstain_count is the number of abstain votes on a
- proposal.
- no_count:
+ revision_number:
type: string
- description: no_count is the number of no votes on a proposal.
- no_with_veto_count:
+ format: uint64
+ title: the revision that the client is currently on
+ revision_height:
type: string
- description: >-
- no_with_veto_count is the number of no with veto votes on
- a proposal.
+ format: uint64
+ title: the height within the given revision
+ description: >-
+ Normally the RevisionHeight is incremented at each height
+ while keeping
+
+ RevisionNumber the same. However some consensus algorithms may
+ choose to
+
+ reset the height in certain conditions e.g. hard forks,
+ state-machine
+
+ breaking changes In these cases, the RevisionNumber is
+ incremented so that
+
+ height continues to be monitonically increasing even as the
+ RevisionHeight
+
+ gets reset
+ title: >-
+ Height is a monotonically increasing data type
+
+ that can be compared against another Height for the purposes
+ of updating and
+
+ freezing clients
+ signer:
+ type: string
+ description: |-
+ MsgChannelCloseConfirm defines a msg sent by a Relayer to Chain B
+ to acknowledge the change of channel state to CLOSED on Chain A.
+ tags:
+ - Msg
+ /ibc.core.channel.v1.Msg/ChannelCloseInit:
+ post:
+ summary: ChannelCloseInit defines a rpc handler method for MsgChannelCloseInit.
+ operationId: IbcCoreChannelV1Msg_ChannelCloseInit
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
description: >-
- QueryTallyResultResponse is the response type for the Query/Tally
- RPC method.
+ MsgChannelCloseInitResponse defines the Msg/ChannelCloseInit
+ response type.
default:
description: An unexpected error response.
schema:
@@ -14994,8 +12076,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -15005,7 +12091,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -15033,10 +12119,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -15074,95 +12158,38 @@ paths:
"value": "1.212s"
}
parameters:
- - name: proposal_id
- description: proposal_id defines the unique id of the proposal.
- in: path
+ - name: body
+ description: |-
+ MsgChannelCloseInit defines a msg sent by a Relayer to Chain A
+ to close a channel with Chain B.
+ in: body
required: true
- type: string
- format: uint64
+ schema:
+ type: object
+ properties:
+ port_id:
+ type: string
+ channel_id:
+ type: string
+ signer:
+ type: string
+ description: |-
+ MsgChannelCloseInit defines a msg sent by a Relayer to Chain A
+ to close a channel with Chain B.
tags:
- - Query
- /cosmos/gov/v1/proposals/{proposal_id}/votes:
- get:
- summary: Votes queries votes of a given proposal.
- operationId: CosmosGovV1Votes
+ - Msg
+ /ibc.core.channel.v1.Msg/ChannelOpenAck:
+ post:
+ summary: ChannelOpenAck defines a rpc handler method for MsgChannelOpenAck.
+ operationId: IbcCoreChannelV1Msg_ChannelOpenAck
responses:
'200':
description: A successful response.
schema:
type: object
- properties:
- votes:
- type: array
- items:
- type: object
- properties:
- proposal_id:
- type: string
- format: uint64
- description: proposal_id defines the unique id of the proposal.
- voter:
- type: string
- description: voter is the voter address of the proposal.
- options:
- type: array
- items:
- type: object
- properties:
- option:
- description: >-
- option defines the valid vote options, it must not
- contain duplicate vote options.
- type: string
- enum:
- - VOTE_OPTION_UNSPECIFIED
- - VOTE_OPTION_YES
- - VOTE_OPTION_ABSTAIN
- - VOTE_OPTION_NO
- - VOTE_OPTION_NO_WITH_VETO
- default: VOTE_OPTION_UNSPECIFIED
- weight:
- type: string
- description: >-
- weight is the vote weight associated with the vote
- option.
- description: >-
- WeightedVoteOption defines a unit of vote for vote
- split.
- description: options is the weighted vote options.
- metadata:
- type: string
- description: >-
- metadata is any arbitrary metadata to attached to the
- vote.
- description: >-
- Vote defines a vote on a governance proposal.
-
- A Vote consists of a proposal ID, the voter, and the vote
- option.
- description: votes defines the queried votes.
- pagination:
- description: pagination defines the pagination in the response.
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
-
- was set, its value is undefined otherwise
description: >-
- QueryVotesResponse is the response type for the Query/Votes RPC
- method.
+ MsgChannelOpenAckResponse defines the Msg/ChannelOpenAck response
+ type.
default:
description: An unexpected error response.
schema:
@@ -15269,8 +12296,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -15280,7 +12311,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -15308,10 +12339,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -15349,125 +12378,88 @@ paths:
"value": "1.212s"
}
parameters:
- - name: proposal_id
- description: proposal_id defines the unique id of the proposal.
- in: path
- required: true
- type: string
- format: uint64
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
+ - name: body
description: >-
- offset is a numeric offset that can be used when key is unavailable.
+ MsgChannelOpenAck defines a msg sent by a Relayer to Chain A to
+ acknowledge
- It is less efficient than using key. Only one of offset or key
- should
+ the change of channel state to TRYOPEN on Chain B.
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ port_id:
+ type: string
+ channel_id:
+ type: string
+ counterparty_channel_id:
+ type: string
+ counterparty_version:
+ type: string
+ proof_try:
+ type: string
+ format: byte
+ proof_height:
+ type: object
+ properties:
+ revision_number:
+ type: string
+ format: uint64
+ title: the revision that the client is currently on
+ revision_height:
+ type: string
+ format: uint64
+ title: the height within the given revision
+ description: >-
+ Normally the RevisionHeight is incremented at each height
+ while keeping
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
+ RevisionNumber the same. However some consensus algorithms may
+ choose to
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
+ reset the height in certain conditions e.g. hard forks,
+ state-machine
- a count of the total number of items available for pagination in
- UIs.
+ breaking changes In these cases, the RevisionNumber is
+ incremented so that
- count_total is only respected when offset is used. It is ignored
- when key
+ height continues to be monitonically increasing even as the
+ RevisionHeight
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
+ gets reset
+ title: >-
+ Height is a monotonically increasing data type
+ that can be compared against another Height for the purposes
+ of updating and
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
+ freezing clients
+ signer:
+ type: string
+ description: >-
+ MsgChannelOpenAck defines a msg sent by a Relayer to Chain A to
+ acknowledge
+
+ the change of channel state to TRYOPEN on Chain B.
tags:
- - Query
- /cosmos/gov/v1/proposals/{proposal_id}/votes/{voter}:
- get:
- summary: Vote queries voted information based on proposalID, voterAddr.
- operationId: CosmosGovV1Vote
+ - Msg
+ /ibc.core.channel.v1.Msg/ChannelOpenConfirm:
+ post:
+ summary: >-
+ ChannelOpenConfirm defines a rpc handler method for
+ MsgChannelOpenConfirm.
+ operationId: IbcCoreChannelV1Msg_ChannelOpenConfirm
responses:
'200':
description: A successful response.
schema:
type: object
- properties:
- vote:
- description: vote defines the queried vote.
- type: object
- properties:
- proposal_id:
- type: string
- format: uint64
- description: proposal_id defines the unique id of the proposal.
- voter:
- type: string
- description: voter is the voter address of the proposal.
- options:
- type: array
- items:
- type: object
- properties:
- option:
- description: >-
- option defines the valid vote options, it must not
- contain duplicate vote options.
- type: string
- enum:
- - VOTE_OPTION_UNSPECIFIED
- - VOTE_OPTION_YES
- - VOTE_OPTION_ABSTAIN
- - VOTE_OPTION_NO
- - VOTE_OPTION_NO_WITH_VETO
- default: VOTE_OPTION_UNSPECIFIED
- weight:
- type: string
- description: >-
- weight is the vote weight associated with the vote
- option.
- description: >-
- WeightedVoteOption defines a unit of vote for vote
- split.
- description: options is the weighted vote options.
- metadata:
- type: string
- description: >-
- metadata is any arbitrary metadata to attached to the
- vote.
description: >-
- QueryVoteResponse is the response type for the Query/Vote RPC
- method.
+ MsgChannelOpenConfirmResponse defines the Msg/ChannelOpenConfirm
+ response
+
+ type.
default:
description: An unexpected error response.
schema:
@@ -15574,8 +12566,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -15585,7 +12581,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -15613,10 +12609,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -15654,94 +12648,83 @@ paths:
"value": "1.212s"
}
parameters:
- - name: proposal_id
- description: proposal_id defines the unique id of the proposal.
- in: path
- required: true
- type: string
- format: uint64
- - name: voter
- description: voter defines the voter address for the proposals.
- in: path
+ - name: body
+ description: |-
+ MsgChannelOpenConfirm defines a msg sent by a Relayer to Chain B to
+ acknowledge the change of channel state to OPEN on Chain A.
+ in: body
required: true
- type: string
- tags:
- - Query
- /cosmos/gov/v1beta1/params/{params_type}:
- get:
- summary: Params queries all parameters of the gov module.
- operationId: CosmosGovV1Beta1Params
- responses:
- '200':
- description: A successful response.
schema:
type: object
properties:
- voting_params:
- description: voting_params defines the parameters related to voting.
+ port_id:
+ type: string
+ channel_id:
+ type: string
+ proof_ack:
+ type: string
+ format: byte
+ proof_height:
type: object
properties:
- voting_period:
+ revision_number:
type: string
- description: Duration of the voting period.
- deposit_params:
- description: deposit_params defines the parameters related to deposit.
- type: object
- properties:
- min_deposit:
- type: array
- items:
- type: object
- properties:
- denom:
- type: string
- amount:
- type: string
- description: >-
- Coin defines a token with a denomination and an amount.
+ format: uint64
+ title: the revision that the client is currently on
+ revision_height:
+ type: string
+ format: uint64
+ title: the height within the given revision
+ description: >-
+ Normally the RevisionHeight is incremented at each height
+ while keeping
+ RevisionNumber the same. However some consensus algorithms may
+ choose to
- NOTE: The amount field is an Int which implements the
- custom method
+ reset the height in certain conditions e.g. hard forks,
+ state-machine
- signatures required by gogoproto.
- description: Minimum deposit for a proposal to enter voting period.
- max_deposit_period:
- type: string
- description: >-
- Maximum period for Atom holders to deposit on a proposal.
- Initial value: 2
+ breaking changes In these cases, the RevisionNumber is
+ incremented so that
- months.
- tally_params:
- description: tally_params defines the parameters related to tally.
- type: object
- properties:
- quorum:
- type: string
- format: byte
- description: >-
- Minimum percentage of total stake needed to vote for a
- result to be
+ height continues to be monitonically increasing even as the
+ RevisionHeight
- considered valid.
- threshold:
- type: string
- format: byte
- description: >-
- Minimum proportion of Yes votes for proposal to pass.
- Default value: 0.5.
- veto_threshold:
- type: string
- format: byte
- description: >-
- Minimum value of Veto votes to Total votes ratio for
- proposal to be
+ gets reset
+ title: >-
+ Height is a monotonically increasing data type
+
+ that can be compared against another Height for the purposes
+ of updating and
- vetoed. Default value: 1/3.
+ freezing clients
+ signer:
+ type: string
description: >-
- QueryParamsResponse is the response type for the Query/Params RPC
- method.
+ MsgChannelOpenConfirm defines a msg sent by a Relayer to Chain B
+ to
+
+ acknowledge the change of channel state to OPEN on Chain A.
+ tags:
+ - Msg
+ /ibc.core.channel.v1.Msg/ChannelOpenInit:
+ post:
+ summary: ChannelOpenInit defines a rpc handler method for MsgChannelOpenInit.
+ operationId: IbcCoreChannelV1Msg_ChannelOpenInit
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ channel_id:
+ type: string
+ version:
+ type: string
+ description: >-
+ MsgChannelOpenInitResponse defines the Msg/ChannelOpenInit
+ response type.
default:
description: An unexpected error response.
schema:
@@ -15848,8 +12831,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -15859,7 +12846,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -15887,10 +12874,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -15928,202 +12913,118 @@ paths:
"value": "1.212s"
}
parameters:
- - name: params_type
+ - name: body
description: >-
- params_type defines which parameters to query for, can be one of
- "voting",
+ MsgChannelOpenInit defines an sdk.Msg to initialize a channel
+ handshake. It
- "tallying" or "deposit".
- in: path
+ is called by a relayer on Chain A.
+ in: body
required: true
- type: string
- tags:
- - Query
- /cosmos/gov/v1beta1/proposals:
- get:
- summary: Proposals queries all proposals based on given status.
- operationId: CosmosGovV1Beta1Proposals
- responses:
- '200':
- description: A successful response.
schema:
type: object
properties:
- proposals:
- type: array
- items:
- type: object
- properties:
- proposal_id:
- type: string
- format: uint64
- description: proposal_id defines the unique id of the proposal.
- content:
- description: content is the proposal's content.
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the
- type of the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's
- path must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be
- in a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the
- binary all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results
- based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available
- in the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty
- scheme) might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- status:
- description: status defines the proposal status.
- type: string
- enum:
- - PROPOSAL_STATUS_UNSPECIFIED
- - PROPOSAL_STATUS_DEPOSIT_PERIOD
- - PROPOSAL_STATUS_VOTING_PERIOD
- - PROPOSAL_STATUS_PASSED
- - PROPOSAL_STATUS_REJECTED
- - PROPOSAL_STATUS_FAILED
- default: PROPOSAL_STATUS_UNSPECIFIED
- final_tally_result:
- description: >-
- final_tally_result is the final tally result of the
- proposal. When
-
- querying a proposal via gRPC, this field is not
- populated until the
-
- proposal's voting period has ended.
- type: object
- properties:
- 'yes':
- type: string
- description: yes is the number of yes votes on a proposal.
- abstain:
- type: string
- description: >-
- abstain is the number of abstain votes on a
- proposal.
- 'no':
- type: string
- description: no is the number of no votes on a proposal.
- no_with_veto:
- type: string
- description: >-
- no_with_veto is the number of no with veto votes on
- a proposal.
- submit_time:
- type: string
- format: date-time
- description: submit_time is the time of proposal submission.
- deposit_end_time:
- type: string
- format: date-time
- description: deposit_end_time is the end time for deposition.
- total_deposit:
- type: array
- items:
- type: object
- properties:
- denom:
- type: string
- amount:
- type: string
- description: >-
- Coin defines a token with a denomination and an
- amount.
-
-
- NOTE: The amount field is an Int which implements the
- custom method
-
- signatures required by gogoproto.
- description: total_deposit is the total deposit on the proposal.
- voting_start_time:
- type: string
- format: date-time
- description: >-
- voting_start_time is the starting time to vote on a
- proposal.
- voting_end_time:
- type: string
- format: date-time
- description: voting_end_time is the end time of voting on a proposal.
- description: >-
- Proposal defines the core field members of a governance
- proposal.
- description: proposals defines all the requested governance proposals.
- pagination:
- description: pagination defines the pagination in the response.
+ port_id:
+ type: string
+ channel:
type: object
properties:
- next_key:
+ state:
+ title: current state of the channel end
type: string
- format: byte
+ enum:
+ - STATE_UNINITIALIZED_UNSPECIFIED
+ - STATE_INIT
+ - STATE_TRYOPEN
+ - STATE_OPEN
+ - STATE_CLOSED
+ default: STATE_UNINITIALIZED_UNSPECIFIED
+ description: >-
+ State defines if a channel is in one of the following
+ states:
+
+ CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED.
+
+ - STATE_UNINITIALIZED_UNSPECIFIED: Default State
+ - STATE_INIT: A channel has just started the opening handshake.
+ - STATE_TRYOPEN: A channel has acknowledged the handshake step on the counterparty chain.
+ - STATE_OPEN: A channel has completed the handshake. Open channels are
+ ready to send and receive packets.
+ - STATE_CLOSED: A channel has been closed and can no longer be used to send or receive
+ packets.
+ ordering:
+ title: whether the channel is ordered or unordered
+ type: string
+ enum:
+ - ORDER_NONE_UNSPECIFIED
+ - ORDER_UNORDERED
+ - ORDER_ORDERED
+ default: ORDER_NONE_UNSPECIFIED
description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
+ - ORDER_NONE_UNSPECIFIED: zero-value for channel ordering
+ - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in
+ which they were sent.
+ - ORDER_ORDERED: packets are delivered exactly in the order which they were sent
+ counterparty:
+ title: counterparty channel end
+ type: object
+ properties:
+ port_id:
+ type: string
+ description: >-
+ port on the counterparty chain which owns the other
+ end of the channel.
+ channel_id:
+ type: string
+ title: channel end on the counterparty chain
+ connection_hops:
+ type: array
+ items:
+ type: string
+ title: >-
+ list of connection identifiers, in order, along which
+ packets sent on
+
+ this channel will travel
+ version:
type: string
- format: uint64
title: >-
- total is total number of results available if
- PageRequest.count_total
+ opaque channel version, which is agreed upon during the
+ handshake
+ description: >-
+ Channel defines pipeline for exactly-once packet delivery
+ between specific
- was set, its value is undefined otherwise
+ modules on separate blockchains, which has at least one end
+ capable of
+
+ sending packets and one end capable of receiving packets.
+ signer:
+ type: string
description: >-
- QueryProposalsResponse is the response type for the
- Query/Proposals RPC
+ MsgChannelOpenInit defines an sdk.Msg to initialize a channel
+ handshake. It
- method.
+ is called by a relayer on Chain A.
+ tags:
+ - Msg
+ /ibc.core.channel.v1.Msg/ChannelOpenTry:
+ post:
+ summary: ChannelOpenTry defines a rpc handler method for MsgChannelOpenTry.
+ operationId: IbcCoreChannelV1Msg_ChannelOpenTry
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ version:
+ type: string
+ channel_id:
+ type: string
+ description: >-
+ MsgChannelOpenTryResponse defines the Msg/ChannelOpenTry response
+ type.
default:
description: An unexpected error response.
schema:
@@ -16230,8 +13131,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -16241,7 +13146,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -16269,10 +13174,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -16310,258 +13213,178 @@ paths:
"value": "1.212s"
}
parameters:
- - name: proposal_status
- description: |-
- proposal_status defines the status of the proposals.
-
- - PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status.
- - PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit
- period.
- - PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting
- period.
- - PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has
- passed.
- - PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has
- been rejected.
- - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has
- failed.
- in: query
- required: false
- type: string
- enum:
- - PROPOSAL_STATUS_UNSPECIFIED
- - PROPOSAL_STATUS_DEPOSIT_PERIOD
- - PROPOSAL_STATUS_VOTING_PERIOD
- - PROPOSAL_STATUS_PASSED
- - PROPOSAL_STATUS_REJECTED
- - PROPOSAL_STATUS_FAILED
- default: PROPOSAL_STATUS_UNSPECIFIED
- - name: voter
- description: voter defines the voter address for the proposals.
- in: query
- required: false
- type: string
- - name: depositor
- description: depositor defines the deposit addresses from the proposals.
- in: query
- required: false
- type: string
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
+ - name: body
description: >-
- reverse is set to true if results are to be returned in the
- descending order.
+ MsgChannelOpenInit defines a msg sent by a Relayer to try to open a
+ channel
+ on Chain B. The version field within the Channel field has been
+ deprecated. Its
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /cosmos/gov/v1beta1/proposals/{proposal_id}:
- get:
- summary: Proposal queries proposal details based on ProposalID.
- operationId: CosmosGovV1Beta1Proposal
- responses:
- '200':
- description: A successful response.
+ value will be ignored by core IBC.
+ in: body
+ required: true
schema:
type: object
properties:
- proposal:
+ port_id:
+ type: string
+ previous_channel_id:
+ type: string
+ description: >-
+ Deprecated: this field is unused. Crossing hello's are no
+ longer supported in core IBC.
+ channel:
type: object
properties:
- proposal_id:
- type: string
- format: uint64
- description: proposal_id defines the unique id of the proposal.
- content:
- description: content is the proposal's content.
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type
- of the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be
- in a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results
- based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty
- scheme) might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- status:
- description: status defines the proposal status.
+ state:
+ title: current state of the channel end
type: string
enum:
- - PROPOSAL_STATUS_UNSPECIFIED
- - PROPOSAL_STATUS_DEPOSIT_PERIOD
- - PROPOSAL_STATUS_VOTING_PERIOD
- - PROPOSAL_STATUS_PASSED
- - PROPOSAL_STATUS_REJECTED
- - PROPOSAL_STATUS_FAILED
- default: PROPOSAL_STATUS_UNSPECIFIED
- final_tally_result:
+ - STATE_UNINITIALIZED_UNSPECIFIED
+ - STATE_INIT
+ - STATE_TRYOPEN
+ - STATE_OPEN
+ - STATE_CLOSED
+ default: STATE_UNINITIALIZED_UNSPECIFIED
description: >-
- final_tally_result is the final tally result of the
- proposal. When
+ State defines if a channel is in one of the following
+ states:
- querying a proposal via gRPC, this field is not populated
- until the
+ CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED.
- proposal's voting period has ended.
+ - STATE_UNINITIALIZED_UNSPECIFIED: Default State
+ - STATE_INIT: A channel has just started the opening handshake.
+ - STATE_TRYOPEN: A channel has acknowledged the handshake step on the counterparty chain.
+ - STATE_OPEN: A channel has completed the handshake. Open channels are
+ ready to send and receive packets.
+ - STATE_CLOSED: A channel has been closed and can no longer be used to send or receive
+ packets.
+ ordering:
+ title: whether the channel is ordered or unordered
+ type: string
+ enum:
+ - ORDER_NONE_UNSPECIFIED
+ - ORDER_UNORDERED
+ - ORDER_ORDERED
+ default: ORDER_NONE_UNSPECIFIED
+ description: |-
+ - ORDER_NONE_UNSPECIFIED: zero-value for channel ordering
+ - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in
+ which they were sent.
+ - ORDER_ORDERED: packets are delivered exactly in the order which they were sent
+ counterparty:
+ title: counterparty channel end
type: object
properties:
- 'yes':
- type: string
- description: yes is the number of yes votes on a proposal.
- abstain:
- type: string
- description: abstain is the number of abstain votes on a proposal.
- 'no':
- type: string
- description: no is the number of no votes on a proposal.
- no_with_veto:
+ port_id:
type: string
description: >-
- no_with_veto is the number of no with veto votes on a
- proposal.
- submit_time:
- type: string
- format: date-time
- description: submit_time is the time of proposal submission.
- deposit_end_time:
- type: string
- format: date-time
- description: deposit_end_time is the end time for deposition.
- total_deposit:
+ port on the counterparty chain which owns the other
+ end of the channel.
+ channel_id:
+ type: string
+ title: channel end on the counterparty chain
+ connection_hops:
type: array
items:
- type: object
- properties:
- denom:
- type: string
- amount:
- type: string
- description: >-
- Coin defines a token with a denomination and an amount.
+ type: string
+ title: >-
+ list of connection identifiers, in order, along which
+ packets sent on
+ this channel will travel
+ version:
+ type: string
+ title: >-
+ opaque channel version, which is agreed upon during the
+ handshake
+ description: >-
+ Channel defines pipeline for exactly-once packet delivery
+ between specific
- NOTE: The amount field is an Int which implements the
- custom method
+ modules on separate blockchains, which has at least one end
+ capable of
- signatures required by gogoproto.
- description: total_deposit is the total deposit on the proposal.
- voting_start_time:
+ sending packets and one end capable of receiving packets.
+ counterparty_version:
+ type: string
+ proof_init:
+ type: string
+ format: byte
+ proof_height:
+ type: object
+ properties:
+ revision_number:
type: string
- format: date-time
- description: >-
- voting_start_time is the starting time to vote on a
- proposal.
- voting_end_time:
+ format: uint64
+ title: the revision that the client is currently on
+ revision_height:
type: string
- format: date-time
- description: voting_end_time is the end time of voting on a proposal.
+ format: uint64
+ title: the height within the given revision
description: >-
- Proposal defines the core field members of a governance
- proposal.
+ Normally the RevisionHeight is incremented at each height
+ while keeping
+
+ RevisionNumber the same. However some consensus algorithms may
+ choose to
+
+ reset the height in certain conditions e.g. hard forks,
+ state-machine
+
+ breaking changes In these cases, the RevisionNumber is
+ incremented so that
+
+ height continues to be monitonically increasing even as the
+ RevisionHeight
+
+ gets reset
+ title: >-
+ Height is a monotonically increasing data type
+
+ that can be compared against another Height for the purposes
+ of updating and
+
+ freezing clients
+ signer:
+ type: string
description: >-
- QueryProposalResponse is the response type for the Query/Proposal
- RPC method.
+ MsgChannelOpenInit defines a msg sent by a Relayer to try to open
+ a channel
+
+ on Chain B. The version field within the Channel field has been
+ deprecated. Its
+
+ value will be ignored by core IBC.
+ tags:
+ - Msg
+ /ibc.core.channel.v1.Msg/RecvPacket:
+ post:
+ summary: RecvPacket defines a rpc handler method for MsgRecvPacket.
+ operationId: IbcCoreChannelV1Msg_RecvPacket
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ result:
+ type: string
+ enum:
+ - RESPONSE_RESULT_TYPE_UNSPECIFIED
+ - RESPONSE_RESULT_TYPE_NOOP
+ - RESPONSE_RESULT_TYPE_SUCCESS
+ default: RESPONSE_RESULT_TYPE_UNSPECIFIED
+ description: >-
+ - RESPONSE_RESULT_TYPE_UNSPECIFIED: Default zero value
+ enumeration
+ - RESPONSE_RESULT_TYPE_NOOP: The message did not call the IBC application callbacks (because, for example, the packet had already been relayed)
+ - RESPONSE_RESULT_TYPE_SUCCESS: The message was executed successfully
+ title: >-
+ ResponseResultType defines the possible outcomes of the
+ execution of a message
+ description: MsgRecvPacketResponse defines the Msg/RecvPacket response type.
default:
description: An unexpected error response.
schema:
@@ -16668,8 +13491,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -16679,7 +13506,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -16707,10 +13534,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -16748,85 +13573,151 @@ paths:
"value": "1.212s"
}
parameters:
- - name: proposal_id
- description: proposal_id defines the unique id of the proposal.
- in: path
+ - name: body
+ in: body
required: true
- type: string
- format: uint64
- tags:
- - Query
- /cosmos/gov/v1beta1/proposals/{proposal_id}/deposits:
- get:
- summary: Deposits queries all deposits of a single proposal.
- operationId: CosmosGovV1Beta1Deposits
- responses:
- '200':
- description: A successful response.
schema:
type: object
properties:
- deposits:
- type: array
- items:
- type: object
- properties:
- proposal_id:
- type: string
- format: uint64
- description: proposal_id defines the unique id of the proposal.
- depositor:
- type: string
- description: >-
- depositor defines the deposit addresses from the
- proposals.
- amount:
- type: array
- items:
- type: object
- properties:
- denom:
- type: string
- amount:
- type: string
- description: >-
- Coin defines a token with a denomination and an
- amount.
-
-
- NOTE: The amount field is an Int which implements the
- custom method
-
- signatures required by gogoproto.
- description: amount to be deposited by depositor.
- description: >-
- Deposit defines an amount deposited by an account address to
- an active
-
- proposal.
- description: deposits defines the requested deposits.
- pagination:
- description: pagination defines the pagination in the response.
+ packet:
type: object
properties:
- next_key:
+ sequence:
+ type: string
+ format: uint64
+ description: >-
+ number corresponds to the order of sends and receives,
+ where a Packet
+
+ with an earlier sequence number must be sent and received
+ before a Packet
+
+ with a later sequence number.
+ source_port:
+ type: string
+ description: identifies the port on the sending chain.
+ source_channel:
+ type: string
+ description: identifies the channel end on the sending chain.
+ destination_port:
+ type: string
+ description: identifies the port on the receiving chain.
+ destination_channel:
+ type: string
+ description: identifies the channel end on the receiving chain.
+ data:
type: string
format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
+ title: >-
+ actual opaque bytes transferred directly to the
+ application module
+ timeout_height:
+ title: block height after which the packet times out
+ type: object
+ properties:
+ revision_number:
+ type: string
+ format: uint64
+ title: the revision that the client is currently on
+ revision_height:
+ type: string
+ format: uint64
+ title: the height within the given revision
+ description: >-
+ Normally the RevisionHeight is incremented at each height
+ while keeping
+
+ RevisionNumber the same. However some consensus algorithms
+ may choose to
+
+ reset the height in certain conditions e.g. hard forks,
+ state-machine
+
+ breaking changes In these cases, the RevisionNumber is
+ incremented so that
+
+ height continues to be monitonically increasing even as
+ the RevisionHeight
+
+ gets reset
+ timeout_timestamp:
type: string
format: uint64
title: >-
- total is total number of results available if
- PageRequest.count_total
-
- was set, its value is undefined otherwise
- description: >-
- QueryDepositsResponse is the response type for the Query/Deposits
- RPC method.
+ block timestamp (in nanoseconds) after which the packet
+ times out
+ title: >-
+ Packet defines a type that carries data across different
+ chains through IBC
+ proof_commitment:
+ type: string
+ format: byte
+ proof_height:
+ type: object
+ properties:
+ revision_number:
+ type: string
+ format: uint64
+ title: the revision that the client is currently on
+ revision_height:
+ type: string
+ format: uint64
+ title: the height within the given revision
+ description: >-
+ Normally the RevisionHeight is incremented at each height
+ while keeping
+
+ RevisionNumber the same. However some consensus algorithms may
+ choose to
+
+ reset the height in certain conditions e.g. hard forks,
+ state-machine
+
+ breaking changes In these cases, the RevisionNumber is
+ incremented so that
+
+ height continues to be monitonically increasing even as the
+ RevisionHeight
+
+ gets reset
+ title: >-
+ Height is a monotonically increasing data type
+
+ that can be compared against another Height for the purposes
+ of updating and
+
+ freezing clients
+ signer:
+ type: string
+ title: MsgRecvPacket receives incoming IBC packet
+ tags:
+ - Msg
+ /ibc.core.channel.v1.Msg/Timeout:
+ post:
+ summary: Timeout defines a rpc handler method for MsgTimeout.
+ operationId: IbcCoreChannelV1Msg_Timeout
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ result:
+ type: string
+ enum:
+ - RESPONSE_RESULT_TYPE_UNSPECIFIED
+ - RESPONSE_RESULT_TYPE_NOOP
+ - RESPONSE_RESULT_TYPE_SUCCESS
+ default: RESPONSE_RESULT_TYPE_UNSPECIFIED
+ description: >-
+ - RESPONSE_RESULT_TYPE_UNSPECIFIED: Default zero value
+ enumeration
+ - RESPONSE_RESULT_TYPE_NOOP: The message did not call the IBC application callbacks (because, for example, the packet had already been relayed)
+ - RESPONSE_RESULT_TYPE_SUCCESS: The message was executed successfully
+ title: >-
+ ResponseResultType defines the possible outcomes of the
+ execution of a message
+ description: MsgTimeoutResponse defines the Msg/Timeout response type.
default:
description: An unexpected error response.
schema:
@@ -16933,8 +13824,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -16944,7 +13839,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -16972,10 +13867,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -17013,116 +13906,156 @@ paths:
"value": "1.212s"
}
parameters:
- - name: proposal_id
- description: proposal_id defines the unique id of the proposal.
- in: path
+ - name: body
+ in: body
required: true
- type: string
- format: uint64
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
+ schema:
+ type: object
+ properties:
+ packet:
+ type: object
+ properties:
+ sequence:
+ type: string
+ format: uint64
+ description: >-
+ number corresponds to the order of sends and receives,
+ where a Packet
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
+ with an earlier sequence number must be sent and received
+ before a Packet
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
+ with a later sequence number.
+ source_port:
+ type: string
+ description: identifies the port on the sending chain.
+ source_channel:
+ type: string
+ description: identifies the channel end on the sending chain.
+ destination_port:
+ type: string
+ description: identifies the port on the receiving chain.
+ destination_channel:
+ type: string
+ description: identifies the channel end on the receiving chain.
+ data:
+ type: string
+ format: byte
+ title: >-
+ actual opaque bytes transferred directly to the
+ application module
+ timeout_height:
+ title: block height after which the packet times out
+ type: object
+ properties:
+ revision_number:
+ type: string
+ format: uint64
+ title: the revision that the client is currently on
+ revision_height:
+ type: string
+ format: uint64
+ title: the height within the given revision
+ description: >-
+ Normally the RevisionHeight is incremented at each height
+ while keeping
- a count of the total number of items available for pagination in
- UIs.
+ RevisionNumber the same. However some consensus algorithms
+ may choose to
- count_total is only respected when offset is used. It is ignored
- when key
+ reset the height in certain conditions e.g. hard forks,
+ state-machine
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
+ breaking changes In these cases, the RevisionNumber is
+ incremented so that
+ height continues to be monitonically increasing even as
+ the RevisionHeight
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /cosmos/gov/v1beta1/proposals/{proposal_id}/deposits/{depositor}:
- get:
- summary: >-
- Deposit queries single deposit information based proposalID,
- depositAddr.
- operationId: CosmosGovV1Beta1Deposit
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- deposit:
- description: deposit defines the requested deposit.
+ gets reset
+ timeout_timestamp:
+ type: string
+ format: uint64
+ title: >-
+ block timestamp (in nanoseconds) after which the packet
+ times out
+ title: >-
+ Packet defines a type that carries data across different
+ chains through IBC
+ proof_unreceived:
+ type: string
+ format: byte
+ proof_height:
type: object
properties:
- proposal_id:
+ revision_number:
type: string
format: uint64
- description: proposal_id defines the unique id of the proposal.
- depositor:
+ title: the revision that the client is currently on
+ revision_height:
type: string
- description: >-
- depositor defines the deposit addresses from the
- proposals.
- amount:
- type: array
- items:
- type: object
- properties:
- denom:
- type: string
- amount:
- type: string
- description: >-
- Coin defines a token with a denomination and an amount.
+ format: uint64
+ title: the height within the given revision
+ description: >-
+ Normally the RevisionHeight is incremented at each height
+ while keeping
+ RevisionNumber the same. However some consensus algorithms may
+ choose to
- NOTE: The amount field is an Int which implements the
- custom method
+ reset the height in certain conditions e.g. hard forks,
+ state-machine
- signatures required by gogoproto.
- description: amount to be deposited by depositor.
+ breaking changes In these cases, the RevisionNumber is
+ incremented so that
+
+ height continues to be monitonically increasing even as the
+ RevisionHeight
+
+ gets reset
+ title: >-
+ Height is a monotonically increasing data type
+
+ that can be compared against another Height for the purposes
+ of updating and
+
+ freezing clients
+ next_sequence_recv:
+ type: string
+ format: uint64
+ signer:
+ type: string
+ title: MsgTimeout receives timed-out packet
+ tags:
+ - Msg
+ /ibc.core.channel.v1.Msg/TimeoutOnClose:
+ post:
+ summary: TimeoutOnClose defines a rpc handler method for MsgTimeoutOnClose.
+ operationId: IbcCoreChannelV1Msg_TimeoutOnClose
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ result:
+ type: string
+ enum:
+ - RESPONSE_RESULT_TYPE_UNSPECIFIED
+ - RESPONSE_RESULT_TYPE_NOOP
+ - RESPONSE_RESULT_TYPE_SUCCESS
+ default: RESPONSE_RESULT_TYPE_UNSPECIFIED
+ description: >-
+ - RESPONSE_RESULT_TYPE_UNSPECIFIED: Default zero value
+ enumeration
+ - RESPONSE_RESULT_TYPE_NOOP: The message did not call the IBC application callbacks (because, for example, the packet had already been relayed)
+ - RESPONSE_RESULT_TYPE_SUCCESS: The message was executed successfully
+ title: >-
+ ResponseResultType defines the possible outcomes of the
+ execution of a message
description: >-
- QueryDepositResponse is the response type for the Query/Deposit
- RPC method.
+ MsgTimeoutOnCloseResponse defines the Msg/TimeoutOnClose response
+ type.
default:
description: An unexpected error response.
schema:
@@ -17229,8 +14162,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -17240,7 +14177,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -17268,10 +14205,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -17309,50 +14244,148 @@ paths:
"value": "1.212s"
}
parameters:
- - name: proposal_id
- description: proposal_id defines the unique id of the proposal.
- in: path
- required: true
- type: string
- format: uint64
- - name: depositor
- description: depositor defines the deposit addresses from the proposals.
- in: path
+ - name: body
+ description: >-
+ MsgTimeoutOnClose timed-out packet upon counterparty channel
+ closure.
+ in: body
required: true
- type: string
- tags:
- - Query
- /cosmos/gov/v1beta1/proposals/{proposal_id}/tally:
- get:
- summary: TallyResult queries the tally of a proposal vote.
- operationId: CosmosGovV1Beta1TallyResult
- responses:
- '200':
- description: A successful response.
schema:
type: object
properties:
- tally:
- description: tally defines the requested tally.
+ packet:
type: object
properties:
- 'yes':
+ sequence:
type: string
- description: yes is the number of yes votes on a proposal.
- abstain:
+ format: uint64
+ description: >-
+ number corresponds to the order of sends and receives,
+ where a Packet
+
+ with an earlier sequence number must be sent and received
+ before a Packet
+
+ with a later sequence number.
+ source_port:
type: string
- description: abstain is the number of abstain votes on a proposal.
- 'no':
+ description: identifies the port on the sending chain.
+ source_channel:
type: string
- description: no is the number of no votes on a proposal.
- no_with_veto:
+ description: identifies the channel end on the sending chain.
+ destination_port:
type: string
+ description: identifies the port on the receiving chain.
+ destination_channel:
+ type: string
+ description: identifies the channel end on the receiving chain.
+ data:
+ type: string
+ format: byte
+ title: >-
+ actual opaque bytes transferred directly to the
+ application module
+ timeout_height:
+ title: block height after which the packet times out
+ type: object
+ properties:
+ revision_number:
+ type: string
+ format: uint64
+ title: the revision that the client is currently on
+ revision_height:
+ type: string
+ format: uint64
+ title: the height within the given revision
description: >-
- no_with_veto is the number of no with veto votes on a
- proposal.
+ Normally the RevisionHeight is incremented at each height
+ while keeping
+
+ RevisionNumber the same. However some consensus algorithms
+ may choose to
+
+ reset the height in certain conditions e.g. hard forks,
+ state-machine
+
+ breaking changes In these cases, the RevisionNumber is
+ incremented so that
+
+ height continues to be monitonically increasing even as
+ the RevisionHeight
+
+ gets reset
+ timeout_timestamp:
+ type: string
+ format: uint64
+ title: >-
+ block timestamp (in nanoseconds) after which the packet
+ times out
+ title: >-
+ Packet defines a type that carries data across different
+ chains through IBC
+ proof_unreceived:
+ type: string
+ format: byte
+ proof_close:
+ type: string
+ format: byte
+ proof_height:
+ type: object
+ properties:
+ revision_number:
+ type: string
+ format: uint64
+ title: the revision that the client is currently on
+ revision_height:
+ type: string
+ format: uint64
+ title: the height within the given revision
+ description: >-
+ Normally the RevisionHeight is incremented at each height
+ while keeping
+
+ RevisionNumber the same. However some consensus algorithms may
+ choose to
+
+ reset the height in certain conditions e.g. hard forks,
+ state-machine
+
+ breaking changes In these cases, the RevisionNumber is
+ incremented so that
+
+ height continues to be monitonically increasing even as the
+ RevisionHeight
+
+ gets reset
+ title: >-
+ Height is a monotonically increasing data type
+
+ that can be compared against another Height for the purposes
+ of updating and
+
+ freezing clients
+ next_sequence_recv:
+ type: string
+ format: uint64
+ signer:
+ type: string
description: >-
- QueryTallyResultResponse is the response type for the Query/Tally
- RPC method.
+ MsgTimeoutOnClose timed-out packet upon counterparty channel
+ closure.
+ tags:
+ - Msg
+ /ibc.core.client.v1.Msg/CreateClient:
+ post:
+ summary: CreateClient defines a rpc handler method for MsgCreateClient.
+ operationId: IbcCoreClientV1Msg_CreateClient
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ description: >-
+ MsgCreateClientResponse defines the Msg/CreateClient response
+ type.
default:
description: An unexpected error response.
schema:
@@ -17459,8 +14492,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -17470,7 +14507,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -17498,10 +14535,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -17539,438 +14574,270 @@ paths:
"value": "1.212s"
}
parameters:
- - name: proposal_id
- description: proposal_id defines the unique id of the proposal.
- in: path
+ - name: body
+ in: body
required: true
- type: string
- format: uint64
- tags:
- - Query
- /cosmos/gov/v1beta1/proposals/{proposal_id}/votes:
- get:
- summary: Votes queries votes of a given proposal.
- operationId: CosmosGovV1Beta1Votes
- responses:
- '200':
- description: A successful response.
schema:
type: object
properties:
- votes:
- type: array
- items:
- type: object
- properties:
- proposal_id:
- type: string
- format: uint64
- description: proposal_id defines the unique id of the proposal.
- voter:
- type: string
- description: voter is the voter address of the proposal.
- option:
- description: >-
- Deprecated: Prefer to use `options` instead. This field
- is set in queries
+ client_state:
+ title: light client state
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
- if and only if `len(options) == 1` and that option has
- weight 1. In all
+ protocol buffer message. This string must contain at least
- other cases, this field will default to
- VOTE_OPTION_UNSPECIFIED.
- type: string
- enum:
- - VOTE_OPTION_UNSPECIFIED
- - VOTE_OPTION_YES
- - VOTE_OPTION_ABSTAIN
- - VOTE_OPTION_NO
- - VOTE_OPTION_NO_WITH_VETO
- default: VOTE_OPTION_UNSPECIFIED
- options:
- type: array
- items:
- type: object
- properties:
- option:
- description: >-
- option defines the valid vote options, it must not
- contain duplicate vote options.
- type: string
- enum:
- - VOTE_OPTION_UNSPECIFIED
- - VOTE_OPTION_YES
- - VOTE_OPTION_ABSTAIN
- - VOTE_OPTION_NO
- - VOTE_OPTION_NO_WITH_VETO
- default: VOTE_OPTION_UNSPECIFIED
- weight:
- type: string
- description: >-
- weight is the vote weight associated with the vote
- option.
- description: >-
- WeightedVoteOption defines a unit of vote for vote
- split.
+ one "/" character. The last segment of the URL's path must
+ represent
+ the fully qualified name of the type (as in
- Since: cosmos-sdk 0.43
- description: |-
- options is the weighted vote options.
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
- Since: cosmos-sdk 0.43
- description: >-
- Vote defines a vote on a governance proposal.
+ (e.g., leading "." is not accepted).
- A Vote consists of a proposal ID, the voter, and the vote
- option.
- description: votes defines the queried votes.
- pagination:
- description: pagination defines the pagination in the response.
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
- was set, its value is undefined otherwise
- description: >-
- QueryVotesResponse is the response type for the Query/Votes RPC
- method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
+ In practice, teams usually precompile into the binary all
+ types that they
- protocol buffer message. This string must contain at
- least
+ expect it to use in the context of Any. However, for URLs
+ which use the
- one "/" character. The last segment of the URL's path
- must represent
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
- the fully qualified name of the type (as in
+ server that maps type URLs to message definitions as
+ follows:
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
- (e.g., leading "." is not accepted).
+ * If no scheme is provided, `https` is assumed.
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
- In practice, teams usually precompile into the binary
- all types that they
+ Note: this functionality is not currently available in the
+ official
- expect it to use in the context of Any. However, for
- URLs which use the
+ protobuf release, and it is not used for type URLs
+ beginning with
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
+ type.googleapis.com.
- server that maps type URLs to message definitions as
- follows:
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
- * If no scheme is provided, `https` is assumed.
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message
+ along with a
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
+ URL that describes the type of the serialized message.
- Note: this functionality is not currently available in
- the official
- protobuf release, and it is not used for type URLs
- beginning with
+ Protobuf library provides support to pack/unpack Any values in
+ the form
- type.googleapis.com.
+ of utility functions or additional generated methods of the
+ Any type.
- Schemes other than `http`, `https` (or the empty scheme)
- might be
+ Example 1: Pack and unpack a message in C++.
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
- URL that describes the type of the serialized message.
+ Example 2: Pack and unpack a message in Java.
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Protobuf library provides support to pack/unpack Any values
- in the form
+ Example 3: Pack and unpack a message in Python.
- of utility functions or additional generated methods of the
- Any type.
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+ Example 4: Pack and unpack a message in Go
- Example 1: Pack and unpack a message in C++.
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
+ The pack methods provided by protobuf library will by default
+ use
- Example 2: Pack and unpack a message in Java.
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
+ methods only use the fully qualified type name after the last
+ '/'
- Example 3: Pack and unpack a message in Python.
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
+ name "y.z".
- Example 4: Pack and unpack a message in Go
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
+ JSON
- The pack methods provided by protobuf library will by
- default use
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
+ The JSON representation of an `Any` value uses the regular
- methods only use the fully qualified type name after the
- last '/'
+ representation of the deserialized, embedded message, with an
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
+ additional field `@type` which contains the type URL. Example:
- name "y.z".
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+ If the embedded message type is well-known and has a custom
+ JSON
- JSON
+ representation, that representation will be embedded adding a
+ field
- ====
+ `value` which holds the custom JSON in addition to the `@type`
- The JSON representation of an `Any` value uses the regular
+ field. Example (for message [google.protobuf.Duration][]):
- representation of the deserialized, embedded message, with
- an
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ consensus_state:
+ description: >-
+ consensus state associated with the client that corresponds to
+ a given
- additional field `@type` which contains the type URL.
- Example:
+ height.
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
+ protocol buffer message. This string must contain at least
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
+ one "/" character. The last segment of the URL's path must
+ represent
- If the embedded message type is well-known and has a custom
- JSON
+ the fully qualified name of the type (as in
- representation, that representation will be embedded adding
- a field
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
- `value` which holds the custom JSON in addition to the
- `@type`
+ (e.g., leading "." is not accepted).
- field. Example (for message [google.protobuf.Duration][]):
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: proposal_id
- description: proposal_id defines the unique id of the proposal.
- in: path
- required: true
- type: string
- format: uint64
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
+ In practice, teams usually precompile into the binary all
+ types that they
- It is less efficient than using key. Only one of offset or key
- should
+ expect it to use in the context of Any. However, for URLs
+ which use the
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
+ server that maps type URLs to message definitions as
+ follows:
- a count of the total number of items available for pagination in
- UIs.
- count_total is only respected when offset is used. It is ignored
- when key
+ * If no scheme is provided, `https` is assumed.
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+ Note: this functionality is not currently available in the
+ official
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ signer:
+ type: string
+ title: signer address
+ title: MsgCreateClient defines a message to create an IBC client
tags:
- - Query
- /cosmos/gov/v1beta1/proposals/{proposal_id}/votes/{voter}:
- get:
- summary: Vote queries voted information based on proposalID, voterAddr.
- operationId: CosmosGovV1Beta1Vote
+ - Msg
+ /ibc.core.client.v1.Msg/IBCSoftwareUpgrade:
+ post:
+ summary: >-
+ IBCSoftwareUpgrade defines a rpc handler method for
+ MsgIBCSoftwareUpgrade.
+ operationId: IbcCoreClientV1Msg_IBCSoftwareUpgrade
responses:
'200':
description: A successful response.
schema:
type: object
- properties:
- vote:
- description: vote defines the queried vote.
- type: object
- properties:
- proposal_id:
- type: string
- format: uint64
- description: proposal_id defines the unique id of the proposal.
- voter:
- type: string
- description: voter is the voter address of the proposal.
- option:
- description: >-
- Deprecated: Prefer to use `options` instead. This field is
- set in queries
-
- if and only if `len(options) == 1` and that option has
- weight 1. In all
-
- other cases, this field will default to
- VOTE_OPTION_UNSPECIFIED.
- type: string
- enum:
- - VOTE_OPTION_UNSPECIFIED
- - VOTE_OPTION_YES
- - VOTE_OPTION_ABSTAIN
- - VOTE_OPTION_NO
- - VOTE_OPTION_NO_WITH_VETO
- default: VOTE_OPTION_UNSPECIFIED
- options:
- type: array
- items:
- type: object
- properties:
- option:
- description: >-
- option defines the valid vote options, it must not
- contain duplicate vote options.
- type: string
- enum:
- - VOTE_OPTION_UNSPECIFIED
- - VOTE_OPTION_YES
- - VOTE_OPTION_ABSTAIN
- - VOTE_OPTION_NO
- - VOTE_OPTION_NO_WITH_VETO
- default: VOTE_OPTION_UNSPECIFIED
- weight:
- type: string
- description: >-
- weight is the vote weight associated with the vote
- option.
- description: >-
- WeightedVoteOption defines a unit of vote for vote
- split.
-
-
- Since: cosmos-sdk 0.43
- description: |-
- options is the weighted vote options.
-
- Since: cosmos-sdk 0.43
description: >-
- QueryVoteResponse is the response type for the Query/Vote RPC
- method.
+ MsgIBCSoftwareUpgradeResponse defines the Msg/IBCSoftwareUpgrade
+ response type.
default:
description: An unexpected error response.
schema:
@@ -18077,8 +14944,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -18088,7 +14959,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -18116,10 +14987,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -18157,98 +15026,263 @@ paths:
"value": "1.212s"
}
parameters:
- - name: proposal_id
- description: proposal_id defines the unique id of the proposal.
- in: path
- required: true
- type: string
- format: uint64
- - name: voter
- description: voter defines the voter address for the proposals.
- in: path
+ - name: body
+ in: body
required: true
- type: string
- tags:
- - Query
- /cosmos/group/v1/group_info/{group_id}:
- get:
- summary: GroupInfo queries group info based on group id.
- operationId: CosmosGroupV1GroupInfo
- responses:
- '200':
- description: A successful response.
schema:
type: object
properties:
- info:
- description: info is the GroupInfo of the group.
+ plan:
type: object
properties:
- id:
- type: string
- format: uint64
- description: id is the unique ID of the group.
- admin:
- type: string
- description: admin is the account address of the group's admin.
- metadata:
+ name:
type: string
description: >-
- metadata is any arbitrary metadata to attached to the
- group.
- version:
- type: string
- format: uint64
- title: >-
- version is used to track changes to a group's membership
- structure that
+ Sets the name for the upgrade. This name will be used by
+ the upgraded
- would break existing proposals. Whenever any members
- weight is changed,
+ version of the software to apply any special "on-upgrade"
+ commands during
- or any member is added or removed this version is
- incremented and will
+ the first BeginBlock method after the upgrade is applied.
+ It is also used
- cause proposals based on older versions of this group to
- fail
- total_weight:
- type: string
- description: total_weight is the sum of the group members' weights.
- created_at:
+ to detect whether a software version can handle a given
+ upgrade. If no
+
+ upgrade handler with this name has been set in the
+ software, it will be
+
+ assumed that the software is out-of-date when the upgrade
+ Time or Height is
+
+ reached and the software will exit.
+ time:
type: string
format: date-time
description: >-
- created_at is a timestamp specifying when a group was
- created.
- description: QueryGroupInfoResponse is the Query/GroupInfo response type.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
+ Deprecated: Time based upgrades have been deprecated. Time
+ based upgrade logic
- the fully qualified name of the type (as in
+ has been removed from the SDK.
+
+ If this field is not empty, an error will be thrown.
+ height:
+ type: string
+ format: int64
+ description: The height at which the upgrade must be performed.
+ info:
+ type: string
+ title: >-
+ Any application specific upgrade info to be included
+ on-chain
+
+ such as a git commit that validators could automatically
+ upgrade to
+ upgraded_client_state:
+ description: >-
+ Deprecated: UpgradedClientState field has been deprecated.
+ IBC upgrade logic has been
+
+ moved to the IBC module in the sub module 02-client.
+
+ If this field is not empty, an error will be thrown.
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type
+ of the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be
+ in a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can
+ optionally set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results
+ based on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty
+ scheme) might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ Plan specifies information about a planned upgrade and when it
+ should occur.
+ upgraded_client_state:
+ description: >-
+ An UpgradedClientState must be provided to perform an IBC
+ breaking upgrade.
+
+ This will make the chain commit to the correct upgraded (self)
+ client state
+
+ before the upgrade occurs, so that connecting chains can
+ verify that the
+
+ new upgraded client is valid by verifying a proof on the
+ previous version
+
+ of the chain. This will allow IBC connections to persist
+ smoothly across
+
+ planned chain upgrades. Correspondingly, the
+ UpgradedClientState field has been
+
+ deprecated in the Cosmos SDK to allow for this logic to exist
+ solely in
+
+ the 02-client module.
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at least
+
+ one "/" character. The last segment of the URL's path must
+ represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary all
+ types that they
+
+ expect it to use in the context of Any. However, for URLs
+ which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in the
+ official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ signer:
+ type: string
+ title: signer address
+ title: >-
+ MsgIBCSoftwareUpgrade defines the message used to schedule an
+ upgrade of an IBC client using a v1 governance proposal
+ tags:
+ - Msg
+ /ibc.core.client.v1.Msg/RecoverClient:
+ post:
+ summary: RecoverClient defines a rpc handler method for MsgRecoverClient.
+ operationId: IbcCoreClientV1Msg_RecoverClient
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ description: >-
+ MsgRecoverClientResponse defines the Msg/RecoverClient response
+ type.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
`path/google.protobuf.Duration`). The name should be in
a canonical form
@@ -18327,8 +15361,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -18338,7 +15376,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -18366,10 +15404,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -18407,82 +15443,51 @@ paths:
"value": "1.212s"
}
parameters:
- - name: group_id
- description: group_id is the unique ID of the group.
- in: path
+ - name: body
+ description: >-
+ MsgRecoverClient defines the message used to recover a frozen or
+ expired client.
+ in: body
required: true
- type: string
- format: uint64
+ schema:
+ type: object
+ properties:
+ subject_client_id:
+ type: string
+ title: >-
+ the client identifier for the client to be updated if the
+ proposal passes
+ substitute_client_id:
+ type: string
+ title: >-
+ the substitute client identifier for the client which will
+ replace the subject
+
+ client
+ signer:
+ type: string
+ title: signer address
+ description: >-
+ MsgRecoverClient defines the message used to recover a frozen or
+ expired client.
tags:
- - Query
- /cosmos/group/v1/group_members/{group_id}:
- get:
- summary: GroupMembers queries members of a group by group id.
- operationId: CosmosGroupV1GroupMembers
+ - Msg
+ /ibc.core.client.v1.Msg/SubmitMisbehaviour:
+ post:
+ summary: >-
+ SubmitMisbehaviour defines a rpc handler method for
+ MsgSubmitMisbehaviour.
+ operationId: IbcCoreClientV1Msg_SubmitMisbehaviour
responses:
'200':
description: A successful response.
schema:
type: object
- properties:
- members:
- type: array
- items:
- type: object
- properties:
- group_id:
- type: string
- format: uint64
- description: group_id is the unique ID of the group.
- member:
- description: member is the member data.
- type: object
- properties:
- address:
- type: string
- description: address is the member's account address.
- weight:
- type: string
- description: >-
- weight is the member's voting weight that should be
- greater than 0.
- metadata:
- type: string
- description: >-
- metadata is any arbitrary metadata attached to the
- member.
- added_at:
- type: string
- format: date-time
- description: >-
- added_at is a timestamp specifying when a member was
- added.
- description: >-
- GroupMember represents the relationship between a group and
- a member.
- description: members are the members of the group with given group_id.
- pagination:
- description: pagination defines the pagination in the response.
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
-
- was set, its value is undefined otherwise
description: >-
- QueryGroupMembersResponse is the Query/GroupMembersResponse
- response type.
+ MsgSubmitMisbehaviourResponse defines the Msg/SubmitMisbehaviour
+ response
+
+ type.
default:
description: An unexpected error response.
schema:
@@ -18589,8 +15594,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -18600,7 +15609,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -18628,10 +15637,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -18669,212 +15676,218 @@ paths:
"value": "1.212s"
}
parameters:
- - name: group_id
- description: group_id is the unique ID of the group.
- in: path
- required: true
- type: string
- format: uint64
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
+ - name: body
description: >-
- offset is a numeric offset that can be used when key is unavailable.
+ MsgSubmitMisbehaviour defines an sdk.Msg type that submits Evidence
+ for
- It is less efficient than using key. Only one of offset or key
- should
+ light client misbehaviour.
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
+ This message has been deprecated. Use MsgUpdateClient instead.
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ client_id:
+ type: string
+ title: client unique identifier
+ misbehaviour:
+ title: misbehaviour used for freezing the light client
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
+ protocol buffer message. This string must contain at least
- a count of the total number of items available for pagination in
- UIs.
+ one "/" character. The last segment of the URL's path must
+ represent
- count_total is only respected when offset is used. It is ignored
- when key
+ the fully qualified name of the type (as in
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
+ (e.g., leading "." is not accepted).
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /cosmos/group/v1/group_policies_by_admin/{admin}:
- get:
- summary: GroupPoliciesByAdmin queries group policies by admin address.
- operationId: CosmosGroupV1GroupPoliciesByAdmin
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- group_policies:
- type: array
- items:
- type: object
- properties:
- address:
- type: string
- description: address is the account address of group policy.
- group_id:
- type: string
- format: uint64
- description: group_id is the unique ID of the group.
- admin:
- type: string
- description: admin is the account address of the group admin.
- metadata:
- type: string
- title: >-
- metadata is any arbitrary metadata attached to the group
- policy.
- the recommended format of the metadata is to be found
- here:
+ In practice, teams usually precompile into the binary all
+ types that they
- https://docs.cosmos.network/v0.47/modules/group#decision-policy-1
- version:
- type: string
- format: uint64
- description: >-
- version is used to track changes to a group's
- GroupPolicyInfo structure that
+ expect it to use in the context of Any. However, for URLs
+ which use the
- would create a different result on a running proposal.
- decision_policy:
- description: >-
- decision_policy specifies the group policy's decision
- policy.
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the
- type of the serialized
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in the
+ official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
- protocol buffer message. This string must contain at
- least
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message
+ along with a
- one "/" character. The last segment of the URL's
- path must represent
+ URL that describes the type of the serialized message.
- the fully qualified name of the type (as in
- `path/google.protobuf.Duration`). The name should be
- in a canonical form
+ Protobuf library provides support to pack/unpack Any values in
+ the form
- (e.g., leading "." is not accepted).
+ of utility functions or additional generated methods of the
+ Any type.
- In practice, teams usually precompile into the
- binary all types that they
+ Example 1: Pack and unpack a message in C++.
- expect it to use in the context of Any. However, for
- URLs which use the
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
+ Example 2: Pack and unpack a message in Java.
- server that maps type URLs to message definitions as
- follows:
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
+ Example 3: Pack and unpack a message in Python.
- * If no scheme is provided, `https` is assumed.
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results
- based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
+ Example 4: Pack and unpack a message in Go
- Note: this functionality is not currently available
- in the official
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
- protobuf release, and it is not used for type URLs
- beginning with
+ The pack methods provided by protobuf library will by default
+ use
- type.googleapis.com.
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+ methods only use the fully qualified type name after the last
+ '/'
- Schemes other than `http`, `https` (or the empty
- scheme) might be
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
- used with implementation specific semantics.
- additionalProperties: {}
- created_at:
- type: string
- format: date-time
- description: >-
- created_at is a timestamp specifying when a group policy
- was created.
- description: >-
- GroupPolicyInfo represents the high-level on-chain
- information for a group policy.
- description: >-
- group_policies are the group policies info with provided
- admin.
- pagination:
- description: pagination defines the pagination in the response.
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
+ name "y.z".
- was set, its value is undefined otherwise
+
+ JSON
+
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with an
+
+ additional field `@type` which contains the type URL. Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding a
+ field
+
+ `value` which holds the custom JSON in addition to the `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ signer:
+ type: string
+ title: signer address
description: >-
- QueryGroupPoliciesByAdminResponse is the
- Query/GroupPoliciesByAdmin response type.
+ MsgSubmitMisbehaviour defines an sdk.Msg type that submits
+ Evidence for
+
+ light client misbehaviour.
+
+ This message has been deprecated. Use MsgUpdateClient instead.
+ tags:
+ - Msg
+ /ibc.core.client.v1.Msg/UpdateClient:
+ post:
+ summary: UpdateClient defines a rpc handler method for MsgUpdateClient.
+ operationId: IbcCoreClientV1Msg_UpdateClient
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ description: >-
+ MsgUpdateClientResponse defines the Msg/UpdateClient response
+ type.
default:
description: An unexpected error response.
schema:
@@ -18981,8 +15994,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -18992,7 +16009,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -19020,10 +16037,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -19061,211 +16076,212 @@ paths:
"value": "1.212s"
}
parameters:
- - name: admin
- description: admin is the admin address of the group policy.
- in: path
- required: true
- type: string
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
+ - name: body
description: >-
- offset is a numeric offset that can be used when key is unavailable.
+ MsgUpdateClient defines an sdk.Msg to update a IBC client state
+ using
- It is less efficient than using key. Only one of offset or key
- should
+ the given client message.
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ client_id:
+ type: string
+ title: client unique identifier
+ client_message:
+ title: client message to update the light client
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
+ protocol buffer message. This string must contain at least
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
+ one "/" character. The last segment of the URL's path must
+ represent
- a count of the total number of items available for pagination in
- UIs.
+ the fully qualified name of the type (as in
- count_total is only respected when offset is used. It is ignored
- when key
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
+ (e.g., leading "." is not accepted).
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /cosmos/group/v1/group_policies_by_group/{group_id}:
- get:
- summary: GroupPoliciesByGroup queries group policies by group id.
- operationId: CosmosGroupV1GroupPoliciesByGroup
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- group_policies:
- type: array
- items:
- type: object
- properties:
- address:
- type: string
- description: address is the account address of group policy.
- group_id:
- type: string
- format: uint64
- description: group_id is the unique ID of the group.
- admin:
- type: string
- description: admin is the account address of the group admin.
- metadata:
- type: string
- title: >-
- metadata is any arbitrary metadata attached to the group
- policy.
+ In practice, teams usually precompile into the binary all
+ types that they
- the recommended format of the metadata is to be found
- here:
+ expect it to use in the context of Any. However, for URLs
+ which use the
- https://docs.cosmos.network/v0.47/modules/group#decision-policy-1
- version:
- type: string
- format: uint64
- description: >-
- version is used to track changes to a group's
- GroupPolicyInfo structure that
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
- would create a different result on a running proposal.
- decision_policy:
- description: >-
- decision_policy specifies the group policy's decision
- policy.
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the
- type of the serialized
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in the
+ official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
- protocol buffer message. This string must contain at
- least
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message
+ along with a
- one "/" character. The last segment of the URL's
- path must represent
+ URL that describes the type of the serialized message.
- the fully qualified name of the type (as in
- `path/google.protobuf.Duration`). The name should be
- in a canonical form
+ Protobuf library provides support to pack/unpack Any values in
+ the form
- (e.g., leading "." is not accepted).
+ of utility functions or additional generated methods of the
+ Any type.
- In practice, teams usually precompile into the
- binary all types that they
+ Example 1: Pack and unpack a message in C++.
- expect it to use in the context of Any. However, for
- URLs which use the
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
+ Example 2: Pack and unpack a message in Java.
- server that maps type URLs to message definitions as
- follows:
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
+ Example 3: Pack and unpack a message in Python.
- * If no scheme is provided, `https` is assumed.
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results
- based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
+ Example 4: Pack and unpack a message in Go
- Note: this functionality is not currently available
- in the official
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
- protobuf release, and it is not used for type URLs
- beginning with
+ The pack methods provided by protobuf library will by default
+ use
- type.googleapis.com.
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+ methods only use the fully qualified type name after the last
+ '/'
- Schemes other than `http`, `https` (or the empty
- scheme) might be
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
- used with implementation specific semantics.
- additionalProperties: {}
- created_at:
- type: string
- format: date-time
- description: >-
- created_at is a timestamp specifying when a group policy
- was created.
- description: >-
- GroupPolicyInfo represents the high-level on-chain
- information for a group policy.
- description: >-
- group_policies are the group policies info associated with the
- provided group.
- pagination:
- description: pagination defines the pagination in the response.
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
+ name "y.z".
- was set, its value is undefined otherwise
+
+ JSON
+
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with an
+
+ additional field `@type` which contains the type URL. Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding a
+ field
+
+ `value` which holds the custom JSON in addition to the `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ signer:
+ type: string
+ title: signer address
description: >-
- QueryGroupPoliciesByGroupResponse is the
- Query/GroupPoliciesByGroup response type.
+ MsgUpdateClient defines an sdk.Msg to update a IBC client state
+ using
+
+ the given client message.
+ tags:
+ - Msg
+ /ibc.core.client.v1.Msg/UpdateClientParams:
+ post:
+ summary: UpdateClientParams defines a rpc handler method for MsgUpdateParams.
+ operationId: IbcCoreClientV1Msg_UpdateClientParams
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ description: MsgUpdateParamsResponse defines the MsgUpdateParams response type.
default:
description: An unexpected error response.
schema:
@@ -19372,8 +16388,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -19383,7 +16403,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -19411,10 +16431,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -19452,187 +16470,54 @@ paths:
"value": "1.212s"
}
parameters:
- - name: group_id
- description: group_id is the unique ID of the group policy's group.
- in: path
- required: true
- type: string
- format: uint64
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
+ - name: body
description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
+ MsgUpdateParams defines the sdk.Msg type to update the client
+ parameters.
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ signer:
+ type: string
+ title: signer address
+ params:
+ description: |-
+ params defines the client parameters to update.
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
+ NOTE: All parameters must be supplied.
+ type: object
+ properties:
+ allowed_clients:
+ type: array
+ items:
+ type: string
+ description: >-
+ allowed_clients defines the list of allowed client state
+ types which can be created
+ and interacted with. If a client type is removed from the
+ allowed clients list, usage
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
+ of this client will be disabled until it is added again to
+ the list.
+ description: >-
+ MsgUpdateParams defines the sdk.Msg type to update the client
+ parameters.
tags:
- - Query
- /cosmos/group/v1/group_policy_info/{address}:
- get:
- summary: >-
- GroupPolicyInfo queries group policy info based on account address of
- group policy.
- operationId: CosmosGroupV1GroupPolicyInfo
+ - Msg
+ /ibc.core.client.v1.Msg/UpgradeClient:
+ post:
+ summary: UpgradeClient defines a rpc handler method for MsgUpgradeClient.
+ operationId: IbcCoreClientV1Msg_UpgradeClient
responses:
'200':
description: A successful response.
schema:
type: object
- properties:
- info:
- description: info is the GroupPolicyInfo of the group policy.
- type: object
- properties:
- address:
- type: string
- description: address is the account address of group policy.
- group_id:
- type: string
- format: uint64
- description: group_id is the unique ID of the group.
- admin:
- type: string
- description: admin is the account address of the group admin.
- metadata:
- type: string
- title: >-
- metadata is any arbitrary metadata attached to the group
- policy.
-
- the recommended format of the metadata is to be found
- here:
-
- https://docs.cosmos.network/v0.47/modules/group#decision-policy-1
- version:
- type: string
- format: uint64
- description: >-
- version is used to track changes to a group's
- GroupPolicyInfo structure that
-
- would create a different result on a running proposal.
- decision_policy:
- description: >-
- decision_policy specifies the group policy's decision
- policy.
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type
- of the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be
- in a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results
- based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty
- scheme) might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- created_at:
- type: string
- format: date-time
- description: >-
- created_at is a timestamp specifying when a group policy
- was created.
description: >-
- QueryGroupPolicyInfoResponse is the Query/GroupPolicyInfo response
+ MsgUpgradeClientResponse defines the Msg/UpgradeClient response
type.
default:
description: An unexpected error response.
@@ -19740,8 +16625,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -19751,7 +16640,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -19779,10 +16668,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -19820,412 +16707,392 @@ paths:
"value": "1.212s"
}
parameters:
- - name: address
- description: address is the account address of the group policy.
- in: path
+ - name: body
+ in: body
required: true
- type: string
- tags:
- - Query
- /cosmos/group/v1/groups:
- get:
- summary: Groups queries all groups in state.
- description: 'Since: cosmos-sdk 0.47.1'
- operationId: CosmosGroupV1Groups
- responses:
- '200':
- description: A successful response.
schema:
type: object
properties:
- groups:
- type: array
- items:
- type: object
- properties:
- id:
- type: string
- format: uint64
- description: id is the unique ID of the group.
- admin:
- type: string
- description: admin is the account address of the group's admin.
- metadata:
- type: string
- description: >-
- metadata is any arbitrary metadata to attached to the
- group.
- version:
- type: string
- format: uint64
- title: >-
- version is used to track changes to a group's membership
- structure that
-
- would break existing proposals. Whenever any members
- weight is changed,
-
- or any member is added or removed this version is
- incremented and will
-
- cause proposals based on older versions of this group to
- fail
- total_weight:
- type: string
- description: total_weight is the sum of the group members' weights.
- created_at:
- type: string
- format: date-time
- description: >-
- created_at is a timestamp specifying when a group was
- created.
- description: >-
- GroupInfo represents the high-level on-chain information for
- a group.
- description: '`groups` is all the groups present in state.'
- pagination:
- description: pagination defines the pagination in the response.
+ client_id:
+ type: string
+ title: client unique identifier
+ client_state:
+ title: upgraded client state
type: object
properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
+ '@type':
type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
- was set, its value is undefined otherwise
- description: |-
- QueryGroupsResponse is the Query/Groups response type.
+ protocol buffer message. This string must contain at least
- Since: cosmos-sdk 0.47.1
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
+ one "/" character. The last segment of the URL's path must
+ represent
- protocol buffer message. This string must contain at
- least
+ the fully qualified name of the type (as in
- one "/" character. The last segment of the URL's path
- must represent
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
- the fully qualified name of the type (as in
+ (e.g., leading "." is not accepted).
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
- (e.g., leading "." is not accepted).
+ In practice, teams usually precompile into the binary all
+ types that they
+ expect it to use in the context of Any. However, for URLs
+ which use the
- In practice, teams usually precompile into the binary
- all types that they
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
+ server that maps type URLs to message definitions as
+ follows:
- * If no scheme is provided, `https` is assumed.
+ * If no scheme is provided, `https` is assumed.
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
- Note: this functionality is not currently available in
- the official
+ Note: this functionality is not currently available in the
+ official
- protobuf release, and it is not used for type URLs
- beginning with
+ protobuf release, and it is not used for type URLs
+ beginning with
- type.googleapis.com.
+ type.googleapis.com.
- Schemes other than `http`, `https` (or the empty scheme)
- might be
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message
+ along with a
- URL that describes the type of the serialized message.
+ URL that describes the type of the serialized message.
- Protobuf library provides support to pack/unpack Any values
- in the form
+ Protobuf library provides support to pack/unpack Any values in
+ the form
- of utility functions or additional generated methods of the
- Any type.
+ of utility functions or additional generated methods of the
+ Any type.
- Example 1: Pack and unpack a message in C++.
+ Example 1: Pack and unpack a message in C++.
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
...
- if (any.UnpackTo(&foo)) {
- ...
- }
+ }
- Example 2: Pack and unpack a message in Java.
+ Example 2: Pack and unpack a message in Java.
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
- The pack methods provided by protobuf library will by
- default use
+ The pack methods provided by protobuf library will by default
+ use
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
- methods only use the fully qualified type name after the
- last '/'
+ methods only use the fully qualified type name after the last
+ '/'
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
- name "y.z".
+ name "y.z".
+ JSON
- JSON
- ====
+ The JSON representation of an `Any` value uses the regular
- The JSON representation of an `Any` value uses the regular
+ representation of the deserialized, embedded message, with an
- representation of the deserialized, embedded message, with
- an
+ additional field `@type` which contains the type URL. Example:
- additional field `@type` which contains the type URL.
- Example:
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
+ If the embedded message type is well-known and has a custom
+ JSON
- If the embedded message type is well-known and has a custom
- JSON
+ representation, that representation will be embedded adding a
+ field
- representation, that representation will be embedded adding
- a field
+ `value` which holds the custom JSON in addition to the `@type`
- `value` which holds the custom JSON in addition to the
- `@type`
+ field. Example (for message [google.protobuf.Duration][]):
- field. Example (for message [google.protobuf.Duration][]):
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ consensus_state:
+ title: >-
+ upgraded consensus state, only contains enough information to
+ serve as a
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
+ basis of trust in update logic
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
- It is less efficient than using key. Only one of offset or key
- should
+ protocol buffer message. This string must contain at least
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
+ one "/" character. The last segment of the URL's path must
+ represent
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
+ the fully qualified name of the type (as in
- a count of the total number of items available for pagination in
- UIs.
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
- count_total is only respected when offset is used. It is ignored
- when key
+ (e.g., leading "." is not accepted).
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
+ In practice, teams usually precompile into the binary all
+ types that they
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
+ expect it to use in the context of Any. However, for URLs
+ which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in the
+ official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message
+ along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values in
+ the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by default
+ use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the last
+ '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+ JSON
+
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with an
+
+ additional field `@type` which contains the type URL. Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding a
+ field
+
+ `value` which holds the custom JSON in addition to the `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ proof_upgrade_client:
+ type: string
+ format: byte
+ title: proof that old chain committed to new client
+ proof_upgrade_consensus_state:
+ type: string
+ format: byte
+ title: proof that old chain committed to new consensus state
+ signer:
+ type: string
+ title: signer address
+ title: >-
+ MsgUpgradeClient defines an sdk.Msg to upgrade an IBC client to a
+ new client
+
+ state
tags:
- - Query
- /cosmos/group/v1/groups_by_admin/{admin}:
- get:
- summary: GroupsByAdmin queries groups by admin address.
- operationId: CosmosGroupV1GroupsByAdmin
+ - Msg
+ /ibc.core.connection.v1.Msg/ConnectionOpenAck:
+ post:
+ summary: ConnectionOpenAck defines a rpc handler method for MsgConnectionOpenAck.
+ operationId: IbcCoreConnectionV1Msg_ConnectionOpenAck
responses:
'200':
description: A successful response.
schema:
type: object
- properties:
- groups:
- type: array
- items:
- type: object
- properties:
- id:
- type: string
- format: uint64
- description: id is the unique ID of the group.
- admin:
- type: string
- description: admin is the account address of the group's admin.
- metadata:
- type: string
- description: >-
- metadata is any arbitrary metadata to attached to the
- group.
- version:
- type: string
- format: uint64
- title: >-
- version is used to track changes to a group's membership
- structure that
-
- would break existing proposals. Whenever any members
- weight is changed,
-
- or any member is added or removed this version is
- incremented and will
-
- cause proposals based on older versions of this group to
- fail
- total_weight:
- type: string
- description: total_weight is the sum of the group members' weights.
- created_at:
- type: string
- format: date-time
- description: >-
- created_at is a timestamp specifying when a group was
- created.
- description: >-
- GroupInfo represents the high-level on-chain information for
- a group.
- description: groups are the groups info with the provided admin.
- pagination:
- description: pagination defines the pagination in the response.
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
-
- was set, its value is undefined otherwise
description: >-
- QueryGroupsByAdminResponse is the Query/GroupsByAdminResponse
+ MsgConnectionOpenAckResponse defines the Msg/ConnectionOpenAck
response type.
default:
description: An unexpected error response.
@@ -20333,8 +17200,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -20344,7 +17215,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -20372,10 +17243,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -20413,146 +17282,321 @@ paths:
"value": "1.212s"
}
parameters:
- - name: admin
- description: admin is the account address of a group's admin.
- in: path
- required: true
- type: string
- - name: pagination.key
+ - name: body
description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
-
-
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /cosmos/group/v1/groups_by_member/{address}:
- get:
- summary: GroupsByMember queries groups by member address.
- operationId: CosmosGroupV1GroupsByMember
- responses:
- '200':
- description: A successful response.
+ MsgConnectionOpenAck defines a msg sent by a Relayer to Chain A to
+ acknowledge the change of connection state to TRYOPEN on Chain B.
+ in: body
+ required: true
schema:
type: object
properties:
- groups:
- type: array
- items:
- type: object
- properties:
- id:
- type: string
- format: uint64
- description: id is the unique ID of the group.
- admin:
- type: string
- description: admin is the account address of the group's admin.
- metadata:
- type: string
- description: >-
- metadata is any arbitrary metadata to attached to the
- group.
- version:
+ connection_id:
+ type: string
+ counterparty_connection_id:
+ type: string
+ version:
+ type: object
+ properties:
+ identifier:
+ type: string
+ title: unique version identifier
+ features:
+ type: array
+ items:
type: string
- format: uint64
- title: >-
- version is used to track changes to a group's membership
- structure that
+ title: list of features compatible with the specified identifier
+ description: >-
+ Version defines the versioning scheme used to negotiate the
+ IBC verison in
+
+ the connection handshake.
+ client_state:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
- would break existing proposals. Whenever any members
- weight is changed,
+ protocol buffer message. This string must contain at least
- or any member is added or removed this version is
- incremented and will
+ one "/" character. The last segment of the URL's path must
+ represent
- cause proposals based on older versions of this group to
- fail
- total_weight:
- type: string
- description: total_weight is the sum of the group members' weights.
- created_at:
- type: string
- format: date-time
- description: >-
- created_at is a timestamp specifying when a group was
- created.
- description: >-
- GroupInfo represents the high-level on-chain information for
- a group.
- description: groups are the groups info with the provided group member.
- pagination:
- description: pagination defines the pagination in the response.
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary all
+ types that they
+
+ expect it to use in the context of Any. However, for URLs
+ which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in the
+ official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message
+ along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values in
+ the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by default
+ use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the last
+ '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+ JSON
+
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with an
+
+ additional field `@type` which contains the type URL. Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding a
+ field
+
+ `value` which holds the custom JSON in addition to the `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ proof_height:
type: object
properties:
- next_key:
+ revision_number:
type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
+ format: uint64
+ title: the revision that the client is currently on
+ revision_height:
type: string
format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
+ title: the height within the given revision
+ description: >-
+ Normally the RevisionHeight is incremented at each height
+ while keeping
- was set, its value is undefined otherwise
+ RevisionNumber the same. However some consensus algorithms may
+ choose to
+
+ reset the height in certain conditions e.g. hard forks,
+ state-machine
+
+ breaking changes In these cases, the RevisionNumber is
+ incremented so that
+
+ height continues to be monitonically increasing even as the
+ RevisionHeight
+
+ gets reset
+ title: >-
+ Height is a monotonically increasing data type
+
+ that can be compared against another Height for the purposes
+ of updating and
+
+ freezing clients
+ proof_try:
+ type: string
+ format: byte
+ title: >-
+ proof of the initialization the connection on Chain B:
+ `UNITIALIZED ->
+
+ TRYOPEN`
+ proof_client:
+ type: string
+ format: byte
+ title: proof of client state included in message
+ proof_consensus:
+ type: string
+ format: byte
+ title: proof of client consensus state
+ consensus_height:
+ type: object
+ properties:
+ revision_number:
+ type: string
+ format: uint64
+ title: the revision that the client is currently on
+ revision_height:
+ type: string
+ format: uint64
+ title: the height within the given revision
+ description: >-
+ Normally the RevisionHeight is incremented at each height
+ while keeping
+
+ RevisionNumber the same. However some consensus algorithms may
+ choose to
+
+ reset the height in certain conditions e.g. hard forks,
+ state-machine
+
+ breaking changes In these cases, the RevisionNumber is
+ incremented so that
+
+ height continues to be monitonically increasing even as the
+ RevisionHeight
+
+ gets reset
+ title: >-
+ Height is a monotonically increasing data type
+
+ that can be compared against another Height for the purposes
+ of updating and
+
+ freezing clients
+ signer:
+ type: string
+ host_consensus_state_proof:
+ type: string
+ format: byte
+ title: >-
+ optional proof data for host state machines that are unable to
+ introspect their own consensus state
+ description: |-
+ MsgConnectionOpenAck defines a msg sent by a Relayer to Chain A to
+ acknowledge the change of connection state to TRYOPEN on Chain B.
+ tags:
+ - Msg
+ /ibc.core.connection.v1.Msg/ConnectionOpenConfirm:
+ post:
+ summary: |-
+ ConnectionOpenConfirm defines a rpc handler method for
+ MsgConnectionOpenConfirm.
+ operationId: IbcCoreConnectionV1Msg_ConnectionOpenConfirm
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
description: >-
- QueryGroupsByMemberResponse is the Query/GroupsByMember response
- type.
+ MsgConnectionOpenConfirmResponse defines the
+ Msg/ConnectionOpenConfirm
+
+ response type.
default:
description: An unexpected error response.
schema:
@@ -20659,8 +17703,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -20670,7 +17718,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -20698,10 +17746,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -20739,390 +17785,85 @@ paths:
"value": "1.212s"
}
parameters:
- - name: address
- description: address is the group member address.
- in: path
- required: true
- type: string
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
+ - name: body
description: >-
- reverse is set to true if results are to be returned in the
- descending order.
-
+ MsgConnectionOpenConfirm defines a msg sent by a Relayer to Chain B
+ to
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /cosmos/group/v1/proposal/{proposal_id}:
- get:
- summary: Proposal queries a proposal based on proposal id.
- operationId: CosmosGroupV1Proposal
- responses:
- '200':
- description: A successful response.
+ acknowledge the change of connection state to OPEN on Chain A.
+ in: body
+ required: true
schema:
type: object
properties:
- proposal:
- description: proposal is the proposal info.
+ connection_id:
+ type: string
+ proof_ack:
+ type: string
+ format: byte
+ title: >-
+ proof for the change of the connection state on Chain A: `INIT
+ -> OPEN`
+ proof_height:
type: object
properties:
- id:
- type: string
- format: uint64
- description: id is the unique id of the proposal.
- group_policy_address:
- type: string
- description: >-
- group_policy_address is the account address of group
- policy.
- metadata:
- type: string
- title: >-
- metadata is any arbitrary metadata attached to the
- proposal.
-
- the recommended format of the metadata is to be found
- here:
-
- https://docs.cosmos.network/v0.47/modules/group#proposal-4
- proposers:
- type: array
- items:
- type: string
- description: proposers are the account addresses of the proposers.
- submit_time:
- type: string
- format: date-time
- description: >-
- submit_time is a timestamp specifying when a proposal was
- submitted.
- group_version:
+ revision_number:
type: string
format: uint64
- description: >-
- group_version tracks the version of the group at proposal
- submission.
-
- This field is here for informational purposes only.
- group_policy_version:
+ title: the revision that the client is currently on
+ revision_height:
type: string
format: uint64
- description: >-
- group_policy_version tracks the version of the group
- policy at proposal submission.
-
- When a decision policy is changed, existing proposals from
- previous policy
-
- versions will become invalid with the `ABORTED` status.
-
- This field is here for informational purposes only.
- status:
- description: >-
- status represents the high level position in the life
- cycle of the proposal. Initial value is Submitted.
- type: string
- enum:
- - PROPOSAL_STATUS_UNSPECIFIED
- - PROPOSAL_STATUS_SUBMITTED
- - PROPOSAL_STATUS_ACCEPTED
- - PROPOSAL_STATUS_REJECTED
- - PROPOSAL_STATUS_ABORTED
- - PROPOSAL_STATUS_WITHDRAWN
- default: PROPOSAL_STATUS_UNSPECIFIED
- final_tally_result:
- description: >-
- final_tally_result contains the sums of all weighted votes
- for this
-
- proposal for each vote option. It is empty at submission,
- and only
-
- populated after tallying, at voting period end or at
- proposal execution,
-
- whichever happens first.
- type: object
- properties:
- yes_count:
- type: string
- description: yes_count is the weighted sum of yes votes.
- abstain_count:
- type: string
- description: abstain_count is the weighted sum of abstainers.
- no_count:
- type: string
- description: no_count is the weighted sum of no votes.
- no_with_veto_count:
- type: string
- description: no_with_veto_count is the weighted sum of veto.
- voting_period_end:
- type: string
- format: date-time
- description: >-
- voting_period_end is the timestamp before which voting
- must be done.
-
- Unless a successful MsgExec is called before (to execute a
- proposal whose
-
- tally is successful before the voting period ends),
- tallying will be done
-
- at this point, and the `final_tally_result`and `status`
- fields will be
-
- accordingly updated.
- executor_result:
- description: >-
- executor_result is the final result of the proposal
- execution. Initial value is NotRun.
- type: string
- enum:
- - PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED
- - PROPOSAL_EXECUTOR_RESULT_NOT_RUN
- - PROPOSAL_EXECUTOR_RESULT_SUCCESS
- - PROPOSAL_EXECUTOR_RESULT_FAILURE
- default: PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED
- messages:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the
- type of the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's
- path must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be
- in a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the
- binary all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results
- based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available
- in the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty
- scheme) might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any
- values in the form
-
- of utility functions or additional generated methods of
- the Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and
- the unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will
- yield type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the
- regular
+ title: the height within the given revision
+ description: >-
+ Normally the RevisionHeight is incremented at each height
+ while keeping
- representation of the deserialized, embedded message,
- with an
+ RevisionNumber the same. However some consensus algorithms may
+ choose to
- additional field `@type` which contains the type URL.
- Example:
+ reset the height in certain conditions e.g. hard forks,
+ state-machine
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
+ breaking changes In these cases, the RevisionNumber is
+ incremented so that
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
+ height continues to be monitonically increasing even as the
+ RevisionHeight
- If the embedded message type is well-known and has a
- custom JSON
+ gets reset
+ title: >-
+ Height is a monotonically increasing data type
- representation, that representation will be embedded
- adding a field
+ that can be compared against another Height for the purposes
+ of updating and
- `value` which holds the custom JSON in addition to the
- `@type`
+ freezing clients
+ signer:
+ type: string
+ description: >-
+ MsgConnectionOpenConfirm defines a msg sent by a Relayer to Chain
+ B to
- field. Example (for message
- [google.protobuf.Duration][]):
+ acknowledge the change of connection state to OPEN on Chain A.
+ tags:
+ - Msg
+ /ibc.core.connection.v1.Msg/ConnectionOpenInit:
+ post:
+ summary: >-
+ ConnectionOpenInit defines a rpc handler method for
+ MsgConnectionOpenInit.
+ operationId: IbcCoreConnectionV1Msg_ConnectionOpenInit
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ description: >-
+ MsgConnectionOpenInitResponse defines the Msg/ConnectionOpenInit
+ response
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- description: >-
- messages is a list of `sdk.Msg`s that will be executed if
- the proposal passes.
- title:
- type: string
- description: 'Since: cosmos-sdk 0.47'
- title: title is the title of the proposal
- summary:
- type: string
- description: 'Since: cosmos-sdk 0.47'
- title: summary is a short summary of the proposal
- description: QueryProposalResponse is the Query/Proposal response type.
+ type.
default:
description: An unexpected error response.
schema:
@@ -21229,8 +17970,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -21240,7 +17985,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -21268,10 +18013,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -21309,51 +18052,93 @@ paths:
"value": "1.212s"
}
parameters:
- - name: proposal_id
- description: proposal_id is the unique ID of a proposal.
- in: path
- required: true
- type: string
- format: uint64
- tags:
- - Query
- /cosmos/group/v1/proposals/{proposal_id}/tally:
- get:
- summary: >-
- TallyResult returns the tally result of a proposal. If the proposal is
-
- still in voting period, then this query computes the current tally
- state,
-
- which might not be final. On the other hand, if the proposal is final,
-
- then it simply returns the `final_tally_result` state stored in the
+ - name: body
+ description: >-
+ MsgConnectionOpenInit defines the msg sent by an account on Chain A
+ to
- proposal itself.
- operationId: CosmosGroupV1TallyResult
- responses:
- '200':
- description: A successful response.
+ initialize a connection with Chain B.
+ in: body
+ required: true
schema:
type: object
properties:
- tally:
- description: tally defines the requested tally.
- type: object
+ client_id:
+ type: string
+ counterparty:
+ type: object
properties:
- yes_count:
- type: string
- description: yes_count is the weighted sum of yes votes.
- abstain_count:
+ client_id:
type: string
- description: abstain_count is the weighted sum of abstainers.
- no_count:
+ description: >-
+ identifies the client on the counterparty chain associated
+ with a given
+
+ connection.
+ connection_id:
type: string
- description: no_count is the weighted sum of no votes.
- no_with_veto_count:
+ description: >-
+ identifies the connection end on the counterparty chain
+ associated with a
+
+ given connection.
+ prefix:
+ description: commitment merkle prefix of the counterparty chain.
+ type: object
+ properties:
+ key_prefix:
+ type: string
+ format: byte
+ title: >-
+ MerklePrefix is merkle path prefixed to the key.
+
+ The constructed key from the Path and the key will be
+ append(Path.KeyPath,
+
+ append(Path.KeyPrefix, key...))
+ description: >-
+ Counterparty defines the counterparty chain associated with a
+ connection end.
+ version:
+ type: object
+ properties:
+ identifier:
type: string
- description: no_with_veto_count is the weighted sum of veto.
- description: QueryTallyResultResponse is the Query/TallyResult response type.
+ title: unique version identifier
+ features:
+ type: array
+ items:
+ type: string
+ title: list of features compatible with the specified identifier
+ description: >-
+ Version defines the versioning scheme used to negotiate the
+ IBC verison in
+
+ the connection handshake.
+ delay_period:
+ type: string
+ format: uint64
+ signer:
+ type: string
+ description: >-
+ MsgConnectionOpenInit defines the msg sent by an account on Chain
+ A to
+
+ initialize a connection with Chain B.
+ tags:
+ - Msg
+ /ibc.core.connection.v1.Msg/ConnectionOpenTry:
+ post:
+ summary: ConnectionOpenTry defines a rpc handler method for MsgConnectionOpenTry.
+ operationId: IbcCoreConnectionV1Msg_ConnectionOpenTry
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ description: >-
+ MsgConnectionOpenTryResponse defines the Msg/ConnectionOpenTry
+ response type.
default:
description: An unexpected error response.
schema:
@@ -21460,8 +18245,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -21471,7 +18260,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -21499,10 +18288,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -21540,371 +18327,365 @@ paths:
"value": "1.212s"
}
parameters:
- - name: proposal_id
- description: proposal_id is the unique id of a proposal.
- in: path
+ - name: body
+ description: >-
+ MsgConnectionOpenTry defines a msg sent by a Relayer to try to open
+ a
+
+ connection on Chain B.
+ in: body
required: true
- type: string
- format: uint64
- tags:
- - Query
- /cosmos/group/v1/proposals_by_group_policy/{address}:
- get:
- summary: >-
- ProposalsByGroupPolicy queries proposals based on account address of
- group policy.
- operationId: CosmosGroupV1ProposalsByGroupPolicy
- responses:
- '200':
- description: A successful response.
schema:
type: object
properties:
- proposals:
- type: array
- items:
- type: object
- properties:
- id:
- type: string
- format: uint64
- description: id is the unique id of the proposal.
- group_policy_address:
- type: string
- description: >-
- group_policy_address is the account address of group
- policy.
- metadata:
- type: string
- title: >-
- metadata is any arbitrary metadata attached to the
- proposal.
-
- the recommended format of the metadata is to be found
- here:
-
- https://docs.cosmos.network/v0.47/modules/group#proposal-4
- proposers:
- type: array
- items:
- type: string
- description: proposers are the account addresses of the proposers.
- submit_time:
- type: string
- format: date-time
- description: >-
- submit_time is a timestamp specifying when a proposal
- was submitted.
- group_version:
- type: string
- format: uint64
- description: >-
- group_version tracks the version of the group at
- proposal submission.
-
- This field is here for informational purposes only.
- group_policy_version:
- type: string
- format: uint64
- description: >-
- group_policy_version tracks the version of the group
- policy at proposal submission.
-
- When a decision policy is changed, existing proposals
- from previous policy
+ client_id:
+ type: string
+ previous_connection_id:
+ type: string
+ description: >-
+ Deprecated: this field is unused. Crossing hellos are no
+ longer supported in core IBC.
+ client_state:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
- versions will become invalid with the `ABORTED` status.
+ protocol buffer message. This string must contain at least
- This field is here for informational purposes only.
- status:
- description: >-
- status represents the high level position in the life
- cycle of the proposal. Initial value is Submitted.
- type: string
- enum:
- - PROPOSAL_STATUS_UNSPECIFIED
- - PROPOSAL_STATUS_SUBMITTED
- - PROPOSAL_STATUS_ACCEPTED
- - PROPOSAL_STATUS_REJECTED
- - PROPOSAL_STATUS_ABORTED
- - PROPOSAL_STATUS_WITHDRAWN
- default: PROPOSAL_STATUS_UNSPECIFIED
- final_tally_result:
- description: >-
- final_tally_result contains the sums of all weighted
- votes for this
+ one "/" character. The last segment of the URL's path must
+ represent
- proposal for each vote option. It is empty at
- submission, and only
+ the fully qualified name of the type (as in
- populated after tallying, at voting period end or at
- proposal execution,
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
- whichever happens first.
- type: object
- properties:
- yes_count:
- type: string
- description: yes_count is the weighted sum of yes votes.
- abstain_count:
- type: string
- description: abstain_count is the weighted sum of abstainers.
- no_count:
- type: string
- description: no_count is the weighted sum of no votes.
- no_with_veto_count:
- type: string
- description: no_with_veto_count is the weighted sum of veto.
- voting_period_end:
- type: string
- format: date-time
- description: >-
- voting_period_end is the timestamp before which voting
- must be done.
+ (e.g., leading "." is not accepted).
- Unless a successful MsgExec is called before (to execute
- a proposal whose
- tally is successful before the voting period ends),
- tallying will be done
+ In practice, teams usually precompile into the binary all
+ types that they
- at this point, and the `final_tally_result`and `status`
- fields will be
+ expect it to use in the context of Any. However, for URLs
+ which use the
- accordingly updated.
- executor_result:
- description: >-
- executor_result is the final result of the proposal
- execution. Initial value is NotRun.
- type: string
- enum:
- - PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED
- - PROPOSAL_EXECUTOR_RESULT_NOT_RUN
- - PROPOSAL_EXECUTOR_RESULT_SUCCESS
- - PROPOSAL_EXECUTOR_RESULT_FAILURE
- default: PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED
- messages:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the
- type of the serialized
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
- protocol buffer message. This string must contain
- at least
+ server that maps type URLs to message definitions as
+ follows:
- one "/" character. The last segment of the URL's
- path must represent
- the fully qualified name of the type (as in
+ * If no scheme is provided, `https` is assumed.
- `path/google.protobuf.Duration`). The name should
- be in a canonical form
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
- (e.g., leading "." is not accepted).
+ Note: this functionality is not currently available in the
+ official
+ protobuf release, and it is not used for type URLs
+ beginning with
- In practice, teams usually precompile into the
- binary all types that they
+ type.googleapis.com.
- expect it to use in the context of Any. However,
- for URLs which use the
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
- server that maps type URLs to message definitions
- as follows:
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message
+ along with a
+ URL that describes the type of the serialized message.
- * If no scheme is provided, `https` is assumed.
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results
- based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
+ Protobuf library provides support to pack/unpack Any values in
+ the form
- Note: this functionality is not currently
- available in the official
+ of utility functions or additional generated methods of the
+ Any type.
- protobuf release, and it is not used for type URLs
- beginning with
- type.googleapis.com.
+ Example 1: Pack and unpack a message in C++.
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
- Schemes other than `http`, `https` (or the empty
- scheme) might be
+ Example 2: Pack and unpack a message in Java.
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- URL that describes the type of the serialized message.
+ Example 3: Pack and unpack a message in Python.
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
- Protobuf library provides support to pack/unpack Any
- values in the form
+ Example 4: Pack and unpack a message in Go
- of utility functions or additional generated methods
- of the Any type.
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+ The pack methods provided by protobuf library will by default
+ use
- Example 1: Pack and unpack a message in C++.
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
+ methods only use the fully qualified type name after the last
+ '/'
- Example 2: Pack and unpack a message in Java.
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
+ name "y.z".
- Example 3: Pack and unpack a message in Python.
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
+ JSON
- Example 4: Pack and unpack a message in Go
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
+ The JSON representation of an `Any` value uses the regular
- The pack methods provided by protobuf library will by
- default use
+ representation of the deserialized, embedded message, with an
- 'type.googleapis.com/full.type.name' as the type URL
- and the unpack
+ additional field `@type` which contains the type URL. Example:
- methods only use the fully qualified type name after
- the last '/'
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
- in the type URL, for example "foo.bar.com/x/y.z" will
- yield type
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
- name "y.z".
+ If the embedded message type is well-known and has a custom
+ JSON
+ representation, that representation will be embedded adding a
+ field
+ `value` which holds the custom JSON in addition to the `@type`
- JSON
+ field. Example (for message [google.protobuf.Duration][]):
- ====
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ counterparty:
+ type: object
+ properties:
+ client_id:
+ type: string
+ description: >-
+ identifies the client on the counterparty chain associated
+ with a given
- The JSON representation of an `Any` value uses the
- regular
+ connection.
+ connection_id:
+ type: string
+ description: >-
+ identifies the connection end on the counterparty chain
+ associated with a
- representation of the deserialized, embedded message,
- with an
+ given connection.
+ prefix:
+ description: commitment merkle prefix of the counterparty chain.
+ type: object
+ properties:
+ key_prefix:
+ type: string
+ format: byte
+ title: >-
+ MerklePrefix is merkle path prefixed to the key.
- additional field `@type` which contains the type URL.
- Example:
+ The constructed key from the Path and the key will be
+ append(Path.KeyPath,
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
+ append(Path.KeyPrefix, key...))
+ description: >-
+ Counterparty defines the counterparty chain associated with a
+ connection end.
+ delay_period:
+ type: string
+ format: uint64
+ counterparty_versions:
+ type: array
+ items:
+ type: object
+ properties:
+ identifier:
+ type: string
+ title: unique version identifier
+ features:
+ type: array
+ items:
+ type: string
+ title: >-
+ list of features compatible with the specified
+ identifier
+ description: >-
+ Version defines the versioning scheme used to negotiate the
+ IBC verison in
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
+ the connection handshake.
+ proof_height:
+ type: object
+ properties:
+ revision_number:
+ type: string
+ format: uint64
+ title: the revision that the client is currently on
+ revision_height:
+ type: string
+ format: uint64
+ title: the height within the given revision
+ description: >-
+ Normally the RevisionHeight is incremented at each height
+ while keeping
- If the embedded message type is well-known and has a
- custom JSON
+ RevisionNumber the same. However some consensus algorithms may
+ choose to
- representation, that representation will be embedded
- adding a field
+ reset the height in certain conditions e.g. hard forks,
+ state-machine
- `value` which holds the custom JSON in addition to the
- `@type`
+ breaking changes In these cases, the RevisionNumber is
+ incremented so that
- field. Example (for message
- [google.protobuf.Duration][]):
+ height continues to be monitonically increasing even as the
+ RevisionHeight
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- description: >-
- messages is a list of `sdk.Msg`s that will be executed
- if the proposal passes.
- title:
- type: string
- description: 'Since: cosmos-sdk 0.47'
- title: title is the title of the proposal
- summary:
- type: string
- description: 'Since: cosmos-sdk 0.47'
- title: summary is a short summary of the proposal
- description: >-
- Proposal defines a group proposal. Any member of a group can
- submit a proposal
+ gets reset
+ title: >-
+ Height is a monotonically increasing data type
- for a group policy to decide upon.
+ that can be compared against another Height for the purposes
+ of updating and
- A proposal consists of a set of `sdk.Msg`s that will be
- executed if the proposal
+ freezing clients
+ proof_init:
+ type: string
+ format: byte
+ title: >-
+ proof of the initialization the connection on Chain A:
+ `UNITIALIZED ->
- passes as well as some optional metadata associated with the
- proposal.
- description: proposals are the proposals with given group policy.
- pagination:
- description: pagination defines the pagination in the response.
+ INIT`
+ proof_client:
+ type: string
+ format: byte
+ title: proof of client state included in message
+ proof_consensus:
+ type: string
+ format: byte
+ title: proof of client consensus state
+ consensus_height:
type: object
properties:
- next_key:
+ revision_number:
type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
+ format: uint64
+ title: the revision that the client is currently on
+ revision_height:
type: string
format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
+ title: the height within the given revision
+ description: >-
+ Normally the RevisionHeight is incremented at each height
+ while keeping
- was set, its value is undefined otherwise
+ RevisionNumber the same. However some consensus algorithms may
+ choose to
+
+ reset the height in certain conditions e.g. hard forks,
+ state-machine
+
+ breaking changes In these cases, the RevisionNumber is
+ incremented so that
+
+ height continues to be monitonically increasing even as the
+ RevisionHeight
+
+ gets reset
+ title: >-
+ Height is a monotonically increasing data type
+
+ that can be compared against another Height for the purposes
+ of updating and
+
+ freezing clients
+ signer:
+ type: string
+ host_consensus_state_proof:
+ type: string
+ format: byte
+ title: >-
+ optional proof data for host state machines that are unable to
+ introspect their own consensus state
description: >-
- QueryProposalsByGroupPolicyResponse is the
- Query/ProposalByGroupPolicy response type.
+ MsgConnectionOpenTry defines a msg sent by a Relayer to try to
+ open a
+
+ connection on Chain B.
+ tags:
+ - Msg
+ /ibc.core.connection.v1.Msg/UpdateConnectionParams:
+ post:
+ summary: |-
+ UpdateConnectionParams defines a rpc handler method for
+ MsgUpdateParams.
+ operationId: IbcCoreConnectionV1Msg_UpdateConnectionParams
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ description: MsgUpdateParamsResponse defines the MsgUpdateParams response type.
default:
description: An unexpected error response.
schema:
@@ -22011,8 +18792,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -22022,7 +18807,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -22050,10 +18835,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -22091,112 +18874,100 @@ paths:
"value": "1.212s"
}
parameters:
- - name: address
+ - name: body
description: >-
- address is the account address of the group policy related to
- proposals.
- in: path
+ MsgUpdateParams defines the sdk.Msg type to update the connection
+ parameters.
+ in: body
required: true
- type: string
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
+ schema:
+ type: object
+ properties:
+ signer:
+ type: string
+ title: signer address
+ params:
+ description: |-
+ params defines the connection parameters to update.
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
+ NOTE: All parameters must be supplied.
+ type: object
+ properties:
+ max_expected_time_per_block:
+ type: string
+ format: uint64
+ description: >-
+ maximum expected time per block (in nanoseconds), used to
+ enforce block delay. This parameter should reflect the
+ largest amount of time that the chain might reasonably
+ take to produce the next block under normal operating
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
+ conditions. A safe choice is 3-5x the expected time per
+ block.
+ description: >-
+ MsgUpdateParams defines the sdk.Msg type to update the connection
+ parameters.
tags:
- - Query
- /cosmos/group/v1/vote_by_proposal_voter/{proposal_id}/{voter}:
- get:
- summary: VoteByProposalVoter queries a vote by proposal id and voter.
- operationId: CosmosGroupV1VoteByProposalVoter
+ - Msg
+ /poktroll.application.Msg/DelegateToGateway:
+ post:
+ operationId: PoktrollApplicationMsg_DelegateToGateway
responses:
'200':
description: A successful response.
+ schema:
+ type: object
+ default:
+ description: An unexpected error response.
schema:
type: object
properties:
- vote:
- description: vote is the vote with given proposal_id and voter.
- type: object
- properties:
- proposal_id:
- type: string
- format: uint64
- description: proposal is the unique ID of the proposal.
- voter:
- type: string
- description: voter is the account address of the voter.
- option:
- description: option is the voter's choice on the proposal.
- type: string
- enum:
- - VOTE_OPTION_UNSPECIFIED
- - VOTE_OPTION_YES
- - VOTE_OPTION_ABSTAIN
- - VOTE_OPTION_NO
- - VOTE_OPTION_NO_WITH_VETO
- default: VOTE_OPTION_UNSPECIFIED
- metadata:
- type: string
- description: metadata is any arbitrary metadata attached to the vote.
- submit_time:
- type: string
- format: date-time
- description: submit_time is the timestamp when the vote was submitted.
- description: >-
- QueryVoteByProposalVoterResponse is the Query/VoteByProposalVoter
- response type.
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ parameters:
+ - name: body
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ app_address:
+ type: string
+ title: >-
+ The Bech32 address of the application using cosmos'
+ ScalarDescriptor to ensure deterministic deterministic
+ encoding using cosmos' ScalarDescriptor to ensure
+ deterministic deterministic encoding
+ gateway_address:
+ type: string
+ title: >-
+ The Bech32 address of the gateway the application wants to
+ delegate to using cosmos' ScalarDescriptor to ensure
+ deterministic deterministic encoding using cosmos'
+ ScalarDescriptor to ensure deterministic deterministic
+ encoding
+ tags:
+ - Msg
+ /poktroll.application.Msg/StakeApplication:
+ post:
+ operationId: PoktrollApplicationMsg_StakeApplication
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
default:
description: An unexpected error response.
schema:
@@ -22214,233 +18985,435 @@ paths:
properties:
'@type':
type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
+ additionalProperties: {}
+ parameters:
+ - name: body
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ address:
+ type: string
+ title: >-
+ The Bech32 address of the application using cosmos'
+ ScalarDescriptor to ensure deterministic encoding
+ stake:
+ title: >-
+ The total amount of uPOKT the application has staked. Must be
+ ≥ to the current amount that the application has staked (if
+ any)
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an amount.
- In practice, teams usually precompile into the binary
- all types that they
- expect it to use in the context of Any. However, for
- URLs which use the
+ NOTE: The amount field is an Int which implements the custom
+ method
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
+ signatures required by gogoproto.
+ services:
+ type: array
+ items:
+ type: object
+ properties:
+ service:
+ title: The Service for which the application is configured
+ type: object
+ properties:
+ id:
+ type: string
+ description: Unique identifier for the service
+ title: >-
+ For example, what if we want to request a session
+ for a certain service but with some additional
+ configs that identify it?
+ name:
+ type: string
+ description: >-
+ (Optional) Semantic human readable name for the
+ service
+ title: >-
+ TODO_TECHDEBT: Name is currently unused but acts as
+ a reminder than an optional onchain representation
+ of the service is necessary
+ title: >-
+ ApplicationServiceConfig holds the service configuration the
+ application stakes for
+ title: >-
+ The list of services this application is staked to request
+ service for
+ tags:
+ - Msg
+ /poktroll.application.Msg/UndelegateFromGateway:
+ post:
+ operationId: PoktrollApplicationMsg_UndelegateFromGateway
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
+ parameters:
+ - name: body
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ app_address:
+ type: string
+ title: >-
+ The Bech32 address of the application using cosmos'
+ ScalarDescriptor to ensure deterministic deterministic
+ encoding using cosmos' ScalarDescriptor to ensure
+ deterministic deterministic encoding
+ gateway_address:
+ type: string
+ title: >-
+ The Bech32 address of the gateway the application wants to
+ undelegate from using cosmos' ScalarDescriptor to ensure
+ deterministic deterministic encoding using cosmos'
+ ScalarDescriptor to ensure deterministic deterministic
+ encoding
+ tags:
+ - Msg
+ /poktroll.application.Msg/UnstakeApplication:
+ post:
+ operationId: PoktrollApplicationMsg_UnstakeApplication
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ parameters:
+ - name: body
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ address:
+ type: string
+ tags:
+ - Msg
+ /poktroll.application.Msg/UpdateParams:
+ post:
+ summary: |-
+ UpdateParams defines a (governance) operation for updating the module
+ parameters. The authority defaults to the x/gov module account.
+ operationId: PoktrollApplicationMsg_UpdateParams
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ description: >-
+ MsgUpdateParamsResponse defines the response structure for
+ executing a
- representation, that representation will be embedded adding
- a field
+ MsgUpdateParams message.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ parameters:
+ - name: body
+ description: MsgUpdateParams is the Msg/UpdateParams request type.
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ authority:
+ type: string
+ description: >-
+ authority is the address that controls the module (defaults to
+ x/gov unless overwritten).
+ params:
+ description: 'NOTE: All parameters must be supplied.'
+ type: object
+ properties:
+ max_delegated_gateways:
+ type: string
+ format: uint64
+ description: MsgUpdateParams is the Msg/UpdateParams request type.
+ tags:
+ - Msg
+ /poktroll.gateway.Msg/StakeGateway:
+ post:
+ operationId: PoktrollGatewayMsg_StakeGateway
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ parameters:
+ - name: body
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ address:
+ type: string
+ title: The Bech32 address of the gateway
+ stake:
+ title: >-
+ The total amount of uPOKT the gateway is staking. Must be ≥ to
+ the current amount that the gateway has staked (if any)
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an amount.
- `value` which holds the custom JSON in addition to the
- `@type`
- field. Example (for message [google.protobuf.Duration][]):
+ NOTE: The amount field is an Int which implements the custom
+ method
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
+ signatures required by gogoproto.
+ tags:
+ - Msg
+ /poktroll.gateway.Msg/UnstakeGateway:
+ post:
+ operationId: PoktrollGatewayMsg_UnstakeGateway
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
parameters:
- - name: proposal_id
- description: proposal_id is the unique ID of a proposal.
- in: path
+ - name: body
+ in: body
required: true
- type: string
- format: uint64
- - name: voter
- description: voter is a proposal voter account address.
- in: path
+ schema:
+ type: object
+ properties:
+ address:
+ type: string
+ title: The Bech32 address of the gateway
+ tags:
+ - Msg
+ /poktroll.gateway.Msg/UpdateParams:
+ post:
+ summary: |-
+ UpdateParams defines a (governance) operation for updating the module
+ parameters. The authority defaults to the x/gov module account.
+ operationId: PoktrollGatewayMsg_UpdateParams
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ description: >-
+ MsgUpdateParamsResponse defines the response structure for
+ executing a
+
+ MsgUpdateParams message.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ parameters:
+ - name: body
+ description: MsgUpdateParams is the Msg/UpdateParams request type.
+ in: body
required: true
- type: string
+ schema:
+ type: object
+ properties:
+ authority:
+ type: string
+ description: >-
+ authority is the address that controls the module (defaults to
+ x/gov unless overwritten).
+ params:
+ description: 'NOTE: All parameters must be supplied.'
+ type: object
+ description: MsgUpdateParams is the Msg/UpdateParams request type.
tags:
- - Query
- /cosmos/group/v1/votes_by_proposal/{proposal_id}:
+ - Msg
+ /pokt-network/poktroll/proof/claim:
get:
- summary: VotesByProposal queries a vote by proposal id.
- operationId: CosmosGroupV1VotesByProposal
+ operationId: PoktrollProofQuery_AllClaims
responses:
'200':
description: A successful response.
schema:
type: object
properties:
- votes:
+ claims:
type: array
items:
type: object
properties:
- proposal_id:
- type: string
- format: uint64
- description: proposal is the unique ID of the proposal.
- voter:
- type: string
- description: voter is the account address of the voter.
- option:
- description: option is the voter's choice on the proposal.
- type: string
- enum:
- - VOTE_OPTION_UNSPECIFIED
- - VOTE_OPTION_YES
- - VOTE_OPTION_ABSTAIN
- - VOTE_OPTION_NO
- - VOTE_OPTION_NO_WITH_VETO
- default: VOTE_OPTION_UNSPECIFIED
- metadata:
- type: string
- description: metadata is any arbitrary metadata attached to the vote.
- submit_time:
+ supplier_address:
type: string
- format: date-time
+ title: the address of the supplier that submitted this claim
+ session_header:
description: >-
- submit_time is the timestamp when the vote was
- submitted.
- description: Vote represents a vote for a proposal.
- description: votes are the list of votes for given proposal_id.
+ The session header of the session that this claim is
+ for.
+ type: object
+ properties:
+ application_address:
+ type: string
+ title: >-
+ The Bech32 address of the application using cosmos'
+ ScalarDescriptor to ensure deterministic encoding
+ service:
+ title: The service this session is for
+ type: object
+ properties:
+ id:
+ type: string
+ description: Unique identifier for the service
+ title: >-
+ For example, what if we want to request a
+ session for a certain service but with some
+ additional configs that identify it?
+ name:
+ type: string
+ description: >-
+ (Optional) Semantic human readable name for the
+ service
+ title: >-
+ TODO_TECHDEBT: Name is currently unused but acts
+ as a reminder than an optional onchain
+ representation of the service is necessary
+ session_start_block_height:
+ type: string
+ format: int64
+ title: The height at which this session started
+ session_id:
+ type: string
+ description: A unique pseudoranom ID for this session
+ title: >-
+ NOTE: session_id can be derived from the above
+ values using on-chain but is included in the header
+ for convenience
+ session_end_block_height:
+ type: string
+ format: int64
+ title: >-
+ The height at which this session ended, this is the
+ last block of the session
+ root_hash:
+ type: string
+ format: byte
+ description: Root hash returned from smt.SMST#Root().
+ title: >-
+ Claim is the serialized object stored on-chain for claims
+ pending to be proven
pagination:
- description: pagination defines the pagination in the response.
type: object
properties:
next_key:
@@ -22458,9 +19431,16 @@ paths:
PageRequest.count_total
was set, its value is undefined otherwise
- description: >-
- QueryVotesByProposalResponse is the Query/VotesByProposal response
- type.
+ description: >-
+ PageResponse is to be embedded in gRPC response messages where
+ the
+
+ corresponding request message has used PageRequest.
+
+ message SomeResponse {
+ repeated Bar results = 1;
+ PageResponse page = 2;
+ }
default:
description: An unexpected error response.
schema:
@@ -22478,206 +19458,33 @@ paths:
properties:
'@type':
type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
+ additionalProperties: {}
+ parameters:
+ - name: pagination.key
+ description: |-
+ key is a value returned in PageResponse.next_key to begin
+ querying the next page most efficiently. Only one of offset or key
+ should be set.
+ in: query
+ required: false
+ type: string
+ format: byte
+ - name: pagination.offset
+ description: >-
+ offset is a numeric offset that can be used when key is unavailable.
- protocol buffer message. This string must contain at
- least
+ It is less efficient than using key. Only one of offset or key
+ should
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: proposal_id
- description: proposal_id is the unique ID of a proposal.
- in: path
- required: true
- type: string
- format: uint64
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
+ be set.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.limit
+ description: >-
+ limit is the total number of results to be returned in the result
+ page.
If left empty it will default to a value to be set by each app.
in: query
@@ -22709,53 +19516,226 @@ paths:
in: query
required: false
type: boolean
+ - name: supplier_address
+ in: query
+ required: false
+ type: string
+ - name: session_id
+ in: query
+ required: false
+ type: string
+ - name: session_end_height
+ in: query
+ required: false
+ type: string
+ format: uint64
tags:
- Query
- /cosmos/group/v1/votes_by_voter/{voter}:
+ /pokt-network/poktroll/proof/claim/{session_id}/{supplier_address}:
get:
- summary: VotesByVoter queries a vote by voter.
- operationId: CosmosGroupV1VotesByVoter
+ summary: Queries a list of Claim items.
+ operationId: PoktrollProofQuery_Claim
responses:
'200':
description: A successful response.
schema:
type: object
properties:
- votes:
+ claim:
+ type: object
+ properties:
+ supplier_address:
+ type: string
+ title: the address of the supplier that submitted this claim
+ session_header:
+ description: The session header of the session that this claim is for.
+ type: object
+ properties:
+ application_address:
+ type: string
+ title: >-
+ The Bech32 address of the application using cosmos'
+ ScalarDescriptor to ensure deterministic encoding
+ service:
+ title: The service this session is for
+ type: object
+ properties:
+ id:
+ type: string
+ description: Unique identifier for the service
+ title: >-
+ For example, what if we want to request a session
+ for a certain service but with some additional
+ configs that identify it?
+ name:
+ type: string
+ description: >-
+ (Optional) Semantic human readable name for the
+ service
+ title: >-
+ TODO_TECHDEBT: Name is currently unused but acts
+ as a reminder than an optional onchain
+ representation of the service is necessary
+ session_start_block_height:
+ type: string
+ format: int64
+ title: The height at which this session started
+ session_id:
+ type: string
+ description: A unique pseudoranom ID for this session
+ title: >-
+ NOTE: session_id can be derived from the above values
+ using on-chain but is included in the header for
+ convenience
+ session_end_block_height:
+ type: string
+ format: int64
+ title: >-
+ The height at which this session ended, this is the
+ last block of the session
+ root_hash:
+ type: string
+ format: byte
+ description: Root hash returned from smt.SMST#Root().
+ title: >-
+ Claim is the serialized object stored on-chain for claims
+ pending to be proven
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
type: array
items:
type: object
properties:
- proposal_id:
- type: string
- format: uint64
- description: proposal is the unique ID of the proposal.
- voter:
+ '@type':
type: string
- description: voter is the account address of the voter.
- option:
- description: option is the voter's choice on the proposal.
+ additionalProperties: {}
+ parameters:
+ - name: session_id
+ in: path
+ required: true
+ type: string
+ - name: supplier_address
+ in: path
+ required: true
+ type: string
+ tags:
+ - Query
+ /pokt-network/poktroll/proof/params:
+ get:
+ summary: Parameters queries the parameters of the module.
+ operationId: PoktrollProofQuery_Params
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ params:
+ description: params holds all the parameters of this module.
+ type: object
+ description: >-
+ QueryParamsResponse is response type for the Query/Params RPC
+ method.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
type: string
- enum:
- - VOTE_OPTION_UNSPECIFIED
- - VOTE_OPTION_YES
- - VOTE_OPTION_ABSTAIN
- - VOTE_OPTION_NO
- - VOTE_OPTION_NO_WITH_VETO
- default: VOTE_OPTION_UNSPECIFIED
- metadata:
+ additionalProperties: {}
+ tags:
+ - Query
+ /pokt-network/poktroll/proof/proof:
+ get:
+ operationId: PoktrollProofQuery_AllProofs
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ proofs:
+ type: array
+ items:
+ type: object
+ properties:
+ supplier_address:
type: string
- description: metadata is any arbitrary metadata attached to the vote.
- submit_time:
+ session_header:
+ description: >-
+ The session header of the session that this claim is
+ for.
+ type: object
+ properties:
+ application_address:
+ type: string
+ title: >-
+ The Bech32 address of the application using cosmos'
+ ScalarDescriptor to ensure deterministic encoding
+ service:
+ title: The service this session is for
+ type: object
+ properties:
+ id:
+ type: string
+ description: Unique identifier for the service
+ title: >-
+ For example, what if we want to request a
+ session for a certain service but with some
+ additional configs that identify it?
+ name:
+ type: string
+ description: >-
+ (Optional) Semantic human readable name for the
+ service
+ title: >-
+ TODO_TECHDEBT: Name is currently unused but acts
+ as a reminder than an optional onchain
+ representation of the service is necessary
+ session_start_block_height:
+ type: string
+ format: int64
+ title: The height at which this session started
+ session_id:
+ type: string
+ description: A unique pseudoranom ID for this session
+ title: >-
+ NOTE: session_id can be derived from the above
+ values using on-chain but is included in the header
+ for convenience
+ session_end_block_height:
+ type: string
+ format: int64
+ title: >-
+ The height at which this session ended, this is the
+ last block of the session
+ closest_merkle_proof:
type: string
- format: date-time
+ format: byte
description: >-
- submit_time is the timestamp when the vote was
- submitted.
- description: Vote represents a vote for a proposal.
- description: votes are the list of votes by given voter.
+ The serialized SMST proof from the `#ClosestProof()`
+ method.
pagination:
- description: pagination defines the pagination in the response.
type: object
properties:
next_key:
@@ -22773,7 +19753,16 @@ paths:
PageRequest.count_total
was set, its value is undefined otherwise
- description: QueryVotesByVoterResponse is the Query/VotesByVoter response type.
+ description: >-
+ PageResponse is to be embedded in gRPC response messages where
+ the
+
+ corresponding request message has used PageRequest.
+
+ message SomeResponse {
+ repeated Bar results = 1;
+ PageResponse page = 2;
+ }
default:
description: An unexpected error response.
schema:
@@ -22791,257 +19780,146 @@ paths:
properties:
'@type':
type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
+ parameters:
+ - name: pagination.key
+ description: |-
+ key is a value returned in PageResponse.next_key to begin
+ querying the next page most efficiently. Only one of offset or key
+ should be set.
+ in: query
+ required: false
+ type: string
+ format: byte
+ - name: pagination.offset
+ description: >-
+ offset is a numeric offset that can be used when key is unavailable.
- URL that describes the type of the serialized message.
+ It is less efficient than using key. Only one of offset or key
+ should
+ be set.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.limit
+ description: >-
+ limit is the total number of results to be returned in the result
+ page.
- Protobuf library provides support to pack/unpack Any values
- in the form
+ If left empty it will default to a value to be set by each app.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.count_total
+ description: >-
+ count_total is set to true to indicate that the result set should
+ include
- of utility functions or additional generated methods of the
- Any type.
+ a count of the total number of items available for pagination in
+ UIs.
+ count_total is only respected when offset is used. It is ignored
+ when key
- Example 1: Pack and unpack a message in C++.
+ is set.
+ in: query
+ required: false
+ type: boolean
+ - name: pagination.reverse
+ description: >-
+ reverse is set to true if results are to be returned in the
+ descending order.
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: voter
- description: voter is a proposal voter account address.
- in: path
- required: true
- type: string
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
+ Since: cosmos-sdk 0.43
in: query
required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
+ type: boolean
+ - name: supplier_address
in: query
required: false
type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
+ - name: session_id
in: query
required: false
type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
-
-
- Since: cosmos-sdk 0.43
+ - name: session_end_height
in: query
required: false
- type: boolean
+ type: string
+ format: uint64
tags:
- Query
- /cosmos/mint/v1beta1/annual_provisions:
+ /pokt-network/poktroll/proof/proof/{session_id}/{supplier_address}:
get:
- summary: AnnualProvisions current minting annual provisions value.
- operationId: CosmosMintV1Beta1AnnualProvisions
+ summary: Queries a list of Proof items.
+ operationId: PoktrollProofQuery_Proof
responses:
'200':
description: A successful response.
schema:
type: object
properties:
- annual_provisions:
- type: string
- format: byte
- description: >-
- annual_provisions is the current minting annual provisions
- value.
- description: |-
- QueryAnnualProvisionsResponse is the response type for the
- Query/AnnualProvisions RPC method.
+ proof:
+ type: object
+ properties:
+ supplier_address:
+ type: string
+ session_header:
+ description: The session header of the session that this claim is for.
+ type: object
+ properties:
+ application_address:
+ type: string
+ title: >-
+ The Bech32 address of the application using cosmos'
+ ScalarDescriptor to ensure deterministic encoding
+ service:
+ title: The service this session is for
+ type: object
+ properties:
+ id:
+ type: string
+ description: Unique identifier for the service
+ title: >-
+ For example, what if we want to request a session
+ for a certain service but with some additional
+ configs that identify it?
+ name:
+ type: string
+ description: >-
+ (Optional) Semantic human readable name for the
+ service
+ title: >-
+ TODO_TECHDEBT: Name is currently unused but acts
+ as a reminder than an optional onchain
+ representation of the service is necessary
+ session_start_block_height:
+ type: string
+ format: int64
+ title: The height at which this session started
+ session_id:
+ type: string
+ description: A unique pseudoranom ID for this session
+ title: >-
+ NOTE: session_id can be derived from the above values
+ using on-chain but is included in the header for
+ convenience
+ session_end_block_height:
+ type: string
+ format: int64
+ title: >-
+ The height at which this session ended, this is the
+ last block of the session
+ closest_merkle_proof:
+ type: string
+ format: byte
+ description: >-
+ The serialized SMST proof from the `#ClosestProof()`
+ method.
default:
description: An unexpected error response.
schema:
@@ -23060,27 +19938,217 @@ paths:
'@type':
type: string
additionalProperties: {}
+ parameters:
+ - name: session_id
+ in: path
+ required: true
+ type: string
+ - name: supplier_address
+ in: path
+ required: true
+ type: string
tags:
- Query
- /cosmos/mint/v1beta1/inflation:
- get:
- summary: Inflation returns the current minting inflation value.
- operationId: CosmosMintV1Beta1Inflation
+ /poktroll.proof.Msg/CreateClaim:
+ post:
+ operationId: PoktrollProofMsg_CreateClaim
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ parameters:
+ - name: body
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ supplier_address:
+ type: string
+ session_header:
+ type: object
+ properties:
+ application_address:
+ type: string
+ title: >-
+ The Bech32 address of the application using cosmos'
+ ScalarDescriptor to ensure deterministic encoding
+ service:
+ title: The service this session is for
+ type: object
+ properties:
+ id:
+ type: string
+ description: Unique identifier for the service
+ title: >-
+ For example, what if we want to request a session for
+ a certain service but with some additional configs
+ that identify it?
+ name:
+ type: string
+ description: >-
+ (Optional) Semantic human readable name for the
+ service
+ title: >-
+ TODO_TECHDEBT: Name is currently unused but acts as a
+ reminder than an optional onchain representation of
+ the service is necessary
+ session_start_block_height:
+ type: string
+ format: int64
+ title: The height at which this session started
+ session_id:
+ type: string
+ description: A unique pseudoranom ID for this session
+ title: >-
+ NOTE: session_id can be derived from the above values
+ using on-chain but is included in the header for
+ convenience
+ session_end_block_height:
+ type: string
+ format: int64
+ title: >-
+ The height at which this session ended, this is the last
+ block of the session
+ description: >-
+ SessionHeader is a lightweight header for a session that can
+ be passed around.
+
+ It is the minimal amount of data required to hydrate &
+ retrieve all data relevant to the session.
+ root_hash:
+ type: string
+ format: byte
+ title: root returned from smt.SMST#Root()
+ tags:
+ - Msg
+ /poktroll.proof.Msg/SubmitProof:
+ post:
+ operationId: PoktrollProofMsg_SubmitProof
responses:
'200':
description: A successful response.
+ schema:
+ type: object
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ parameters:
+ - name: body
+ in: body
+ required: true
schema:
type: object
properties:
- inflation:
+ supplier_address:
+ type: string
+ session_header:
+ type: object
+ properties:
+ application_address:
+ type: string
+ title: >-
+ The Bech32 address of the application using cosmos'
+ ScalarDescriptor to ensure deterministic encoding
+ service:
+ title: The service this session is for
+ type: object
+ properties:
+ id:
+ type: string
+ description: Unique identifier for the service
+ title: >-
+ For example, what if we want to request a session for
+ a certain service but with some additional configs
+ that identify it?
+ name:
+ type: string
+ description: >-
+ (Optional) Semantic human readable name for the
+ service
+ title: >-
+ TODO_TECHDEBT: Name is currently unused but acts as a
+ reminder than an optional onchain representation of
+ the service is necessary
+ session_start_block_height:
+ type: string
+ format: int64
+ title: The height at which this session started
+ session_id:
+ type: string
+ description: A unique pseudoranom ID for this session
+ title: >-
+ NOTE: session_id can be derived from the above values
+ using on-chain but is included in the header for
+ convenience
+ session_end_block_height:
+ type: string
+ format: int64
+ title: >-
+ The height at which this session ended, this is the last
+ block of the session
+ description: >-
+ SessionHeader is a lightweight header for a session that can
+ be passed around.
+
+ It is the minimal amount of data required to hydrate &
+ retrieve all data relevant to the session.
+ proof:
type: string
format: byte
- description: inflation is the current minting inflation value.
+ title: serialized version of *smt.SparseMerkleClosestProof
+ tags:
+ - Msg
+ /poktroll.proof.Msg/UpdateParams:
+ post:
+ summary: |-
+ UpdateParams defines a (governance) operation for updating the module
+ parameters. The authority defaults to the x/gov module account.
+ operationId: PoktrollProofMsg_UpdateParams
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
description: >-
- QueryInflationResponse is the response type for the
- Query/Inflation RPC
+ MsgUpdateParamsResponse defines the response structure for
+ executing a
- method.
+ MsgUpdateParams message.
default:
description: An unexpected error response.
schema:
@@ -23099,12 +20167,29 @@ paths:
'@type':
type: string
additionalProperties: {}
+ parameters:
+ - name: body
+ description: MsgUpdateParams is the Msg/UpdateParams request type.
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ authority:
+ type: string
+ description: >-
+ authority is the address that controls the module (defaults to
+ x/gov unless overwritten).
+ params:
+ description: 'NOTE: All parameters must be supplied.'
+ type: object
+ description: MsgUpdateParams is the Msg/UpdateParams request type.
tags:
- - Query
- /cosmos/mint/v1beta1/params:
+ - Msg
+ /pokt-network/poktroll/service/params:
get:
- summary: Params returns the total set of minting parameters.
- operationId: CosmosMintV1Beta1Params
+ summary: Parameters queries the parameters of the module.
+ operationId: PoktrollServiceQuery_Params
responses:
'200':
description: A successful response.
@@ -23112,30 +20197,14 @@ paths:
type: object
properties:
params:
- description: params defines the parameters of the module.
+ description: params holds all the parameters of this module.
type: object
properties:
- mint_denom:
- type: string
- title: type of coin to mint
- inflation_rate_change:
- type: string
- title: maximum annual change in inflation rate
- inflation_max:
- type: string
- title: maximum inflation rate
- inflation_min:
- type: string
- title: minimum inflation rate
- goal_bonded:
- type: string
- title: goal of percent bonded atoms
- blocks_per_year:
+ add_service_fee:
type: string
format: uint64
- title: expected blocks per year
description: >-
- QueryParamsResponse is the response type for the Query/Params RPC
+ QueryParamsResponse is response type for the Query/Params RPC
method.
default:
description: An unexpected error response.
@@ -23157,27 +20226,65 @@ paths:
additionalProperties: {}
tags:
- Query
- /cosmos/nft/v1beta1/balance/{owner}/{class_id}:
+ /pokt-network/poktroll/service/service:
get:
- summary: >-
- Balance queries the number of NFTs of a given class owned by the owner,
- same as balanceOf in ERC721
- operationId: CosmosNftV1Beta1Balance
+ operationId: PoktrollServiceQuery_ServiceAll
responses:
'200':
description: A successful response.
schema:
type: object
properties:
- amount:
- type: string
- format: uint64
- title: >-
- amount is the number of all NFTs of a given class owned by the
- owner
- title: >-
- QueryBalanceResponse is the response type for the Query/Balance
- RPC method
+ service:
+ type: array
+ items:
+ type: object
+ properties:
+ id:
+ type: string
+ description: Unique identifier for the service
+ title: >-
+ For example, what if we want to request a session for a
+ certain service but with some additional configs that
+ identify it?
+ name:
+ type: string
+ description: (Optional) Semantic human readable name for the service
+ title: >-
+ TODO_TECHDEBT: Name is currently unused but acts as a
+ reminder than an optional onchain representation of the
+ service is necessary
+ title: >-
+ Service message to encapsulate unique and semantic
+ identifiers for a service on the network
+ pagination:
+ type: object
+ properties:
+ next_key:
+ type: string
+ format: byte
+ description: |-
+ next_key is the key to be passed to PageRequest.key to
+ query the next page most efficiently. It will be empty if
+ there are no more results.
+ total:
+ type: string
+ format: uint64
+ title: >-
+ total is total number of results available if
+ PageRequest.count_total
+
+ was set, its value is undefined otherwise
+ description: >-
+ PageResponse is to be embedded in gRPC response messages where
+ the
+
+ corresponding request message has used PageRequest.
+
+ message SomeResponse {
+ repeated Bar results = 1;
+ PageResponse page = 2;
+ }
default:
description: An unexpected error response.
schema:
@@ -23195,436 +20302,281 @@ paths:
properties:
'@type':
type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
+ additionalProperties: {}
+ parameters:
+ - name: pagination.key
+ description: |-
+ key is a value returned in PageResponse.next_key to begin
+ querying the next page most efficiently. Only one of offset or key
+ should be set.
+ in: query
+ required: false
+ type: string
+ format: byte
+ - name: pagination.offset
+ description: >-
+ offset is a numeric offset that can be used when key is unavailable.
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
+ It is less efficient than using key. Only one of offset or key
+ should
- (e.g., leading "." is not accepted).
+ be set.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.limit
+ description: >-
+ limit is the total number of results to be returned in the result
+ page.
+ If left empty it will default to a value to be set by each app.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.count_total
+ description: >-
+ count_total is set to true to indicate that the result set should
+ include
- In practice, teams usually precompile into the binary
- all types that they
+ a count of the total number of items available for pagination in
+ UIs.
- expect it to use in the context of Any. However, for
- URLs which use the
+ count_total is only respected when offset is used. It is ignored
+ when key
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
+ is set.
+ in: query
+ required: false
+ type: boolean
+ - name: pagination.reverse
+ description: >-
+ reverse is set to true if results are to be returned in the
+ descending order.
- server that maps type URLs to message definitions as
- follows:
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
+ Since: cosmos-sdk 0.43
+ in: query
+ required: false
+ type: boolean
+ tags:
+ - Query
+ /pokt-network/poktroll/service/service/{index}:
+ get:
+ summary: Queries a list of Service items.
+ operationId: PoktrollServiceQuery_Service
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ service:
+ type: object
+ properties:
+ id:
+ type: string
+ description: Unique identifier for the service
+ title: >-
+ For example, what if we want to request a session for a
+ certain service but with some additional configs that
+ identify it?
+ name:
+ type: string
+ description: (Optional) Semantic human readable name for the service
+ title: >-
+ TODO_TECHDEBT: Name is currently unused but acts as a
+ reminder than an optional onchain representation of the
+ service is necessary
+ title: >-
+ Service message to encapsulate unique and semantic identifiers
+ for a service on the network
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
parameters:
- - name: owner
- description: owner is the owner address of the nft
- in: path
- required: true
- type: string
- - name: class_id
- description: class_id associated with the nft
+ - name: index
in: path
required: true
type: string
tags:
- Query
- /cosmos/nft/v1beta1/classes:
- get:
- summary: Classes queries all NFT classes
- operationId: CosmosNftV1Beta1Classes
+ /poktroll.service.Msg/AddService:
+ post:
+ operationId: PoktrollServiceMsg_AddService
responses:
'200':
description: A successful response.
+ schema:
+ type: object
+ default:
+ description: An unexpected error response.
schema:
type: object
properties:
- classes:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
type: array
items:
type: object
properties:
- id:
- type: string
- title: >-
- id defines the unique identifier of the NFT
- classification, similar to the contract address of
- ERC721
- name:
- type: string
- title: >-
- name defines the human-readable name of the NFT
- classification. Optional
- symbol:
- type: string
- title: >-
- symbol is an abbreviated name for nft classification.
- Optional
- description:
- type: string
- title: >-
- description is a brief description of nft
- classification. Optional
- uri:
- type: string
- title: >-
- uri for the class metadata stored off chain. It can
- define schema for Class and NFT `Data` attributes.
- Optional
- uri_hash:
+ '@type':
type: string
- title: >-
- uri_hash is a hash of the document pointed by uri.
- Optional
- data:
- title: >-
- data is the app specific metadata of the NFT class.
- Optional
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the
- type of the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's
- path must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be
- in a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the
- binary all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results
- based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available
- in the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty
- scheme) might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any
- values in the form
-
- of utility functions or additional generated methods of
- the Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and
- the unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will
- yield type
-
- name "y.z".
-
-
-
- JSON
+ additionalProperties: {}
+ parameters:
+ - name: body
+ description: >-
+ MsgAddService defines a message for adding a new message to the
+ network.
- ====
+ Services can be added by any actor in the network making them truly
- The JSON representation of an `Any` value uses the
- regular
+ permissionless.
- representation of the deserialized, embedded message,
- with an
+ TODO_DOCUMENT(@h5law): This is a key function in making services
- additional field `@type` which contains the type URL.
- Example:
+ permissionless, document it's usage and design - in docusaurus
+ covering how
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
+ the entire process works.
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ address:
+ type: string
+ title: >-
+ The Bech32 address of the service supplier using cosmos'
+ ScalarDescriptor
+ service:
+ title: The Service for which the supplier is adding to the network
+ type: object
+ properties:
+ id:
+ type: string
+ description: Unique identifier for the service
+ title: >-
+ For example, what if we want to request a session for a
+ certain service but with some additional configs that
+ identify it?
+ name:
+ type: string
+ description: (Optional) Semantic human readable name for the service
+ title: >-
+ TODO_TECHDEBT: Name is currently unused but acts as a
+ reminder than an optional onchain representation of the
+ service is necessary
+ description: >-
+ MsgAddService defines a message for adding a new message to the
+ network.
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
+ Services can be added by any actor in the network making them
+ truly
- If the embedded message type is well-known and has a
- custom JSON
+ permissionless.
- representation, that representation will be embedded
- adding a field
+ TODO_DOCUMENT(@h5law): This is a key function in making services
- `value` which holds the custom JSON in addition to the
- `@type`
+ permissionless, document it's usage and design - in docusaurus
+ covering how
- field. Example (for message
- [google.protobuf.Duration][]):
+ the entire process works.
+ tags:
+ - Msg
+ /poktroll.service.Msg/UpdateParams:
+ post:
+ summary: |-
+ UpdateParams defines a (governance) operation for updating the module
+ parameters. The authority defaults to the x/gov module account.
+ operationId: PoktrollServiceMsg_UpdateParams
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ description: >-
+ MsgUpdateParamsResponse defines the response structure for
+ executing a
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- description: Class defines the class of the nft type.
- description: class defines the class of the nft type.
- pagination:
- description: pagination defines the pagination in the response.
+ MsgUpdateParams message.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ parameters:
+ - name: body
+ description: MsgUpdateParams is the Msg/UpdateParams request type.
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ authority:
+ type: string
+ description: >-
+ authority is the address that controls the module (defaults to
+ x/gov unless overwritten).
+ params:
+ description: 'NOTE: All parameters must be supplied.'
type: object
properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
+ add_service_fee:
type: string
format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
+ description: MsgUpdateParams is the Msg/UpdateParams request type.
+ tags:
+ - Msg
+ /poktroll.session.Msg/UpdateParams:
+ post:
+ summary: |-
+ UpdateParams defines a (governance) operation for updating the module
+ parameters. The authority defaults to the x/gov module account.
+ operationId: PoktrollSessionMsg_UpdateParams
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ description: >-
+ MsgUpdateParamsResponse defines the response structure for
+ executing a
- was set, its value is undefined otherwise
- title: >-
- QueryClassesResponse is the response type for the Query/Classes
- RPC method
+ MsgUpdateParams message.
default:
description: An unexpected error response.
schema:
@@ -23642,49081 +20594,2550 @@ paths:
properties:
'@type':
type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
+ additionalProperties: {}
+ parameters:
+ - name: body
+ description: MsgUpdateParams is the Msg/UpdateParams request type.
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ authority:
+ type: string
+ description: >-
+ authority is the address that controls the module (defaults to
+ x/gov unless overwritten).
+ params:
+ description: |-
+ params defines the module parameters to update.
- used with implementation specific semantics.
+ NOTE: All parameters must be supplied.
+ type: object
+ description: MsgUpdateParams is the Msg/UpdateParams request type.
+ tags:
+ - Msg
+ /poktroll.supplier.Msg/StakeSupplier:
+ post:
+ operationId: PoktrollSupplierMsg_StakeSupplier
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
+ parameters:
+ - name: body
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ address:
+ type: string
+ title: >-
+ The Bech32 address of the supplier using cosmos'
+ ScalarDescriptor to ensure deterministic deterministic
+ encoding using cosmos' ScalarDescriptor to ensure
+ deterministic deterministic encoding
+ stake:
+ title: >-
+ The total amount of uPOKT the supplier has staked. Must be ≥
+ to the current amount that the supplier has staked (if any)
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an amount.
- URL that describes the type of the serialized message.
+ NOTE: The amount field is an Int which implements the custom
+ method
- Protobuf library provides support to pack/unpack Any values
- in the form
+ signatures required by gogoproto.
+ services:
+ type: array
+ items:
+ type: object
+ properties:
+ service:
+ title: The Service for which the supplier is configured
+ type: object
+ properties:
+ id:
+ type: string
+ description: Unique identifier for the service
+ title: >-
+ For example, what if we want to request a session
+ for a certain service but with some additional
+ configs that identify it?
+ name:
+ type: string
+ description: >-
+ (Optional) Semantic human readable name for the
+ service
+ title: >-
+ TODO_TECHDEBT: Name is currently unused but acts as
+ a reminder than an optional onchain representation
+ of the service is necessary
+ endpoints:
+ type: array
+ items:
+ type: object
+ properties:
+ url:
+ type: string
+ title: URL of the endpoint
+ rpc_type:
+ title: Type of RPC exposed on the url above
+ type: string
+ enum:
+ - UNKNOWN_RPC
+ - GRPC
+ - WEBSOCKET
+ - JSON_RPC
+ - REST
+ default: UNKNOWN_RPC
+ description: |-
+ - UNKNOWN_RPC: Undefined RPC type
+ - GRPC: gRPC
+ - WEBSOCKET: WebSocket
+ - JSON_RPC: JSON-RPC
+ - REST: REST
+ configs:
+ type: array
+ items:
+ type: object
+ properties:
+ key:
+ title: Config option key
+ type: string
+ enum:
+ - UNKNOWN_CONFIG
+ - TIMEOUT
+ default: UNKNOWN_CONFIG
+ description: >-
+ Enum to define configuration options
- of utility functions or additional generated methods of the
- Any type.
+ TODO_RESEARCH: Should these be configs, SLAs
+ or something else? There will be more
+ discussion once we get closer to
+ implementing on-chain QoS.
+ - UNKNOWN_CONFIG: Undefined config option
+ - TIMEOUT: Timeout setting
+ value:
+ type: string
+ title: Config option value
+ title: >-
+ Key-value wrapper for config options, as proto
+ maps can't be keyed by enums
+ title: Additional configuration options for the endpoint
+ title: >-
+ SupplierEndpoint message to hold service configuration
+ details
+ title: List of endpoints for the service
+ title: >-
+ SupplierServiceConfig holds the service configuration the
+ supplier stakes for
+ title: >-
+ The list of services this supplier is staked to provide
+ service for
+ tags:
+ - Msg
+ /poktroll.supplier.Msg/UnstakeSupplier:
+ post:
+ operationId: PoktrollSupplierMsg_UnstakeSupplier
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ parameters:
+ - name: body
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ address:
+ type: string
+ title: >-
+ The Bech32 address of the supplier using cosmos'
+ ScalarDescriptor to ensure deterministic deterministic
+ encoding using cosmos' ScalarDescriptor to ensure
+ deterministic deterministic encoding
+ tags:
+ - Msg
+ /poktroll.supplier.Msg/UpdateParams:
+ post:
+ summary: |-
+ UpdateParams defines a (governance) operation for updating the module
+ parameters. The authority defaults to the x/gov module account.
+ operationId: PoktrollSupplierMsg_UpdateParams
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ description: >-
+ MsgUpdateParamsResponse defines the response structure for
+ executing a
- Example 1: Pack and unpack a message in C++.
+ MsgUpdateParams message.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ parameters:
+ - name: body
+ description: MsgUpdateParams is the Msg/UpdateParams request type.
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ authority:
+ type: string
+ description: >-
+ authority is the address that controls the module (defaults to
+ x/gov unless overwritten).
+ params:
+ description: 'NOTE: All parameters must be supplied.'
+ type: object
+ description: MsgUpdateParams is the Msg/UpdateParams request type.
+ tags:
+ - Msg
+definitions:
+ cosmos.auth.v1beta1.MsgUpdateParams:
+ type: object
+ properties:
+ authority:
+ type: string
+ description: >-
+ authority is the address that controls the module (defaults to x/gov
+ unless overwritten).
+ params:
+ description: |-
+ params defines the x/auth parameters to update.
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
+ NOTE: All parameters must be supplied.
+ type: object
+ properties:
+ max_memo_characters:
+ type: string
+ format: uint64
+ tx_sig_limit:
+ type: string
+ format: uint64
+ tx_size_cost_per_byte:
+ type: string
+ format: uint64
+ sig_verify_cost_ed25519:
+ type: string
+ format: uint64
+ sig_verify_cost_secp256k1:
+ type: string
+ format: uint64
+ description: |-
+ MsgUpdateParams is the Msg/UpdateParams request type.
- Example 2: Pack and unpack a message in Java.
+ Since: cosmos-sdk 0.47
+ cosmos.auth.v1beta1.MsgUpdateParamsResponse:
+ type: object
+ description: |-
+ MsgUpdateParamsResponse defines the response structure for executing a
+ MsgUpdateParams message.
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
+ Since: cosmos-sdk 0.47
+ cosmos.auth.v1beta1.Params:
+ type: object
+ properties:
+ max_memo_characters:
+ type: string
+ format: uint64
+ tx_sig_limit:
+ type: string
+ format: uint64
+ tx_size_cost_per_byte:
+ type: string
+ format: uint64
+ sig_verify_cost_ed25519:
+ type: string
+ format: uint64
+ sig_verify_cost_secp256k1:
+ type: string
+ format: uint64
+ description: Params defines the parameters for the auth module.
+ google.protobuf.Any:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of the
+ serialized
- Example 3: Pack and unpack a message in Python.
+ protocol buffer message. This string must contain at least
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
+ one "/" character. The last segment of the URL's path must represent
- Example 4: Pack and unpack a message in Go
+ the fully qualified name of the type (as in
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
+ `path/google.protobuf.Duration`). The name should be in a canonical
+ form
- The pack methods provided by protobuf library will by
- default use
+ (e.g., leading "." is not accepted).
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
- methods only use the fully qualified type name after the
- last '/'
+ In practice, teams usually precompile into the binary all types that
+ they
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
+ expect it to use in the context of Any. However, for URLs which use
+ the
- name "y.z".
+ scheme `http`, `https`, or no scheme, one can optionally set up a type
+ server that maps type URLs to message definitions as follows:
- JSON
+ * If no scheme is provided, `https` is assumed.
- ====
+ * An HTTP GET on the URL must yield a [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
- The JSON representation of an `Any` value uses the regular
+ Note: this functionality is not currently available in the official
- representation of the deserialized, embedded message, with
- an
+ protobuf release, and it is not used for type URLs beginning with
- additional field `@type` which contains the type URL.
- Example:
+ type.googleapis.com.
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
+ Schemes other than `http`, `https` (or the empty scheme) might be
- If the embedded message type is well-known and has a custom
- JSON
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message along with
+ a
- representation, that representation will be embedded adding
- a field
+ URL that describes the type of the serialized message.
- `value` which holds the custom JSON in addition to the
- `@type`
- field. Example (for message [google.protobuf.Duration][]):
+ Protobuf library provides support to pack/unpack Any values in the form
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
+ of utility functions or additional generated methods of the Any type.
- It is less efficient than using key. Only one of offset or key
- should
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
+ Example 1: Pack and unpack a message in C++.
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
- a count of the total number of items available for pagination in
- UIs.
+ Example 2: Pack and unpack a message in Java.
- count_total is only respected when offset is used. It is ignored
- when key
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
+ Example 3: Pack and unpack a message in Python.
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /cosmos/nft/v1beta1/classes/{class_id}:
- get:
- summary: Class queries an NFT class based on its id
- operationId: CosmosNftV1Beta1Class
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- class:
- description: class defines the class of the nft type.
- type: object
- properties:
- id:
- type: string
- title: >-
- id defines the unique identifier of the NFT
- classification, similar to the contract address of ERC721
- name:
- type: string
- title: >-
- name defines the human-readable name of the NFT
- classification. Optional
- symbol:
- type: string
- title: >-
- symbol is an abbreviated name for nft classification.
- Optional
- description:
- type: string
- title: >-
- description is a brief description of nft classification.
- Optional
- uri:
- type: string
- title: >-
- uri for the class metadata stored off chain. It can define
- schema for Class and NFT `Data` attributes. Optional
- uri_hash:
- type: string
- title: >-
- uri_hash is a hash of the document pointed by uri.
- Optional
- data:
- title: >-
- data is the app specific metadata of the NFT class.
- Optional
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type
- of the serialized
+ Example 4: Pack and unpack a message in Go
- protocol buffer message. This string must contain at
- least
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
- one "/" character. The last segment of the URL's path
- must represent
+ The pack methods provided by protobuf library will by default use
- the fully qualified name of the type (as in
+ 'type.googleapis.com/full.type.name' as the type URL and the unpack
- `path/google.protobuf.Duration`). The name should be
- in a canonical form
+ methods only use the fully qualified type name after the last '/'
- (e.g., leading "." is not accepted).
+ in the type URL, for example "foo.bar.com/x/y.z" will yield type
+ name "y.z".
- In practice, teams usually precompile into the binary
- all types that they
- expect it to use in the context of Any. However, for
- URLs which use the
+ JSON
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
- server that maps type URLs to message definitions as
- follows:
+ The JSON representation of an `Any` value uses the regular
+ representation of the deserialized, embedded message, with an
- * If no scheme is provided, `https` is assumed.
+ additional field `@type` which contains the type URL. Example:
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results
- based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
- Note: this functionality is not currently available in
- the official
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
- protobuf release, and it is not used for type URLs
- beginning with
+ If the embedded message type is well-known and has a custom JSON
- type.googleapis.com.
+ representation, that representation will be embedded adding a field
+ `value` which holds the custom JSON in addition to the `@type`
- Schemes other than `http`, `https` (or the empty
- scheme) might be
+ field. Example (for message [google.protobuf.Duration][]):
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ google.rpc.Status:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of the
+ serialized
- URL that describes the type of the serialized message.
+ protocol buffer message. This string must contain at least
+ one "/" character. The last segment of the URL's path must
+ represent
- Protobuf library provides support to pack/unpack Any
- values in the form
+ the fully qualified name of the type (as in
- of utility functions or additional generated methods of
- the Any type.
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
+ (e.g., leading "." is not accepted).
- Example 1: Pack and unpack a message in C++.
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
+ In practice, teams usually precompile into the binary all types
+ that they
- Example 2: Pack and unpack a message in Java.
+ expect it to use in the context of Any. However, for URLs which
+ use the
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
+ scheme `http`, `https`, or no scheme, one can optionally set up
+ a type
- Example 3: Pack and unpack a message in Python.
+ server that maps type URLs to message definitions as follows:
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
- Example 4: Pack and unpack a message in Go
+ * If no scheme is provided, `https` is assumed.
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
+ * An HTTP GET on the URL must yield a [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
- The pack methods provided by protobuf library will by
- default use
+ Note: this functionality is not currently available in the
+ official
- 'type.googleapis.com/full.type.name' as the type URL and
- the unpack
+ protobuf release, and it is not used for type URLs beginning
+ with
- methods only use the fully qualified type name after the
- last '/'
+ type.googleapis.com.
- in the type URL, for example "foo.bar.com/x/y.z" will
- yield type
- name "y.z".
+ Schemes other than `http`, `https` (or the empty scheme) might
+ be
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message along
+ with a
+ URL that describes the type of the serialized message.
- JSON
- ====
+ Protobuf library provides support to pack/unpack Any values in the
+ form
- The JSON representation of an `Any` value uses the regular
+ of utility functions or additional generated methods of the Any
+ type.
- representation of the deserialized, embedded message, with
- an
- additional field `@type` which contains the type URL.
- Example:
+ Example 1: Pack and unpack a message in C++.
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
+ Example 2: Pack and unpack a message in Java.
- If the embedded message type is well-known and has a
- custom JSON
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- representation, that representation will be embedded
- adding a field
+ Example 3: Pack and unpack a message in Python.
- `value` which holds the custom JSON in addition to the
- `@type`
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
- field. Example (for message [google.protobuf.Duration][]):
+ Example 4: Pack and unpack a message in Go
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- title: >-
- QueryClassResponse is the response type for the Query/Class RPC
- method
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
- protocol buffer message. This string must contain at
- least
+ The pack methods provided by protobuf library will by default use
- one "/" character. The last segment of the URL's path
- must represent
+ 'type.googleapis.com/full.type.name' as the type URL and the unpack
- the fully qualified name of the type (as in
+ methods only use the fully qualified type name after the last '/'
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
+ in the type URL, for example "foo.bar.com/x/y.z" will yield type
- (e.g., leading "." is not accepted).
+ name "y.z".
- In practice, teams usually precompile into the binary
- all types that they
+ JSON
- expect it to use in the context of Any. However, for
- URLs which use the
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
+ The JSON representation of an `Any` value uses the regular
- server that maps type URLs to message definitions as
- follows:
+ representation of the deserialized, embedded message, with an
+ additional field `@type` which contains the type URL. Example:
- * If no scheme is provided, `https` is assumed.
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
- Note: this functionality is not currently available in
- the official
+ If the embedded message type is well-known and has a custom JSON
- protobuf release, and it is not used for type URLs
- beginning with
+ representation, that representation will be embedded adding a field
- type.googleapis.com.
+ `value` which holds the custom JSON in addition to the `@type`
+ field. Example (for message [google.protobuf.Duration][]):
- Schemes other than `http`, `https` (or the empty scheme)
- might be
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ cosmos.authz.v1beta1.Grant:
+ type: object
+ properties:
+ authorization:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of the
+ serialized
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
+ protocol buffer message. This string must contain at least
- URL that describes the type of the serialized message.
+ one "/" character. The last segment of the URL's path must
+ represent
+ the fully qualified name of the type (as in
- Protobuf library provides support to pack/unpack Any values
- in the form
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
- of utility functions or additional generated methods of the
- Any type.
+ (e.g., leading "." is not accepted).
- Example 1: Pack and unpack a message in C++.
+ In practice, teams usually precompile into the binary all types
+ that they
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
+ expect it to use in the context of Any. However, for URLs which
+ use the
- Example 2: Pack and unpack a message in Java.
+ scheme `http`, `https`, or no scheme, one can optionally set up a
+ type
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
+ server that maps type URLs to message definitions as follows:
- Example 3: Pack and unpack a message in Python.
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
+ * If no scheme is provided, `https` is assumed.
- Example 4: Pack and unpack a message in Go
+ * An HTTP GET on the URL must yield a [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
+ Note: this functionality is not currently available in the
+ official
- The pack methods provided by protobuf library will by
- default use
+ protobuf release, and it is not used for type URLs beginning with
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
+ type.googleapis.com.
- methods only use the fully qualified type name after the
- last '/'
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
+ Schemes other than `http`, `https` (or the empty scheme) might be
- name "y.z".
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message along
+ with a
+ URL that describes the type of the serialized message.
- JSON
+ Protobuf library provides support to pack/unpack Any values in the
+ form
- ====
+ of utility functions or additional generated methods of the Any type.
- The JSON representation of an `Any` value uses the regular
- representation of the deserialized, embedded message, with
- an
+ Example 1: Pack and unpack a message in C++.
- additional field `@type` which contains the type URL.
- Example:
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
+ Example 2: Pack and unpack a message in Java.
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- If the embedded message type is well-known and has a custom
- JSON
+ Example 3: Pack and unpack a message in Python.
- representation, that representation will be embedded adding
- a field
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
- `value` which holds the custom JSON in addition to the
- `@type`
+ Example 4: Pack and unpack a message in Go
- field. Example (for message [google.protobuf.Duration][]):
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: class_id
- description: class_id associated with the nft
- in: path
- required: true
- type: string
- tags:
- - Query
- /cosmos/nft/v1beta1/nfts:
- get:
- summary: >-
- NFTs queries all NFTs of a given class or owner,choose at least one of
- the two, similar to tokenByIndex in
+ The pack methods provided by protobuf library will by default use
- ERC721Enumerable
- operationId: CosmosNftV1Beta1NFTs
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- nfts:
- type: array
- items:
- type: object
- properties:
- class_id:
- type: string
- title: >-
- class_id associated with the NFT, similar to the
- contract address of ERC721
- id:
- type: string
- title: id is a unique identifier of the NFT
- uri:
- type: string
- title: uri for the NFT metadata stored off chain
- uri_hash:
- type: string
- title: uri_hash is a hash of the document pointed by uri
- data:
- title: data is an app specific data of the NFT. Optional
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the
- type of the serialized
+ 'type.googleapis.com/full.type.name' as the type URL and the unpack
- protocol buffer message. This string must contain at
- least
+ methods only use the fully qualified type name after the last '/'
- one "/" character. The last segment of the URL's
- path must represent
+ in the type URL, for example "foo.bar.com/x/y.z" will yield type
- the fully qualified name of the type (as in
+ name "y.z".
- `path/google.protobuf.Duration`). The name should be
- in a canonical form
- (e.g., leading "." is not accepted).
+ JSON
- In practice, teams usually precompile into the
- binary all types that they
+ The JSON representation of an `Any` value uses the regular
- expect it to use in the context of Any. However, for
- URLs which use the
+ representation of the deserialized, embedded message, with an
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
+ additional field `@type` which contains the type URL. Example:
- server that maps type URLs to message definitions as
- follows:
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
- * If no scheme is provided, `https` is assumed.
+ If the embedded message type is well-known and has a custom JSON
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results
- based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
+ representation, that representation will be embedded adding a field
- Note: this functionality is not currently available
- in the official
+ `value` which holds the custom JSON in addition to the `@type`
- protobuf release, and it is not used for type URLs
- beginning with
+ field. Example (for message [google.protobuf.Duration][]):
- type.googleapis.com.
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ expiration:
+ type: string
+ format: date-time
+ title: >-
+ time when the grant will expire and will be pruned. If null, then the
+ grant
+ doesn't have a time expiration (other conditions in `authorization`
- Schemes other than `http`, `https` (or the empty
- scheme) might be
+ may apply to invalidate the grant)
+ description: |-
+ Grant gives permissions to execute
+ the provide method with expiration time.
+ cosmos.authz.v1beta1.MsgExec:
+ type: object
+ properties:
+ grantee:
+ type: string
+ msgs:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of the
+ serialized
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
+ protocol buffer message. This string must contain at least
- URL that describes the type of the serialized message.
+ one "/" character. The last segment of the URL's path must
+ represent
+ the fully qualified name of the type (as in
- Protobuf library provides support to pack/unpack Any
- values in the form
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
- of utility functions or additional generated methods of
- the Any type.
+ (e.g., leading "." is not accepted).
- Example 1: Pack and unpack a message in C++.
+ In practice, teams usually precompile into the binary all types
+ that they
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
+ expect it to use in the context of Any. However, for URLs which
+ use the
- Example 2: Pack and unpack a message in Java.
+ scheme `http`, `https`, or no scheme, one can optionally set up
+ a type
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
+ server that maps type URLs to message definitions as follows:
- Example 3: Pack and unpack a message in Python.
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
+ * If no scheme is provided, `https` is assumed.
- Example 4: Pack and unpack a message in Go
+ * An HTTP GET on the URL must yield a [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
+ Note: this functionality is not currently available in the
+ official
- The pack methods provided by protobuf library will by
- default use
+ protobuf release, and it is not used for type URLs beginning
+ with
- 'type.googleapis.com/full.type.name' as the type URL and
- the unpack
+ type.googleapis.com.
- methods only use the fully qualified type name after the
- last '/'
- in the type URL, for example "foo.bar.com/x/y.z" will
- yield type
+ Schemes other than `http`, `https` (or the empty scheme) might
+ be
- name "y.z".
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message along
+ with a
+ URL that describes the type of the serialized message.
- JSON
+ Protobuf library provides support to pack/unpack Any values in the
+ form
- ====
+ of utility functions or additional generated methods of the Any
+ type.
- The JSON representation of an `Any` value uses the
- regular
- representation of the deserialized, embedded message,
- with an
+ Example 1: Pack and unpack a message in C++.
- additional field `@type` which contains the type URL.
- Example:
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
+ Example 2: Pack and unpack a message in Java.
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- If the embedded message type is well-known and has a
- custom JSON
+ Example 3: Pack and unpack a message in Python.
- representation, that representation will be embedded
- adding a field
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
- `value` which holds the custom JSON in addition to the
- `@type`
+ Example 4: Pack and unpack a message in Go
- field. Example (for message
- [google.protobuf.Duration][]):
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- description: NFT defines the NFT.
- title: NFT defines the NFT
- pagination:
- description: pagination defines the pagination in the response.
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
+ The pack methods provided by protobuf library will by default use
- was set, its value is undefined otherwise
- title: >-
- QueryNFTsResponse is the response type for the Query/NFTs RPC
- methods
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
+ 'type.googleapis.com/full.type.name' as the type URL and the unpack
- protocol buffer message. This string must contain at
- least
+ methods only use the fully qualified type name after the last '/'
- one "/" character. The last segment of the URL's path
- must represent
+ in the type URL, for example "foo.bar.com/x/y.z" will yield type
- the fully qualified name of the type (as in
+ name "y.z".
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
- (e.g., leading "." is not accepted).
+ JSON
- In practice, teams usually precompile into the binary
- all types that they
+ The JSON representation of an `Any` value uses the regular
- expect it to use in the context of Any. However, for
- URLs which use the
+ representation of the deserialized, embedded message, with an
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
+ additional field `@type` which contains the type URL. Example:
- server that maps type URLs to message definitions as
- follows:
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
- * If no scheme is provided, `https` is assumed.
+ If the embedded message type is well-known and has a custom JSON
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
+ representation, that representation will be embedded adding a field
- Note: this functionality is not currently available in
- the official
+ `value` which holds the custom JSON in addition to the `@type`
- protobuf release, and it is not used for type URLs
- beginning with
+ field. Example (for message [google.protobuf.Duration][]):
- type.googleapis.com.
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ description: >-
+ Execute Msg.
+ The x/authz will try to find a grant matching (msg.signers[0],
+ grantee, MsgTypeURL(msg))
- Schemes other than `http`, `https` (or the empty scheme)
- might be
+ triple and validate it.
+ description: |-
+ MsgExec attempts to execute the provided messages using
+ authorizations granted to the grantee. Each message should have only
+ one signer corresponding to the granter of the authorization.
+ cosmos.authz.v1beta1.MsgExecResponse:
+ type: object
+ properties:
+ results:
+ type: array
+ items:
+ type: string
+ format: byte
+ description: MsgExecResponse defines the Msg/MsgExecResponse response type.
+ cosmos.authz.v1beta1.MsgGrant:
+ type: object
+ properties:
+ granter:
+ type: string
+ grantee:
+ type: string
+ grant:
+ type: object
+ properties:
+ authorization:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of the
+ serialized
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
+ protocol buffer message. This string must contain at least
- URL that describes the type of the serialized message.
+ one "/" character. The last segment of the URL's path must
+ represent
+ the fully qualified name of the type (as in
- Protobuf library provides support to pack/unpack Any values
- in the form
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
- of utility functions or additional generated methods of the
- Any type.
+ (e.g., leading "." is not accepted).
- Example 1: Pack and unpack a message in C++.
+ In practice, teams usually precompile into the binary all
+ types that they
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
+ expect it to use in the context of Any. However, for URLs
+ which use the
- Example 2: Pack and unpack a message in Java.
+ scheme `http`, `https`, or no scheme, one can optionally set
+ up a type
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
+ server that maps type URLs to message definitions as follows:
- Example 3: Pack and unpack a message in Python.
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
+ * If no scheme is provided, `https` is assumed.
- Example 4: Pack and unpack a message in Go
+ * An HTTP GET on the URL must yield a [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based on
+ the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
+ Note: this functionality is not currently available in the
+ official
- The pack methods provided by protobuf library will by
- default use
+ protobuf release, and it is not used for type URLs beginning
+ with
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
+ type.googleapis.com.
- methods only use the fully qualified type name after the
- last '/'
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
+ Schemes other than `http`, `https` (or the empty scheme) might
+ be
- name "y.z".
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message
+ along with a
+ URL that describes the type of the serialized message.
- JSON
+ Protobuf library provides support to pack/unpack Any values in the
+ form
- ====
+ of utility functions or additional generated methods of the Any
+ type.
- The JSON representation of an `Any` value uses the regular
- representation of the deserialized, embedded message, with
- an
+ Example 1: Pack and unpack a message in C++.
- additional field `@type` which contains the type URL.
- Example:
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
+ Example 2: Pack and unpack a message in Java.
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- If the embedded message type is well-known and has a custom
- JSON
+ Example 3: Pack and unpack a message in Python.
- representation, that representation will be embedded adding
- a field
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
- `value` which holds the custom JSON in addition to the
- `@type`
+ Example 4: Pack and unpack a message in Go
- field. Example (for message [google.protobuf.Duration][]):
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: class_id
- description: class_id associated with the nft
- in: query
- required: false
- type: string
- - name: owner
- description: owner is the owner address of the nft
- in: query
- required: false
- type: string
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
+ The pack methods provided by protobuf library will by default use
- It is less efficient than using key. Only one of offset or key
- should
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
+ methods only use the fully qualified type name after the last '/'
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
+ in the type URL, for example "foo.bar.com/x/y.z" will yield type
- a count of the total number of items available for pagination in
- UIs.
+ name "y.z".
- count_total is only respected when offset is used. It is ignored
- when key
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
+ JSON
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /cosmos/nft/v1beta1/nfts/{class_id}/{id}:
- get:
- summary: NFT queries an NFT based on its class and id.
- operationId: CosmosNftV1Beta1NFT
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- nft:
- title: owner is the owner address of the nft
- type: object
- properties:
- class_id:
- type: string
- title: >-
- class_id associated with the NFT, similar to the contract
- address of ERC721
- id:
- type: string
- title: id is a unique identifier of the NFT
- uri:
- type: string
- title: uri for the NFT metadata stored off chain
- uri_hash:
- type: string
- title: uri_hash is a hash of the document pointed by uri
- data:
- title: data is an app specific data of the NFT. Optional
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type
- of the serialized
+ The JSON representation of an `Any` value uses the regular
- protocol buffer message. This string must contain at
- least
+ representation of the deserialized, embedded message, with an
- one "/" character. The last segment of the URL's path
- must represent
+ additional field `@type` which contains the type URL. Example:
- the fully qualified name of the type (as in
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
- `path/google.protobuf.Duration`). The name should be
- in a canonical form
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
- (e.g., leading "." is not accepted).
+ If the embedded message type is well-known and has a custom JSON
+ representation, that representation will be embedded adding a
+ field
- In practice, teams usually precompile into the binary
- all types that they
+ `value` which holds the custom JSON in addition to the `@type`
- expect it to use in the context of Any. However, for
- URLs which use the
+ field. Example (for message [google.protobuf.Duration][]):
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ expiration:
+ type: string
+ format: date-time
+ title: >-
+ time when the grant will expire and will be pruned. If null, then
+ the grant
- server that maps type URLs to message definitions as
- follows:
+ doesn't have a time expiration (other conditions in
+ `authorization`
+ may apply to invalidate the grant)
+ description: |-
+ Grant gives permissions to execute
+ the provide method with expiration time.
+ description: >-
+ MsgGrant is a request type for Grant method. It declares authorization to
+ the grantee
- * If no scheme is provided, `https` is assumed.
+ on behalf of the granter with the provided expiration time.
+ cosmos.authz.v1beta1.MsgGrantResponse:
+ type: object
+ description: MsgGrantResponse defines the Msg/MsgGrant response type.
+ cosmos.authz.v1beta1.MsgRevoke:
+ type: object
+ properties:
+ granter:
+ type: string
+ grantee:
+ type: string
+ msg_type_url:
+ type: string
+ description: |-
+ MsgRevoke revokes any authorization with the provided sdk.Msg type on the
+ granter's account with that has been granted to the grantee.
+ cosmos.authz.v1beta1.MsgRevokeResponse:
+ type: object
+ description: MsgRevokeResponse defines the Msg/MsgRevokeResponse response type.
+ cosmos.bank.v1beta1.Input:
+ type: object
+ properties:
+ address:
+ type: string
+ coins:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: |-
+ Coin defines a token with a denomination and an amount.
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results
- based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
+ NOTE: The amount field is an Int which implements the custom method
+ signatures required by gogoproto.
+ description: Input models transaction input.
+ cosmos.bank.v1beta1.MsgMultiSend:
+ type: object
+ properties:
+ inputs:
+ type: array
+ items:
+ type: object
+ properties:
+ address:
+ type: string
+ coins:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an amount.
- Note: this functionality is not currently available in
- the official
- protobuf release, and it is not used for type URLs
- beginning with
+ NOTE: The amount field is an Int which implements the custom
+ method
- type.googleapis.com.
+ signatures required by gogoproto.
+ description: Input models transaction input.
+ description: >-
+ Inputs, despite being `repeated`, only allows one sender input. This
+ is
+ checked in MsgMultiSend's ValidateBasic.
+ outputs:
+ type: array
+ items:
+ type: object
+ properties:
+ address:
+ type: string
+ coins:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an amount.
- Schemes other than `http`, `https` (or the empty
- scheme) might be
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
+ NOTE: The amount field is an Int which implements the custom
+ method
- URL that describes the type of the serialized message.
+ signatures required by gogoproto.
+ description: Output models transaction outputs.
+ description: MsgMultiSend represents an arbitrary multi-in, multi-out send message.
+ cosmos.bank.v1beta1.MsgMultiSendResponse:
+ type: object
+ description: MsgMultiSendResponse defines the Msg/MultiSend response type.
+ cosmos.bank.v1beta1.MsgSend:
+ type: object
+ properties:
+ from_address:
+ type: string
+ to_address:
+ type: string
+ amount:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: |-
+ Coin defines a token with a denomination and an amount.
+ NOTE: The amount field is an Int which implements the custom method
+ signatures required by gogoproto.
+ description: MsgSend represents a message to send coins from one account to another.
+ cosmos.bank.v1beta1.MsgSendResponse:
+ type: object
+ description: MsgSendResponse defines the Msg/Send response type.
+ cosmos.bank.v1beta1.MsgSetSendEnabled:
+ type: object
+ properties:
+ authority:
+ type: string
+ description: authority is the address that controls the module.
+ send_enabled:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ enabled:
+ type: boolean
+ description: >-
+ SendEnabled maps coin denom to a send_enabled status (whether a
+ denom is
- Protobuf library provides support to pack/unpack Any
- values in the form
+ sendable).
+ description: send_enabled is the list of entries to add or update.
+ use_default_for:
+ type: array
+ items:
+ type: string
+ description: >-
+ use_default_for is a list of denoms that should use the
+ params.default_send_enabled value.
- of utility functions or additional generated methods of
- the Any type.
+ Denoms listed here will have their SendEnabled entries deleted.
+ If a denom is included that doesn't have a SendEnabled entry,
- Example 1: Pack and unpack a message in C++.
+ it will be ignored.
+ description: |-
+ MsgSetSendEnabled is the Msg/SetSendEnabled request type.
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
+ Only entries to add/update/delete need to be included.
+ Existing SendEnabled entries that are not included in this
+ message are left unchanged.
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
+ Since: cosmos-sdk 0.47
+ cosmos.bank.v1beta1.MsgSetSendEnabledResponse:
+ type: object
+ description: |-
+ MsgSetSendEnabledResponse defines the Msg/SetSendEnabled response type.
- The pack methods provided by protobuf library will by
- default use
+ Since: cosmos-sdk 0.47
+ cosmos.bank.v1beta1.MsgUpdateParams:
+ type: object
+ properties:
+ authority:
+ type: string
+ description: >-
+ authority is the address that controls the module (defaults to x/gov
+ unless overwritten).
+ params:
+ description: |-
+ params defines the x/bank parameters to update.
- 'type.googleapis.com/full.type.name' as the type URL and
- the unpack
+ NOTE: All parameters must be supplied.
+ type: object
+ properties:
+ send_enabled:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ enabled:
+ type: boolean
+ description: >-
+ SendEnabled maps coin denom to a send_enabled status (whether a
+ denom is
- methods only use the fully qualified type name after the
- last '/'
+ sendable).
+ description: >-
+ Deprecated: Use of SendEnabled in params is deprecated.
- in the type URL, for example "foo.bar.com/x/y.z" will
- yield type
+ For genesis, use the newly added send_enabled field in the genesis
+ object.
- name "y.z".
+ Storage, lookup, and manipulation of this information is now in
+ the keeper.
+ As of cosmos-sdk 0.47, this only exists for backwards
+ compatibility of genesis files.
+ default_send_enabled:
+ type: boolean
+ description: |-
+ MsgUpdateParams is the Msg/UpdateParams request type.
- JSON
+ Since: cosmos-sdk 0.47
+ cosmos.bank.v1beta1.MsgUpdateParamsResponse:
+ type: object
+ description: |-
+ MsgUpdateParamsResponse defines the response structure for executing a
+ MsgUpdateParams message.
- ====
+ Since: cosmos-sdk 0.47
+ cosmos.bank.v1beta1.Output:
+ type: object
+ properties:
+ address:
+ type: string
+ coins:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: |-
+ Coin defines a token with a denomination and an amount.
- The JSON representation of an `Any` value uses the regular
+ NOTE: The amount field is an Int which implements the custom method
+ signatures required by gogoproto.
+ description: Output models transaction outputs.
+ cosmos.bank.v1beta1.Params:
+ type: object
+ properties:
+ send_enabled:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ enabled:
+ type: boolean
+ description: >-
+ SendEnabled maps coin denom to a send_enabled status (whether a
+ denom is
- representation of the deserialized, embedded message, with
- an
+ sendable).
+ description: >-
+ Deprecated: Use of SendEnabled in params is deprecated.
- additional field `@type` which contains the type URL.
- Example:
+ For genesis, use the newly added send_enabled field in the genesis
+ object.
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
+ Storage, lookup, and manipulation of this information is now in the
+ keeper.
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
- If the embedded message type is well-known and has a
- custom JSON
+ As of cosmos-sdk 0.47, this only exists for backwards compatibility of
+ genesis files.
+ default_send_enabled:
+ type: boolean
+ description: Params defines the parameters for the bank module.
+ cosmos.bank.v1beta1.SendEnabled:
+ type: object
+ properties:
+ denom:
+ type: string
+ enabled:
+ type: boolean
+ description: |-
+ SendEnabled maps coin denom to a send_enabled status (whether a denom is
+ sendable).
+ cosmos.base.v1beta1.Coin:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: |-
+ Coin defines a token with a denomination and an amount.
- representation, that representation will be embedded
- adding a field
+ NOTE: The amount field is an Int which implements the custom method
+ signatures required by gogoproto.
+ cosmos.base.node.v1beta1.ConfigResponse:
+ type: object
+ properties:
+ minimum_gas_price:
+ type: string
+ pruning_keep_recent:
+ type: string
+ title: pruning settings
+ pruning_interval:
+ type: string
+ description: ConfigResponse defines the response structure for the Config gRPC query.
+ cosmos.base.node.v1beta1.StatusResponse:
+ type: object
+ properties:
+ earliest_store_height:
+ type: string
+ format: uint64
+ title: earliest block height available in the store
+ height:
+ type: string
+ format: uint64
+ title: current block height
+ timestamp:
+ type: string
+ format: date-time
+ title: block height timestamp
+ app_hash:
+ type: string
+ format: byte
+ title: app hash of the current block
+ validator_hash:
+ type: string
+ format: byte
+ title: validator hash provided by the consensus header
+ description: StateResponse defines the response structure for the status of a node.
+ cosmos.consensus.v1.MsgUpdateParams:
+ type: object
+ properties:
+ authority:
+ type: string
+ description: >-
+ authority is the address that controls the module (defaults to x/gov
+ unless overwritten).
+ block:
+ description: |-
+ params defines the x/consensus parameters to update.
+ VersionsParams is not included in this Msg because it is tracked
+ separarately in x/upgrade.
- `value` which holds the custom JSON in addition to the
- `@type`
+ NOTE: All parameters must be supplied.
+ type: object
+ properties:
+ max_bytes:
+ type: string
+ format: int64
+ title: |-
+ Max block size, in bytes.
+ Note: must be greater than 0
+ max_gas:
+ type: string
+ format: int64
+ title: |-
+ Max gas per block.
+ Note: must be greater or equal to -1
+ evidence:
+ type: object
+ properties:
+ max_age_num_blocks:
+ type: string
+ format: int64
+ description: >-
+ Max age of evidence, in blocks.
- field. Example (for message [google.protobuf.Duration][]):
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- description: NFT defines the NFT.
- title: QueryNFTResponse is the response type for the Query/NFT RPC method
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
+ The basic formula for calculating this is: MaxAgeDuration /
+ {average block
- protocol buffer message. This string must contain at
- least
+ time}.
+ max_age_duration:
+ type: string
+ description: >-
+ Max age of evidence, in time.
- one "/" character. The last segment of the URL's path
- must represent
- the fully qualified name of the type (as in
+ It should correspond with an app's "unbonding period" or other
+ similar
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
+ mechanism for handling [Nothing-At-Stake
- (e.g., leading "." is not accepted).
+ attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed).
+ max_bytes:
+ type: string
+ format: int64
+ title: >-
+ This sets the maximum size of total evidence in bytes that can be
+ committed in a single block.
+ and should fall comfortably under the max block bytes.
- In practice, teams usually precompile into the binary
- all types that they
+ Default is 1048576 or 1MB
+ description: EvidenceParams determine how we handle evidence of malfeasance.
+ validator:
+ type: object
+ properties:
+ pub_key_types:
+ type: array
+ items:
+ type: string
+ description: |-
+ ValidatorParams restrict the public key types validators can use.
+ NOTE: uses ABCI pubkey naming, not Amino names.
+ abci:
+ title: 'Since: cosmos-sdk 0.50'
+ type: object
+ properties:
+ vote_extensions_enable_height:
+ type: string
+ format: int64
+ description: >-
+ vote_extensions_enable_height configures the first height during
+ which
- expect it to use in the context of Any. However, for
- URLs which use the
+ vote extensions will be enabled. During this specified height, and
+ for all
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
+ subsequent heights, precommit messages that do not contain valid
+ extension data
- server that maps type URLs to message definitions as
- follows:
+ will be considered invalid. Prior to this height, vote extensions
+ will not
+ be used or accepted by validators on the network.
- * If no scheme is provided, `https` is assumed.
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
+ Once enabled, vote extensions will be created by the application
+ in ExtendVote,
- Note: this functionality is not currently available in
- the official
+ passed to the application for validation in VerifyVoteExtension
+ and given
- protobuf release, and it is not used for type URLs
- beginning with
+ to the application to use when proposing a block during
+ PrepareProposal.
+ description: >-
+ ABCIParams configure functionality specific to the Application
+ Blockchain Interface.
+ description: MsgUpdateParams is the Msg/UpdateParams request type.
+ cosmos.consensus.v1.MsgUpdateParamsResponse:
+ type: object
+ description: |-
+ MsgUpdateParamsResponse defines the response structure for executing a
+ MsgUpdateParams message.
+ tendermint.types.ABCIParams:
+ type: object
+ properties:
+ vote_extensions_enable_height:
+ type: string
+ format: int64
+ description: >-
+ vote_extensions_enable_height configures the first height during which
- type.googleapis.com.
+ vote extensions will be enabled. During this specified height, and for
+ all
+ subsequent heights, precommit messages that do not contain valid
+ extension data
- Schemes other than `http`, `https` (or the empty scheme)
- might be
+ will be considered invalid. Prior to this height, vote extensions will
+ not
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
+ be used or accepted by validators on the network.
- URL that describes the type of the serialized message.
+ Once enabled, vote extensions will be created by the application in
+ ExtendVote,
- Protobuf library provides support to pack/unpack Any values
- in the form
+ passed to the application for validation in VerifyVoteExtension and
+ given
- of utility functions or additional generated methods of the
- Any type.
+ to the application to use when proposing a block during
+ PrepareProposal.
+ description: >-
+ ABCIParams configure functionality specific to the Application Blockchain
+ Interface.
+ tendermint.types.BlockParams:
+ type: object
+ properties:
+ max_bytes:
+ type: string
+ format: int64
+ title: |-
+ Max block size, in bytes.
+ Note: must be greater than 0
+ max_gas:
+ type: string
+ format: int64
+ title: |-
+ Max gas per block.
+ Note: must be greater or equal to -1
+ description: BlockParams contains limits on the block size.
+ tendermint.types.EvidenceParams:
+ type: object
+ properties:
+ max_age_num_blocks:
+ type: string
+ format: int64
+ description: >-
+ Max age of evidence, in blocks.
- Example 1: Pack and unpack a message in C++.
+ The basic formula for calculating this is: MaxAgeDuration / {average
+ block
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
+ time}.
+ max_age_duration:
+ type: string
+ description: >-
+ Max age of evidence, in time.
- Example 2: Pack and unpack a message in Java.
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
+ It should correspond with an app's "unbonding period" or other similar
- Example 3: Pack and unpack a message in Python.
+ mechanism for handling [Nothing-At-Stake
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
+ attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed).
+ max_bytes:
+ type: string
+ format: int64
+ title: >-
+ This sets the maximum size of total evidence in bytes that can be
+ committed in a single block.
- Example 4: Pack and unpack a message in Go
+ and should fall comfortably under the max block bytes.
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
+ Default is 1048576 or 1MB
+ description: EvidenceParams determine how we handle evidence of malfeasance.
+ tendermint.types.ValidatorParams:
+ type: object
+ properties:
+ pub_key_types:
+ type: array
+ items:
+ type: string
+ description: |-
+ ValidatorParams restrict the public key types validators can use.
+ NOTE: uses ABCI pubkey naming, not Amino names.
+ cosmos.crisis.v1beta1.MsgUpdateParams:
+ type: object
+ properties:
+ authority:
+ type: string
+ description: >-
+ authority is the address that controls the module (defaults to x/gov
+ unless overwritten).
+ constant_fee:
+ description: constant_fee defines the x/crisis parameter.
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: |-
+ MsgUpdateParams is the Msg/UpdateParams request type.
- The pack methods provided by protobuf library will by
- default use
+ Since: cosmos-sdk 0.47
+ cosmos.crisis.v1beta1.MsgUpdateParamsResponse:
+ type: object
+ description: |-
+ MsgUpdateParamsResponse defines the response structure for executing a
+ MsgUpdateParams message.
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
+ Since: cosmos-sdk 0.47
+ cosmos.crisis.v1beta1.MsgVerifyInvariant:
+ type: object
+ properties:
+ sender:
+ type: string
+ description: >-
+ sender is the account address of private key to send coins to fee
+ collector account.
+ invariant_module_name:
+ type: string
+ description: name of the invariant module.
+ invariant_route:
+ type: string
+ description: invariant_route is the msg's invariant route.
+ description: MsgVerifyInvariant represents a message to verify a particular invariance.
+ cosmos.crisis.v1beta1.MsgVerifyInvariantResponse:
+ type: object
+ description: MsgVerifyInvariantResponse defines the Msg/VerifyInvariant response type.
+ cosmos.distribution.v1beta1.MsgCommunityPoolSpend:
+ type: object
+ properties:
+ authority:
+ type: string
+ description: >-
+ authority is the address that controls the module (defaults to x/gov
+ unless overwritten).
+ recipient:
+ type: string
+ amount:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: |-
+ Coin defines a token with a denomination and an amount.
- methods only use the fully qualified type name after the
- last '/'
+ NOTE: The amount field is an Int which implements the custom method
+ signatures required by gogoproto.
+ description: >-
+ MsgCommunityPoolSpend defines a message for sending tokens from the
+ community
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
+ pool to another account. This message is typically executed via a
+ governance
- name "y.z".
+ proposal with the governance module being the executing authority.
+ Since: cosmos-sdk 0.47
+ cosmos.distribution.v1beta1.MsgCommunityPoolSpendResponse:
+ type: object
+ description: |-
+ MsgCommunityPoolSpendResponse defines the response to executing a
+ MsgCommunityPoolSpend message.
- JSON
+ Since: cosmos-sdk 0.47
+ cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPool:
+ type: object
+ properties:
+ depositor:
+ type: string
+ validator_address:
+ type: string
+ amount:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: |-
+ Coin defines a token with a denomination and an amount.
- ====
+ NOTE: The amount field is an Int which implements the custom method
+ signatures required by gogoproto.
+ description: |-
+ DepositValidatorRewardsPool defines the request structure to provide
+ additional rewards to delegators from a specific validator.
- The JSON representation of an `Any` value uses the regular
+ Since: cosmos-sdk 0.50
+ cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPoolResponse:
+ type: object
+ description: |-
+ MsgDepositValidatorRewardsPoolResponse defines the response to executing a
+ MsgDepositValidatorRewardsPool message.
- representation of the deserialized, embedded message, with
- an
+ Since: cosmos-sdk 0.50
+ cosmos.distribution.v1beta1.MsgFundCommunityPool:
+ type: object
+ properties:
+ amount:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: |-
+ Coin defines a token with a denomination and an amount.
- additional field `@type` which contains the type URL.
- Example:
+ NOTE: The amount field is an Int which implements the custom method
+ signatures required by gogoproto.
+ depositor:
+ type: string
+ description: |-
+ MsgFundCommunityPool allows an account to directly
+ fund the community pool.
+ cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse:
+ type: object
+ description: >-
+ MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response
+ type.
+ cosmos.distribution.v1beta1.MsgSetWithdrawAddress:
+ type: object
+ properties:
+ delegator_address:
+ type: string
+ withdraw_address:
+ type: string
+ description: |-
+ MsgSetWithdrawAddress sets the withdraw address for
+ a delegator (or validator self-delegation).
+ cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse:
+ type: object
+ description: |-
+ MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response
+ type.
+ cosmos.distribution.v1beta1.MsgUpdateParams:
+ type: object
+ properties:
+ authority:
+ type: string
+ description: >-
+ authority is the address that controls the module (defaults to x/gov
+ unless overwritten).
+ params:
+ description: |-
+ params defines the x/distribution parameters to update.
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
+ NOTE: All parameters must be supplied.
+ type: object
+ properties:
+ community_tax:
+ type: string
+ base_proposer_reward:
+ type: string
+ description: >-
+ Deprecated: The base_proposer_reward field is deprecated and is no
+ longer used
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
+ in the x/distribution module's reward mechanism.
+ bonus_proposer_reward:
+ type: string
+ description: >-
+ Deprecated: The bonus_proposer_reward field is deprecated and is
+ no longer used
- If the embedded message type is well-known and has a custom
- JSON
+ in the x/distribution module's reward mechanism.
+ withdraw_addr_enabled:
+ type: boolean
+ description: |-
+ MsgUpdateParams is the Msg/UpdateParams request type.
- representation, that representation will be embedded adding
- a field
+ Since: cosmos-sdk 0.47
+ cosmos.distribution.v1beta1.MsgUpdateParamsResponse:
+ type: object
+ description: |-
+ MsgUpdateParamsResponse defines the response structure for executing a
+ MsgUpdateParams message.
- `value` which holds the custom JSON in addition to the
- `@type`
+ Since: cosmos-sdk 0.47
+ cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward:
+ type: object
+ properties:
+ delegator_address:
+ type: string
+ validator_address:
+ type: string
+ description: |-
+ MsgWithdrawDelegatorReward represents delegation withdrawal to a delegator
+ from a single validator.
+ cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse:
+ type: object
+ properties:
+ amount:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: |-
+ Coin defines a token with a denomination and an amount.
- field. Example (for message [google.protobuf.Duration][]):
+ NOTE: The amount field is an Int which implements the custom method
+ signatures required by gogoproto.
+ title: 'Since: cosmos-sdk 0.46'
+ description: |-
+ MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward
+ response type.
+ cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission:
+ type: object
+ properties:
+ validator_address:
+ type: string
+ description: >-
+ MsgWithdrawValidatorCommission withdraws the full commission to the
+ validator
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: class_id
- description: class_id associated with the nft
- in: path
- required: true
- type: string
- - name: id
- description: id is a unique identifier of the NFT
- in: path
- required: true
- type: string
- tags:
- - Query
- /cosmos/nft/v1beta1/owner/{class_id}/{id}:
- get:
- summary: >-
- Owner queries the owner of the NFT based on its class and id, same as
- ownerOf in ERC721
- operationId: CosmosNftV1Beta1Owner
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- owner:
- type: string
- title: owner is the owner address of the nft
- title: >-
- QueryOwnerResponse is the response type for the Query/Owner RPC
- method
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
+ address.
+ cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse:
+ type: object
+ properties:
+ amount:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: |-
+ Coin defines a token with a denomination and an amount.
- protocol buffer message. This string must contain at
- least
+ NOTE: The amount field is an Int which implements the custom method
+ signatures required by gogoproto.
+ title: 'Since: cosmos-sdk 0.46'
+ description: |-
+ MsgWithdrawValidatorCommissionResponse defines the
+ Msg/WithdrawValidatorCommission response type.
+ cosmos.distribution.v1beta1.Params:
+ type: object
+ properties:
+ community_tax:
+ type: string
+ base_proposer_reward:
+ type: string
+ description: >-
+ Deprecated: The base_proposer_reward field is deprecated and is no
+ longer used
- one "/" character. The last segment of the URL's path
- must represent
+ in the x/distribution module's reward mechanism.
+ bonus_proposer_reward:
+ type: string
+ description: >-
+ Deprecated: The bonus_proposer_reward field is deprecated and is no
+ longer used
- the fully qualified name of the type (as in
+ in the x/distribution module's reward mechanism.
+ withdraw_addr_enabled:
+ type: boolean
+ description: Params defines the set of params for the distribution module.
+ cosmos.evidence.v1beta1.MsgSubmitEvidence:
+ type: object
+ properties:
+ submitter:
+ type: string
+ description: submitter is the signer account address of evidence.
+ evidence:
+ description: evidence defines the evidence of misbehavior.
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of the
+ serialized
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
+ protocol buffer message. This string must contain at least
- (e.g., leading "." is not accepted).
+ one "/" character. The last segment of the URL's path must
+ represent
+ the fully qualified name of the type (as in
- In practice, teams usually precompile into the binary
- all types that they
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
- expect it to use in the context of Any. However, for
- URLs which use the
+ (e.g., leading "." is not accepted).
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
- server that maps type URLs to message definitions as
- follows:
+ In practice, teams usually precompile into the binary all types
+ that they
+ expect it to use in the context of Any. However, for URLs which
+ use the
- * If no scheme is provided, `https` is assumed.
+ scheme `http`, `https`, or no scheme, one can optionally set up a
+ type
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
+ server that maps type URLs to message definitions as follows:
- Note: this functionality is not currently available in
- the official
- protobuf release, and it is not used for type URLs
- beginning with
+ * If no scheme is provided, `https` is assumed.
- type.googleapis.com.
+ * An HTTP GET on the URL must yield a [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+ Note: this functionality is not currently available in the
+ official
- Schemes other than `http`, `https` (or the empty scheme)
- might be
+ protobuf release, and it is not used for type URLs beginning with
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
+ type.googleapis.com.
- URL that describes the type of the serialized message.
+ Schemes other than `http`, `https` (or the empty scheme) might be
- Protobuf library provides support to pack/unpack Any values
- in the form
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: |-
+ MsgSubmitEvidence represents a message that supports submitting arbitrary
+ Evidence of misbehavior such as equivocation or counterfactual signing.
+ cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse:
+ type: object
+ properties:
+ hash:
+ type: string
+ format: byte
+ description: hash defines the hash of the evidence.
+ description: MsgSubmitEvidenceResponse defines the Msg/SubmitEvidence response type.
+ cosmos.feegrant.v1beta1.MsgGrantAllowance:
+ type: object
+ properties:
+ granter:
+ type: string
+ description: >-
+ granter is the address of the user granting an allowance of their
+ funds.
+ grantee:
+ type: string
+ description: >-
+ grantee is the address of the user being granted an allowance of
+ another user's funds.
+ allowance:
+ description: allowance can be any of basic, periodic, allowed fee allowance.
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of the
+ serialized
- of utility functions or additional generated methods of the
- Any type.
+ protocol buffer message. This string must contain at least
+ one "/" character. The last segment of the URL's path must
+ represent
- Example 1: Pack and unpack a message in C++.
+ the fully qualified name of the type (as in
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
- Example 2: Pack and unpack a message in Java.
+ (e.g., leading "." is not accepted).
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
- Example 3: Pack and unpack a message in Python.
+ In practice, teams usually precompile into the binary all types
+ that they
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
+ expect it to use in the context of Any. However, for URLs which
+ use the
- Example 4: Pack and unpack a message in Go
+ scheme `http`, `https`, or no scheme, one can optionally set up a
+ type
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
+ server that maps type URLs to message definitions as follows:
- The pack methods provided by protobuf library will by
- default use
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
+ * If no scheme is provided, `https` is assumed.
- methods only use the fully qualified type name after the
- last '/'
+ * An HTTP GET on the URL must yield a [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
+ Note: this functionality is not currently available in the
+ official
- name "y.z".
+ protobuf release, and it is not used for type URLs beginning with
+ type.googleapis.com.
- JSON
+ Schemes other than `http`, `https` (or the empty scheme) might be
- ====
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: |-
+ MsgGrantAllowance adds permission for Grantee to spend up to Allowance
+ of fees from the account of Granter.
+ cosmos.feegrant.v1beta1.MsgGrantAllowanceResponse:
+ type: object
+ description: >-
+ MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response
+ type.
+ cosmos.feegrant.v1beta1.MsgPruneAllowances:
+ type: object
+ properties:
+ pruner:
+ type: string
+ description: pruner is the address of the user pruning expired allowances.
+ description: |-
+ MsgPruneAllowances prunes expired fee allowances.
- The JSON representation of an `Any` value uses the regular
+ Since cosmos-sdk 0.50
+ cosmos.feegrant.v1beta1.MsgPruneAllowancesResponse:
+ type: object
+ description: >-
+ MsgPruneAllowancesResponse defines the Msg/PruneAllowancesResponse
+ response type.
- representation of the deserialized, embedded message, with
- an
- additional field `@type` which contains the type URL.
- Example:
+ Since cosmos-sdk 0.50
+ cosmos.feegrant.v1beta1.MsgRevokeAllowance:
+ type: object
+ properties:
+ granter:
+ type: string
+ description: >-
+ granter is the address of the user granting an allowance of their
+ funds.
+ grantee:
+ type: string
+ description: >-
+ grantee is the address of the user being granted an allowance of
+ another user's funds.
+ description: MsgRevokeAllowance removes any existing Allowance from Granter to Grantee.
+ cosmos.feegrant.v1beta1.MsgRevokeAllowanceResponse:
+ type: object
+ description: >-
+ MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse
+ response type.
+ cosmos.gov.v1.MsgCancelProposal:
+ type: object
+ properties:
+ proposal_id:
+ type: string
+ format: uint64
+ description: proposal_id defines the unique id of the proposal.
+ proposer:
+ type: string
+ description: proposer is the account address of the proposer.
+ description: |-
+ MsgCancelProposal is the Msg/CancelProposal request type.
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
+ Since: cosmos-sdk 0.50
+ cosmos.gov.v1.MsgCancelProposalResponse:
+ type: object
+ properties:
+ proposal_id:
+ type: string
+ format: uint64
+ description: proposal_id defines the unique id of the proposal.
+ canceled_time:
+ type: string
+ format: date-time
+ description: canceled_time is the time when proposal is canceled.
+ canceled_height:
+ type: string
+ format: uint64
+ description: >-
+ canceled_height defines the block height at which the proposal is
+ canceled.
+ description: |-
+ MsgCancelProposalResponse defines the response structure for executing a
+ MsgCancelProposal message.
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
+ Since: cosmos-sdk 0.50
+ cosmos.gov.v1.MsgDeposit:
+ type: object
+ properties:
+ proposal_id:
+ type: string
+ format: uint64
+ description: proposal_id defines the unique id of the proposal.
+ depositor:
+ type: string
+ description: depositor defines the deposit addresses from the proposals.
+ amount:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: |-
+ Coin defines a token with a denomination and an amount.
- If the embedded message type is well-known and has a custom
- JSON
+ NOTE: The amount field is an Int which implements the custom method
+ signatures required by gogoproto.
+ description: amount to be deposited by depositor.
+ description: MsgDeposit defines a message to submit a deposit to an existing proposal.
+ cosmos.gov.v1.MsgDepositResponse:
+ type: object
+ description: MsgDepositResponse defines the Msg/Deposit response type.
+ cosmos.gov.v1.MsgExecLegacyContent:
+ type: object
+ properties:
+ content:
+ description: content is the proposal's content.
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of the
+ serialized
- representation, that representation will be embedded adding
- a field
+ protocol buffer message. This string must contain at least
- `value` which holds the custom JSON in addition to the
- `@type`
+ one "/" character. The last segment of the URL's path must
+ represent
- field. Example (for message [google.protobuf.Duration][]):
+ the fully qualified name of the type (as in
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: class_id
- description: class_id associated with the nft
- in: path
- required: true
- type: string
- - name: id
- description: id is a unique identifier of the NFT
- in: path
- required: true
- type: string
- tags:
- - Query
- /cosmos/nft/v1beta1/supply/{class_id}:
- get:
- summary: >-
- Supply queries the number of NFTs from the given class, same as
- totalSupply of ERC721.
- operationId: CosmosNftV1Beta1Supply
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- amount:
- type: string
- format: uint64
- title: amount is the number of all NFTs from the given class
- title: >-
- QuerySupplyResponse is the response type for the Query/Supply RPC
- method
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
- protocol buffer message. This string must contain at
- least
+ (e.g., leading "." is not accepted).
- one "/" character. The last segment of the URL's path
- must represent
- the fully qualified name of the type (as in
+ In practice, teams usually precompile into the binary all types
+ that they
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
+ expect it to use in the context of Any. However, for URLs which
+ use the
- (e.g., leading "." is not accepted).
+ scheme `http`, `https`, or no scheme, one can optionally set up a
+ type
+ server that maps type URLs to message definitions as follows:
- In practice, teams usually precompile into the binary
- all types that they
- expect it to use in the context of Any. However, for
- URLs which use the
+ * If no scheme is provided, `https` is assumed.
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
+ * An HTTP GET on the URL must yield a [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
- server that maps type URLs to message definitions as
- follows:
+ Note: this functionality is not currently available in the
+ official
+ protobuf release, and it is not used for type URLs beginning with
- * If no scheme is provided, `https` is assumed.
+ type.googleapis.com.
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
- Note: this functionality is not currently available in
- the official
+ Schemes other than `http`, `https` (or the empty scheme) might be
- protobuf release, and it is not used for type URLs
- beginning with
+ used with implementation specific semantics.
+ additionalProperties: {}
+ authority:
+ type: string
+ description: authority must be the gov module address.
+ description: >-
+ MsgExecLegacyContent is used to wrap the legacy content field into a
+ message.
- type.googleapis.com.
+ This ensures backwards compatibility with v1beta1.MsgSubmitProposal.
+ cosmos.gov.v1.MsgExecLegacyContentResponse:
+ type: object
+ description: >-
+ MsgExecLegacyContentResponse defines the Msg/ExecLegacyContent response
+ type.
+ cosmos.gov.v1.MsgSubmitProposal:
+ type: object
+ properties:
+ messages:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of the
+ serialized
+ protocol buffer message. This string must contain at least
- Schemes other than `http`, `https` (or the empty scheme)
- might be
+ one "/" character. The last segment of the URL's path must
+ represent
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
+ the fully qualified name of the type (as in
- URL that describes the type of the serialized message.
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
+ (e.g., leading "." is not accepted).
- Protobuf library provides support to pack/unpack Any values
- in the form
- of utility functions or additional generated methods of the
- Any type.
+ In practice, teams usually precompile into the binary all types
+ that they
+ expect it to use in the context of Any. However, for URLs which
+ use the
- Example 1: Pack and unpack a message in C++.
+ scheme `http`, `https`, or no scheme, one can optionally set up
+ a type
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
+ server that maps type URLs to message definitions as follows:
- Example 2: Pack and unpack a message in Java.
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
+ * If no scheme is provided, `https` is assumed.
- Example 3: Pack and unpack a message in Python.
+ * An HTTP GET on the URL must yield a [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
+ Note: this functionality is not currently available in the
+ official
- Example 4: Pack and unpack a message in Go
+ protobuf release, and it is not used for type URLs beginning
+ with
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
+ type.googleapis.com.
- The pack methods provided by protobuf library will by
- default use
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
+ Schemes other than `http`, `https` (or the empty scheme) might
+ be
- methods only use the fully qualified type name after the
- last '/'
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message along
+ with a
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
+ URL that describes the type of the serialized message.
- name "y.z".
+ Protobuf library provides support to pack/unpack Any values in the
+ form
+ of utility functions or additional generated methods of the Any
+ type.
- JSON
- ====
+ Example 1: Pack and unpack a message in C++.
- The JSON representation of an `Any` value uses the regular
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
- representation of the deserialized, embedded message, with
- an
+ Example 2: Pack and unpack a message in Java.
- additional field `@type` which contains the type URL.
- Example:
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
+ Example 3: Pack and unpack a message in Python.
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
- If the embedded message type is well-known and has a custom
- JSON
+ Example 4: Pack and unpack a message in Go
- representation, that representation will be embedded adding
- a field
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
- `value` which holds the custom JSON in addition to the
- `@type`
+ The pack methods provided by protobuf library will by default use
- field. Example (for message [google.protobuf.Duration][]):
+ 'type.googleapis.com/full.type.name' as the type URL and the unpack
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: class_id
- description: class_id associated with the nft
- in: path
- required: true
- type: string
- tags:
- - Query
- /cosmos/params/v1beta1/params:
- get:
- summary: |-
- Params queries a specific parameter of a module, given its subspace and
- key.
- operationId: CosmosParamsV1Beta1Params
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- param:
- description: param defines the queried parameter.
- type: object
- properties:
- subspace:
- type: string
- key:
- type: string
- value:
- type: string
- description: >-
- QueryParamsResponse is response type for the Query/Params RPC
- method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- additionalProperties: {}
- parameters:
- - name: subspace
- description: subspace defines the module to query the parameter for.
- in: query
- required: false
- type: string
- - name: key
- description: key defines the key of the parameter in the subspace.
- in: query
- required: false
- type: string
- tags:
- - Query
- /cosmos/params/v1beta1/subspaces:
- get:
- summary: >-
- Subspaces queries for all registered subspaces and all keys for a
- subspace.
- description: 'Since: cosmos-sdk 0.46'
- operationId: CosmosParamsV1Beta1Subspaces
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- subspaces:
- type: array
- items:
- type: object
- properties:
- subspace:
- type: string
- keys:
- type: array
- items:
- type: string
- description: >-
- Subspace defines a parameter subspace name and all the keys
- that exist for
+ methods only use the fully qualified type name after the last '/'
- the subspace.
+ in the type URL, for example "foo.bar.com/x/y.z" will yield type
+ name "y.z".
- Since: cosmos-sdk 0.46
- description: >-
- QuerySubspacesResponse defines the response types for querying for
- all
- registered subspaces and all keys for a subspace.
+ JSON
- Since: cosmos-sdk 0.46
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- additionalProperties: {}
- tags:
- - Query
- /cosmos/slashing/v1beta1/params:
- get:
- summary: Params queries the parameters of slashing module
- operationId: CosmosSlashingV1Beta1Params
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- params:
- type: object
- properties:
- signed_blocks_window:
- type: string
- format: int64
- min_signed_per_window:
- type: string
- format: byte
- downtime_jail_duration:
- type: string
- slash_fraction_double_sign:
- type: string
- format: byte
- slash_fraction_downtime:
- type: string
- format: byte
- description: >-
- Params represents the parameters used for by the slashing
- module.
- title: >-
- QueryParamsResponse is the response type for the Query/Params RPC
- method
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- additionalProperties: {}
- tags:
- - Query
- /cosmos/slashing/v1beta1/signing_infos:
- get:
- summary: SigningInfos queries signing info of all validators
- operationId: CosmosSlashingV1Beta1SigningInfos
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- info:
- type: array
- items:
- type: object
- properties:
- address:
- type: string
- start_height:
- type: string
- format: int64
- title: >-
- Height at which validator was first a candidate OR was
- unjailed
- index_offset:
- type: string
- format: int64
- description: >-
- Index which is incremented each time the validator was a
- bonded
+ The JSON representation of an `Any` value uses the regular
- in a block and may have signed a precommit or not. This
- in conjunction with the
+ representation of the deserialized, embedded message, with an
- `SignedBlocksWindow` param determines the index in the
- `MissedBlocksBitArray`.
- jailed_until:
- type: string
- format: date-time
- description: >-
- Timestamp until which the validator is jailed due to
- liveness downtime.
- tombstoned:
- type: boolean
- description: >-
- Whether or not a validator has been tombstoned (killed
- out of validator set). It is set
+ additional field `@type` which contains the type URL. Example:
- once the validator commits an equivocation or for any
- other configured misbehiavor.
- missed_blocks_counter:
- type: string
- format: int64
- description: >-
- A counter kept to avoid unnecessary array reads.
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
- Note that `Sum(MissedBlocksBitArray)` always equals
- `MissedBlocksCounter`.
- description: >-
- ValidatorSigningInfo defines a validator's signing info for
- monitoring their
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
- liveness activity.
- title: info is the signing info of all validators
- pagination:
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
+ If the embedded message type is well-known and has a custom JSON
- was set, its value is undefined otherwise
- description: >-
- PageResponse is to be embedded in gRPC response messages where
- the
+ representation, that representation will be embedded adding a field
- corresponding request message has used PageRequest.
+ `value` which holds the custom JSON in addition to the `@type`
- message SomeResponse {
- repeated Bar results = 1;
- PageResponse page = 2;
- }
- title: >-
- QuerySigningInfosResponse is the response type for the
- Query/SigningInfos RPC
+ field. Example (for message [google.protobuf.Duration][]):
- method
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- additionalProperties: {}
- parameters:
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
-
-
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /cosmos/slashing/v1beta1/signing_infos/{cons_address}:
- get:
- summary: SigningInfo queries the signing info of given cons address
- operationId: CosmosSlashingV1Beta1SigningInfo
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- val_signing_info:
- title: >-
- val_signing_info is the signing info of requested val cons
- address
- type: object
- properties:
- address:
- type: string
- start_height:
- type: string
- format: int64
- title: >-
- Height at which validator was first a candidate OR was
- unjailed
- index_offset:
- type: string
- format: int64
- description: >-
- Index which is incremented each time the validator was a
- bonded
-
- in a block and may have signed a precommit or not. This in
- conjunction with the
-
- `SignedBlocksWindow` param determines the index in the
- `MissedBlocksBitArray`.
- jailed_until:
- type: string
- format: date-time
- description: >-
- Timestamp until which the validator is jailed due to
- liveness downtime.
- tombstoned:
- type: boolean
- description: >-
- Whether or not a validator has been tombstoned (killed out
- of validator set). It is set
-
- once the validator commits an equivocation or for any
- other configured misbehiavor.
- missed_blocks_counter:
- type: string
- format: int64
- description: >-
- A counter kept to avoid unnecessary array reads.
-
- Note that `Sum(MissedBlocksBitArray)` always equals
- `MissedBlocksCounter`.
- description: >-
- ValidatorSigningInfo defines a validator's signing info for
- monitoring their
-
- liveness activity.
- title: >-
- QuerySigningInfoResponse is the response type for the
- Query/SigningInfo RPC
-
- method
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- additionalProperties: {}
- parameters:
- - name: cons_address
- description: cons_address is the address to query signing info of
- in: path
- required: true
- type: string
- tags:
- - Query
- /cosmos/staking/v1beta1/delegations/{delegator_addr}:
- get:
- summary: >-
- DelegatorDelegations queries all delegations of a given delegator
- address.
- description: >-
- When called from another module, this query might consume a high amount
- of
-
- gas if the pagination field is incorrectly set.
- operationId: CosmosStakingV1Beta1DelegatorDelegations
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- delegation_responses:
- type: array
- items:
- type: object
- properties:
- delegation:
- type: object
- properties:
- delegator_address:
- type: string
- description: >-
- delegator_address is the bech32-encoded address of
- the delegator.
- validator_address:
- type: string
- description: >-
- validator_address is the bech32-encoded address of
- the validator.
- shares:
- type: string
- description: shares define the delegation shares received.
- description: >-
- Delegation represents the bond with tokens held by an
- account. It is
-
- owned by one delegator, and is associated with the
- voting power of one
-
- validator.
- balance:
- type: object
- properties:
- denom:
- type: string
- amount:
- type: string
- description: >-
- Coin defines a token with a denomination and an amount.
-
-
- NOTE: The amount field is an Int which implements the
- custom method
-
- signatures required by gogoproto.
- description: >-
- DelegationResponse is equivalent to Delegation except that
- it contains a
-
- balance in addition to shares which is more suitable for
- client responses.
- description: >-
- delegation_responses defines all the delegations' info of a
- delegator.
- pagination:
- description: pagination defines the pagination in the response.
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
-
- was set, its value is undefined otherwise
- description: |-
- QueryDelegatorDelegationsResponse is response type for the
- Query/DelegatorDelegations RPC method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: delegator_addr
- description: delegator_addr defines the delegator address to query for.
- in: path
- required: true
- type: string
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
-
-
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /cosmos/staking/v1beta1/delegators/{delegator_addr}/redelegations:
- get:
- summary: Redelegations queries redelegations of given address.
- description: >-
- When called from another module, this query might consume a high amount
- of
-
- gas if the pagination field is incorrectly set.
- operationId: CosmosStakingV1Beta1Redelegations
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- redelegation_responses:
- type: array
- items:
- type: object
- properties:
- redelegation:
- type: object
- properties:
- delegator_address:
- type: string
- description: >-
- delegator_address is the bech32-encoded address of
- the delegator.
- validator_src_address:
- type: string
- description: >-
- validator_src_address is the validator redelegation
- source operator address.
- validator_dst_address:
- type: string
- description: >-
- validator_dst_address is the validator redelegation
- destination operator address.
- entries:
- type: array
- items:
- type: object
- properties:
- creation_height:
- type: string
- format: int64
- description: >-
- creation_height defines the height which the
- redelegation took place.
- completion_time:
- type: string
- format: date-time
- description: >-
- completion_time defines the unix time for
- redelegation completion.
- initial_balance:
- type: string
- description: >-
- initial_balance defines the initial balance
- when redelegation started.
- shares_dst:
- type: string
- description: >-
- shares_dst is the amount of
- destination-validator shares created by
- redelegation.
- unbonding_id:
- type: string
- format: uint64
- title: >-
- Incrementing id that uniquely identifies this
- entry
- unbonding_on_hold_ref_count:
- type: string
- format: int64
- title: >-
- Strictly positive if this entry's unbonding
- has been stopped by external modules
- description: >-
- RedelegationEntry defines a redelegation object
- with relevant metadata.
- description: |-
- entries are the redelegation entries.
-
- redelegation entries
- description: >-
- Redelegation contains the list of a particular
- delegator's redelegating bonds
-
- from a particular source validator to a particular
- destination validator.
- entries:
- type: array
- items:
- type: object
- properties:
- redelegation_entry:
- type: object
- properties:
- creation_height:
- type: string
- format: int64
- description: >-
- creation_height defines the height which the
- redelegation took place.
- completion_time:
- type: string
- format: date-time
- description: >-
- completion_time defines the unix time for
- redelegation completion.
- initial_balance:
- type: string
- description: >-
- initial_balance defines the initial balance
- when redelegation started.
- shares_dst:
- type: string
- description: >-
- shares_dst is the amount of
- destination-validator shares created by
- redelegation.
- unbonding_id:
- type: string
- format: uint64
- title: >-
- Incrementing id that uniquely identifies this
- entry
- unbonding_on_hold_ref_count:
- type: string
- format: int64
- title: >-
- Strictly positive if this entry's unbonding
- has been stopped by external modules
- description: >-
- RedelegationEntry defines a redelegation object
- with relevant metadata.
- balance:
- type: string
- description: >-
- RedelegationEntryResponse is equivalent to a
- RedelegationEntry except that it
-
- contains a balance in addition to shares which is more
- suitable for client
-
- responses.
- description: >-
- RedelegationResponse is equivalent to a Redelegation except
- that its entries
-
- contain a balance in addition to shares which is more
- suitable for client
-
- responses.
- pagination:
- description: pagination defines the pagination in the response.
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
-
- was set, its value is undefined otherwise
- description: >-
- QueryRedelegationsResponse is response type for the
- Query/Redelegations RPC
-
- method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: delegator_addr
- description: delegator_addr defines the delegator address to query for.
- in: path
- required: true
- type: string
- - name: src_validator_addr
- description: src_validator_addr defines the validator address to redelegate from.
- in: query
- required: false
- type: string
- - name: dst_validator_addr
- description: dst_validator_addr defines the validator address to redelegate to.
- in: query
- required: false
- type: string
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
-
-
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /cosmos/staking/v1beta1/delegators/{delegator_addr}/unbonding_delegations:
- get:
- summary: >-
- DelegatorUnbondingDelegations queries all unbonding delegations of a
- given
-
- delegator address.
- description: >-
- When called from another module, this query might consume a high amount
- of
-
- gas if the pagination field is incorrectly set.
- operationId: CosmosStakingV1Beta1DelegatorUnbondingDelegations
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- unbonding_responses:
- type: array
- items:
- type: object
- properties:
- delegator_address:
- type: string
- description: >-
- delegator_address is the bech32-encoded address of the
- delegator.
- validator_address:
- type: string
- description: >-
- validator_address is the bech32-encoded address of the
- validator.
- entries:
- type: array
- items:
- type: object
- properties:
- creation_height:
- type: string
- format: int64
- description: >-
- creation_height is the height which the unbonding
- took place.
- completion_time:
- type: string
- format: date-time
- description: >-
- completion_time is the unix time for unbonding
- completion.
- initial_balance:
- type: string
- description: >-
- initial_balance defines the tokens initially
- scheduled to receive at completion.
- balance:
- type: string
- description: >-
- balance defines the tokens to receive at
- completion.
- unbonding_id:
- type: string
- format: uint64
- title: >-
- Incrementing id that uniquely identifies this
- entry
- unbonding_on_hold_ref_count:
- type: string
- format: int64
- title: >-
- Strictly positive if this entry's unbonding has
- been stopped by external modules
- description: >-
- UnbondingDelegationEntry defines an unbonding object
- with relevant metadata.
- description: |-
- entries are the unbonding delegation entries.
-
- unbonding delegation entries
- description: >-
- UnbondingDelegation stores all of a single delegator's
- unbonding bonds
-
- for a single validator in an time-ordered list.
- pagination:
- description: pagination defines the pagination in the response.
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
-
- was set, its value is undefined otherwise
- description: >-
- QueryUnbondingDelegatorDelegationsResponse is response type for
- the
-
- Query/UnbondingDelegatorDelegations RPC method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: delegator_addr
- description: delegator_addr defines the delegator address to query for.
- in: path
- required: true
- type: string
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
-
-
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /cosmos/staking/v1beta1/delegators/{delegator_addr}/validators:
- get:
- summary: |-
- DelegatorValidators queries all validators info for given delegator
- address.
- description: >-
- When called from another module, this query might consume a high amount
- of
-
- gas if the pagination field is incorrectly set.
- operationId: CosmosStakingV1Beta1DelegatorValidators
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- validators:
- type: array
- items:
- type: object
- properties:
- operator_address:
- type: string
- description: >-
- operator_address defines the address of the validator's
- operator; bech encoded in JSON.
- consensus_pubkey:
- description: >-
- consensus_pubkey is the consensus public key of the
- validator, as a Protobuf Any.
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the
- type of the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's
- path must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be
- in a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the
- binary all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results
- based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available
- in the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty
- scheme) might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- jailed:
- type: boolean
- description: >-
- jailed defined whether the validator has been jailed
- from bonded status or not.
- status:
- description: >-
- status is the validator status
- (bonded/unbonding/unbonded).
- type: string
- enum:
- - BOND_STATUS_UNSPECIFIED
- - BOND_STATUS_UNBONDED
- - BOND_STATUS_UNBONDING
- - BOND_STATUS_BONDED
- default: BOND_STATUS_UNSPECIFIED
- tokens:
- type: string
- description: >-
- tokens define the delegated tokens (incl.
- self-delegation).
- delegator_shares:
- type: string
- description: >-
- delegator_shares defines total shares issued to a
- validator's delegators.
- description:
- description: >-
- description defines the description terms for the
- validator.
- type: object
- properties:
- moniker:
- type: string
- description: >-
- moniker defines a human-readable name for the
- validator.
- identity:
- type: string
- description: >-
- identity defines an optional identity signature (ex.
- UPort or Keybase).
- website:
- type: string
- description: website defines an optional website link.
- security_contact:
- type: string
- description: >-
- security_contact defines an optional email for
- security contact.
- details:
- type: string
- description: details define other optional details.
- unbonding_height:
- type: string
- format: int64
- description: >-
- unbonding_height defines, if unbonding, the height at
- which this validator has begun unbonding.
- unbonding_time:
- type: string
- format: date-time
- description: >-
- unbonding_time defines, if unbonding, the min time for
- the validator to complete unbonding.
- commission:
- description: commission defines the commission parameters.
- type: object
- properties:
- commission_rates:
- description: >-
- commission_rates defines the initial commission
- rates to be used for creating a validator.
- type: object
- properties:
- rate:
- type: string
- description: >-
- rate is the commission rate charged to
- delegators, as a fraction.
- max_rate:
- type: string
- description: >-
- max_rate defines the maximum commission rate
- which validator can ever charge, as a fraction.
- max_change_rate:
- type: string
- description: >-
- max_change_rate defines the maximum daily
- increase of the validator commission, as a
- fraction.
- update_time:
- type: string
- format: date-time
- description: >-
- update_time is the last time the commission rate was
- changed.
- min_self_delegation:
- type: string
- description: >-
- min_self_delegation is the validator's self declared
- minimum self delegation.
-
-
- Since: cosmos-sdk 0.46
- unbonding_on_hold_ref_count:
- type: string
- format: int64
- title: >-
- strictly positive if this validator's unbonding has been
- stopped by external modules
- unbonding_ids:
- type: array
- items:
- type: string
- format: uint64
- title: >-
- list of unbonding ids, each uniquely identifing an
- unbonding of this validator
- description: >-
- Validator defines a validator, together with the total
- amount of the
-
- Validator's bond shares and their exchange rate to coins.
- Slashing results in
-
- a decrease in the exchange rate, allowing correct
- calculation of future
-
- undelegations without iterating over delegators. When coins
- are delegated to
-
- this validator, the validator is credited with a delegation
- whose number of
-
- bond shares is based on the amount of coins delegated
- divided by the current
-
- exchange rate. Voting power can be calculated as total
- bonded shares
-
- multiplied by exchange rate.
- description: validators defines the validators' info of a delegator.
- pagination:
- description: pagination defines the pagination in the response.
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
-
- was set, its value is undefined otherwise
- description: |-
- QueryDelegatorValidatorsResponse is response type for the
- Query/DelegatorValidators RPC method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: delegator_addr
- description: delegator_addr defines the delegator address to query for.
- in: path
- required: true
- type: string
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
-
-
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /cosmos/staking/v1beta1/delegators/{delegator_addr}/validators/{validator_addr}:
- get:
- summary: |-
- DelegatorValidator queries validator info for given delegator validator
- pair.
- operationId: CosmosStakingV1Beta1DelegatorValidator
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- validator:
- description: validator defines the validator info.
- type: object
- properties:
- operator_address:
- type: string
- description: >-
- operator_address defines the address of the validator's
- operator; bech encoded in JSON.
- consensus_pubkey:
- description: >-
- consensus_pubkey is the consensus public key of the
- validator, as a Protobuf Any.
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type
- of the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be
- in a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results
- based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty
- scheme) might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- jailed:
- type: boolean
- description: >-
- jailed defined whether the validator has been jailed from
- bonded status or not.
- status:
- description: >-
- status is the validator status
- (bonded/unbonding/unbonded).
- type: string
- enum:
- - BOND_STATUS_UNSPECIFIED
- - BOND_STATUS_UNBONDED
- - BOND_STATUS_UNBONDING
- - BOND_STATUS_BONDED
- default: BOND_STATUS_UNSPECIFIED
- tokens:
- type: string
- description: >-
- tokens define the delegated tokens (incl.
- self-delegation).
- delegator_shares:
- type: string
- description: >-
- delegator_shares defines total shares issued to a
- validator's delegators.
- description:
- description: >-
- description defines the description terms for the
- validator.
- type: object
- properties:
- moniker:
- type: string
- description: >-
- moniker defines a human-readable name for the
- validator.
- identity:
- type: string
- description: >-
- identity defines an optional identity signature (ex.
- UPort or Keybase).
- website:
- type: string
- description: website defines an optional website link.
- security_contact:
- type: string
- description: >-
- security_contact defines an optional email for
- security contact.
- details:
- type: string
- description: details define other optional details.
- unbonding_height:
- type: string
- format: int64
- description: >-
- unbonding_height defines, if unbonding, the height at
- which this validator has begun unbonding.
- unbonding_time:
- type: string
- format: date-time
- description: >-
- unbonding_time defines, if unbonding, the min time for the
- validator to complete unbonding.
- commission:
- description: commission defines the commission parameters.
- type: object
- properties:
- commission_rates:
- description: >-
- commission_rates defines the initial commission rates
- to be used for creating a validator.
- type: object
- properties:
- rate:
- type: string
- description: >-
- rate is the commission rate charged to delegators,
- as a fraction.
- max_rate:
- type: string
- description: >-
- max_rate defines the maximum commission rate which
- validator can ever charge, as a fraction.
- max_change_rate:
- type: string
- description: >-
- max_change_rate defines the maximum daily increase
- of the validator commission, as a fraction.
- update_time:
- type: string
- format: date-time
- description: >-
- update_time is the last time the commission rate was
- changed.
- min_self_delegation:
- type: string
- description: >-
- min_self_delegation is the validator's self declared
- minimum self delegation.
-
-
- Since: cosmos-sdk 0.46
- unbonding_on_hold_ref_count:
- type: string
- format: int64
- title: >-
- strictly positive if this validator's unbonding has been
- stopped by external modules
- unbonding_ids:
- type: array
- items:
- type: string
- format: uint64
- title: >-
- list of unbonding ids, each uniquely identifing an
- unbonding of this validator
- description: |-
- QueryDelegatorValidatorResponse response type for the
- Query/DelegatorValidator RPC method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: delegator_addr
- description: delegator_addr defines the delegator address to query for.
- in: path
- required: true
- type: string
- - name: validator_addr
- description: validator_addr defines the validator address to query for.
- in: path
- required: true
- type: string
- tags:
- - Query
- /cosmos/staking/v1beta1/historical_info/{height}:
- get:
- summary: HistoricalInfo queries the historical info for given height.
- operationId: CosmosStakingV1Beta1HistoricalInfo
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- hist:
- description: hist defines the historical info at the given height.
- type: object
- properties:
- header:
- type: object
- properties:
- version:
- title: basic block info
- type: object
- properties:
- block:
- type: string
- format: uint64
- app:
- type: string
- format: uint64
- description: >-
- Consensus captures the consensus rules for processing
- a block in the blockchain,
-
- including all blockchain data structures and the rules
- of the application's
-
- state transition machine.
- chain_id:
- type: string
- height:
- type: string
- format: int64
- time:
- type: string
- format: date-time
- last_block_id:
- title: prev block info
- type: object
- properties:
- hash:
- type: string
- format: byte
- part_set_header:
- type: object
- properties:
- total:
- type: integer
- format: int64
- hash:
- type: string
- format: byte
- title: PartsetHeader
- last_commit_hash:
- type: string
- format: byte
- description: commit from validators from the last block
- title: hashes of block data
- data_hash:
- type: string
- format: byte
- title: transactions
- validators_hash:
- type: string
- format: byte
- description: validators for the current block
- title: hashes from the app output from the prev block
- next_validators_hash:
- type: string
- format: byte
- title: validators for the next block
- consensus_hash:
- type: string
- format: byte
- title: consensus params for current block
- app_hash:
- type: string
- format: byte
- title: state after txs from the previous block
- last_results_hash:
- type: string
- format: byte
- title: >-
- root hash of all results from the txs from the
- previous block
- evidence_hash:
- type: string
- format: byte
- description: evidence included in the block
- title: consensus info
- proposer_address:
- type: string
- format: byte
- title: original proposer of the block
- description: Header defines the structure of a block header.
- valset:
- type: array
- items:
- type: object
- properties:
- operator_address:
- type: string
- description: >-
- operator_address defines the address of the
- validator's operator; bech encoded in JSON.
- consensus_pubkey:
- description: >-
- consensus_pubkey is the consensus public key of the
- validator, as a Protobuf Any.
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the
- type of the serialized
-
- protocol buffer message. This string must
- contain at least
-
- one "/" character. The last segment of the URL's
- path must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name
- should be in a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the
- binary all types that they
-
- expect it to use in the context of Any. However,
- for URLs which use the
-
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
-
- server that maps type URLs to message
- definitions as follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup
- results based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently
- available in the official
-
- protobuf release, and it is not used for type
- URLs beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty
- scheme) might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- jailed:
- type: boolean
- description: >-
- jailed defined whether the validator has been jailed
- from bonded status or not.
- status:
- description: >-
- status is the validator status
- (bonded/unbonding/unbonded).
- type: string
- enum:
- - BOND_STATUS_UNSPECIFIED
- - BOND_STATUS_UNBONDED
- - BOND_STATUS_UNBONDING
- - BOND_STATUS_BONDED
- default: BOND_STATUS_UNSPECIFIED
- tokens:
- type: string
- description: >-
- tokens define the delegated tokens (incl.
- self-delegation).
- delegator_shares:
- type: string
- description: >-
- delegator_shares defines total shares issued to a
- validator's delegators.
- description:
- description: >-
- description defines the description terms for the
- validator.
- type: object
- properties:
- moniker:
- type: string
- description: >-
- moniker defines a human-readable name for the
- validator.
- identity:
- type: string
- description: >-
- identity defines an optional identity signature
- (ex. UPort or Keybase).
- website:
- type: string
- description: website defines an optional website link.
- security_contact:
- type: string
- description: >-
- security_contact defines an optional email for
- security contact.
- details:
- type: string
- description: details define other optional details.
- unbonding_height:
- type: string
- format: int64
- description: >-
- unbonding_height defines, if unbonding, the height
- at which this validator has begun unbonding.
- unbonding_time:
- type: string
- format: date-time
- description: >-
- unbonding_time defines, if unbonding, the min time
- for the validator to complete unbonding.
- commission:
- description: commission defines the commission parameters.
- type: object
- properties:
- commission_rates:
- description: >-
- commission_rates defines the initial commission
- rates to be used for creating a validator.
- type: object
- properties:
- rate:
- type: string
- description: >-
- rate is the commission rate charged to
- delegators, as a fraction.
- max_rate:
- type: string
- description: >-
- max_rate defines the maximum commission rate
- which validator can ever charge, as a
- fraction.
- max_change_rate:
- type: string
- description: >-
- max_change_rate defines the maximum daily
- increase of the validator commission, as a
- fraction.
- update_time:
- type: string
- format: date-time
- description: >-
- update_time is the last time the commission rate
- was changed.
- min_self_delegation:
- type: string
- description: >-
- min_self_delegation is the validator's self declared
- minimum self delegation.
-
-
- Since: cosmos-sdk 0.46
- unbonding_on_hold_ref_count:
- type: string
- format: int64
- title: >-
- strictly positive if this validator's unbonding has
- been stopped by external modules
- unbonding_ids:
- type: array
- items:
- type: string
- format: uint64
- title: >-
- list of unbonding ids, each uniquely identifing an
- unbonding of this validator
- description: >-
- Validator defines a validator, together with the total
- amount of the
-
- Validator's bond shares and their exchange rate to
- coins. Slashing results in
-
- a decrease in the exchange rate, allowing correct
- calculation of future
-
- undelegations without iterating over delegators. When
- coins are delegated to
-
- this validator, the validator is credited with a
- delegation whose number of
-
- bond shares is based on the amount of coins delegated
- divided by the current
-
- exchange rate. Voting power can be calculated as total
- bonded shares
-
- multiplied by exchange rate.
- description: >-
- QueryHistoricalInfoResponse is response type for the
- Query/HistoricalInfo RPC
-
- method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: height
- description: height defines at which height to query the historical info.
- in: path
- required: true
- type: string
- format: int64
- tags:
- - Query
- /cosmos/staking/v1beta1/params:
- get:
- summary: Parameters queries the staking parameters.
- operationId: CosmosStakingV1Beta1Params
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- params:
- description: params holds all the parameters of this module.
- type: object
- properties:
- unbonding_time:
- type: string
- description: unbonding_time is the time duration of unbonding.
- max_validators:
- type: integer
- format: int64
- description: max_validators is the maximum number of validators.
- max_entries:
- type: integer
- format: int64
- description: >-
- max_entries is the max entries for either unbonding
- delegation or redelegation (per pair/trio).
- historical_entries:
- type: integer
- format: int64
- description: >-
- historical_entries is the number of historical entries to
- persist.
- bond_denom:
- type: string
- description: bond_denom defines the bondable coin denomination.
- min_commission_rate:
- type: string
- title: >-
- min_commission_rate is the chain-wide minimum commission
- rate that a validator can charge their delegators
- description: >-
- QueryParamsResponse is response type for the Query/Params RPC
- method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- tags:
- - Query
- /cosmos/staking/v1beta1/pool:
- get:
- summary: Pool queries the pool info.
- operationId: CosmosStakingV1Beta1Pool
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- pool:
- description: pool defines the pool info.
- type: object
- properties:
- not_bonded_tokens:
- type: string
- bonded_tokens:
- type: string
- description: QueryPoolResponse is response type for the Query/Pool RPC method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- tags:
- - Query
- /cosmos/staking/v1beta1/validators:
- get:
- summary: Validators queries all validators that match the given status.
- description: >-
- When called from another module, this query might consume a high amount
- of
-
- gas if the pagination field is incorrectly set.
- operationId: CosmosStakingV1Beta1Validators
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- validators:
- type: array
- items:
- type: object
- properties:
- operator_address:
- type: string
- description: >-
- operator_address defines the address of the validator's
- operator; bech encoded in JSON.
- consensus_pubkey:
- description: >-
- consensus_pubkey is the consensus public key of the
- validator, as a Protobuf Any.
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the
- type of the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's
- path must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be
- in a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the
- binary all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results
- based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available
- in the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty
- scheme) might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- jailed:
- type: boolean
- description: >-
- jailed defined whether the validator has been jailed
- from bonded status or not.
- status:
- description: >-
- status is the validator status
- (bonded/unbonding/unbonded).
- type: string
- enum:
- - BOND_STATUS_UNSPECIFIED
- - BOND_STATUS_UNBONDED
- - BOND_STATUS_UNBONDING
- - BOND_STATUS_BONDED
- default: BOND_STATUS_UNSPECIFIED
- tokens:
- type: string
- description: >-
- tokens define the delegated tokens (incl.
- self-delegation).
- delegator_shares:
- type: string
- description: >-
- delegator_shares defines total shares issued to a
- validator's delegators.
- description:
- description: >-
- description defines the description terms for the
- validator.
- type: object
- properties:
- moniker:
- type: string
- description: >-
- moniker defines a human-readable name for the
- validator.
- identity:
- type: string
- description: >-
- identity defines an optional identity signature (ex.
- UPort or Keybase).
- website:
- type: string
- description: website defines an optional website link.
- security_contact:
- type: string
- description: >-
- security_contact defines an optional email for
- security contact.
- details:
- type: string
- description: details define other optional details.
- unbonding_height:
- type: string
- format: int64
- description: >-
- unbonding_height defines, if unbonding, the height at
- which this validator has begun unbonding.
- unbonding_time:
- type: string
- format: date-time
- description: >-
- unbonding_time defines, if unbonding, the min time for
- the validator to complete unbonding.
- commission:
- description: commission defines the commission parameters.
- type: object
- properties:
- commission_rates:
- description: >-
- commission_rates defines the initial commission
- rates to be used for creating a validator.
- type: object
- properties:
- rate:
- type: string
- description: >-
- rate is the commission rate charged to
- delegators, as a fraction.
- max_rate:
- type: string
- description: >-
- max_rate defines the maximum commission rate
- which validator can ever charge, as a fraction.
- max_change_rate:
- type: string
- description: >-
- max_change_rate defines the maximum daily
- increase of the validator commission, as a
- fraction.
- update_time:
- type: string
- format: date-time
- description: >-
- update_time is the last time the commission rate was
- changed.
- min_self_delegation:
- type: string
- description: >-
- min_self_delegation is the validator's self declared
- minimum self delegation.
-
-
- Since: cosmos-sdk 0.46
- unbonding_on_hold_ref_count:
- type: string
- format: int64
- title: >-
- strictly positive if this validator's unbonding has been
- stopped by external modules
- unbonding_ids:
- type: array
- items:
- type: string
- format: uint64
- title: >-
- list of unbonding ids, each uniquely identifing an
- unbonding of this validator
- description: >-
- Validator defines a validator, together with the total
- amount of the
-
- Validator's bond shares and their exchange rate to coins.
- Slashing results in
-
- a decrease in the exchange rate, allowing correct
- calculation of future
-
- undelegations without iterating over delegators. When coins
- are delegated to
-
- this validator, the validator is credited with a delegation
- whose number of
-
- bond shares is based on the amount of coins delegated
- divided by the current
-
- exchange rate. Voting power can be calculated as total
- bonded shares
-
- multiplied by exchange rate.
- description: validators contains all the queried validators.
- pagination:
- description: pagination defines the pagination in the response.
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
-
- was set, its value is undefined otherwise
- title: >-
- QueryValidatorsResponse is response type for the Query/Validators
- RPC method
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: status
- description: status enables to query for validators matching a given status.
- in: query
- required: false
- type: string
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
-
-
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /cosmos/staking/v1beta1/validators/{validator_addr}:
- get:
- summary: Validator queries validator info for given validator address.
- operationId: CosmosStakingV1Beta1Validator
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- validator:
- description: validator defines the validator info.
- type: object
- properties:
- operator_address:
- type: string
- description: >-
- operator_address defines the address of the validator's
- operator; bech encoded in JSON.
- consensus_pubkey:
- description: >-
- consensus_pubkey is the consensus public key of the
- validator, as a Protobuf Any.
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type
- of the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be
- in a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results
- based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty
- scheme) might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- jailed:
- type: boolean
- description: >-
- jailed defined whether the validator has been jailed from
- bonded status or not.
- status:
- description: >-
- status is the validator status
- (bonded/unbonding/unbonded).
- type: string
- enum:
- - BOND_STATUS_UNSPECIFIED
- - BOND_STATUS_UNBONDED
- - BOND_STATUS_UNBONDING
- - BOND_STATUS_BONDED
- default: BOND_STATUS_UNSPECIFIED
- tokens:
- type: string
- description: >-
- tokens define the delegated tokens (incl.
- self-delegation).
- delegator_shares:
- type: string
- description: >-
- delegator_shares defines total shares issued to a
- validator's delegators.
- description:
- description: >-
- description defines the description terms for the
- validator.
- type: object
- properties:
- moniker:
- type: string
- description: >-
- moniker defines a human-readable name for the
- validator.
- identity:
- type: string
- description: >-
- identity defines an optional identity signature (ex.
- UPort or Keybase).
- website:
- type: string
- description: website defines an optional website link.
- security_contact:
- type: string
- description: >-
- security_contact defines an optional email for
- security contact.
- details:
- type: string
- description: details define other optional details.
- unbonding_height:
- type: string
- format: int64
- description: >-
- unbonding_height defines, if unbonding, the height at
- which this validator has begun unbonding.
- unbonding_time:
- type: string
- format: date-time
- description: >-
- unbonding_time defines, if unbonding, the min time for the
- validator to complete unbonding.
- commission:
- description: commission defines the commission parameters.
- type: object
- properties:
- commission_rates:
- description: >-
- commission_rates defines the initial commission rates
- to be used for creating a validator.
- type: object
- properties:
- rate:
- type: string
- description: >-
- rate is the commission rate charged to delegators,
- as a fraction.
- max_rate:
- type: string
- description: >-
- max_rate defines the maximum commission rate which
- validator can ever charge, as a fraction.
- max_change_rate:
- type: string
- description: >-
- max_change_rate defines the maximum daily increase
- of the validator commission, as a fraction.
- update_time:
- type: string
- format: date-time
- description: >-
- update_time is the last time the commission rate was
- changed.
- min_self_delegation:
- type: string
- description: >-
- min_self_delegation is the validator's self declared
- minimum self delegation.
-
-
- Since: cosmos-sdk 0.46
- unbonding_on_hold_ref_count:
- type: string
- format: int64
- title: >-
- strictly positive if this validator's unbonding has been
- stopped by external modules
- unbonding_ids:
- type: array
- items:
- type: string
- format: uint64
- title: >-
- list of unbonding ids, each uniquely identifing an
- unbonding of this validator
- title: >-
- QueryValidatorResponse is response type for the Query/Validator
- RPC method
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: validator_addr
- description: validator_addr defines the validator address to query for.
- in: path
- required: true
- type: string
- tags:
- - Query
- /cosmos/staking/v1beta1/validators/{validator_addr}/delegations:
- get:
- summary: ValidatorDelegations queries delegate info for given validator.
- description: >-
- When called from another module, this query might consume a high amount
- of
-
- gas if the pagination field is incorrectly set.
- operationId: CosmosStakingV1Beta1ValidatorDelegations
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- delegation_responses:
- type: array
- items:
- type: object
- properties:
- delegation:
- type: object
- properties:
- delegator_address:
- type: string
- description: >-
- delegator_address is the bech32-encoded address of
- the delegator.
- validator_address:
- type: string
- description: >-
- validator_address is the bech32-encoded address of
- the validator.
- shares:
- type: string
- description: shares define the delegation shares received.
- description: >-
- Delegation represents the bond with tokens held by an
- account. It is
-
- owned by one delegator, and is associated with the
- voting power of one
-
- validator.
- balance:
- type: object
- properties:
- denom:
- type: string
- amount:
- type: string
- description: >-
- Coin defines a token with a denomination and an amount.
-
-
- NOTE: The amount field is an Int which implements the
- custom method
-
- signatures required by gogoproto.
- description: >-
- DelegationResponse is equivalent to Delegation except that
- it contains a
-
- balance in addition to shares which is more suitable for
- client responses.
- pagination:
- description: pagination defines the pagination in the response.
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
-
- was set, its value is undefined otherwise
- title: |-
- QueryValidatorDelegationsResponse is response type for the
- Query/ValidatorDelegations RPC method
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: validator_addr
- description: validator_addr defines the validator address to query for.
- in: path
- required: true
- type: string
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
-
-
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /cosmos/staking/v1beta1/validators/{validator_addr}/delegations/{delegator_addr}:
- get:
- summary: Delegation queries delegate info for given validator delegator pair.
- operationId: CosmosStakingV1Beta1Delegation
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- delegation_response:
- description: >-
- delegation_responses defines the delegation info of a
- delegation.
- type: object
- properties:
- delegation:
- type: object
- properties:
- delegator_address:
- type: string
- description: >-
- delegator_address is the bech32-encoded address of the
- delegator.
- validator_address:
- type: string
- description: >-
- validator_address is the bech32-encoded address of the
- validator.
- shares:
- type: string
- description: shares define the delegation shares received.
- description: >-
- Delegation represents the bond with tokens held by an
- account. It is
-
- owned by one delegator, and is associated with the voting
- power of one
-
- validator.
- balance:
- type: object
- properties:
- denom:
- type: string
- amount:
- type: string
- description: >-
- Coin defines a token with a denomination and an amount.
-
-
- NOTE: The amount field is an Int which implements the
- custom method
-
- signatures required by gogoproto.
- description: >-
- QueryDelegationResponse is response type for the Query/Delegation
- RPC method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: validator_addr
- description: validator_addr defines the validator address to query for.
- in: path
- required: true
- type: string
- - name: delegator_addr
- description: delegator_addr defines the delegator address to query for.
- in: path
- required: true
- type: string
- tags:
- - Query
- /cosmos/staking/v1beta1/validators/{validator_addr}/delegations/{delegator_addr}/unbonding_delegation:
- get:
- summary: |-
- UnbondingDelegation queries unbonding info for given validator delegator
- pair.
- operationId: CosmosStakingV1Beta1UnbondingDelegation
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- unbond:
- description: unbond defines the unbonding information of a delegation.
- type: object
- properties:
- delegator_address:
- type: string
- description: >-
- delegator_address is the bech32-encoded address of the
- delegator.
- validator_address:
- type: string
- description: >-
- validator_address is the bech32-encoded address of the
- validator.
- entries:
- type: array
- items:
- type: object
- properties:
- creation_height:
- type: string
- format: int64
- description: >-
- creation_height is the height which the unbonding
- took place.
- completion_time:
- type: string
- format: date-time
- description: >-
- completion_time is the unix time for unbonding
- completion.
- initial_balance:
- type: string
- description: >-
- initial_balance defines the tokens initially
- scheduled to receive at completion.
- balance:
- type: string
- description: balance defines the tokens to receive at completion.
- unbonding_id:
- type: string
- format: uint64
- title: Incrementing id that uniquely identifies this entry
- unbonding_on_hold_ref_count:
- type: string
- format: int64
- title: >-
- Strictly positive if this entry's unbonding has been
- stopped by external modules
- description: >-
- UnbondingDelegationEntry defines an unbonding object
- with relevant metadata.
- description: |-
- entries are the unbonding delegation entries.
-
- unbonding delegation entries
- description: >-
- QueryDelegationResponse is response type for the
- Query/UnbondingDelegation
-
- RPC method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: validator_addr
- description: validator_addr defines the validator address to query for.
- in: path
- required: true
- type: string
- - name: delegator_addr
- description: delegator_addr defines the delegator address to query for.
- in: path
- required: true
- type: string
- tags:
- - Query
- /cosmos/staking/v1beta1/validators/{validator_addr}/unbonding_delegations:
- get:
- summary: >-
- ValidatorUnbondingDelegations queries unbonding delegations of a
- validator.
- description: >-
- When called from another module, this query might consume a high amount
- of
-
- gas if the pagination field is incorrectly set.
- operationId: CosmosStakingV1Beta1ValidatorUnbondingDelegations
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- unbonding_responses:
- type: array
- items:
- type: object
- properties:
- delegator_address:
- type: string
- description: >-
- delegator_address is the bech32-encoded address of the
- delegator.
- validator_address:
- type: string
- description: >-
- validator_address is the bech32-encoded address of the
- validator.
- entries:
- type: array
- items:
- type: object
- properties:
- creation_height:
- type: string
- format: int64
- description: >-
- creation_height is the height which the unbonding
- took place.
- completion_time:
- type: string
- format: date-time
- description: >-
- completion_time is the unix time for unbonding
- completion.
- initial_balance:
- type: string
- description: >-
- initial_balance defines the tokens initially
- scheduled to receive at completion.
- balance:
- type: string
- description: >-
- balance defines the tokens to receive at
- completion.
- unbonding_id:
- type: string
- format: uint64
- title: >-
- Incrementing id that uniquely identifies this
- entry
- unbonding_on_hold_ref_count:
- type: string
- format: int64
- title: >-
- Strictly positive if this entry's unbonding has
- been stopped by external modules
- description: >-
- UnbondingDelegationEntry defines an unbonding object
- with relevant metadata.
- description: |-
- entries are the unbonding delegation entries.
-
- unbonding delegation entries
- description: >-
- UnbondingDelegation stores all of a single delegator's
- unbonding bonds
-
- for a single validator in an time-ordered list.
- pagination:
- description: pagination defines the pagination in the response.
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
-
- was set, its value is undefined otherwise
- description: >-
- QueryValidatorUnbondingDelegationsResponse is response type for
- the
-
- Query/ValidatorUnbondingDelegations RPC method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: validator_addr
- description: validator_addr defines the validator address to query for.
- in: path
- required: true
- type: string
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
-
-
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /cosmos/tx/v1beta1/decode:
- post:
- summary: TxDecode decodes the transaction.
- description: 'Since: cosmos-sdk 0.47'
- operationId: CosmosTxV1Beta1TxDecode
- responses:
- '200':
- description: A successful response.
- schema:
- $ref: '#/definitions/cosmos.tx.v1beta1.TxDecodeResponse'
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: body
- description: |-
- TxDecodeRequest is the request type for the Service.TxDecode
- RPC method.
-
- Since: cosmos-sdk 0.47
- in: body
- required: true
- schema:
- type: object
- properties:
- tx_bytes:
- type: string
- format: byte
- description: tx_bytes is the raw transaction.
- description: |-
- TxDecodeRequest is the request type for the Service.TxDecode
- RPC method.
-
- Since: cosmos-sdk 0.47
- tags:
- - Service
- /cosmos/tx/v1beta1/decode/amino:
- post:
- summary: TxDecodeAmino decodes an Amino transaction from encoded bytes to JSON.
- description: 'Since: cosmos-sdk 0.47'
- operationId: CosmosTxV1Beta1TxDecodeAmino
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- amino_json:
- type: string
- description: >-
- TxDecodeAminoResponse is the response type for the
- Service.TxDecodeAmino
-
- RPC method.
-
-
- Since: cosmos-sdk 0.47
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: body
- description: >-
- TxDecodeAminoRequest is the request type for the
- Service.TxDecodeAmino
-
- RPC method.
-
-
- Since: cosmos-sdk 0.47
- in: body
- required: true
- schema:
- type: object
- properties:
- amino_binary:
- type: string
- format: byte
- description: >-
- TxDecodeAminoRequest is the request type for the
- Service.TxDecodeAmino
-
- RPC method.
-
-
- Since: cosmos-sdk 0.47
- tags:
- - Service
- /cosmos/tx/v1beta1/encode:
- post:
- summary: TxEncode encodes the transaction.
- description: 'Since: cosmos-sdk 0.47'
- operationId: CosmosTxV1Beta1TxEncode
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- tx_bytes:
- type: string
- format: byte
- description: tx_bytes is the encoded transaction bytes.
- description: |-
- TxEncodeResponse is the response type for the
- Service.TxEncode method.
-
- Since: cosmos-sdk 0.47
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: body
- description: |-
- TxEncodeRequest is the request type for the Service.TxEncode
- RPC method.
-
- Since: cosmos-sdk 0.47
- in: body
- required: true
- schema:
- $ref: '#/definitions/cosmos.tx.v1beta1.TxEncodeRequest'
- tags:
- - Service
- /cosmos/tx/v1beta1/encode/amino:
- post:
- summary: TxEncodeAmino encodes an Amino transaction from JSON to encoded bytes.
- description: 'Since: cosmos-sdk 0.47'
- operationId: CosmosTxV1Beta1TxEncodeAmino
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- amino_binary:
- type: string
- format: byte
- description: >-
- TxEncodeAminoResponse is the response type for the
- Service.TxEncodeAmino
-
- RPC method.
-
-
- Since: cosmos-sdk 0.47
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: body
- description: >-
- TxEncodeAminoRequest is the request type for the
- Service.TxEncodeAmino
-
- RPC method.
-
-
- Since: cosmos-sdk 0.47
- in: body
- required: true
- schema:
- type: object
- properties:
- amino_json:
- type: string
- description: >-
- TxEncodeAminoRequest is the request type for the
- Service.TxEncodeAmino
-
- RPC method.
-
-
- Since: cosmos-sdk 0.47
- tags:
- - Service
- /cosmos/tx/v1beta1/simulate:
- post:
- summary: Simulate simulates executing a transaction for estimating gas usage.
- operationId: CosmosTxV1Beta1Simulate
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- gas_info:
- description: gas_info is the information about gas used in the simulation.
- type: object
- properties:
- gas_wanted:
- type: string
- format: uint64
- description: >-
- GasWanted is the maximum units of work we allow this tx to
- perform.
- gas_used:
- type: string
- format: uint64
- description: GasUsed is the amount of gas actually consumed.
- result:
- description: result is the result of the simulation.
- type: object
- properties:
- data:
- type: string
- format: byte
- description: >-
- Data is any data returned from message or handler
- execution. It MUST be
-
- length prefixed in order to separate data from multiple
- message executions.
-
- Deprecated. This field is still populated, but prefer
- msg_response instead
-
- because it also contains the Msg response typeURL.
- log:
- type: string
- description: >-
- Log contains the log information from message or handler
- execution.
- events:
- type: array
- items:
- type: object
- properties:
- type:
- type: string
- attributes:
- type: array
- items:
- type: object
- properties:
- key:
- type: string
- value:
- type: string
- index:
- type: boolean
- title: nondeterministic
- description: >-
- EventAttribute is a single key-value pair,
- associated with an event.
- description: >-
- Event allows application developers to attach additional
- information to
-
- ResponseBeginBlock, ResponseEndBlock, ResponseCheckTx
- and ResponseDeliverTx.
-
- Later, transactions may be queried using these events.
- description: >-
- Events contains a slice of Event objects that were emitted
- during message
-
- or handler execution.
- msg_responses:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the
- type of the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's
- path must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be
- in a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the
- binary all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results
- based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available
- in the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty
- scheme) might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any
- values in the form
-
- of utility functions or additional generated methods of
- the Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and
- the unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will
- yield type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the
- regular
-
- representation of the deserialized, embedded message,
- with an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a
- custom JSON
-
- representation, that representation will be embedded
- adding a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message
- [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- description: >-
- msg_responses contains the Msg handler responses type
- packed in Anys.
-
-
- Since: cosmos-sdk 0.46
- description: |-
- SimulateResponse is the response type for the
- Service.SimulateRPC method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: body
- description: |-
- SimulateRequest is the request type for the Service.Simulate
- RPC method.
- in: body
- required: true
- schema:
- $ref: '#/definitions/cosmos.tx.v1beta1.SimulateRequest'
- tags:
- - Service
- /cosmos/tx/v1beta1/txs:
- get:
- summary: GetTxsEvent fetches txs by event.
- operationId: CosmosTxV1Beta1GetTxsEvent
- responses:
- '200':
- description: A successful response.
- schema:
- $ref: '#/definitions/cosmos.tx.v1beta1.GetTxsEventResponse'
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: events
- description: events is the list of transaction event type.
- in: query
- required: false
- type: array
- items:
- type: string
- collectionFormat: multi
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
-
-
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- - name: order_by
- description: |2-
- - ORDER_BY_UNSPECIFIED: ORDER_BY_UNSPECIFIED specifies an unknown sorting order. OrderBy defaults to ASC in this case.
- - ORDER_BY_ASC: ORDER_BY_ASC defines ascending order
- - ORDER_BY_DESC: ORDER_BY_DESC defines descending order
- in: query
- required: false
- type: string
- enum:
- - ORDER_BY_UNSPECIFIED
- - ORDER_BY_ASC
- - ORDER_BY_DESC
- default: ORDER_BY_UNSPECIFIED
- - name: page
- description: >-
- page is the page number to query, starts at 1. If not provided, will
- default to first page.
- in: query
- required: false
- type: string
- format: uint64
- - name: limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- tags:
- - Service
- post:
- summary: BroadcastTx broadcast transaction.
- operationId: CosmosTxV1Beta1BroadcastTx
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- tx_response:
- description: tx_response is the queried TxResponses.
- type: object
- properties:
- height:
- type: string
- format: int64
- title: The block height
- txhash:
- type: string
- description: The transaction hash.
- codespace:
- type: string
- title: Namespace for the Code
- code:
- type: integer
- format: int64
- description: Response code.
- data:
- type: string
- description: Result bytes, if any.
- raw_log:
- type: string
- description: >-
- The output of the application's logger (raw string). May
- be
-
- non-deterministic.
- logs:
- type: array
- items:
- type: object
- properties:
- msg_index:
- type: integer
- format: int64
- log:
- type: string
- events:
- type: array
- items:
- type: object
- properties:
- type:
- type: string
- attributes:
- type: array
- items:
- type: object
- properties:
- key:
- type: string
- value:
- type: string
- description: >-
- Attribute defines an attribute wrapper where
- the key and value are
-
- strings instead of raw bytes.
- description: >-
- StringEvent defines en Event object wrapper where
- all the attributes
-
- contain key/value pairs that are strings instead
- of raw bytes.
- description: >-
- Events contains a slice of Event objects that were
- emitted during some
-
- execution.
- description: >-
- ABCIMessageLog defines a structure containing an indexed
- tx ABCI message log.
- description: >-
- The output of the application's logger (typed). May be
- non-deterministic.
- info:
- type: string
- description: Additional information. May be non-deterministic.
- gas_wanted:
- type: string
- format: int64
- description: Amount of gas requested for transaction.
- gas_used:
- type: string
- format: int64
- description: Amount of gas consumed by transaction.
- tx:
- description: The request transaction bytes.
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type
- of the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be
- in a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results
- based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty
- scheme) might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- timestamp:
- type: string
- description: >-
- Time of the previous block. For heights > 1, it's the
- weighted median of
-
- the timestamps of the valid votes in the block.LastCommit.
- For height == 1,
-
- it's genesis time.
- events:
- type: array
- items:
- type: object
- properties:
- type:
- type: string
- attributes:
- type: array
- items:
- type: object
- properties:
- key:
- type: string
- value:
- type: string
- index:
- type: boolean
- title: nondeterministic
- description: >-
- EventAttribute is a single key-value pair,
- associated with an event.
- description: >-
- Event allows application developers to attach additional
- information to
-
- ResponseBeginBlock, ResponseEndBlock, ResponseCheckTx
- and ResponseDeliverTx.
-
- Later, transactions may be queried using these events.
- description: >-
- Events defines all the events emitted by processing a
- transaction. Note,
-
- these events include those emitted by processing all the
- messages and those
-
- emitted from the ante. Whereas Logs contains the events,
- with
-
- additional metadata, emitted only by processing the
- messages.
-
-
- Since: cosmos-sdk 0.42.11, 0.44.5, 0.45
- description: |-
- BroadcastTxResponse is the response type for the
- Service.BroadcastTx method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: body
- description: >-
- BroadcastTxRequest is the request type for the
- Service.BroadcastTxRequest
-
- RPC method.
- in: body
- required: true
- schema:
- type: object
- properties:
- tx_bytes:
- type: string
- format: byte
- description: tx_bytes is the raw transaction.
- mode:
- type: string
- enum:
- - BROADCAST_MODE_UNSPECIFIED
- - BROADCAST_MODE_BLOCK
- - BROADCAST_MODE_SYNC
- - BROADCAST_MODE_ASYNC
- default: BROADCAST_MODE_UNSPECIFIED
- description: >-
- BroadcastMode specifies the broadcast mode for the
- TxService.Broadcast RPC method.
-
- - BROADCAST_MODE_UNSPECIFIED: zero-value for mode ordering
- - BROADCAST_MODE_BLOCK: DEPRECATED: use BROADCAST_MODE_SYNC instead,
- BROADCAST_MODE_BLOCK is not supported by the SDK from v0.47.x
- onwards.
- - BROADCAST_MODE_SYNC: BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits for
- a CheckTx execution response only.
- - BROADCAST_MODE_ASYNC: BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client returns
- immediately.
- description: >-
- BroadcastTxRequest is the request type for the
- Service.BroadcastTxRequest
-
- RPC method.
- tags:
- - Service
- /cosmos/tx/v1beta1/txs/block/{height}:
- get:
- summary: GetBlockWithTxs fetches a block with decoded txs.
- description: 'Since: cosmos-sdk 0.45.2'
- operationId: CosmosTxV1Beta1GetBlockWithTxs
- responses:
- '200':
- description: A successful response.
- schema:
- $ref: '#/definitions/cosmos.tx.v1beta1.GetBlockWithTxsResponse'
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: height
- description: height is the height of the block to query.
- in: path
- required: true
- type: string
- format: int64
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
-
-
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Service
- /cosmos/tx/v1beta1/txs/{hash}:
- get:
- summary: GetTx fetches a tx by hash.
- operationId: CosmosTxV1Beta1GetTx
- responses:
- '200':
- description: A successful response.
- schema:
- $ref: '#/definitions/cosmos.tx.v1beta1.GetTxResponse'
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: hash
- description: hash is the tx hash to query, encoded as a hex string.
- in: path
- required: true
- type: string
- tags:
- - Service
- /cosmos/upgrade/v1beta1/applied_plan/{name}:
- get:
- summary: AppliedPlan queries a previously applied upgrade plan by its name.
- operationId: CosmosUpgradeV1Beta1AppliedPlan
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- height:
- type: string
- format: int64
- description: height is the block height at which the plan was applied.
- description: >-
- QueryAppliedPlanResponse is the response type for the
- Query/AppliedPlan RPC
-
- method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: name
- description: name is the name of the applied plan to query for.
- in: path
- required: true
- type: string
- tags:
- - Query
- /cosmos/upgrade/v1beta1/authority:
- get:
- summary: Returns the account with authority to conduct upgrades
- description: 'Since: cosmos-sdk 0.46'
- operationId: CosmosUpgradeV1Beta1Authority
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- address:
- type: string
- description: 'Since: cosmos-sdk 0.46'
- title: QueryAuthorityResponse is the response type for Query/Authority
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- tags:
- - Query
- /cosmos/upgrade/v1beta1/current_plan:
- get:
- summary: CurrentPlan queries the current upgrade plan.
- operationId: CosmosUpgradeV1Beta1CurrentPlan
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- plan:
- description: plan is the current upgrade plan.
- type: object
- properties:
- name:
- type: string
- description: >-
- Sets the name for the upgrade. This name will be used by
- the upgraded
-
- version of the software to apply any special "on-upgrade"
- commands during
-
- the first BeginBlock method after the upgrade is applied.
- It is also used
-
- to detect whether a software version can handle a given
- upgrade. If no
-
- upgrade handler with this name has been set in the
- software, it will be
-
- assumed that the software is out-of-date when the upgrade
- Time or Height is
-
- reached and the software will exit.
- time:
- type: string
- format: date-time
- description: >-
- Deprecated: Time based upgrades have been deprecated. Time
- based upgrade logic
-
- has been removed from the SDK.
-
- If this field is not empty, an error will be thrown.
- height:
- type: string
- format: int64
- description: The height at which the upgrade must be performed.
- info:
- type: string
- title: >-
- Any application specific upgrade info to be included
- on-chain
-
- such as a git commit that validators could automatically
- upgrade to
- upgraded_client_state:
- description: >-
- Deprecated: UpgradedClientState field has been deprecated.
- IBC upgrade logic has been
-
- moved to the IBC module in the sub module 02-client.
-
- If this field is not empty, an error will be thrown.
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type
- of the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be
- in a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results
- based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty
- scheme) might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- QueryCurrentPlanResponse is the response type for the
- Query/CurrentPlan RPC
-
- method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- tags:
- - Query
- /cosmos/upgrade/v1beta1/module_versions:
- get:
- summary: ModuleVersions queries the list of module versions from state.
- description: 'Since: cosmos-sdk 0.43'
- operationId: CosmosUpgradeV1Beta1ModuleVersions
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- module_versions:
- type: array
- items:
- type: object
- properties:
- name:
- type: string
- title: name of the app module
- version:
- type: string
- format: uint64
- title: consensus version of the app module
- description: |-
- ModuleVersion specifies a module and its consensus version.
-
- Since: cosmos-sdk 0.43
- description: >-
- module_versions is a list of module names with their consensus
- versions.
- description: >-
- QueryModuleVersionsResponse is the response type for the
- Query/ModuleVersions
-
- RPC method.
-
-
- Since: cosmos-sdk 0.43
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: module_name
- description: |-
- module_name is a field to query a specific module
- consensus version from state. Leaving this empty will
- fetch the full list of module versions from state
- in: query
- required: false
- type: string
- tags:
- - Query
- /cosmos/upgrade/v1beta1/upgraded_consensus_state/{last_height}:
- get:
- summary: >-
- UpgradedConsensusState queries the consensus state that will serve
-
- as a trusted kernel for the next version of this chain. It will only be
-
- stored at the last height of this chain.
-
- UpgradedConsensusState RPC not supported with legacy querier
-
- This rpc is deprecated now that IBC has its own replacement
-
- (https://github.com/cosmos/ibc-go/blob/2c880a22e9f9cc75f62b527ca94aa75ce1106001/proto/ibc/core/client/v1/query.proto#L54)
- operationId: CosmosUpgradeV1Beta1UpgradedConsensusState
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- upgraded_consensus_state:
- type: string
- format: byte
- title: 'Since: cosmos-sdk 0.43'
- description: >-
- QueryUpgradedConsensusStateResponse is the response type for the
- Query/UpgradedConsensusState
-
- RPC method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: last_height
- description: |-
- last height of the current chain must be sent in request
- as this is the height under which next consensus state is stored
- in: path
- required: true
- type: string
- format: int64
- tags:
- - Query
- /ibc/apps/interchain_accounts/controller/v1/owners/{owner}/connections/{connection_id}:
- get:
- summary: >-
- InterchainAccount returns the interchain account address for a given
- owner address on a given connection
- operationId: IbcApplicationsInterchainAccountsControllerV1InterchainAccount
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- address:
- type: string
- description: >-
- QueryInterchainAccountResponse the response type for the
- Query/InterchainAccount RPC method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: owner
- in: path
- required: true
- type: string
- - name: connection_id
- in: path
- required: true
- type: string
- tags:
- - Query
- /ibc/apps/interchain_accounts/controller/v1/params:
- get:
- summary: Params queries all parameters of the ICA controller submodule.
- operationId: IbcApplicationsInterchainAccountsControllerV1Params
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- params:
- description: params defines the parameters of the module.
- type: object
- properties:
- controller_enabled:
- type: boolean
- description: >-
- controller_enabled enables or disables the controller
- submodule.
- description: >-
- QueryParamsResponse is the response type for the Query/Params RPC
- method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- tags:
- - Query
- /ibc/apps/interchain_accounts/host/v1/params:
- get:
- summary: Params queries all parameters of the ICA host submodule.
- operationId: IbcApplicationsInterchainAccountsHostV1Params
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- params:
- description: params defines the parameters of the module.
- type: object
- properties:
- host_enabled:
- type: boolean
- description: host_enabled enables or disables the host submodule.
- allow_messages:
- type: array
- items:
- type: string
- description: >-
- allow_messages defines a list of sdk message typeURLs
- allowed to be executed on a host chain.
- description: >-
- QueryParamsResponse is the response type for the Query/Params RPC
- method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- additionalProperties: {}
- tags:
- - Query
- /ibc/apps/transfer/v1/channels/{channel_id}/ports/{port_id}/escrow_address:
- get:
- summary: >-
- EscrowAddress returns the escrow address for a particular port and
- channel id.
- operationId: IbcApplicationsTransferV1EscrowAddress
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- escrow_address:
- type: string
- title: the escrow account address
- description: >-
- QueryEscrowAddressResponse is the response type of the
- EscrowAddress RPC method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: channel_id
- description: unique channel identifier
- in: path
- required: true
- type: string
- - name: port_id
- description: unique port identifier
- in: path
- required: true
- type: string
- tags:
- - Query
- /ibc/apps/transfer/v1/denom_hashes/{trace}:
- get:
- summary: DenomHash queries a denomination hash information.
- operationId: IbcApplicationsTransferV1DenomHash
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- hash:
- type: string
- description: hash (in hex format) of the denomination trace information.
- description: >-
- QueryDenomHashResponse is the response type for the
- Query/DenomHash RPC
-
- method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: trace
- description: The denomination trace ([port_id]/[channel_id])+/[denom]
- in: path
- required: true
- type: string
- pattern: .+
- tags:
- - Query
- /ibc/apps/transfer/v1/denom_traces:
- get:
- summary: DenomTraces queries all denomination traces.
- operationId: IbcApplicationsTransferV1DenomTraces
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- denom_traces:
- type: array
- items:
- type: object
- properties:
- path:
- type: string
- description: >-
- path defines the chain of port/channel identifiers used
- for tracing the
-
- source of the fungible token.
- base_denom:
- type: string
- description: base denomination of the relayed fungible token.
- description: >-
- DenomTrace contains the base denomination for ICS20 fungible
- tokens and the
-
- source tracing information path.
- description: denom_traces returns all denominations trace information.
- pagination:
- description: pagination defines the pagination in the response.
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
-
- was set, its value is undefined otherwise
- description: >-
- QueryConnectionsResponse is the response type for the
- Query/DenomTraces RPC
-
- method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
-
-
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /ibc/apps/transfer/v1/denom_traces/{hash}:
- get:
- summary: DenomTrace queries a denomination trace information.
- operationId: IbcApplicationsTransferV1DenomTrace
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- denom_trace:
- description: >-
- denom_trace returns the requested denomination trace
- information.
- type: object
- properties:
- path:
- type: string
- description: >-
- path defines the chain of port/channel identifiers used
- for tracing the
-
- source of the fungible token.
- base_denom:
- type: string
- description: base denomination of the relayed fungible token.
- description: >-
- QueryDenomTraceResponse is the response type for the
- Query/DenomTrace RPC
-
- method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: hash
- description: >-
- hash (in hex format) or denom (full denom with ibc prefix) of the
- denomination trace information.
- in: path
- required: true
- type: string
- pattern: .+
- tags:
- - Query
- /ibc/apps/transfer/v1/denoms/{denom}/total_escrow:
- get:
- summary: >-
- TotalEscrowForDenom returns the total amount of tokens in escrow based
- on the denom.
- operationId: IbcApplicationsTransferV1TotalEscrowForDenom
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- amount:
- type: object
- properties:
- denom:
- type: string
- amount:
- type: string
- description: >-
- Coin defines a token with a denomination and an amount.
-
-
- NOTE: The amount field is an Int which implements the custom
- method
-
- signatures required by gogoproto.
- description: >-
- QueryTotalEscrowForDenomResponse is the response type for
- TotalEscrowForDenom RPC method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: denom
- in: path
- required: true
- type: string
- pattern: .+
- tags:
- - Query
- /ibc/apps/transfer/v1/params:
- get:
- summary: Params queries all parameters of the ibc-transfer module.
- operationId: IbcApplicationsTransferV1Params
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- params:
- description: params defines the parameters of the module.
- type: object
- properties:
- send_enabled:
- type: boolean
- description: >-
- send_enabled enables or disables all cross-chain token
- transfers from this
-
- chain.
- receive_enabled:
- type: boolean
- description: >-
- receive_enabled enables or disables all cross-chain token
- transfers to this
-
- chain.
- description: >-
- QueryParamsResponse is the response type for the Query/Params RPC
- method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- tags:
- - Query
- /ibc/core/channel/v1/channels:
- get:
- summary: Channels queries all the IBC channels of a chain.
- operationId: IbcCoreChannelV1Channels
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- channels:
- type: array
- items:
- type: object
- properties:
- state:
- title: current state of the channel end
- type: string
- enum:
- - STATE_UNINITIALIZED_UNSPECIFIED
- - STATE_INIT
- - STATE_TRYOPEN
- - STATE_OPEN
- - STATE_CLOSED
- default: STATE_UNINITIALIZED_UNSPECIFIED
- description: >-
- State defines if a channel is in one of the following
- states:
-
- CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED.
-
- - STATE_UNINITIALIZED_UNSPECIFIED: Default State
- - STATE_INIT: A channel has just started the opening handshake.
- - STATE_TRYOPEN: A channel has acknowledged the handshake step on the counterparty chain.
- - STATE_OPEN: A channel has completed the handshake. Open channels are
- ready to send and receive packets.
- - STATE_CLOSED: A channel has been closed and can no longer be used to send or receive
- packets.
- ordering:
- title: whether the channel is ordered or unordered
- type: string
- enum:
- - ORDER_NONE_UNSPECIFIED
- - ORDER_UNORDERED
- - ORDER_ORDERED
- default: ORDER_NONE_UNSPECIFIED
- description: >-
- - ORDER_NONE_UNSPECIFIED: zero-value for channel
- ordering
- - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in
- which they were sent.
- - ORDER_ORDERED: packets are delivered exactly in the order which they were sent
- counterparty:
- title: counterparty channel end
- type: object
- properties:
- port_id:
- type: string
- description: >-
- port on the counterparty chain which owns the other
- end of the channel.
- channel_id:
- type: string
- title: channel end on the counterparty chain
- connection_hops:
- type: array
- items:
- type: string
- title: >-
- list of connection identifiers, in order, along which
- packets sent on
-
- this channel will travel
- version:
- type: string
- title: >-
- opaque channel version, which is agreed upon during the
- handshake
- port_id:
- type: string
- title: port identifier
- channel_id:
- type: string
- title: channel identifier
- description: >-
- IdentifiedChannel defines a channel with additional port and
- channel
-
- identifier fields.
- description: list of stored channels of the chain.
- pagination:
- title: pagination response
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
-
- was set, its value is undefined otherwise
- description: >-
- PageResponse is to be embedded in gRPC response messages where
- the
-
- corresponding request message has used PageRequest.
-
- message SomeResponse {
- repeated Bar results = 1;
- PageResponse page = 2;
- }
- height:
- title: query block height
- type: object
- properties:
- revision_number:
- type: string
- format: uint64
- title: the revision that the client is currently on
- revision_height:
- type: string
- format: uint64
- title: the height within the given revision
- description: >-
- Normally the RevisionHeight is incremented at each height
- while keeping
-
- RevisionNumber the same. However some consensus algorithms may
- choose to
-
- reset the height in certain conditions e.g. hard forks,
- state-machine
-
- breaking changes In these cases, the RevisionNumber is
- incremented so that
-
- height continues to be monitonically increasing even as the
- RevisionHeight
-
- gets reset
- description: >-
- QueryChannelsResponse is the response type for the Query/Channels
- RPC method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
-
-
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}:
- get:
- summary: Channel queries an IBC Channel.
- operationId: IbcCoreChannelV1Channel
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- channel:
- title: channel associated with the request identifiers
- type: object
- properties:
- state:
- title: current state of the channel end
- type: string
- enum:
- - STATE_UNINITIALIZED_UNSPECIFIED
- - STATE_INIT
- - STATE_TRYOPEN
- - STATE_OPEN
- - STATE_CLOSED
- default: STATE_UNINITIALIZED_UNSPECIFIED
- description: >-
- State defines if a channel is in one of the following
- states:
-
- CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED.
-
- - STATE_UNINITIALIZED_UNSPECIFIED: Default State
- - STATE_INIT: A channel has just started the opening handshake.
- - STATE_TRYOPEN: A channel has acknowledged the handshake step on the counterparty chain.
- - STATE_OPEN: A channel has completed the handshake. Open channels are
- ready to send and receive packets.
- - STATE_CLOSED: A channel has been closed and can no longer be used to send or receive
- packets.
- ordering:
- title: whether the channel is ordered or unordered
- type: string
- enum:
- - ORDER_NONE_UNSPECIFIED
- - ORDER_UNORDERED
- - ORDER_ORDERED
- default: ORDER_NONE_UNSPECIFIED
- description: |-
- - ORDER_NONE_UNSPECIFIED: zero-value for channel ordering
- - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in
- which they were sent.
- - ORDER_ORDERED: packets are delivered exactly in the order which they were sent
- counterparty:
- title: counterparty channel end
- type: object
- properties:
- port_id:
- type: string
- description: >-
- port on the counterparty chain which owns the other
- end of the channel.
- channel_id:
- type: string
- title: channel end on the counterparty chain
- connection_hops:
- type: array
- items:
- type: string
- title: >-
- list of connection identifiers, in order, along which
- packets sent on
-
- this channel will travel
- version:
- type: string
- title: >-
- opaque channel version, which is agreed upon during the
- handshake
- description: >-
- Channel defines pipeline for exactly-once packet delivery
- between specific
-
- modules on separate blockchains, which has at least one end
- capable of
-
- sending packets and one end capable of receiving packets.
- proof:
- type: string
- format: byte
- title: merkle proof of existence
- proof_height:
- title: height at which the proof was retrieved
- type: object
- properties:
- revision_number:
- type: string
- format: uint64
- title: the revision that the client is currently on
- revision_height:
- type: string
- format: uint64
- title: the height within the given revision
- description: >-
- Normally the RevisionHeight is incremented at each height
- while keeping
-
- RevisionNumber the same. However some consensus algorithms may
- choose to
-
- reset the height in certain conditions e.g. hard forks,
- state-machine
-
- breaking changes In these cases, the RevisionNumber is
- incremented so that
-
- height continues to be monitonically increasing even as the
- RevisionHeight
-
- gets reset
- description: >-
- QueryChannelResponse is the response type for the Query/Channel
- RPC method.
-
- Besides the Channel end, it includes a proof and the height from
- which the
-
- proof was retrieved.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: channel_id
- description: channel unique identifier
- in: path
- required: true
- type: string
- - name: port_id
- description: port unique identifier
- in: path
- required: true
- type: string
- tags:
- - Query
- /ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/client_state:
- get:
- summary: >-
- ChannelClientState queries for the client state for the channel
- associated
-
- with the provided channel identifiers.
- operationId: IbcCoreChannelV1ChannelClientState
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- identified_client_state:
- title: client state associated with the channel
- type: object
- properties:
- client_id:
- type: string
- title: client identifier
- client_state:
- title: client state
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type
- of the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be
- in a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results
- based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty
- scheme) might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any
- values in the form
-
- of utility functions or additional generated methods of
- the Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and
- the unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will
- yield type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a
- custom JSON
-
- representation, that representation will be embedded
- adding a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- description: >-
- IdentifiedClientState defines a client state with an
- additional client
-
- identifier field.
- proof:
- type: string
- format: byte
- title: merkle proof of existence
- proof_height:
- title: height at which the proof was retrieved
- type: object
- properties:
- revision_number:
- type: string
- format: uint64
- title: the revision that the client is currently on
- revision_height:
- type: string
- format: uint64
- title: the height within the given revision
- description: >-
- Normally the RevisionHeight is incremented at each height
- while keeping
-
- RevisionNumber the same. However some consensus algorithms may
- choose to
-
- reset the height in certain conditions e.g. hard forks,
- state-machine
-
- breaking changes In these cases, the RevisionNumber is
- incremented so that
-
- height continues to be monitonically increasing even as the
- RevisionHeight
-
- gets reset
- title: |-
- QueryChannelClientStateResponse is the Response type for the
- Query/QueryChannelClientState RPC method
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: channel_id
- description: channel unique identifier
- in: path
- required: true
- type: string
- - name: port_id
- description: port unique identifier
- in: path
- required: true
- type: string
- tags:
- - Query
- /ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/consensus_state/revision/{revision_number}/height/{revision_height}:
- get:
- summary: |-
- ChannelConsensusState queries for the consensus state for the channel
- associated with the provided channel identifiers.
- operationId: IbcCoreChannelV1ChannelConsensusState
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- consensus_state:
- title: consensus state associated with the channel
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at least
-
- one "/" character. The last segment of the URL's path must
- represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in a
- canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary all
- types that they
-
- expect it to use in the context of Any. However, for URLs
- which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in the
- official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer message
- along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values in
- the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by default
- use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the last
- '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with an
-
- additional field `@type` which contains the type URL. Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding a
- field
-
- `value` which holds the custom JSON in addition to the `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- client_id:
- type: string
- title: client ID associated with the consensus state
- proof:
- type: string
- format: byte
- title: merkle proof of existence
- proof_height:
- title: height at which the proof was retrieved
- type: object
- properties:
- revision_number:
- type: string
- format: uint64
- title: the revision that the client is currently on
- revision_height:
- type: string
- format: uint64
- title: the height within the given revision
- description: >-
- Normally the RevisionHeight is incremented at each height
- while keeping
-
- RevisionNumber the same. However some consensus algorithms may
- choose to
-
- reset the height in certain conditions e.g. hard forks,
- state-machine
-
- breaking changes In these cases, the RevisionNumber is
- incremented so that
-
- height continues to be monitonically increasing even as the
- RevisionHeight
-
- gets reset
- title: |-
- QueryChannelClientStateResponse is the Response type for the
- Query/QueryChannelClientState RPC method
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: channel_id
- description: channel unique identifier
- in: path
- required: true
- type: string
- - name: port_id
- description: port unique identifier
- in: path
- required: true
- type: string
- - name: revision_number
- description: revision number of the consensus state
- in: path
- required: true
- type: string
- format: uint64
- - name: revision_height
- description: revision height of the consensus state
- in: path
- required: true
- type: string
- format: uint64
- tags:
- - Query
- /ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/next_sequence:
- get:
- summary: >-
- NextSequenceReceive returns the next receive sequence for a given
- channel.
- operationId: IbcCoreChannelV1NextSequenceReceive
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- next_sequence_receive:
- type: string
- format: uint64
- title: next sequence receive number
- proof:
- type: string
- format: byte
- title: merkle proof of existence
- proof_height:
- title: height at which the proof was retrieved
- type: object
- properties:
- revision_number:
- type: string
- format: uint64
- title: the revision that the client is currently on
- revision_height:
- type: string
- format: uint64
- title: the height within the given revision
- description: >-
- Normally the RevisionHeight is incremented at each height
- while keeping
-
- RevisionNumber the same. However some consensus algorithms may
- choose to
-
- reset the height in certain conditions e.g. hard forks,
- state-machine
-
- breaking changes In these cases, the RevisionNumber is
- incremented so that
-
- height continues to be monitonically increasing even as the
- RevisionHeight
-
- gets reset
- title: |-
- QuerySequenceResponse is the request type for the
- Query/QueryNextSequenceReceiveResponse RPC method
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: channel_id
- description: channel unique identifier
- in: path
- required: true
- type: string
- - name: port_id
- description: port unique identifier
- in: path
- required: true
- type: string
- tags:
- - Query
- /ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_acknowledgements:
- get:
- summary: >-
- PacketAcknowledgements returns all the packet acknowledgements
- associated
-
- with a channel.
- operationId: IbcCoreChannelV1PacketAcknowledgements
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- acknowledgements:
- type: array
- items:
- type: object
- properties:
- port_id:
- type: string
- description: channel port identifier.
- channel_id:
- type: string
- description: channel unique identifier.
- sequence:
- type: string
- format: uint64
- description: packet sequence.
- data:
- type: string
- format: byte
- description: embedded data that represents packet state.
- description: >-
- PacketState defines the generic type necessary to retrieve
- and store
-
- packet commitments, acknowledgements, and receipts.
-
- Caller is responsible for knowing the context necessary to
- interpret this
-
- state as a commitment, acknowledgement, or a receipt.
- pagination:
- title: pagination response
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
-
- was set, its value is undefined otherwise
- description: >-
- PageResponse is to be embedded in gRPC response messages where
- the
-
- corresponding request message has used PageRequest.
-
- message SomeResponse {
- repeated Bar results = 1;
- PageResponse page = 2;
- }
- height:
- title: query block height
- type: object
- properties:
- revision_number:
- type: string
- format: uint64
- title: the revision that the client is currently on
- revision_height:
- type: string
- format: uint64
- title: the height within the given revision
- description: >-
- Normally the RevisionHeight is incremented at each height
- while keeping
-
- RevisionNumber the same. However some consensus algorithms may
- choose to
-
- reset the height in certain conditions e.g. hard forks,
- state-machine
-
- breaking changes In these cases, the RevisionNumber is
- incremented so that
-
- height continues to be monitonically increasing even as the
- RevisionHeight
-
- gets reset
- title: |-
- QueryPacketAcknowledgemetsResponse is the request type for the
- Query/QueryPacketAcknowledgements RPC method
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: channel_id
- description: channel unique identifier
- in: path
- required: true
- type: string
- - name: port_id
- description: port unique identifier
- in: path
- required: true
- type: string
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
-
-
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- - name: packet_commitment_sequences
- description: list of packet sequences
- in: query
- required: false
- type: array
- items:
- type: string
- format: uint64
- collectionFormat: multi
- tags:
- - Query
- /ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_acks/{sequence}:
- get:
- summary: PacketAcknowledgement queries a stored packet acknowledgement hash.
- operationId: IbcCoreChannelV1PacketAcknowledgement
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- acknowledgement:
- type: string
- format: byte
- title: packet associated with the request fields
- proof:
- type: string
- format: byte
- title: merkle proof of existence
- proof_height:
- title: height at which the proof was retrieved
- type: object
- properties:
- revision_number:
- type: string
- format: uint64
- title: the revision that the client is currently on
- revision_height:
- type: string
- format: uint64
- title: the height within the given revision
- description: >-
- Normally the RevisionHeight is incremented at each height
- while keeping
-
- RevisionNumber the same. However some consensus algorithms may
- choose to
-
- reset the height in certain conditions e.g. hard forks,
- state-machine
-
- breaking changes In these cases, the RevisionNumber is
- incremented so that
-
- height continues to be monitonically increasing even as the
- RevisionHeight
-
- gets reset
- title: >-
- QueryPacketAcknowledgementResponse defines the client query
- response for a
-
- packet which also includes a proof and the height from which the
-
- proof was retrieved
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: channel_id
- description: channel unique identifier
- in: path
- required: true
- type: string
- - name: port_id
- description: port unique identifier
- in: path
- required: true
- type: string
- - name: sequence
- description: packet sequence
- in: path
- required: true
- type: string
- format: uint64
- tags:
- - Query
- /ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_commitments:
- get:
- summary: |-
- PacketCommitments returns all the packet commitments hashes associated
- with a channel.
- operationId: IbcCoreChannelV1PacketCommitments
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- commitments:
- type: array
- items:
- type: object
- properties:
- port_id:
- type: string
- description: channel port identifier.
- channel_id:
- type: string
- description: channel unique identifier.
- sequence:
- type: string
- format: uint64
- description: packet sequence.
- data:
- type: string
- format: byte
- description: embedded data that represents packet state.
- description: >-
- PacketState defines the generic type necessary to retrieve
- and store
-
- packet commitments, acknowledgements, and receipts.
-
- Caller is responsible for knowing the context necessary to
- interpret this
-
- state as a commitment, acknowledgement, or a receipt.
- pagination:
- title: pagination response
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
-
- was set, its value is undefined otherwise
- description: >-
- PageResponse is to be embedded in gRPC response messages where
- the
-
- corresponding request message has used PageRequest.
-
- message SomeResponse {
- repeated Bar results = 1;
- PageResponse page = 2;
- }
- height:
- title: query block height
- type: object
- properties:
- revision_number:
- type: string
- format: uint64
- title: the revision that the client is currently on
- revision_height:
- type: string
- format: uint64
- title: the height within the given revision
- description: >-
- Normally the RevisionHeight is incremented at each height
- while keeping
-
- RevisionNumber the same. However some consensus algorithms may
- choose to
-
- reset the height in certain conditions e.g. hard forks,
- state-machine
-
- breaking changes In these cases, the RevisionNumber is
- incremented so that
-
- height continues to be monitonically increasing even as the
- RevisionHeight
-
- gets reset
- title: |-
- QueryPacketCommitmentsResponse is the request type for the
- Query/QueryPacketCommitments RPC method
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: channel_id
- description: channel unique identifier
- in: path
- required: true
- type: string
- - name: port_id
- description: port unique identifier
- in: path
- required: true
- type: string
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
-
-
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_commitments/{packet_ack_sequences}/unreceived_acks:
- get:
- summary: >-
- UnreceivedAcks returns all the unreceived IBC acknowledgements
- associated
-
- with a channel and sequences.
- operationId: IbcCoreChannelV1UnreceivedAcks
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- sequences:
- type: array
- items:
- type: string
- format: uint64
- title: list of unreceived acknowledgement sequences
- height:
- title: query block height
- type: object
- properties:
- revision_number:
- type: string
- format: uint64
- title: the revision that the client is currently on
- revision_height:
- type: string
- format: uint64
- title: the height within the given revision
- description: >-
- Normally the RevisionHeight is incremented at each height
- while keeping
-
- RevisionNumber the same. However some consensus algorithms may
- choose to
-
- reset the height in certain conditions e.g. hard forks,
- state-machine
-
- breaking changes In these cases, the RevisionNumber is
- incremented so that
-
- height continues to be monitonically increasing even as the
- RevisionHeight
-
- gets reset
- title: |-
- QueryUnreceivedAcksResponse is the response type for the
- Query/UnreceivedAcks RPC method
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: channel_id
- description: channel unique identifier
- in: path
- required: true
- type: string
- - name: port_id
- description: port unique identifier
- in: path
- required: true
- type: string
- - name: packet_ack_sequences
- description: list of acknowledgement sequences
- in: path
- required: true
- type: array
- items:
- type: string
- format: uint64
- collectionFormat: csv
- minItems: 1
- tags:
- - Query
- /ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_commitments/{packet_commitment_sequences}/unreceived_packets:
- get:
- summary: >-
- UnreceivedPackets returns all the unreceived IBC packets associated with
- a
-
- channel and sequences.
- operationId: IbcCoreChannelV1UnreceivedPackets
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- sequences:
- type: array
- items:
- type: string
- format: uint64
- title: list of unreceived packet sequences
- height:
- title: query block height
- type: object
- properties:
- revision_number:
- type: string
- format: uint64
- title: the revision that the client is currently on
- revision_height:
- type: string
- format: uint64
- title: the height within the given revision
- description: >-
- Normally the RevisionHeight is incremented at each height
- while keeping
-
- RevisionNumber the same. However some consensus algorithms may
- choose to
-
- reset the height in certain conditions e.g. hard forks,
- state-machine
-
- breaking changes In these cases, the RevisionNumber is
- incremented so that
-
- height continues to be monitonically increasing even as the
- RevisionHeight
-
- gets reset
- title: |-
- QueryUnreceivedPacketsResponse is the response type for the
- Query/UnreceivedPacketCommitments RPC method
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: channel_id
- description: channel unique identifier
- in: path
- required: true
- type: string
- - name: port_id
- description: port unique identifier
- in: path
- required: true
- type: string
- - name: packet_commitment_sequences
- description: list of packet sequences
- in: path
- required: true
- type: array
- items:
- type: string
- format: uint64
- collectionFormat: csv
- minItems: 1
- tags:
- - Query
- /ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_commitments/{sequence}:
- get:
- summary: PacketCommitment queries a stored packet commitment hash.
- operationId: IbcCoreChannelV1PacketCommitment
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- commitment:
- type: string
- format: byte
- title: packet associated with the request fields
- proof:
- type: string
- format: byte
- title: merkle proof of existence
- proof_height:
- title: height at which the proof was retrieved
- type: object
- properties:
- revision_number:
- type: string
- format: uint64
- title: the revision that the client is currently on
- revision_height:
- type: string
- format: uint64
- title: the height within the given revision
- description: >-
- Normally the RevisionHeight is incremented at each height
- while keeping
-
- RevisionNumber the same. However some consensus algorithms may
- choose to
-
- reset the height in certain conditions e.g. hard forks,
- state-machine
-
- breaking changes In these cases, the RevisionNumber is
- incremented so that
-
- height continues to be monitonically increasing even as the
- RevisionHeight
-
- gets reset
- title: >-
- QueryPacketCommitmentResponse defines the client query response
- for a packet
-
- which also includes a proof and the height from which the proof
- was
-
- retrieved
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: channel_id
- description: channel unique identifier
- in: path
- required: true
- type: string
- - name: port_id
- description: port unique identifier
- in: path
- required: true
- type: string
- - name: sequence
- description: packet sequence
- in: path
- required: true
- type: string
- format: uint64
- tags:
- - Query
- /ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_receipts/{sequence}:
- get:
- summary: >-
- PacketReceipt queries if a given packet sequence has been received on
- the
-
- queried chain
- operationId: IbcCoreChannelV1PacketReceipt
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- received:
- type: boolean
- title: success flag for if receipt exists
- proof:
- type: string
- format: byte
- title: merkle proof of existence
- proof_height:
- title: height at which the proof was retrieved
- type: object
- properties:
- revision_number:
- type: string
- format: uint64
- title: the revision that the client is currently on
- revision_height:
- type: string
- format: uint64
- title: the height within the given revision
- description: >-
- Normally the RevisionHeight is incremented at each height
- while keeping
-
- RevisionNumber the same. However some consensus algorithms may
- choose to
-
- reset the height in certain conditions e.g. hard forks,
- state-machine
-
- breaking changes In these cases, the RevisionNumber is
- incremented so that
-
- height continues to be monitonically increasing even as the
- RevisionHeight
-
- gets reset
- title: >-
- QueryPacketReceiptResponse defines the client query response for a
- packet
-
- receipt which also includes a proof, and the height from which the
- proof was
-
- retrieved
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: channel_id
- description: channel unique identifier
- in: path
- required: true
- type: string
- - name: port_id
- description: port unique identifier
- in: path
- required: true
- type: string
- - name: sequence
- description: packet sequence
- in: path
- required: true
- type: string
- format: uint64
- tags:
- - Query
- /ibc/core/channel/v1/connections/{connection}/channels:
- get:
- summary: |-
- ConnectionChannels queries all the channels associated with a connection
- end.
- operationId: IbcCoreChannelV1ConnectionChannels
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- channels:
- type: array
- items:
- type: object
- properties:
- state:
- title: current state of the channel end
- type: string
- enum:
- - STATE_UNINITIALIZED_UNSPECIFIED
- - STATE_INIT
- - STATE_TRYOPEN
- - STATE_OPEN
- - STATE_CLOSED
- default: STATE_UNINITIALIZED_UNSPECIFIED
- description: >-
- State defines if a channel is in one of the following
- states:
-
- CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED.
-
- - STATE_UNINITIALIZED_UNSPECIFIED: Default State
- - STATE_INIT: A channel has just started the opening handshake.
- - STATE_TRYOPEN: A channel has acknowledged the handshake step on the counterparty chain.
- - STATE_OPEN: A channel has completed the handshake. Open channels are
- ready to send and receive packets.
- - STATE_CLOSED: A channel has been closed and can no longer be used to send or receive
- packets.
- ordering:
- title: whether the channel is ordered or unordered
- type: string
- enum:
- - ORDER_NONE_UNSPECIFIED
- - ORDER_UNORDERED
- - ORDER_ORDERED
- default: ORDER_NONE_UNSPECIFIED
- description: >-
- - ORDER_NONE_UNSPECIFIED: zero-value for channel
- ordering
- - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in
- which they were sent.
- - ORDER_ORDERED: packets are delivered exactly in the order which they were sent
- counterparty:
- title: counterparty channel end
- type: object
- properties:
- port_id:
- type: string
- description: >-
- port on the counterparty chain which owns the other
- end of the channel.
- channel_id:
- type: string
- title: channel end on the counterparty chain
- connection_hops:
- type: array
- items:
- type: string
- title: >-
- list of connection identifiers, in order, along which
- packets sent on
-
- this channel will travel
- version:
- type: string
- title: >-
- opaque channel version, which is agreed upon during the
- handshake
- port_id:
- type: string
- title: port identifier
- channel_id:
- type: string
- title: channel identifier
- description: >-
- IdentifiedChannel defines a channel with additional port and
- channel
-
- identifier fields.
- description: list of channels associated with a connection.
- pagination:
- title: pagination response
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
-
- was set, its value is undefined otherwise
- description: >-
- PageResponse is to be embedded in gRPC response messages where
- the
-
- corresponding request message has used PageRequest.
-
- message SomeResponse {
- repeated Bar results = 1;
- PageResponse page = 2;
- }
- height:
- title: query block height
- type: object
- properties:
- revision_number:
- type: string
- format: uint64
- title: the revision that the client is currently on
- revision_height:
- type: string
- format: uint64
- title: the height within the given revision
- description: >-
- Normally the RevisionHeight is incremented at each height
- while keeping
-
- RevisionNumber the same. However some consensus algorithms may
- choose to
-
- reset the height in certain conditions e.g. hard forks,
- state-machine
-
- breaking changes In these cases, the RevisionNumber is
- incremented so that
-
- height continues to be monitonically increasing even as the
- RevisionHeight
-
- gets reset
- title: |-
- QueryConnectionChannelsResponse is the Response type for the
- Query/QueryConnectionChannels RPC method
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: connection
- description: connection unique identifier
- in: path
- required: true
- type: string
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
-
-
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /ibc/core/client/v1/client_states:
- get:
- summary: ClientStates queries all the IBC light clients of a chain.
- operationId: IbcCoreClientV1ClientStates
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- client_states:
- type: array
- items:
- type: object
- properties:
- client_id:
- type: string
- title: client identifier
- client_state:
- title: client state
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the
- type of the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's
- path must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be
- in a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the
- binary all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results
- based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available
- in the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty
- scheme) might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any
- values in the form
-
- of utility functions or additional generated methods of
- the Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and
- the unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will
- yield type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the
- regular
-
- representation of the deserialized, embedded message,
- with an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a
- custom JSON
-
- representation, that representation will be embedded
- adding a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message
- [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- description: >-
- IdentifiedClientState defines a client state with an
- additional client
-
- identifier field.
- description: list of stored ClientStates of the chain.
- pagination:
- title: pagination response
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
-
- was set, its value is undefined otherwise
- description: >-
- PageResponse is to be embedded in gRPC response messages where
- the
-
- corresponding request message has used PageRequest.
-
- message SomeResponse {
- repeated Bar results = 1;
- PageResponse page = 2;
- }
- description: >-
- QueryClientStatesResponse is the response type for the
- Query/ClientStates RPC
-
- method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
-
-
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /ibc/core/client/v1/client_states/{client_id}:
- get:
- summary: ClientState queries an IBC light client.
- operationId: IbcCoreClientV1ClientState
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- client_state:
- title: client state associated with the request identifier
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at least
-
- one "/" character. The last segment of the URL's path must
- represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in a
- canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary all
- types that they
-
- expect it to use in the context of Any. However, for URLs
- which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in the
- official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer message
- along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values in
- the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by default
- use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the last
- '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with an
-
- additional field `@type` which contains the type URL. Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding a
- field
-
- `value` which holds the custom JSON in addition to the `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- proof:
- type: string
- format: byte
- title: merkle proof of existence
- proof_height:
- title: height at which the proof was retrieved
- type: object
- properties:
- revision_number:
- type: string
- format: uint64
- title: the revision that the client is currently on
- revision_height:
- type: string
- format: uint64
- title: the height within the given revision
- description: >-
- Normally the RevisionHeight is incremented at each height
- while keeping
-
- RevisionNumber the same. However some consensus algorithms may
- choose to
-
- reset the height in certain conditions e.g. hard forks,
- state-machine
-
- breaking changes In these cases, the RevisionNumber is
- incremented so that
-
- height continues to be monitonically increasing even as the
- RevisionHeight
-
- gets reset
- description: >-
- QueryClientStateResponse is the response type for the
- Query/ClientState RPC
-
- method. Besides the client state, it includes a proof and the
- height from
-
- which the proof was retrieved.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: client_id
- description: client state unique identifier
- in: path
- required: true
- type: string
- tags:
- - Query
- /ibc/core/client/v1/client_status/{client_id}:
- get:
- summary: Status queries the status of an IBC client.
- operationId: IbcCoreClientV1ClientStatus
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- status:
- type: string
- description: >-
- QueryClientStatusResponse is the response type for the
- Query/ClientStatus RPC
-
- method. It returns the current status of the IBC client.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: client_id
- description: client unique identifier
- in: path
- required: true
- type: string
- tags:
- - Query
- /ibc/core/client/v1/consensus_states/{client_id}:
- get:
- summary: |-
- ConsensusStates queries all the consensus state associated with a given
- client.
- operationId: IbcCoreClientV1ConsensusStates
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- consensus_states:
- type: array
- items:
- type: object
- properties:
- height:
- title: consensus state height
- type: object
- properties:
- revision_number:
- type: string
- format: uint64
- title: the revision that the client is currently on
- revision_height:
- type: string
- format: uint64
- title: the height within the given revision
- description: >-
- Normally the RevisionHeight is incremented at each
- height while keeping
-
- RevisionNumber the same. However some consensus
- algorithms may choose to
-
- reset the height in certain conditions e.g. hard forks,
- state-machine
-
- breaking changes In these cases, the RevisionNumber is
- incremented so that
-
- height continues to be monitonically increasing even as
- the RevisionHeight
-
- gets reset
- consensus_state:
- title: consensus state
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the
- type of the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's
- path must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be
- in a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the
- binary all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results
- based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available
- in the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty
- scheme) might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any
- values in the form
-
- of utility functions or additional generated methods of
- the Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and
- the unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will
- yield type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the
- regular
-
- representation of the deserialized, embedded message,
- with an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a
- custom JSON
-
- representation, that representation will be embedded
- adding a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message
- [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- description: >-
- ConsensusStateWithHeight defines a consensus state with an
- additional height
-
- field.
- title: consensus states associated with the identifier
- pagination:
- title: pagination response
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
-
- was set, its value is undefined otherwise
- description: >-
- PageResponse is to be embedded in gRPC response messages where
- the
-
- corresponding request message has used PageRequest.
-
- message SomeResponse {
- repeated Bar results = 1;
- PageResponse page = 2;
- }
- title: |-
- QueryConsensusStatesResponse is the response type for the
- Query/ConsensusStates RPC method
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: client_id
- description: client identifier
- in: path
- required: true
- type: string
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
-
-
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /ibc/core/client/v1/consensus_states/{client_id}/heights:
- get:
- summary: >-
- ConsensusStateHeights queries the height of every consensus states
- associated with a given client.
- operationId: IbcCoreClientV1ConsensusStateHeights
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- consensus_state_heights:
- type: array
- items:
- type: object
- properties:
- revision_number:
- type: string
- format: uint64
- title: the revision that the client is currently on
- revision_height:
- type: string
- format: uint64
- title: the height within the given revision
- description: >-
- Normally the RevisionHeight is incremented at each height
- while keeping
-
- RevisionNumber the same. However some consensus algorithms
- may choose to
-
- reset the height in certain conditions e.g. hard forks,
- state-machine
-
- breaking changes In these cases, the RevisionNumber is
- incremented so that
-
- height continues to be monitonically increasing even as the
- RevisionHeight
-
- gets reset
- title: >-
- Height is a monotonically increasing data type
-
- that can be compared against another Height for the purposes
- of updating and
-
- freezing clients
- title: consensus state heights
- pagination:
- title: pagination response
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
-
- was set, its value is undefined otherwise
- description: >-
- PageResponse is to be embedded in gRPC response messages where
- the
-
- corresponding request message has used PageRequest.
-
- message SomeResponse {
- repeated Bar results = 1;
- PageResponse page = 2;
- }
- title: |-
- QueryConsensusStateHeightsResponse is the response type for the
- Query/ConsensusStateHeights RPC method
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: client_id
- description: client identifier
- in: path
- required: true
- type: string
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
-
-
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /ibc/core/client/v1/consensus_states/{client_id}/revision/{revision_number}/height/{revision_height}:
- get:
- summary: >-
- ConsensusState queries a consensus state associated with a client state
- at
-
- a given height.
- operationId: IbcCoreClientV1ConsensusState
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- consensus_state:
- title: >-
- consensus state associated with the client identifier at the
- given height
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at least
-
- one "/" character. The last segment of the URL's path must
- represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in a
- canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary all
- types that they
-
- expect it to use in the context of Any. However, for URLs
- which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in the
- official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer message
- along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values in
- the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by default
- use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the last
- '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with an
-
- additional field `@type` which contains the type URL. Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding a
- field
-
- `value` which holds the custom JSON in addition to the `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- proof:
- type: string
- format: byte
- title: merkle proof of existence
- proof_height:
- title: height at which the proof was retrieved
- type: object
- properties:
- revision_number:
- type: string
- format: uint64
- title: the revision that the client is currently on
- revision_height:
- type: string
- format: uint64
- title: the height within the given revision
- description: >-
- Normally the RevisionHeight is incremented at each height
- while keeping
-
- RevisionNumber the same. However some consensus algorithms may
- choose to
-
- reset the height in certain conditions e.g. hard forks,
- state-machine
-
- breaking changes In these cases, the RevisionNumber is
- incremented so that
-
- height continues to be monitonically increasing even as the
- RevisionHeight
-
- gets reset
- title: >-
- QueryConsensusStateResponse is the response type for the
- Query/ConsensusState
-
- RPC method
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: client_id
- description: client identifier
- in: path
- required: true
- type: string
- - name: revision_number
- description: consensus state revision number
- in: path
- required: true
- type: string
- format: uint64
- - name: revision_height
- description: consensus state revision height
- in: path
- required: true
- type: string
- format: uint64
- - name: latest_height
- description: >-
- latest_height overrrides the height field and queries the latest
- stored
-
- ConsensusState
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /ibc/core/client/v1/params:
- get:
- summary: ClientParams queries all parameters of the ibc client submodule.
- operationId: IbcCoreClientV1ClientParams
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- params:
- description: params defines the parameters of the module.
- type: object
- properties:
- allowed_clients:
- type: array
- items:
- type: string
- description: >-
- allowed_clients defines the list of allowed client state
- types which can be created
-
- and interacted with. If a client type is removed from the
- allowed clients list, usage
-
- of this client will be disabled until it is added again to
- the list.
- description: >-
- QueryClientParamsResponse is the response type for the
- Query/ClientParams RPC
-
- method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- tags:
- - Query
- /ibc/core/client/v1/upgraded_client_states:
- get:
- summary: UpgradedClientState queries an Upgraded IBC light client.
- operationId: IbcCoreClientV1UpgradedClientState
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- upgraded_client_state:
- title: client state associated with the request identifier
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at least
-
- one "/" character. The last segment of the URL's path must
- represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in a
- canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary all
- types that they
-
- expect it to use in the context of Any. However, for URLs
- which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in the
- official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer message
- along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values in
- the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by default
- use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the last
- '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with an
-
- additional field `@type` which contains the type URL. Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding a
- field
-
- `value` which holds the custom JSON in addition to the `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- description: |-
- QueryUpgradedClientStateResponse is the response type for the
- Query/UpgradedClientState RPC method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- tags:
- - Query
- /ibc/core/client/v1/upgraded_consensus_states:
- get:
- summary: UpgradedConsensusState queries an Upgraded IBC consensus state.
- operationId: IbcCoreClientV1UpgradedConsensusState
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- upgraded_consensus_state:
- title: Consensus state associated with the request identifier
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at least
-
- one "/" character. The last segment of the URL's path must
- represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in a
- canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary all
- types that they
-
- expect it to use in the context of Any. However, for URLs
- which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in the
- official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer message
- along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values in
- the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by default
- use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the last
- '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with an
-
- additional field `@type` which contains the type URL. Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding a
- field
-
- `value` which holds the custom JSON in addition to the `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- description: |-
- QueryUpgradedConsensusStateResponse is the response type for the
- Query/UpgradedConsensusState RPC method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- tags:
- - Query
- /ibc/core/connection/v1/client_connections/{client_id}:
- get:
- summary: |-
- ClientConnections queries the connection paths associated with a client
- state.
- operationId: IbcCoreConnectionV1ClientConnections
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- connection_paths:
- type: array
- items:
- type: string
- description: slice of all the connection paths associated with a client.
- proof:
- type: string
- format: byte
- title: merkle proof of existence
- proof_height:
- title: height at which the proof was generated
- type: object
- properties:
- revision_number:
- type: string
- format: uint64
- title: the revision that the client is currently on
- revision_height:
- type: string
- format: uint64
- title: the height within the given revision
- description: >-
- Normally the RevisionHeight is incremented at each height
- while keeping
-
- RevisionNumber the same. However some consensus algorithms may
- choose to
-
- reset the height in certain conditions e.g. hard forks,
- state-machine
-
- breaking changes In these cases, the RevisionNumber is
- incremented so that
-
- height continues to be monitonically increasing even as the
- RevisionHeight
-
- gets reset
- title: |-
- QueryClientConnectionsResponse is the response type for the
- Query/ClientConnections RPC method
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: client_id
- description: client identifier associated with a connection
- in: path
- required: true
- type: string
- tags:
- - Query
- /ibc/core/connection/v1/connections:
- get:
- summary: Connections queries all the IBC connections of a chain.
- operationId: IbcCoreConnectionV1Connections
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- connections:
- type: array
- items:
- type: object
- properties:
- id:
- type: string
- description: connection identifier.
- client_id:
- type: string
- description: client associated with this connection.
- versions:
- type: array
- items:
- type: object
- properties:
- identifier:
- type: string
- title: unique version identifier
- features:
- type: array
- items:
- type: string
- title: >-
- list of features compatible with the specified
- identifier
- description: >-
- Version defines the versioning scheme used to
- negotiate the IBC verison in
-
- the connection handshake.
- title: >-
- IBC version which can be utilised to determine encodings
- or protocols for
-
- channels or packets utilising this connection
- state:
- description: current state of the connection end.
- type: string
- enum:
- - STATE_UNINITIALIZED_UNSPECIFIED
- - STATE_INIT
- - STATE_TRYOPEN
- - STATE_OPEN
- default: STATE_UNINITIALIZED_UNSPECIFIED
- counterparty:
- description: counterparty chain associated with this connection.
- type: object
- properties:
- client_id:
- type: string
- description: >-
- identifies the client on the counterparty chain
- associated with a given
-
- connection.
- connection_id:
- type: string
- description: >-
- identifies the connection end on the counterparty
- chain associated with a
-
- given connection.
- prefix:
- description: commitment merkle prefix of the counterparty chain.
- type: object
- properties:
- key_prefix:
- type: string
- format: byte
- title: >-
- MerklePrefix is merkle path prefixed to the key.
-
- The constructed key from the Path and the key will
- be append(Path.KeyPath,
-
- append(Path.KeyPrefix, key...))
- delay_period:
- type: string
- format: uint64
- description: delay period associated with this connection.
- description: >-
- IdentifiedConnection defines a connection with additional
- connection
-
- identifier field.
- description: list of stored connections of the chain.
- pagination:
- title: pagination response
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
-
- was set, its value is undefined otherwise
- description: >-
- PageResponse is to be embedded in gRPC response messages where
- the
-
- corresponding request message has used PageRequest.
-
- message SomeResponse {
- repeated Bar results = 1;
- PageResponse page = 2;
- }
- height:
- title: query block height
- type: object
- properties:
- revision_number:
- type: string
- format: uint64
- title: the revision that the client is currently on
- revision_height:
- type: string
- format: uint64
- title: the height within the given revision
- description: >-
- Normally the RevisionHeight is incremented at each height
- while keeping
-
- RevisionNumber the same. However some consensus algorithms may
- choose to
-
- reset the height in certain conditions e.g. hard forks,
- state-machine
-
- breaking changes In these cases, the RevisionNumber is
- incremented so that
-
- height continues to be monitonically increasing even as the
- RevisionHeight
-
- gets reset
- description: >-
- QueryConnectionsResponse is the response type for the
- Query/Connections RPC
-
- method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
-
-
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /ibc/core/connection/v1/connections/{connection_id}:
- get:
- summary: Connection queries an IBC connection end.
- operationId: IbcCoreConnectionV1Connection
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- connection:
- title: connection associated with the request identifier
- type: object
- properties:
- client_id:
- type: string
- description: client associated with this connection.
- versions:
- type: array
- items:
- type: object
- properties:
- identifier:
- type: string
- title: unique version identifier
- features:
- type: array
- items:
- type: string
- title: >-
- list of features compatible with the specified
- identifier
- description: >-
- Version defines the versioning scheme used to negotiate
- the IBC verison in
-
- the connection handshake.
- description: >-
- IBC version which can be utilised to determine encodings
- or protocols for
-
- channels or packets utilising this connection.
- state:
- description: current state of the connection end.
- type: string
- enum:
- - STATE_UNINITIALIZED_UNSPECIFIED
- - STATE_INIT
- - STATE_TRYOPEN
- - STATE_OPEN
- default: STATE_UNINITIALIZED_UNSPECIFIED
- counterparty:
- description: counterparty chain associated with this connection.
- type: object
- properties:
- client_id:
- type: string
- description: >-
- identifies the client on the counterparty chain
- associated with a given
-
- connection.
- connection_id:
- type: string
- description: >-
- identifies the connection end on the counterparty
- chain associated with a
-
- given connection.
- prefix:
- description: commitment merkle prefix of the counterparty chain.
- type: object
- properties:
- key_prefix:
- type: string
- format: byte
- title: >-
- MerklePrefix is merkle path prefixed to the key.
-
- The constructed key from the Path and the key will be
- append(Path.KeyPath,
-
- append(Path.KeyPrefix, key...))
- delay_period:
- type: string
- format: uint64
- description: >-
- delay period that must pass before a consensus state can
- be used for
-
- packet-verification NOTE: delay period logic is only
- implemented by some
-
- clients.
- description: >-
- ConnectionEnd defines a stateful object on a chain connected
- to another
-
- separate one.
-
- NOTE: there must only be 2 defined ConnectionEnds to establish
-
- a connection between two chains.
- proof:
- type: string
- format: byte
- title: merkle proof of existence
- proof_height:
- title: height at which the proof was retrieved
- type: object
- properties:
- revision_number:
- type: string
- format: uint64
- title: the revision that the client is currently on
- revision_height:
- type: string
- format: uint64
- title: the height within the given revision
- description: >-
- Normally the RevisionHeight is incremented at each height
- while keeping
-
- RevisionNumber the same. However some consensus algorithms may
- choose to
-
- reset the height in certain conditions e.g. hard forks,
- state-machine
-
- breaking changes In these cases, the RevisionNumber is
- incremented so that
-
- height continues to be monitonically increasing even as the
- RevisionHeight
-
- gets reset
- description: >-
- QueryConnectionResponse is the response type for the
- Query/Connection RPC
-
- method. Besides the connection end, it includes a proof and the
- height from
-
- which the proof was retrieved.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName":