diff --git a/.codespellrc b/.codespellrc deleted file mode 100644 index 70d36bce6..000000000 --- a/.codespellrc +++ /dev/null @@ -1,4 +0,0 @@ -[codespell] -skip = *.rs,*.json,*.js,*.html,*.d,*.sum,go.mod,*/statik.go,./docs,*.pb.*,./interchaintest -quiet-level = 2 -ignore-words = .github/workflows/spell-check-ignore.txt \ No newline at end of file diff --git a/.github/workflows/interchaintest-E2E.yml b/.github/workflows/interchaintest-E2E.yml index 4b2c5aef5..faa65b1fd 100644 --- a/.github/workflows/interchaintest-E2E.yml +++ b/.github/workflows/interchaintest-E2E.yml @@ -64,7 +64,6 @@ jobs: - "ictest-tokenfactory" - "ictest-feeshare" - "ictest-pfm" - - "ictest-globalfee" - "ictest-upgrade" - "ictest-ibc" - "ictest-unity-deploy" @@ -74,6 +73,7 @@ jobs: - "ictest-cwhooks" - "ictest-clock" - "ictest-gov-fix" + - "ictest-feemarket" fail-fast: false steps: diff --git a/.github/workflows/push-docker-images.yml b/.github/workflows/push-docker-images.yml index e92be8689..de1a5eaef 100644 --- a/.github/workflows/push-docker-images.yml +++ b/.github/workflows/push-docker-images.yml @@ -8,12 +8,6 @@ # cosmoscontracts/juno:X # is updated to X.Y.Z # cosmoscontracts/juno:latest # is updated to X.Y.Z # -# cosmoscontracts/juno-e2e:vX.Y.Z # is pushed -# cosmoscontracts/juno-e2e:X.Y.Z # is pushed -# cosmoscontracts/juno-e2e:X.Y # is updated to X.Y.Z -# cosmoscontracts/juno-e2e:X # is updated to X.Y.Z -# cosmoscontracts/juno-e2e:latest # is updated to X.Y.Z -# # All the images above have support for linux/amd64 and linux/arm64. # # Due to QEMU virtualization used to build multi-platform docker images diff --git a/.github/workflows/release-dispatch.yml b/.github/workflows/release-dispatch.yml index 70f5ac2c0..95b68a618 100644 --- a/.github/workflows/release-dispatch.yml +++ b/.github/workflows/release-dispatch.yml @@ -3,59 +3,113 @@ name: Dispatch Release to juno-std on: release: types: [released] - push: - tags: - - 'v[0-9]+.[0-9]+.[0-9]+' - env: JUNO_REPO: "https://github.com/CosmosContracts/juno.git" - JUNO_DIR: "../dependencies/juno/" + JUNO_DIR: "proto" COSMOS_SDK_REPO: "https://github.com/cosmos/cosmos-sdk.git" - COSMOS_SDK_REV: "v0.50.13" - COSMOS_SDK_DIR: "../dependencies/cosmos-sdk/" + COSMOS_SDK_REV: "v0.53.4" + COSMOS_SDK_DIR: "proto" WASMD_REPO: "https://github.com/CosmWasm/wasmd.git" - WASMD_REV: "v0.54.0" - WASMD_DIR: "../dependencies/wasmd/" + WASMD_REV: "v0.54.2" + WASMD_DIR: "proto" COMETBFT_REPO: "https://github.com/cometbft/cometbft.git" - COMETBFT_REV: "v0.38.17" - COMETBFT_DIR: "../dependencies/cometbft/" + COMETBFT_REV: "v0.38.19" + COMETBFT_DIR: "proto" IBC_GO_REPO: "https://github.com/cosmos/ibc-go.git" IBC_GO_REV: "v8.7.0" - IBC_GO_DIR: "../dependencies/ibc-go/" + IBC_GO_DIR: "proto" ICS23_REPO: "https://github.com/cosmos/ics23.git" ICS23_REV: "go/v0.11.0" - ICS23_DIR: "../dependencies/ics23/" + ICS23_DIR: "proto" jobs: dispatch: runs-on: ubuntu-latest steps: - - name: Build repo_config JSON - id: build_repo_config - env: - GITHUB_EVENT_RELEASE_TAG: ${{ github.event.release.tag_name }} - run: | - printf '[\n {"name": "juno", "repo": "%s", "rev": "%s", "dir": "%s", "exclude_mods": [], "is_main": true},\n {"name": "cosmos-sdk", "repo": "%s", "rev": "%s", "dir": "%s", "exclude_mods": ["reflection", "autocli"], "is_main": false},\n {"name": "wasmd", "repo": "%s", "rev": "%s", "dir": "%s", "exclude_mods": [], "is_main": false},\n {"name": "cometbft", "repo": "%s", "rev": "%s", "dir": "%s", "exclude_mods": [], "is_main": false},\n {"name": "ibc-go", "repo": "%s", "rev": "%s", "dir": "%s", "exclude_mods": [], "is_main": false},\n {"name": "ics23", "repo": "%s", "rev": "%s", "dir": "%s", "exclude_mods": [], "is_main": false}\n]\n' \ - "$JUNO_REPO" "$GITHUB_EVENT_RELEASE_TAG" "$JUNO_DIR" \ - "$COSMOS_SDK_REPO" "$COSMOS_SDK_REV" "$COSMOS_SDK_DIR" \ - "$WASMD_REPO" "$WASMD_REV" "$WASMD_DIR" \ - "$COMETBFT_REPO" "$COMETBFT_REV" "$COMETBFT_DIR" \ - "$IBC_GO_REPO" "$IBC_GO_REV" "$IBC_GO_DIR" \ - "$ICS23_REPO" "$ICS23_REV" "$ICS23_DIR" > repo_config.json - cat repo_config.json - echo "json=$(cat repo_config.json)" >> $GITHUB_OUTPUT - shell: bash - - - name: Dispatch release event with repo_config - uses: peter-evans/repository-dispatch@v3 + - name: Dispatch release event + uses: actions/github-script@v8 with: - token: ${{ secrets.DISPATCH_TOKEN }} - repository: CosmosContracts/juno-std - event-type: juno-release - client-payload: | - { - "is_draft": "${{ github.event.release.draft }}", - "is_prerelease": "${{ github.event.release.prerelease }}", - "release_tag": "${{ github.event.release.tag_name }}", - "repo_config": "${{ steps.build_repo_config.outputs.json }}" + github-token: ${{ secrets.DISPATCH_TOKEN }} + script: | + const { context, core, github } = require('@actions/github-script'); + + // Resolve target repository (owner/repo) from env + const repoStr = "CosmosContracts/juno-std"; + if (!repoStr.includes('/')) { + core.setFailed(`Invalid repository: '${repoStr}'`); + return; + } + const [targetOwner, targetRepo] = "CosmosContracts/juno-std".split('/', 2); + + // Determine release_tag and flags based on event type or manual inputs + const inputs = (context.payload && context.payload.inputs) || {}; + const releaseTag = inputs.release_tag || ''; + const isDraft = String(inputs.is_draft || '').toLowerCase() === 'true'; + const isPrerelease = String(inputs.is_prerelease || '').toLowerCase() === 'true'; + + if (!releaseTag) { + core.setFailed('Unable to determine release_tag'); + return; } + + // Build 'repos' as a structured JSON object keyed by name + const repos = { + juno: { + name: 'juno', + repo: process.env.JUNO_REPO, + rev: releaseTag, + dir: process.env.JUNO_DIR, + exclude_mods: [], + }, + cosmos_sdk: { + name: 'cosmos', + repo: process.env.COSMOS_SDK_REPO, + rev: process.env.COSMOS_SDK_REV, + dir: process.env.COSMOS_SDK_DIR, + exclude_mods: ['cosmos/benchmark', 'cosmos/counter', 'cosmos/epochs', 'cosmos/protocolpool], + }, + wasmd: { + name: 'wasm', + repo: process.env.WASMD_REPO, + rev: process.env.WASMD_REV, + dir: process.env.WASMD_DIR, + exclude_mods: [], + }, + cometbft: { + name: 'cometbft', + repo: process.env.COMETBFT_REPO, + rev: process.env.COMETBFT_REV, + dir: process.env.COMETBFT_DIR, + exclude_mods: [], + }, + ibc_go: { + name: 'ibc-go', + repo: process.env.IBC_GO_REPO, + rev: process.env.IBC_GO_REV, + dir: process.env.IBC_GO_DIR, + exclude_mods: [], + }, + ics23: { + name: 'ics23', + repo: process.env.ICS23_REPO, + rev: process.env.ICS23_REV, + dir: process.env.ICS23_DIR, + exclude_mods: [], + }, + }; + + const payload = { + is_draft: isDraft, + is_prerelease: isPrerelease, + release_tag: releaseTag, + repos, + }; + + core.info(`Dispatching to ${targetOwner}/${targetRepo} with payload: ${JSON.stringify(payload)}`); + await github.rest.repos.createDispatchEvent({ + owner: targetOwner, + repo: targetRepo, + event_type: "juno-release", + client_payload: payload, + }); + core.info('Repository dispatch event sent successfully.'); diff --git a/.github/workflows/spell-check-ignore.txt b/.github/workflows/spell-check-ignore.txt deleted file mode 100644 index c521851b0..000000000 --- a/.github/workflows/spell-check-ignore.txt +++ /dev/null @@ -1,3 +0,0 @@ -junodd -crate -re-used \ No newline at end of file diff --git a/.github/workflows/spell-check.yml b/.github/workflows/spell-check.yml deleted file mode 100644 index 96ef19cc4..000000000 --- a/.github/workflows/spell-check.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: Spell Check - -on: - pull_request: - -jobs: - spellcheck: - name: Run codespell - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: '3.x' - - - name: Install codespell - run: pip install codespell - - - name: Run codespell - run: codespell \ No newline at end of file diff --git a/.gitignore b/.gitignore index dc7e2976b..dfe0de15a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,17 @@ +# build artifacts bin + +# IDEs .vscode +.cursor +.claude + +# OS .DS_Store + +# Heighliner heighliner* -!scripts/heighliner \ No newline at end of file +!scripts/heighliner + +# random stuff +x/feemarket/fuzz/testdata diff --git a/.golangci.yml b/.golangci.yml index 2d5e6737f..82ea4cbd5 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -22,7 +22,25 @@ linters: - unused - unparam - revive + - containedctx + - copyloopvar + - decorder + - dupl + - dupword + - err113 + - errchkjson + - errname + - errorlint + - exhaustive + - exptostd + - fatcontext + - funcorder + - ginkgolinter settings: + staticcheck: + checks: + - "all" + - "-ST1000" # Disable required package comment revive: enable-all-rules: true rules: @@ -62,6 +80,8 @@ linters: disabled: true - name: deep-exit disabled: true + - name: "var-naming" + disabled: true gosec: excludes: - G404 @@ -94,6 +114,11 @@ formatters: - prefix(github.com/cosmos/cosmos-sdk) - prefix(github.com/CosmosContracts/juno) custom-order: true + exclusions: + paths: + - ".*.pb.go" + - ".*.pb.gw.go" + - "./api/*.*" issues: max-issues-per-linter: 0 diff --git a/.mise.toml b/.mise.toml index df27f517f..5799e5eba 100644 --- a/.mise.toml +++ b/.mise.toml @@ -1,4 +1,4 @@ -# macOS/Linux with curl (recommended): +# macOS/Linux with curl: # curl https://mise.run | sh # # Using Homebrew on macOS: @@ -26,4 +26,6 @@ # mise ls # List installed tools [tools] -go = "1.23.9" +go = "1.25.2" +buf = "latest" +yq = "latest" diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml deleted file mode 100644 index 86d744e90..000000000 --- a/.pre-commit-config.yaml +++ /dev/null @@ -1,24 +0,0 @@ -# Install: -# - pip install pre-commit && pre-commit install -# -# VSCode Extension: -# - ext install MarkLarah.pre-commit-vscode -# -# On new hooks added here: -# - pre-commit run --all-files - -repos: - - repo: local - hooks: - - id: go-mod-tidy - name: "go mod tidy" - files: go.* - entry: ./scripts/git/tidy.sh - language: "script" - - - id: golangci-lint - name: "lint" - files: .*go - entry: ./scripts/git/linter.sh - require_serial: true - language: "script" diff --git a/Dockerfile b/Dockerfile index 1462a0daf..63655e357 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,55 +1,65 @@ -# docker build . -t cosmoscontracts/juno:latest -# docker run --rm -it cosmoscontracts/juno:latest /bin/sh -FROM golang:1.23.9-alpine AS go-builder - -# this comes from standard alpine nightly file -# https://github.com/rust-lang/docker-rust-nightly/blob/master/alpine3.12/Dockerfile -# with some changes to support our toolchain, etc -SHELL ["/bin/sh", "-ecuxo", "pipefail"] -# we probably want to default to latest and error -# since this is predominantly for dev use -# hadolint ignore=DL3018 -RUN apk add --no-cache ca-certificates build-base git -# NOTE: add these to run with LEDGER_ENABLED=true -# RUN apk add libusb-dev linux-headers - -WORKDIR /code - -# Download dependencies and CosmWasm libwasmvm if found. -ADD go.mod go.sum ./ - -RUN set -eux; \ - ARCH=$(uname -m); \ - WASMVM_VERSION=$(go list -m github.com/CosmWasm/wasmvm/v2 | cut -d ' ' -f 2); \ - wget "https://github.com/CosmWasm/wasmvm/releases/download/${WASMVM_VERSION}/libwasmvm_muslc.${ARCH}.a" -O /lib/libwasmvm_muslc.${ARCH}.a; \ - wget "https://github.com/CosmWasm/wasmvm/releases/download/${WASMVM_VERSION}/checksums.txt" -O /tmp/checksums.txt && \ - sha256sum /lib/libwasmvm_muslc.${ARCH}.a | grep $(grep "libwasmvm_muslc.${ARCH}.a" /tmp/checksums.txt | awk '{print $1}'); \ - ln -sf "/lib/libwasmvm_muslc.${ARCH}.a" "/lib/libwasmvm.${ARCH}.a"; \ - go mod download - -# Copy over code -COPY . /code/ - -# force it to use static lib (from above) not standard libgo_cosmwasm.so file -# then log output of file /code/bin/junod -# then ensure static linking -RUN LEDGER_ENABLED=false BUILD_TAGS=muslc LINK_STATICALLY=true make build \ - && file /code/bin/junod \ - && echo "Ensuring binary is statically linked ..." \ - && (file /code/bin/junod | grep "statically linked") +# syntax=docker/dockerfile:1 # -------------------------------------------------------- +# Arguments +# -------------------------------------------------------- + +ARG GO_VERSION="1.25.2" +ARG ALPINE_VERSION="3.22" + +# -------------------------------------------------------- +# Builder +# -------------------------------------------------------- + +FROM golang:${GO_VERSION}-alpine${ALPINE_VERSION} AS builder +ENV GOTOOLCHAIN=go1.25.2 + +RUN apk add --no-cache \ + ca-certificates \ + build-base \ + linux-headers \ + git -FROM alpine:3.21 +WORKDIR /juno -COPY --from=go-builder /code/bin/junod /usr/bin/junod +# Copy Go dependencies +COPY go.mod go.sum ./ +RUN --mount=type=cache,target=/root/.cache/go-build \ + --mount=type=cache,target=/root/go/pkg/mod \ + go mod download + +# Fetch wasmvm +RUN WASMVM_VERSION=$(go list -m github.com/CosmWasm/wasmvm/v2 | cut -d ' ' -f 2) && \ + wget https://github.com/CosmWasm/wasmvm/releases/download/$WASMVM_VERSION/libwasmvm_muslc.$(uname -m).a \ + -O /lib/libwasmvm_muslc.$(uname -m).a && \ + # verify checksum + wget https://github.com/CosmWasm/wasmvm/releases/download/$WASMVM_VERSION/checksums.txt -O /tmp/checksums.txt && \ + sha256sum /lib/libwasmvm_muslc.$(uname -m).a | grep $(cat /tmp/checksums.txt | grep libwasmvm_muslc.$(uname -m) | cut -d ' ' -f 1) + +# Copy source code +COPY . . + +# Build binary +RUN --mount=type=cache,target=/root/.cache/go-build \ + --mount=type=cache,target=/root/go/pkg/mod \ + LEDGER_ENABLED=false BUILD_TAGS=muslc LINK_STATICALLY=true make build \ + && file /juno/bin/junod \ + && echo "Ensuring binary is statically linked ..." \ + && (file /juno/bin/junod | grep "statically linked") + +# -------------------------------------------------------- +# Runner +# -------------------------------------------------------- -COPY docker/* /opt/ -RUN chmod +x /opt/*.sh +FROM golang:${GO_VERSION}-alpine${ALPINE_VERSION} +COPY --from=builder /juno/bin/junod /bin/junod -WORKDIR /opt +ENV HOME=/.juno +WORKDIR $HOME -# rest server, comet p2p, comet rpc -EXPOSE 1317 26656 26657 +EXPOSE 26656 +EXPOSE 26657 +EXPOSE 1317 +EXPOSE 9090 -CMD ["/usr/bin/junod", "version"] +ENTRYPOINT ["junod"] \ No newline at end of file diff --git a/LICENSE b/LICENSE index 261eeb9e9..d9a10c0d8 100644 --- a/LICENSE +++ b/LICENSE @@ -174,28 +174,3 @@ of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/Makefile b/Makefile index b8d239d96..0db847a26 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,12 @@ #!/usr/bin/make -f # set variables +HOST_GOOS := $(shell go env GOOS 2>/dev/null) +HTTPS_GIT := $(shell git config --get remote.origin.url) BRANCH := $(shell git rev-parse --abbrev-ref HEAD) COMMIT := $(shell git log -1 --format='%H') ifeq (,$(VERSION)) - VERSION := $(shell git describe --tags) + VERSION := $(shell git describe --tags --always 2>/dev/null) # if VERSION is empty, then populate it with branch's name and raw commit hash ifeq (,$(VERSION)) VERSION := $(BRANCH)-$(COMMIT) @@ -17,6 +19,9 @@ DOCKER := $(shell which docker) # process build tags build_tags = netgo +ifneq ($(strip $(BUILD_TAGS)),) + build_tags += $(BUILD_TAGS) +endif ifeq ($(LEDGER_ENABLED),true) ifeq ($(OS),Windows_NT) GCCEXE = $(shell where gcc.exe 2> NUL) @@ -54,34 +59,33 @@ ldflags = -X github.com/cosmos/cosmos-sdk/version.Name=juno \ -X github.com/cometbft/cometbft/version.TMCoreSemVer=$(CMT_VERSION) ifeq ($(LINK_STATICALLY),true) - ldflags += -linkmode=external -extldflags "-Wl,-z,muldefs -static" + ifeq ($(HOST_GOOS),linux) + ldflags += -linkmode=external -extldflags "-Wl,-z,muldefs -static" + endif endif ldflags += $(LDFLAGS) ldflags := $(strip $(ldflags)) -BUILD_FLAGS := -tags "$(build_tags)" -ldflags '$(ldflags)' +BUILD_FLAGS := -trimpath -tags "$(build_tags)" -ldflags '$(ldflags)' ############################################################################### ### Build ### ############################################################################### verify: - @echo "🔎 - Verifying Dependencies ..." + @echo "🔎 Verifying Dependencies ..." @go mod verify > /dev/null 2>&1 - @go mod tidy - @echo "✅ - Verified dependencies successfully!" - @echo "" + @echo "✅ Verified dependencies successfully!" go-cache: verify - @echo "📥 - Downloading and caching dependencies..." + @echo "📥 Downloading and caching dependencies..." @go mod download - @echo "✅ - Downloaded and cached dependencies successfully!" - @echo "" + @echo "✅ Downloaded and cached dependencies successfully!" install: go-cache - @echo "🔄 - Installing Juno..." + @echo "🔄 Installing Juno..." @go install $(BUILD_FLAGS) -mod=readonly ./cmd/junod - @echo "✅ - Installed Juno successfully! Run it using 'junod'!" + @echo "✅ Installed Juno successfully! Run it using 'junod'!" @echo "" @echo "====== Install Summary ======" @echo "Juno: $(VERSION)" @@ -90,198 +94,174 @@ install: go-cache @echo "=============================" build: go-cache - @echo "🔄 - Building Juno..." + @echo "🔄 Building Juno..." @if [ "$(OS)" = "Windows_NT" ]; then \ GOOS=windows GOARCH=amd64 go build -mod=readonly $(BUILD_FLAGS) -o bin/junod.exe ./cmd/junod; \ else \ go build -mod=readonly $(BUILD_FLAGS) -o bin/junod ./cmd/junod; \ fi - @echo "✅ - Built Juno successfully! Run it using './bin/junod'!" + @echo "✅ Built Juno successfully! Run it using './bin/junod'!" @echo "" - @echo "====== Install Summary ======" + @echo "======= Build Summary =======" @echo "Juno: $(VERSION)" @echo "Cosmos SDK: $(COSMOS_SDK_VERSION)" @echo "Comet: $(CMT_VERSION)" @echo "=============================" -test-node: - CHAIN_ID="local-1" HOME_DIR="~/.juno" TIMEOUT_COMMIT="500ms" CLEAN=true sh scripts/test_node.sh +init: + sh scripts/init.sh -.PHONY: verify go-cache install build test-node +.PHONY: verify tidy go-cache install build init ############################################################################### ### Tooling ### ############################################################################### -gofumpt=mvdan.cc/gofumpt -gofumpt_version=v0.8.0 - -golangci_lint=github.com/golangci/golangci-lint/v2/cmd/golangci-lint -golangci_lint_version=v2.1.6 - -install-format: - @echo "🔄 - Installing gofumpt $(gofumpt_version)..." - @go install $(gofumpt)@$(gofumpt_version) - @echo "✅ - Installed gofumpt successfully!" - @echo "" - -install-lint: - @echo "🔄 - Installing golangci-lint $(golangci_lint_version)..." - @go install $(golangci_lint)@$(golangci_lint_version) - @echo "✅ - Installed golangci-lint successfully!" - @echo "" - lint: - @if command -v golangci-lint >/dev/null 2>&1; then \ - INSTALLED=$$(golangci-lint version | head -n1 | awk '{print $$4}'); \ - echo "Detected golangci-lint $$INSTALLED, required $(golangci_lint_version)"; \ - if [ "$$(printf '%s\n' "$(golangci_lint_version)" "$$INSTALLED" | sort -V | head -n1)" != "$(golangci_lint_version)" ]; then \ - echo "Updating golangci-lint..."; \ - $(MAKE) install-lint; \ - fi; \ - else \ - echo "golangci-lint not found; installing..."; \ - $(MAKE) install-lint; \ - fi - @echo "🔄 - Linting code..." - @golangci-lint run - @echo "✅ - Linted code successfully!" + @echo "🔄 Linting code..." + @go tool golangci-lint run --config ./.golangci.yml + @echo "✅ Linted code successfully!" format: - @if command -v gofumpt >/dev/null 2>&1; then \ - INSTALLED=$$(go version -m $$(command -v gofumpt) | awk '$$1=="mod" {print $$3; exit}'); \ - echo "Detected gofumpt $$INSTALLED, required $(gofumpt_version)"; \ - if [ "$$(printf '%s\n' "$(gofumpt_version)" "$$INSTALLED" | sort -V | head -n1)" != "$(gofumpt_version)" ]; then \ - echo "Updating gofumpt..."; \ - $(MAKE) install-format; \ - fi; \ - else \ - echo "gofumpt not found; installing..."; \ - $(MAKE) install-format; \ - fi - @echo "🔄 - Formatting code..." - @gofumpt -l -w . - @echo "✅ - Formatted code successfully!" + @echo "🔄 Formatting code..." + @go tool gofumpt -l -w . + @echo "✅ Formatted code successfully!" -.PHONY: install-format format install-lint lint +.PHONY: format lint ############################################################################### -### e2e interchain test ### +### E2E Tests ### ############################################################################### ictest-basic: rm-testcache - cd interchaintest && go test -race -v -run TestBasicJunoStart . + cd interchaintest/tests/basic && go test -race -v -run TestBasicTestSuite . -ictest-statesync: rm-testcache - cd interchaintest && go test -race -v -run TestJunoStateSync . +ictest-cw: rm-testcache + cd interchaintest/tests/cosmwasm && go test -race -v -run TestCosmWasmTestSuite . -ictest-ibchooks: rm-testcache - cd interchaintest && go test -race -v -run TestJunoIBCHooks . +ictest-node: rm-testcache + cd interchaintest/tests/node && go test -race -v -run TestNodeTestSuite . -ictest-tokenfactory: rm-testcache - cd interchaintest && go test -race -v -run TestJunoTokenFactory . - -ictest-feeshare: rm-testcache - cd interchaintest && go test -race -v -run TestJunoFeeShare . - -ictest-pfm: rm-testcache - cd interchaintest && go test -race -v -run TestPacketForwardMiddlewareRouter . +ictest-feemarket: rm-testcache + cd interchaintest/tests/feemarket && go test -race -v -run TestFeemarketTestSuite . -ictest-globalfee: rm-testcache - cd interchaintest && go test -race -v -run TestJunoGlobalFee . +ictest-fees: rm-testcache + cd interchaintest/tests/fees && go test -race -v -run TestFeesTestSuite . ictest-upgrade: rm-testcache - cd interchaintest && go test -race -v -run TestBasicJunoUpgrade . + cd interchaintest/tests/upgrade && go test -race -v -run BasicUpgradeTestSuite . ictest-ibc: rm-testcache - cd interchaintest && go test -race -v -run TestJunoGaiaIBCTransfer . + cd interchaintest/tests/ibc && go test -race -v -run TestIbcTestSuite . -ictest-unity-deploy: rm-testcache - cd interchaintest && go test -race -v -run TestJunoUnityContractDeploy . +ictest-ibc-hooks: rm-testcache + cd interchaintest/tests/ibc-hooks && go test -race -v -run TestIbcHooksTestSuite . -ictest-drip: rm-testcache - cd interchaintest && go test -race -v -run TestJunoDrip . - -ictest-feepay: rm-testcache - cd interchaintest && go test -race -v -run TestJunoFeePay . +ictest-pfm: rm-testcache + cd interchaintest/tests/pfm && go test -race -v -run TestPfmTestSuite . -ictest-burn: rm-testcache - cd interchaintest && go test -race -v -run TestJunoBurnModule . +ictest-tokenfactory: rm-testcache + cd interchaintest/tests/tokenfactory && go test -race -v -run TestTokenfactoryTestSuite . -ictest-cwhooks: rm-testcache - cd interchaintest && go test -race -v -run TestJunoCwHooks . +ictest-drip: rm-testcache + cd interchaintest/tests/drip && go test -race -v -run TestDripTestSuite . -ictest-clock: rm-testcache - cd interchaintest && go test -race -v -run TestJunoClock . +ictest-burn: rm-testcache + cd interchaintest/tests/burn && go test -race -v -run TestBurnTestSuite . -ictest-gov-fix: rm-testcache - cd interchaintest && go test -race -v -run TestFixRemovedMsgTypeQueryPanic . +ictest-fixes: rm-testcache + cd interchaintest/tests/fixes && go test -race -v -run TestFixTestSuite . rm-testcache: go clean -testcache -.PHONY: ictest-basic ictest-statesync ictest-ibchooks ictest-tokenfactory ictest-feeshare ictest-pfm ictest-globalfee ictest-upgrade ictest-upgrade-local ictest-ibc ictest-unity-deploy ictest-unity-gov ictest-drip ictest-burn ictest-feepay ictest-cwhooks ictest-clock ictest-gov-fix rm-testcache +.PHONY: ictest-basic ictest-cw ictest-node ictest-feemarket ictest-fees ictest-upgrade ictest-ibc ictest-ibc-hooks ictest-pfm ictest-tokenfactory ictest-drip ictest-burn ictest-fixes rm-testcache ############################################################################### -### heighliner ### +### Docker ### ############################################################################### -heighliner=github.com/strangelove-ventures/heighliner -heighliner_version=v1.7.2 - -install-heighliner: - @if ! command -v heighliner > /dev/null; then \ - echo "🔄 - Installing heighliner $(heighliner_version)..."; \ - go install $(heighliner)@$(heighliner_version); \ - echo "✅ - Installed heighliner successfully!"; \ - echo ""; \ - fi - -local-image: install-heighliner - @echo "🔄 - Building Docker Image..." - heighliner build --chain juno --local -f ./chains.yaml - @echo "✅ - Built Docker Image successfully!" +IMAGE ?= ghcr.io/cosmoscontracts/juno +PLATFORMS ?= linux/amd64,linux/arm64 +BUILDER ?= multiarch + +UNAME_ARCH := $(shell uname -m) +ifeq ($(UNAME_ARCH),x86_64) + LOCAL_PLATFORM ?= linux/amd64 +else ifeq ($(UNAME_ARCH),arm64) + LOCAL_PLATFORM ?= linux/arm64 +else ifeq ($(UNAME_ARCH),aarch64) + LOCAL_PLATFORM ?= linux/arm64 +else + LOCAL_PLATFORM ?= linux/amd64 +endif -.PHONY: install-heighliner local-image +setup-builder: + @$(DOCKER) buildx inspect $(BUILDER) >/dev/null 2>&1 || \ + $(DOCKER) buildx create --name $(BUILDER) --driver docker-container --use + @$(DOCKER) buildx use $(BUILDER) + @$(DOCKER) buildx inspect --bootstrap + +local-image: setup-builder + @echo "🔄 Building Docker Image..." + $(DOCKER) buildx build \ + --load \ + --platform=$(LOCAL_PLATFORM) \ + -t $(IMAGE):local \ + -f Dockerfile \ + . + @echo "✅ Built Docker Image successfully!" + +proto-image: setup-builder + @echo "🔄 Building Protobuilder Image..." + $(DOCKER) buildx build \ + --load \ + --platform=$(LOCAL_PLATFORM) \ + -t $(PROTO_IMAGE_NAME) \ + -f proto/Dockerfile . + @echo "✅ Built Proto Image successfully!" + +.PHONY: setup-builder local-image proto-image ############################################################################### ### Protobuf ### ############################################################################### -protoVer=0.17.0 -protoImageName=ghcr.io/cosmos/proto-builder:$(protoVer) -protoImage=$(DOCKER) run --rm -v $(CURDIR):/workspace -v /var/run/docker.sock:/var/run/docker.sock --workdir /workspace $(protoImageName) +PROTO_IMAGE_NAME := juno-protobuilder:latest +PROTO_IMAGE := $(DOCKER) run --rm -v "$(CURDIR)":/workspace --workdir /workspace $(PROTO_IMAGE_NAME) -proto-all: proto-format proto-lint proto-gen proto-gen-2 proto-swagger-gen +proto-all: proto-check proto-gen +proto-gen: proto-gogo proto-pulsar proto-openapi +proto-check: proto-format proto-lint -proto-gen: - @echo "🛠️ - Generating Protobuf" - @$(protoImage) sh ./scripts/protoc/protocgen.sh - @echo "✅ - Generated Protobuf successfully!" +proto-gogo: + @echo "🛠️ Generating Gogo types from Protobuffers" + @$(PROTO_IMAGE) sh ./scripts/buf/buf-gogo.sh + @echo "✅ Generated Gogo types successfully!" -proto-gen-2: - @echo "🛠️ - Generating Protobuf v2" - @$(protoImage) sh ./scripts/protoc/protocgen2.sh - @echo "✅ - Generated Protobuf v2 successfully!" +proto-pulsar: + @echo "🛠️ Generating Pulsar types from Protobuffers" + @$(PROTO_IMAGE) sh ./scripts/buf/buf-pulsar.sh + @echo "✅ Generated Pulsar types successfully!" -proto-swagger-gen: - @echo "📖 - Generating Protobuf Swagger" - @$(protoImage) sh ./scripts/protoc/protoc-swagger-gen.sh - @echo "✅ - Generated Protobuf Swagger successfully!" +proto-openapi: + @echo "🛠️ Generating OpenAPI Spec from Protobuffers" + @$(PROTO_IMAGE) sh ./scripts/buf/buf-openapi.sh + @echo "✅ Generated OpenAPI Spec successfully!" proto-format: - @echo "🖊️ - Formatting Protobuf Swagger" - @$(protoImage) find ./ -name "*.proto" -exec clang-format -i {} \; - @echo "✅ - Formatted Protobuf successfully!" + @echo "🖊️ Formatting Protobuffers" + @$(PROTO_IMAGE) buf format ./proto --error-format=json + @echo "✅ Formatted Protobuffers successfully!" proto-lint: - @echo "🔎 - Linting Protobuf" - @$(protoImage) buf lint --error-format=json - @echo "✅ - Linted Protobuf successfully!" + @echo "🔎 Linting Protobuffers" + @$(PROTO_IMAGE) buf lint --error-format=json + @echo "✅ Linted Protobuffers successfully!" -proto-check-breaking: - @echo "🔎 - Checking breaking Protobuf changes" - @$(protoImage) buf breaking --against $(HTTPS_GIT)#branch=main - @echo "✅ - Checked Protobuf changes successfully!" +proto-breaking: + @echo "🔎 Checking breaking Protobuffers changes against branch main" + @$(PROTO_IMAGE) buf breaking ./proto --against $(HTTPS_GIT).git#branch=main + @echo "✅ Protobuffers are non-breaking, checked successfully!" -.PHONY: proto-all proto-gen proto-gen-2 proto-swagger-gen proto-format proto-lint proto-check-breaking +.PHONY: proto-all proto-gen proto-check proto-format proto-lint proto-breaking proto-gogo proto-pulsar proto-openapi diff --git a/NOTICE b/NOTICE new file mode 100644 index 000000000..2f50b94ba --- /dev/null +++ b/NOTICE @@ -0,0 +1,15 @@ +Copyright 2025 the CODEOWNERS and contributors of this repository. +The CODEOWNERS listed in .github/CODEOWNERS are the primary copyright holders. +Contributors retain copyright in their respective contributions. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. diff --git a/api/gaia/globalfee/v1beta1/query.pulsar.go b/api/gaia/globalfee/v1beta1/query.pulsar.go deleted file mode 100644 index d577f3b26..000000000 --- a/api/gaia/globalfee/v1beta1/query.pulsar.go +++ /dev/null @@ -1,1080 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package globalfeev1beta1 - -import ( - _ "cosmossdk.io/api/amino" - 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_QueryMinimumGasPricesRequest protoreflect.MessageDescriptor -) - -func init() { - file_gaia_globalfee_v1beta1_query_proto_init() - md_QueryMinimumGasPricesRequest = File_gaia_globalfee_v1beta1_query_proto.Messages().ByName("QueryMinimumGasPricesRequest") -} - -var _ protoreflect.Message = (*fastReflection_QueryMinimumGasPricesRequest)(nil) - -type fastReflection_QueryMinimumGasPricesRequest QueryMinimumGasPricesRequest - -func (x *QueryMinimumGasPricesRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryMinimumGasPricesRequest)(x) -} - -func (x *QueryMinimumGasPricesRequest) slowProtoReflect() protoreflect.Message { - mi := &file_gaia_globalfee_v1beta1_query_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryMinimumGasPricesRequest_messageType fastReflection_QueryMinimumGasPricesRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryMinimumGasPricesRequest_messageType{} - -type fastReflection_QueryMinimumGasPricesRequest_messageType struct{} - -func (x fastReflection_QueryMinimumGasPricesRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryMinimumGasPricesRequest)(nil) -} -func (x fastReflection_QueryMinimumGasPricesRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryMinimumGasPricesRequest) -} -func (x fastReflection_QueryMinimumGasPricesRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryMinimumGasPricesRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryMinimumGasPricesRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryMinimumGasPricesRequest -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryMinimumGasPricesRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryMinimumGasPricesRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryMinimumGasPricesRequest) New() protoreflect.Message { - return new(fastReflection_QueryMinimumGasPricesRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryMinimumGasPricesRequest) Interface() protoreflect.ProtoMessage { - return (*QueryMinimumGasPricesRequest)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryMinimumGasPricesRequest) 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_QueryMinimumGasPricesRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: gaia.globalfee.v1beta1.QueryMinimumGasPricesRequest")) - } - panic(fmt.Errorf("message gaia.globalfee.v1beta1.QueryMinimumGasPricesRequest does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryMinimumGasPricesRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: gaia.globalfee.v1beta1.QueryMinimumGasPricesRequest")) - } - panic(fmt.Errorf("message gaia.globalfee.v1beta1.QueryMinimumGasPricesRequest does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryMinimumGasPricesRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: gaia.globalfee.v1beta1.QueryMinimumGasPricesRequest")) - } - panic(fmt.Errorf("message gaia.globalfee.v1beta1.QueryMinimumGasPricesRequest does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryMinimumGasPricesRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: gaia.globalfee.v1beta1.QueryMinimumGasPricesRequest")) - } - panic(fmt.Errorf("message gaia.globalfee.v1beta1.QueryMinimumGasPricesRequest does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryMinimumGasPricesRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: gaia.globalfee.v1beta1.QueryMinimumGasPricesRequest")) - } - panic(fmt.Errorf("message gaia.globalfee.v1beta1.QueryMinimumGasPricesRequest does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryMinimumGasPricesRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: gaia.globalfee.v1beta1.QueryMinimumGasPricesRequest")) - } - panic(fmt.Errorf("message gaia.globalfee.v1beta1.QueryMinimumGasPricesRequest does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryMinimumGasPricesRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in gaia.globalfee.v1beta1.QueryMinimumGasPricesRequest", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryMinimumGasPricesRequest) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryMinimumGasPricesRequest) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryMinimumGasPricesRequest) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryMinimumGasPricesRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryMinimumGasPricesRequest) - 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().(*QueryMinimumGasPricesRequest) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]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().(*QueryMinimumGasPricesRequest) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryMinimumGasPricesRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryMinimumGasPricesRequest: 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 = (*_QueryMinimumGasPricesResponse_1_list)(nil) - -type _QueryMinimumGasPricesResponse_1_list struct { - list *[]*v1beta1.DecCoin -} - -func (x *_QueryMinimumGasPricesResponse_1_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_QueryMinimumGasPricesResponse_1_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_QueryMinimumGasPricesResponse_1_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*v1beta1.DecCoin) - (*x.list)[i] = concreteValue -} - -func (x *_QueryMinimumGasPricesResponse_1_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*v1beta1.DecCoin) - *x.list = append(*x.list, concreteValue) -} - -func (x *_QueryMinimumGasPricesResponse_1_list) AppendMutable() protoreflect.Value { - v := new(v1beta1.DecCoin) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_QueryMinimumGasPricesResponse_1_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_QueryMinimumGasPricesResponse_1_list) NewElement() protoreflect.Value { - v := new(v1beta1.DecCoin) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_QueryMinimumGasPricesResponse_1_list) IsValid() bool { - return x.list != nil -} - -var ( - md_QueryMinimumGasPricesResponse protoreflect.MessageDescriptor - fd_QueryMinimumGasPricesResponse_minimum_gas_prices protoreflect.FieldDescriptor -) - -func init() { - file_gaia_globalfee_v1beta1_query_proto_init() - md_QueryMinimumGasPricesResponse = File_gaia_globalfee_v1beta1_query_proto.Messages().ByName("QueryMinimumGasPricesResponse") - fd_QueryMinimumGasPricesResponse_minimum_gas_prices = md_QueryMinimumGasPricesResponse.Fields().ByName("minimum_gas_prices") -} - -var _ protoreflect.Message = (*fastReflection_QueryMinimumGasPricesResponse)(nil) - -type fastReflection_QueryMinimumGasPricesResponse QueryMinimumGasPricesResponse - -func (x *QueryMinimumGasPricesResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryMinimumGasPricesResponse)(x) -} - -func (x *QueryMinimumGasPricesResponse) slowProtoReflect() protoreflect.Message { - mi := &file_gaia_globalfee_v1beta1_query_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryMinimumGasPricesResponse_messageType fastReflection_QueryMinimumGasPricesResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryMinimumGasPricesResponse_messageType{} - -type fastReflection_QueryMinimumGasPricesResponse_messageType struct{} - -func (x fastReflection_QueryMinimumGasPricesResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryMinimumGasPricesResponse)(nil) -} -func (x fastReflection_QueryMinimumGasPricesResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryMinimumGasPricesResponse) -} -func (x fastReflection_QueryMinimumGasPricesResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryMinimumGasPricesResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryMinimumGasPricesResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryMinimumGasPricesResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryMinimumGasPricesResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryMinimumGasPricesResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryMinimumGasPricesResponse) New() protoreflect.Message { - return new(fastReflection_QueryMinimumGasPricesResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryMinimumGasPricesResponse) Interface() protoreflect.ProtoMessage { - return (*QueryMinimumGasPricesResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryMinimumGasPricesResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.MinimumGasPrices) != 0 { - value := protoreflect.ValueOfList(&_QueryMinimumGasPricesResponse_1_list{list: &x.MinimumGasPrices}) - if !f(fd_QueryMinimumGasPricesResponse_minimum_gas_prices, 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_QueryMinimumGasPricesResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "gaia.globalfee.v1beta1.QueryMinimumGasPricesResponse.minimum_gas_prices": - return len(x.MinimumGasPrices) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: gaia.globalfee.v1beta1.QueryMinimumGasPricesResponse")) - } - panic(fmt.Errorf("message gaia.globalfee.v1beta1.QueryMinimumGasPricesResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryMinimumGasPricesResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "gaia.globalfee.v1beta1.QueryMinimumGasPricesResponse.minimum_gas_prices": - x.MinimumGasPrices = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: gaia.globalfee.v1beta1.QueryMinimumGasPricesResponse")) - } - panic(fmt.Errorf("message gaia.globalfee.v1beta1.QueryMinimumGasPricesResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryMinimumGasPricesResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "gaia.globalfee.v1beta1.QueryMinimumGasPricesResponse.minimum_gas_prices": - if len(x.MinimumGasPrices) == 0 { - return protoreflect.ValueOfList(&_QueryMinimumGasPricesResponse_1_list{}) - } - listValue := &_QueryMinimumGasPricesResponse_1_list{list: &x.MinimumGasPrices} - return protoreflect.ValueOfList(listValue) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: gaia.globalfee.v1beta1.QueryMinimumGasPricesResponse")) - } - panic(fmt.Errorf("message gaia.globalfee.v1beta1.QueryMinimumGasPricesResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryMinimumGasPricesResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "gaia.globalfee.v1beta1.QueryMinimumGasPricesResponse.minimum_gas_prices": - lv := value.List() - clv := lv.(*_QueryMinimumGasPricesResponse_1_list) - x.MinimumGasPrices = *clv.list - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: gaia.globalfee.v1beta1.QueryMinimumGasPricesResponse")) - } - panic(fmt.Errorf("message gaia.globalfee.v1beta1.QueryMinimumGasPricesResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryMinimumGasPricesResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "gaia.globalfee.v1beta1.QueryMinimumGasPricesResponse.minimum_gas_prices": - if x.MinimumGasPrices == nil { - x.MinimumGasPrices = []*v1beta1.DecCoin{} - } - value := &_QueryMinimumGasPricesResponse_1_list{list: &x.MinimumGasPrices} - return protoreflect.ValueOfList(value) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: gaia.globalfee.v1beta1.QueryMinimumGasPricesResponse")) - } - panic(fmt.Errorf("message gaia.globalfee.v1beta1.QueryMinimumGasPricesResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryMinimumGasPricesResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "gaia.globalfee.v1beta1.QueryMinimumGasPricesResponse.minimum_gas_prices": - list := []*v1beta1.DecCoin{} - return protoreflect.ValueOfList(&_QueryMinimumGasPricesResponse_1_list{list: &list}) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: gaia.globalfee.v1beta1.QueryMinimumGasPricesResponse")) - } - panic(fmt.Errorf("message gaia.globalfee.v1beta1.QueryMinimumGasPricesResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryMinimumGasPricesResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in gaia.globalfee.v1beta1.QueryMinimumGasPricesResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryMinimumGasPricesResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryMinimumGasPricesResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryMinimumGasPricesResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryMinimumGasPricesResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryMinimumGasPricesResponse) - 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.MinimumGasPrices) > 0 { - for _, e := range x.MinimumGasPrices { - 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().(*QueryMinimumGasPricesResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]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.MinimumGasPrices) > 0 { - for iNdEx := len(x.MinimumGasPrices) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.MinimumGasPrices[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().(*QueryMinimumGasPricesResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryMinimumGasPricesResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryMinimumGasPricesResponse: 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 MinimumGasPrices", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.MinimumGasPrices = append(x.MinimumGasPrices, &v1beta1.DecCoin{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.MinimumGasPrices[len(x.MinimumGasPrices)-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: gaia/globalfee/v1beta1/query.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// QueryMinimumGasPricesRequest is the request type for the -// Query/MinimumGasPrices RPC method. -type QueryMinimumGasPricesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *QueryMinimumGasPricesRequest) Reset() { - *x = QueryMinimumGasPricesRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_gaia_globalfee_v1beta1_query_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryMinimumGasPricesRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryMinimumGasPricesRequest) ProtoMessage() {} - -// Deprecated: Use QueryMinimumGasPricesRequest.ProtoReflect.Descriptor instead. -func (*QueryMinimumGasPricesRequest) Descriptor() ([]byte, []int) { - return file_gaia_globalfee_v1beta1_query_proto_rawDescGZIP(), []int{0} -} - -// QueryMinimumGasPricesResponse is the response type for the -// Query/MinimumGasPrices RPC method. -type QueryMinimumGasPricesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - MinimumGasPrices []*v1beta1.DecCoin `protobuf:"bytes,1,rep,name=minimum_gas_prices,json=minimumGasPrices,proto3" json:"minimum_gas_prices,omitempty"` -} - -func (x *QueryMinimumGasPricesResponse) Reset() { - *x = QueryMinimumGasPricesResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_gaia_globalfee_v1beta1_query_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryMinimumGasPricesResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryMinimumGasPricesResponse) ProtoMessage() {} - -// Deprecated: Use QueryMinimumGasPricesResponse.ProtoReflect.Descriptor instead. -func (*QueryMinimumGasPricesResponse) Descriptor() ([]byte, []int) { - return file_gaia_globalfee_v1beta1_query_proto_rawDescGZIP(), []int{1} -} - -func (x *QueryMinimumGasPricesResponse) GetMinimumGasPrices() []*v1beta1.DecCoin { - if x != nil { - return x.MinimumGasPrices - } - return nil -} - -var File_gaia_globalfee_v1beta1_query_proto protoreflect.FileDescriptor - -var file_gaia_globalfee_v1beta1_query_proto_rawDesc = []byte{ - 0x0a, 0x22, 0x67, 0x61, 0x69, 0x61, 0x2f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x66, 0x65, 0x65, - 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x67, 0x61, 0x69, 0x61, 0x2e, 0x67, 0x6c, 0x6f, 0x62, 0x61, - 0x6c, 0x66, 0x65, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x11, 0x61, 0x6d, - 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 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, - 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, 0x22, 0x1e, 0x0a, 0x1c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4d, 0x69, 0x6e, 0x69, - 0x6d, 0x75, 0x6d, 0x47, 0x61, 0x73, 0x50, 0x72, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x22, 0xa6, 0x01, 0x0a, 0x1d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4d, 0x69, 0x6e, - 0x69, 0x6d, 0x75, 0x6d, 0x47, 0x61, 0x73, 0x50, 0x72, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x84, 0x01, 0x0a, 0x12, 0x6d, 0x69, 0x6e, 0x69, 0x6d, 0x75, - 0x6d, 0x5f, 0x67, 0x61, 0x73, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x44, 0x65, 0x63, 0x43, 0x6f, 0x69, 0x6e, - 0x42, 0x38, 0xc8, 0xde, 0x1f, 0x00, 0xaa, 0xdf, 0x1f, 0x2b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, - 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x44, 0x65, 0x63, - 0x43, 0x6f, 0x69, 0x6e, 0x73, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x10, 0x6d, 0x69, 0x6e, 0x69, - 0x6d, 0x75, 0x6d, 0x47, 0x61, 0x73, 0x50, 0x72, 0x69, 0x63, 0x65, 0x73, 0x32, 0xbd, 0x01, 0x0a, - 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0xb3, 0x01, 0x0a, 0x10, 0x4d, 0x69, 0x6e, 0x69, 0x6d, - 0x75, 0x6d, 0x47, 0x61, 0x73, 0x50, 0x72, 0x69, 0x63, 0x65, 0x73, 0x12, 0x34, 0x2e, 0x67, 0x61, - 0x69, 0x61, 0x2e, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x66, 0x65, 0x65, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4d, 0x69, 0x6e, 0x69, 0x6d, 0x75, - 0x6d, 0x47, 0x61, 0x73, 0x50, 0x72, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x35, 0x2e, 0x67, 0x61, 0x69, 0x61, 0x2e, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x66, - 0x65, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x4d, 0x69, 0x6e, 0x69, 0x6d, 0x75, 0x6d, 0x47, 0x61, 0x73, 0x50, 0x72, 0x69, 0x63, 0x65, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x32, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, - 0x12, 0x2a, 0x2f, 0x67, 0x61, 0x69, 0x61, 0x2f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x66, 0x65, - 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x6d, 0x69, 0x6e, 0x69, 0x6d, 0x75, - 0x6d, 0x5f, 0x67, 0x61, 0x73, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x73, 0x42, 0xdc, 0x01, 0x0a, - 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x61, 0x69, 0x61, 0x2e, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, - 0x66, 0x65, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0a, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x38, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x61, 0x69, 0x61, - 0x2f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x66, 0x65, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x3b, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x66, 0x65, 0x65, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x47, 0x47, 0x58, 0xaa, 0x02, 0x16, 0x47, 0x61, 0x69, 0x61, - 0x2e, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x66, 0x65, 0x65, 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0xca, 0x02, 0x16, 0x47, 0x61, 0x69, 0x61, 0x5c, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, - 0x66, 0x65, 0x65, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xe2, 0x02, 0x22, 0x47, 0x61, - 0x69, 0x61, 0x5c, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x66, 0x65, 0x65, 0x5c, 0x56, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0xea, 0x02, 0x18, 0x47, 0x61, 0x69, 0x61, 0x3a, 0x3a, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x66, - 0x65, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, -} - -var ( - file_gaia_globalfee_v1beta1_query_proto_rawDescOnce sync.Once - file_gaia_globalfee_v1beta1_query_proto_rawDescData = file_gaia_globalfee_v1beta1_query_proto_rawDesc -) - -func file_gaia_globalfee_v1beta1_query_proto_rawDescGZIP() []byte { - file_gaia_globalfee_v1beta1_query_proto_rawDescOnce.Do(func() { - file_gaia_globalfee_v1beta1_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_gaia_globalfee_v1beta1_query_proto_rawDescData) - }) - return file_gaia_globalfee_v1beta1_query_proto_rawDescData -} - -var file_gaia_globalfee_v1beta1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_gaia_globalfee_v1beta1_query_proto_goTypes = []interface{}{ - (*QueryMinimumGasPricesRequest)(nil), // 0: gaia.globalfee.v1beta1.QueryMinimumGasPricesRequest - (*QueryMinimumGasPricesResponse)(nil), // 1: gaia.globalfee.v1beta1.QueryMinimumGasPricesResponse - (*v1beta1.DecCoin)(nil), // 2: cosmos.base.v1beta1.DecCoin -} -var file_gaia_globalfee_v1beta1_query_proto_depIdxs = []int32{ - 2, // 0: gaia.globalfee.v1beta1.QueryMinimumGasPricesResponse.minimum_gas_prices:type_name -> cosmos.base.v1beta1.DecCoin - 0, // 1: gaia.globalfee.v1beta1.Query.MinimumGasPrices:input_type -> gaia.globalfee.v1beta1.QueryMinimumGasPricesRequest - 1, // 2: gaia.globalfee.v1beta1.Query.MinimumGasPrices:output_type -> gaia.globalfee.v1beta1.QueryMinimumGasPricesResponse - 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_gaia_globalfee_v1beta1_query_proto_init() } -func file_gaia_globalfee_v1beta1_query_proto_init() { - if File_gaia_globalfee_v1beta1_query_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_gaia_globalfee_v1beta1_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryMinimumGasPricesRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_gaia_globalfee_v1beta1_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryMinimumGasPricesResponse); 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_gaia_globalfee_v1beta1_query_proto_rawDesc, - NumEnums: 0, - NumMessages: 2, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_gaia_globalfee_v1beta1_query_proto_goTypes, - DependencyIndexes: file_gaia_globalfee_v1beta1_query_proto_depIdxs, - MessageInfos: file_gaia_globalfee_v1beta1_query_proto_msgTypes, - }.Build() - File_gaia_globalfee_v1beta1_query_proto = out.File - file_gaia_globalfee_v1beta1_query_proto_rawDesc = nil - file_gaia_globalfee_v1beta1_query_proto_goTypes = nil - file_gaia_globalfee_v1beta1_query_proto_depIdxs = nil -} diff --git a/api/juno/clock/module/v1/module.pulsar.go b/api/juno/clock/module/v1/module.pulsar.go index d0f678386..381363519 100644 --- a/api/juno/clock/module/v1/module.pulsar.go +++ b/api/juno/clock/module/v1/module.pulsar.go @@ -315,7 +315,7 @@ func (x *fastReflection_Module) ProtoMethods() *protoiface.Methods { copy(dAtA[i:], x.Authority) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) i-- - dAtA[i] = 0x12 + dAtA[i] = 0xa } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -366,7 +366,7 @@ func (x *fastReflection_Module) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Module: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 2: + case 1: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) } @@ -454,7 +454,7 @@ type Module struct { // authority defines the custom module authority. If not set, defaults to the // governance module. - Authority string `protobuf:"bytes,2,opt,name=authority,proto3" json:"authority,omitempty"` + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` } func (x *Module) Reset() { @@ -494,10 +494,10 @@ var file_juno_clock_module_v1_module_proto_rawDesc = []byte{ 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, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, + 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, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x43, 0x6f, - 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x2f, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, 0x76, 0x32, 0x38, + 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x2f, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, 0x76, 0x33, 0x30, 0x2f, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x42, 0xca, 0x01, 0x0a, 0x18, 0x63, 0x6f, 0x6d, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x72, 0x6f, diff --git a/api/juno/clock/v1/tx.pulsar.go b/api/juno/clock/v1/tx.pulsar.go index 1af45d12a..56ca05447 100644 --- a/api/juno/clock/v1/tx.pulsar.go +++ b/api/juno/clock/v1/tx.pulsar.go @@ -3782,52 +3782,45 @@ var file_juno_clock_v1_tx_proto_rawDesc = []byte{ 0x2f, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 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, 0xac, 0x04, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x95, 0x01, 0x0a, 0x15, - 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6c, 0x6f, 0x63, 0x6b, 0x43, 0x6f, 0x6e, - 0x74, 0x72, 0x61, 0x63, 0x74, 0x12, 0x27, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x6f, - 0x63, 0x6b, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, - 0x72, 0x43, 0x6c, 0x6f, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x1a, 0x2f, + 0x6e, 0x73, 0x65, 0x32, 0xbd, 0x03, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x71, 0x0a, 0x15, 0x52, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6c, 0x6f, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x74, + 0x72, 0x61, 0x63, 0x74, 0x12, 0x27, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x6f, 0x63, + 0x6b, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, + 0x43, 0x6c, 0x6f, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x1a, 0x2f, 0x2e, + 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, + 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6c, 0x6f, 0x63, 0x6b, 0x43, 0x6f, + 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x77, + 0x0a, 0x17, 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6c, 0x6f, 0x63, + 0x6b, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x12, 0x29, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, + 0x2e, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6c, 0x6f, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x74, + 0x72, 0x61, 0x63, 0x74, 0x1a, 0x31, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x6f, 0x63, + 0x6b, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x65, 0x72, 0x43, 0x6c, 0x6f, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6b, 0x0a, 0x13, 0x55, 0x6e, 0x6a, 0x61, 0x69, + 0x6c, 0x43, 0x6c, 0x6f, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x12, 0x25, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x76, 0x31, 0x2e, 0x4d, - 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6c, 0x6f, 0x63, 0x6b, 0x43, - 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x22, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x22, 0x1a, 0x2f, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, 0x63, - 0x6c, 0x6f, 0x63, 0x6b, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x78, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, - 0x74, 0x65, 0x72, 0x12, 0x9d, 0x01, 0x0a, 0x17, 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, - 0x65, 0x72, 0x43, 0x6c, 0x6f, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x12, - 0x29, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x76, 0x31, 0x2e, - 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6c, 0x6f, - 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x1a, 0x31, 0x2e, 0x6a, 0x75, 0x6e, - 0x6f, 0x2e, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x6e, - 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6c, 0x6f, 0x63, 0x6b, 0x43, 0x6f, 0x6e, - 0x74, 0x72, 0x61, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x24, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x22, 0x1c, 0x2f, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, 0x63, 0x6c, 0x6f, - 0x63, 0x6b, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x78, 0x2f, 0x75, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, - 0x74, 0x65, 0x72, 0x12, 0x8d, 0x01, 0x0a, 0x13, 0x55, 0x6e, 0x6a, 0x61, 0x69, 0x6c, 0x43, 0x6c, - 0x6f, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x12, 0x25, 0x2e, 0x6a, 0x75, - 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, - 0x6e, 0x6a, 0x61, 0x69, 0x6c, 0x43, 0x6c, 0x6f, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, - 0x63, 0x74, 0x1a, 0x2d, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, - 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x6a, 0x61, 0x69, 0x6c, 0x43, 0x6c, 0x6f, 0x63, - 0x6b, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x20, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1a, 0x22, 0x18, 0x2f, 0x6a, 0x75, 0x6e, 0x6f, - 0x2f, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x78, 0x2f, 0x75, 0x6e, 0x6a, - 0x61, 0x69, 0x6c, 0x12, 0x56, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, - 0x61, 0x6d, 0x73, 0x12, 0x1e, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x6f, 0x63, 0x6b, - 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, - 0x61, 0x6d, 0x73, 0x1a, 0x26, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x6f, 0x63, 0x6b, - 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, - 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x05, 0x80, 0xe7, 0xb0, - 0x2a, 0x01, 0x42, 0x9a, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, - 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x76, 0x31, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, - 0x6f, 0x50, 0x01, 0x5a, 0x26, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, - 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, 0x63, 0x6c, 0x6f, 0x63, 0x6b, - 0x2f, 0x76, 0x31, 0x3b, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4a, 0x43, - 0x58, 0xaa, 0x02, 0x0d, 0x4a, 0x75, 0x6e, 0x6f, 0x2e, 0x43, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x56, - 0x31, 0xca, 0x02, 0x0d, 0x4a, 0x75, 0x6e, 0x6f, 0x5c, 0x43, 0x6c, 0x6f, 0x63, 0x6b, 0x5c, 0x56, - 0x31, 0xe2, 0x02, 0x19, 0x4a, 0x75, 0x6e, 0x6f, 0x5c, 0x43, 0x6c, 0x6f, 0x63, 0x6b, 0x5c, 0x56, - 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, - 0x4a, 0x75, 0x6e, 0x6f, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x63, 0x6b, 0x3a, 0x3a, 0x56, 0x31, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x73, 0x67, 0x55, 0x6e, 0x6a, 0x61, 0x69, 0x6c, 0x43, 0x6c, 0x6f, 0x63, 0x6b, 0x43, 0x6f, 0x6e, + 0x74, 0x72, 0x61, 0x63, 0x74, 0x1a, 0x2d, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x6f, + 0x63, 0x6b, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x6a, 0x61, 0x69, 0x6c, 0x43, + 0x6c, 0x6f, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x56, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, + 0x72, 0x61, 0x6d, 0x73, 0x12, 0x1e, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x6f, 0x63, + 0x6b, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, + 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x26, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x6f, 0x63, + 0x6b, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, + 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x05, 0x80, 0xe7, + 0xb0, 0x2a, 0x01, 0x42, 0x9a, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, + 0x2e, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x76, 0x31, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, + 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x26, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, + 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, 0x63, 0x6c, 0x6f, 0x63, + 0x6b, 0x2f, 0x76, 0x31, 0x3b, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4a, + 0x43, 0x58, 0xaa, 0x02, 0x0d, 0x4a, 0x75, 0x6e, 0x6f, 0x2e, 0x43, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, + 0x56, 0x31, 0xca, 0x02, 0x0d, 0x4a, 0x75, 0x6e, 0x6f, 0x5c, 0x43, 0x6c, 0x6f, 0x63, 0x6b, 0x5c, + 0x56, 0x31, 0xe2, 0x02, 0x19, 0x4a, 0x75, 0x6e, 0x6f, 0x5c, 0x43, 0x6c, 0x6f, 0x63, 0x6b, 0x5c, + 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, + 0x0f, 0x4a, 0x75, 0x6e, 0x6f, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x63, 0x6b, 0x3a, 0x3a, 0x56, 0x31, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/api/juno/cwhooks/module/v1/module.pulsar.go b/api/juno/cwhooks/module/v2/module.pulsar.go similarity index 83% rename from api/juno/cwhooks/module/v1/module.pulsar.go rename to api/juno/cwhooks/module/v2/module.pulsar.go index 6e0b0b538..48f9173bf 100644 --- a/api/juno/cwhooks/module/v1/module.pulsar.go +++ b/api/juno/cwhooks/module/v2/module.pulsar.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package modulev1 +package modulev2 import ( _ "cosmossdk.io/api/cosmos/app/v1alpha1" @@ -19,8 +19,8 @@ var ( ) func init() { - file_juno_cwhooks_module_v1_module_proto_init() - md_Module = File_juno_cwhooks_module_v1_module_proto.Messages().ByName("Module") + file_juno_cwhooks_module_v2_module_proto_init() + md_Module = File_juno_cwhooks_module_v2_module_proto.Messages().ByName("Module") fd_Module_authority = md_Module.Fields().ByName("authority") } @@ -33,7 +33,7 @@ func (x *Module) ProtoReflect() protoreflect.Message { } func (x *Module) slowProtoReflect() protoreflect.Message { - mi := &file_juno_cwhooks_module_v1_module_proto_msgTypes[0] + mi := &file_juno_cwhooks_module_v2_module_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -110,13 +110,13 @@ func (x *fastReflection_Module) Range(f func(protoreflect.FieldDescriptor, proto // a repeated field is populated if it is non-empty. func (x *fastReflection_Module) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "juno.cwhooks.module.v1.Module.authority": + case "juno.cwhooks.module.v2.Module.authority": return x.Authority != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.module.v1.Module")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.module.v2.Module")) } - panic(fmt.Errorf("message juno.cwhooks.module.v1.Module does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.cwhooks.module.v2.Module does not contain field %s", fd.FullName())) } } @@ -128,13 +128,13 @@ func (x *fastReflection_Module) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Module) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "juno.cwhooks.module.v1.Module.authority": + case "juno.cwhooks.module.v2.Module.authority": x.Authority = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.module.v1.Module")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.module.v2.Module")) } - panic(fmt.Errorf("message juno.cwhooks.module.v1.Module does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.cwhooks.module.v2.Module does not contain field %s", fd.FullName())) } } @@ -146,14 +146,14 @@ func (x *fastReflection_Module) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_Module) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "juno.cwhooks.module.v1.Module.authority": + case "juno.cwhooks.module.v2.Module.authority": value := x.Authority return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.module.v1.Module")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.module.v2.Module")) } - panic(fmt.Errorf("message juno.cwhooks.module.v1.Module does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message juno.cwhooks.module.v2.Module does not contain field %s", descriptor.FullName())) } } @@ -169,13 +169,13 @@ func (x *fastReflection_Module) Get(descriptor protoreflect.FieldDescriptor) pro // 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 "juno.cwhooks.module.v1.Module.authority": + case "juno.cwhooks.module.v2.Module.authority": x.Authority = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.module.v1.Module")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.module.v2.Module")) } - panic(fmt.Errorf("message juno.cwhooks.module.v1.Module does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.cwhooks.module.v2.Module does not contain field %s", fd.FullName())) } } @@ -191,13 +191,13 @@ func (x *fastReflection_Module) Set(fd protoreflect.FieldDescriptor, value proto // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Module) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "juno.cwhooks.module.v1.Module.authority": - panic(fmt.Errorf("field authority of message juno.cwhooks.module.v1.Module is not mutable")) + case "juno.cwhooks.module.v2.Module.authority": + panic(fmt.Errorf("field authority of message juno.cwhooks.module.v2.Module is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.module.v1.Module")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.module.v2.Module")) } - panic(fmt.Errorf("message juno.cwhooks.module.v1.Module does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.cwhooks.module.v2.Module does not contain field %s", fd.FullName())) } } @@ -206,13 +206,13 @@ func (x *fastReflection_Module) Mutable(fd protoreflect.FieldDescriptor) protore // 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 "juno.cwhooks.module.v1.Module.authority": + case "juno.cwhooks.module.v2.Module.authority": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.module.v1.Module")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.module.v2.Module")) } - panic(fmt.Errorf("message juno.cwhooks.module.v1.Module does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.cwhooks.module.v2.Module does not contain field %s", fd.FullName())) } } @@ -222,7 +222,7 @@ func (x *fastReflection_Module) NewField(fd protoreflect.FieldDescriptor) protor func (x *fastReflection_Module) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in juno.cwhooks.module.v1.Module", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in juno.cwhooks.module.v2.Module", d.FullName())) } panic("unreachable") } @@ -315,7 +315,7 @@ func (x *fastReflection_Module) ProtoMethods() *protoiface.Methods { copy(dAtA[i:], x.Authority) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) i-- - dAtA[i] = 0x12 + dAtA[i] = 0xa } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -366,7 +366,7 @@ func (x *fastReflection_Module) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Module: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 2: + case 1: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) } @@ -437,7 +437,7 @@ func (x *fastReflection_Module) ProtoMethods() *protoiface.Methods { // versions: // protoc-gen-go v1.27.0 // protoc (unknown) -// source: juno/cwhooks/module/v1/module.proto +// source: juno/cwhooks/module/v2/module.proto const ( // Verify that this generated code is sufficiently up-to-date. @@ -454,13 +454,13 @@ type Module struct { // authority defines the custom module authority. If not set, defaults to the // governance module. - Authority string `protobuf:"bytes,2,opt,name=authority,proto3" json:"authority,omitempty"` + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` } func (x *Module) Reset() { *x = Module{} if protoimpl.UnsafeEnabled { - mi := &file_juno_cwhooks_module_v1_module_proto_msgTypes[0] + mi := &file_juno_cwhooks_module_v2_module_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -474,7 +474,7 @@ func (*Module) ProtoMessage() {} // Deprecated: Use Module.ProtoReflect.Descriptor instead. func (*Module) Descriptor() ([]byte, []int) { - return file_juno_cwhooks_module_v1_module_proto_rawDescGZIP(), []int{0} + return file_juno_cwhooks_module_v2_module_proto_rawDescGZIP(), []int{0} } func (x *Module) GetAuthority() string { @@ -484,54 +484,54 @@ func (x *Module) GetAuthority() string { return "" } -var File_juno_cwhooks_module_v1_module_proto protoreflect.FileDescriptor +var File_juno_cwhooks_module_v2_module_proto protoreflect.FileDescriptor -var file_juno_cwhooks_module_v1_module_proto_rawDesc = []byte{ +var file_juno_cwhooks_module_v2_module_proto_rawDesc = []byte{ 0x0a, 0x23, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2f, 0x6d, - 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, + 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2f, 0x76, 0x32, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x63, 0x77, 0x68, 0x6f, - 0x6f, 0x6b, 0x73, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x20, 0x63, + 0x6f, 0x6b, 0x73, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x76, 0x32, 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, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x75, + 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, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x2f, 0x6a, 0x75, 0x6e, 0x6f, - 0x2f, 0x76, 0x32, 0x38, 0x2f, 0x78, 0x2f, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x42, 0xd6, + 0x2f, 0x76, 0x33, 0x30, 0x2f, 0x78, 0x2f, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x42, 0xd6, 0x01, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x63, 0x77, 0x68, 0x6f, - 0x6f, 0x6b, 0x73, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x4d, + 0x6f, 0x6b, 0x73, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x76, 0x32, 0x42, 0x0b, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x75, - 0x6c, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x76, 0x31, 0xa2, 0x02, + 0x6c, 0x65, 0x2f, 0x76, 0x32, 0x3b, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x76, 0x32, 0xa2, 0x02, 0x03, 0x4a, 0x43, 0x4d, 0xaa, 0x02, 0x16, 0x4a, 0x75, 0x6e, 0x6f, 0x2e, 0x43, 0x77, 0x68, 0x6f, - 0x6f, 0x6b, 0x73, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x16, + 0x6f, 0x6b, 0x73, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x56, 0x32, 0xca, 0x02, 0x16, 0x4a, 0x75, 0x6e, 0x6f, 0x5c, 0x43, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x5c, 0x4d, 0x6f, 0x64, - 0x75, 0x6c, 0x65, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x22, 0x4a, 0x75, 0x6e, 0x6f, 0x5c, 0x43, 0x77, - 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5c, 0x56, 0x31, 0x5c, + 0x75, 0x6c, 0x65, 0x5c, 0x56, 0x32, 0xe2, 0x02, 0x22, 0x4a, 0x75, 0x6e, 0x6f, 0x5c, 0x43, 0x77, + 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5c, 0x56, 0x32, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x19, 0x4a, 0x75, 0x6e, 0x6f, 0x3a, 0x3a, 0x43, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x3a, 0x3a, 0x4d, 0x6f, 0x64, - 0x75, 0x6c, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x75, 0x6c, 0x65, 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_juno_cwhooks_module_v1_module_proto_rawDescOnce sync.Once - file_juno_cwhooks_module_v1_module_proto_rawDescData = file_juno_cwhooks_module_v1_module_proto_rawDesc + file_juno_cwhooks_module_v2_module_proto_rawDescOnce sync.Once + file_juno_cwhooks_module_v2_module_proto_rawDescData = file_juno_cwhooks_module_v2_module_proto_rawDesc ) -func file_juno_cwhooks_module_v1_module_proto_rawDescGZIP() []byte { - file_juno_cwhooks_module_v1_module_proto_rawDescOnce.Do(func() { - file_juno_cwhooks_module_v1_module_proto_rawDescData = protoimpl.X.CompressGZIP(file_juno_cwhooks_module_v1_module_proto_rawDescData) +func file_juno_cwhooks_module_v2_module_proto_rawDescGZIP() []byte { + file_juno_cwhooks_module_v2_module_proto_rawDescOnce.Do(func() { + file_juno_cwhooks_module_v2_module_proto_rawDescData = protoimpl.X.CompressGZIP(file_juno_cwhooks_module_v2_module_proto_rawDescData) }) - return file_juno_cwhooks_module_v1_module_proto_rawDescData + return file_juno_cwhooks_module_v2_module_proto_rawDescData } -var file_juno_cwhooks_module_v1_module_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_juno_cwhooks_module_v1_module_proto_goTypes = []interface{}{ - (*Module)(nil), // 0: juno.cwhooks.module.v1.Module +var file_juno_cwhooks_module_v2_module_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_juno_cwhooks_module_v2_module_proto_goTypes = []interface{}{ + (*Module)(nil), // 0: juno.cwhooks.module.v2.Module } -var file_juno_cwhooks_module_v1_module_proto_depIdxs = []int32{ +var file_juno_cwhooks_module_v2_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 @@ -539,13 +539,13 @@ var file_juno_cwhooks_module_v1_module_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for field type_name } -func init() { file_juno_cwhooks_module_v1_module_proto_init() } -func file_juno_cwhooks_module_v1_module_proto_init() { - if File_juno_cwhooks_module_v1_module_proto != nil { +func init() { file_juno_cwhooks_module_v2_module_proto_init() } +func file_juno_cwhooks_module_v2_module_proto_init() { + if File_juno_cwhooks_module_v2_module_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_juno_cwhooks_module_v1_module_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_juno_cwhooks_module_v2_module_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Module); i { case 0: return &v.state @@ -562,18 +562,18 @@ func file_juno_cwhooks_module_v1_module_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_juno_cwhooks_module_v1_module_proto_rawDesc, + RawDescriptor: file_juno_cwhooks_module_v2_module_proto_rawDesc, NumEnums: 0, NumMessages: 1, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_juno_cwhooks_module_v1_module_proto_goTypes, - DependencyIndexes: file_juno_cwhooks_module_v1_module_proto_depIdxs, - MessageInfos: file_juno_cwhooks_module_v1_module_proto_msgTypes, + GoTypes: file_juno_cwhooks_module_v2_module_proto_goTypes, + DependencyIndexes: file_juno_cwhooks_module_v2_module_proto_depIdxs, + MessageInfos: file_juno_cwhooks_module_v2_module_proto_msgTypes, }.Build() - File_juno_cwhooks_module_v1_module_proto = out.File - file_juno_cwhooks_module_v1_module_proto_rawDesc = nil - file_juno_cwhooks_module_v1_module_proto_goTypes = nil - file_juno_cwhooks_module_v1_module_proto_depIdxs = nil + File_juno_cwhooks_module_v2_module_proto = out.File + file_juno_cwhooks_module_v2_module_proto_rawDesc = nil + file_juno_cwhooks_module_v2_module_proto_goTypes = nil + file_juno_cwhooks_module_v2_module_proto_depIdxs = nil } diff --git a/api/juno/cwhooks/v1/tx.pulsar.go b/api/juno/cwhooks/v1/tx.pulsar.go deleted file mode 100644 index 911a6248f..000000000 --- a/api/juno/cwhooks/v1/tx.pulsar.go +++ /dev/null @@ -1,4942 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package cwhooksv1 - -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_juno_cwhooks_v1_tx_proto_init() - md_MsgUpdateParams = File_juno_cwhooks_v1_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_juno_cwhooks_v1_tx_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_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 "juno.cwhooks.v1.MsgUpdateParams.authority": - return x.Authority != "" - case "juno.cwhooks.v1.MsgUpdateParams.params": - return x.Params != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.MsgUpdateParams")) - } - panic(fmt.Errorf("message juno.cwhooks.v1.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 "juno.cwhooks.v1.MsgUpdateParams.authority": - x.Authority = "" - case "juno.cwhooks.v1.MsgUpdateParams.params": - x.Params = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.MsgUpdateParams")) - } - panic(fmt.Errorf("message juno.cwhooks.v1.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 "juno.cwhooks.v1.MsgUpdateParams.authority": - value := x.Authority - return protoreflect.ValueOfString(value) - case "juno.cwhooks.v1.MsgUpdateParams.params": - value := x.Params - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.MsgUpdateParams")) - } - panic(fmt.Errorf("message juno.cwhooks.v1.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 "juno.cwhooks.v1.MsgUpdateParams.authority": - x.Authority = value.Interface().(string) - case "juno.cwhooks.v1.MsgUpdateParams.params": - x.Params = value.Message().Interface().(*Params) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.MsgUpdateParams")) - } - panic(fmt.Errorf("message juno.cwhooks.v1.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 "juno.cwhooks.v1.MsgUpdateParams.params": - if x.Params == nil { - x.Params = new(Params) - } - return protoreflect.ValueOfMessage(x.Params.ProtoReflect()) - case "juno.cwhooks.v1.MsgUpdateParams.authority": - panic(fmt.Errorf("field authority of message juno.cwhooks.v1.MsgUpdateParams is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.MsgUpdateParams")) - } - panic(fmt.Errorf("message juno.cwhooks.v1.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 "juno.cwhooks.v1.MsgUpdateParams.authority": - return protoreflect.ValueOfString("") - case "juno.cwhooks.v1.MsgUpdateParams.params": - m := new(Params) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.MsgUpdateParams")) - } - panic(fmt.Errorf("message juno.cwhooks.v1.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 juno.cwhooks.v1.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_juno_cwhooks_v1_tx_proto_init() - md_MsgUpdateParamsResponse = File_juno_cwhooks_v1_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_juno_cwhooks_v1_tx_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_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: juno.cwhooks.v1.MsgUpdateParamsResponse")) - } - panic(fmt.Errorf("message juno.cwhooks.v1.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: juno.cwhooks.v1.MsgUpdateParamsResponse")) - } - panic(fmt.Errorf("message juno.cwhooks.v1.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: juno.cwhooks.v1.MsgUpdateParamsResponse")) - } - panic(fmt.Errorf("message juno.cwhooks.v1.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: juno.cwhooks.v1.MsgUpdateParamsResponse")) - } - panic(fmt.Errorf("message juno.cwhooks.v1.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: juno.cwhooks.v1.MsgUpdateParamsResponse")) - } - panic(fmt.Errorf("message juno.cwhooks.v1.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: juno.cwhooks.v1.MsgUpdateParamsResponse")) - } - panic(fmt.Errorf("message juno.cwhooks.v1.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 juno.cwhooks.v1.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_MsgRegisterStaking protoreflect.MessageDescriptor - fd_MsgRegisterStaking_contract_address protoreflect.FieldDescriptor - fd_MsgRegisterStaking_register_address protoreflect.FieldDescriptor -) - -func init() { - file_juno_cwhooks_v1_tx_proto_init() - md_MsgRegisterStaking = File_juno_cwhooks_v1_tx_proto.Messages().ByName("MsgRegisterStaking") - fd_MsgRegisterStaking_contract_address = md_MsgRegisterStaking.Fields().ByName("contract_address") - fd_MsgRegisterStaking_register_address = md_MsgRegisterStaking.Fields().ByName("register_address") -} - -var _ protoreflect.Message = (*fastReflection_MsgRegisterStaking)(nil) - -type fastReflection_MsgRegisterStaking MsgRegisterStaking - -func (x *MsgRegisterStaking) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgRegisterStaking)(x) -} - -func (x *MsgRegisterStaking) slowProtoReflect() protoreflect.Message { - mi := &file_juno_cwhooks_v1_tx_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgRegisterStaking_messageType fastReflection_MsgRegisterStaking_messageType -var _ protoreflect.MessageType = fastReflection_MsgRegisterStaking_messageType{} - -type fastReflection_MsgRegisterStaking_messageType struct{} - -func (x fastReflection_MsgRegisterStaking_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgRegisterStaking)(nil) -} -func (x fastReflection_MsgRegisterStaking_messageType) New() protoreflect.Message { - return new(fastReflection_MsgRegisterStaking) -} -func (x fastReflection_MsgRegisterStaking_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgRegisterStaking -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgRegisterStaking) Descriptor() protoreflect.MessageDescriptor { - return md_MsgRegisterStaking -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgRegisterStaking) Type() protoreflect.MessageType { - return _fastReflection_MsgRegisterStaking_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgRegisterStaking) New() protoreflect.Message { - return new(fastReflection_MsgRegisterStaking) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgRegisterStaking) Interface() protoreflect.ProtoMessage { - return (*MsgRegisterStaking)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgRegisterStaking) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ContractAddress != "" { - value := protoreflect.ValueOfString(x.ContractAddress) - if !f(fd_MsgRegisterStaking_contract_address, value) { - return - } - } - if x.RegisterAddress != "" { - value := protoreflect.ValueOfString(x.RegisterAddress) - if !f(fd_MsgRegisterStaking_register_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_MsgRegisterStaking) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "juno.cwhooks.v1.MsgRegisterStaking.contract_address": - return x.ContractAddress != "" - case "juno.cwhooks.v1.MsgRegisterStaking.register_address": - return x.RegisterAddress != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.MsgRegisterStaking")) - } - panic(fmt.Errorf("message juno.cwhooks.v1.MsgRegisterStaking does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgRegisterStaking) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "juno.cwhooks.v1.MsgRegisterStaking.contract_address": - x.ContractAddress = "" - case "juno.cwhooks.v1.MsgRegisterStaking.register_address": - x.RegisterAddress = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.MsgRegisterStaking")) - } - panic(fmt.Errorf("message juno.cwhooks.v1.MsgRegisterStaking does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgRegisterStaking) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "juno.cwhooks.v1.MsgRegisterStaking.contract_address": - value := x.ContractAddress - return protoreflect.ValueOfString(value) - case "juno.cwhooks.v1.MsgRegisterStaking.register_address": - value := x.RegisterAddress - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.MsgRegisterStaking")) - } - panic(fmt.Errorf("message juno.cwhooks.v1.MsgRegisterStaking does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgRegisterStaking) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "juno.cwhooks.v1.MsgRegisterStaking.contract_address": - x.ContractAddress = value.Interface().(string) - case "juno.cwhooks.v1.MsgRegisterStaking.register_address": - x.RegisterAddress = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.MsgRegisterStaking")) - } - panic(fmt.Errorf("message juno.cwhooks.v1.MsgRegisterStaking does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgRegisterStaking) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "juno.cwhooks.v1.MsgRegisterStaking.contract_address": - panic(fmt.Errorf("field contract_address of message juno.cwhooks.v1.MsgRegisterStaking is not mutable")) - case "juno.cwhooks.v1.MsgRegisterStaking.register_address": - panic(fmt.Errorf("field register_address of message juno.cwhooks.v1.MsgRegisterStaking is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.MsgRegisterStaking")) - } - panic(fmt.Errorf("message juno.cwhooks.v1.MsgRegisterStaking does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgRegisterStaking) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "juno.cwhooks.v1.MsgRegisterStaking.contract_address": - return protoreflect.ValueOfString("") - case "juno.cwhooks.v1.MsgRegisterStaking.register_address": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.MsgRegisterStaking")) - } - panic(fmt.Errorf("message juno.cwhooks.v1.MsgRegisterStaking does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgRegisterStaking) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in juno.cwhooks.v1.MsgRegisterStaking", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgRegisterStaking) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgRegisterStaking) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgRegisterStaking) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgRegisterStaking) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgRegisterStaking) - 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.ContractAddress) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.RegisterAddress) - 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().(*MsgRegisterStaking) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]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.RegisterAddress) > 0 { - i -= len(x.RegisterAddress) - copy(dAtA[i:], x.RegisterAddress) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.RegisterAddress))) - i-- - dAtA[i] = 0x12 - } - if len(x.ContractAddress) > 0 { - i -= len(x.ContractAddress) - copy(dAtA[i:], x.ContractAddress) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ContractAddress))) - 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().(*MsgRegisterStaking) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRegisterStaking: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRegisterStaking: 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 ContractAddress", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.ContractAddress = 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 RegisterAddress", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.RegisterAddress = 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_MsgRegisterStakingResponse protoreflect.MessageDescriptor -) - -func init() { - file_juno_cwhooks_v1_tx_proto_init() - md_MsgRegisterStakingResponse = File_juno_cwhooks_v1_tx_proto.Messages().ByName("MsgRegisterStakingResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgRegisterStakingResponse)(nil) - -type fastReflection_MsgRegisterStakingResponse MsgRegisterStakingResponse - -func (x *MsgRegisterStakingResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgRegisterStakingResponse)(x) -} - -func (x *MsgRegisterStakingResponse) slowProtoReflect() protoreflect.Message { - mi := &file_juno_cwhooks_v1_tx_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgRegisterStakingResponse_messageType fastReflection_MsgRegisterStakingResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgRegisterStakingResponse_messageType{} - -type fastReflection_MsgRegisterStakingResponse_messageType struct{} - -func (x fastReflection_MsgRegisterStakingResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgRegisterStakingResponse)(nil) -} -func (x fastReflection_MsgRegisterStakingResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgRegisterStakingResponse) -} -func (x fastReflection_MsgRegisterStakingResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgRegisterStakingResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgRegisterStakingResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgRegisterStakingResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgRegisterStakingResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgRegisterStakingResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgRegisterStakingResponse) New() protoreflect.Message { - return new(fastReflection_MsgRegisterStakingResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgRegisterStakingResponse) Interface() protoreflect.ProtoMessage { - return (*MsgRegisterStakingResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgRegisterStakingResponse) 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_MsgRegisterStakingResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.MsgRegisterStakingResponse")) - } - panic(fmt.Errorf("message juno.cwhooks.v1.MsgRegisterStakingResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgRegisterStakingResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.MsgRegisterStakingResponse")) - } - panic(fmt.Errorf("message juno.cwhooks.v1.MsgRegisterStakingResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgRegisterStakingResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.MsgRegisterStakingResponse")) - } - panic(fmt.Errorf("message juno.cwhooks.v1.MsgRegisterStakingResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgRegisterStakingResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.MsgRegisterStakingResponse")) - } - panic(fmt.Errorf("message juno.cwhooks.v1.MsgRegisterStakingResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgRegisterStakingResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.MsgRegisterStakingResponse")) - } - panic(fmt.Errorf("message juno.cwhooks.v1.MsgRegisterStakingResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgRegisterStakingResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.MsgRegisterStakingResponse")) - } - panic(fmt.Errorf("message juno.cwhooks.v1.MsgRegisterStakingResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgRegisterStakingResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in juno.cwhooks.v1.MsgRegisterStakingResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgRegisterStakingResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgRegisterStakingResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgRegisterStakingResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgRegisterStakingResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgRegisterStakingResponse) - 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().(*MsgRegisterStakingResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]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().(*MsgRegisterStakingResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRegisterStakingResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRegisterStakingResponse: 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_MsgRegisterGovernance protoreflect.MessageDescriptor - fd_MsgRegisterGovernance_contract_address protoreflect.FieldDescriptor - fd_MsgRegisterGovernance_register_address protoreflect.FieldDescriptor -) - -func init() { - file_juno_cwhooks_v1_tx_proto_init() - md_MsgRegisterGovernance = File_juno_cwhooks_v1_tx_proto.Messages().ByName("MsgRegisterGovernance") - fd_MsgRegisterGovernance_contract_address = md_MsgRegisterGovernance.Fields().ByName("contract_address") - fd_MsgRegisterGovernance_register_address = md_MsgRegisterGovernance.Fields().ByName("register_address") -} - -var _ protoreflect.Message = (*fastReflection_MsgRegisterGovernance)(nil) - -type fastReflection_MsgRegisterGovernance MsgRegisterGovernance - -func (x *MsgRegisterGovernance) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgRegisterGovernance)(x) -} - -func (x *MsgRegisterGovernance) slowProtoReflect() protoreflect.Message { - mi := &file_juno_cwhooks_v1_tx_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgRegisterGovernance_messageType fastReflection_MsgRegisterGovernance_messageType -var _ protoreflect.MessageType = fastReflection_MsgRegisterGovernance_messageType{} - -type fastReflection_MsgRegisterGovernance_messageType struct{} - -func (x fastReflection_MsgRegisterGovernance_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgRegisterGovernance)(nil) -} -func (x fastReflection_MsgRegisterGovernance_messageType) New() protoreflect.Message { - return new(fastReflection_MsgRegisterGovernance) -} -func (x fastReflection_MsgRegisterGovernance_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgRegisterGovernance -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgRegisterGovernance) Descriptor() protoreflect.MessageDescriptor { - return md_MsgRegisterGovernance -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgRegisterGovernance) Type() protoreflect.MessageType { - return _fastReflection_MsgRegisterGovernance_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgRegisterGovernance) New() protoreflect.Message { - return new(fastReflection_MsgRegisterGovernance) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgRegisterGovernance) Interface() protoreflect.ProtoMessage { - return (*MsgRegisterGovernance)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgRegisterGovernance) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ContractAddress != "" { - value := protoreflect.ValueOfString(x.ContractAddress) - if !f(fd_MsgRegisterGovernance_contract_address, value) { - return - } - } - if x.RegisterAddress != "" { - value := protoreflect.ValueOfString(x.RegisterAddress) - if !f(fd_MsgRegisterGovernance_register_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_MsgRegisterGovernance) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "juno.cwhooks.v1.MsgRegisterGovernance.contract_address": - return x.ContractAddress != "" - case "juno.cwhooks.v1.MsgRegisterGovernance.register_address": - return x.RegisterAddress != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.MsgRegisterGovernance")) - } - panic(fmt.Errorf("message juno.cwhooks.v1.MsgRegisterGovernance does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgRegisterGovernance) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "juno.cwhooks.v1.MsgRegisterGovernance.contract_address": - x.ContractAddress = "" - case "juno.cwhooks.v1.MsgRegisterGovernance.register_address": - x.RegisterAddress = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.MsgRegisterGovernance")) - } - panic(fmt.Errorf("message juno.cwhooks.v1.MsgRegisterGovernance does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgRegisterGovernance) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "juno.cwhooks.v1.MsgRegisterGovernance.contract_address": - value := x.ContractAddress - return protoreflect.ValueOfString(value) - case "juno.cwhooks.v1.MsgRegisterGovernance.register_address": - value := x.RegisterAddress - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.MsgRegisterGovernance")) - } - panic(fmt.Errorf("message juno.cwhooks.v1.MsgRegisterGovernance does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgRegisterGovernance) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "juno.cwhooks.v1.MsgRegisterGovernance.contract_address": - x.ContractAddress = value.Interface().(string) - case "juno.cwhooks.v1.MsgRegisterGovernance.register_address": - x.RegisterAddress = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.MsgRegisterGovernance")) - } - panic(fmt.Errorf("message juno.cwhooks.v1.MsgRegisterGovernance does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgRegisterGovernance) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "juno.cwhooks.v1.MsgRegisterGovernance.contract_address": - panic(fmt.Errorf("field contract_address of message juno.cwhooks.v1.MsgRegisterGovernance is not mutable")) - case "juno.cwhooks.v1.MsgRegisterGovernance.register_address": - panic(fmt.Errorf("field register_address of message juno.cwhooks.v1.MsgRegisterGovernance is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.MsgRegisterGovernance")) - } - panic(fmt.Errorf("message juno.cwhooks.v1.MsgRegisterGovernance does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgRegisterGovernance) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "juno.cwhooks.v1.MsgRegisterGovernance.contract_address": - return protoreflect.ValueOfString("") - case "juno.cwhooks.v1.MsgRegisterGovernance.register_address": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.MsgRegisterGovernance")) - } - panic(fmt.Errorf("message juno.cwhooks.v1.MsgRegisterGovernance does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgRegisterGovernance) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in juno.cwhooks.v1.MsgRegisterGovernance", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgRegisterGovernance) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgRegisterGovernance) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgRegisterGovernance) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgRegisterGovernance) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgRegisterGovernance) - 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.ContractAddress) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.RegisterAddress) - 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().(*MsgRegisterGovernance) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]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.RegisterAddress) > 0 { - i -= len(x.RegisterAddress) - copy(dAtA[i:], x.RegisterAddress) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.RegisterAddress))) - i-- - dAtA[i] = 0x12 - } - if len(x.ContractAddress) > 0 { - i -= len(x.ContractAddress) - copy(dAtA[i:], x.ContractAddress) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ContractAddress))) - 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().(*MsgRegisterGovernance) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRegisterGovernance: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRegisterGovernance: 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 ContractAddress", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.ContractAddress = 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 RegisterAddress", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.RegisterAddress = 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_MsgRegisterGovernanceResponse protoreflect.MessageDescriptor -) - -func init() { - file_juno_cwhooks_v1_tx_proto_init() - md_MsgRegisterGovernanceResponse = File_juno_cwhooks_v1_tx_proto.Messages().ByName("MsgRegisterGovernanceResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgRegisterGovernanceResponse)(nil) - -type fastReflection_MsgRegisterGovernanceResponse MsgRegisterGovernanceResponse - -func (x *MsgRegisterGovernanceResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgRegisterGovernanceResponse)(x) -} - -func (x *MsgRegisterGovernanceResponse) slowProtoReflect() protoreflect.Message { - mi := &file_juno_cwhooks_v1_tx_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgRegisterGovernanceResponse_messageType fastReflection_MsgRegisterGovernanceResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgRegisterGovernanceResponse_messageType{} - -type fastReflection_MsgRegisterGovernanceResponse_messageType struct{} - -func (x fastReflection_MsgRegisterGovernanceResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgRegisterGovernanceResponse)(nil) -} -func (x fastReflection_MsgRegisterGovernanceResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgRegisterGovernanceResponse) -} -func (x fastReflection_MsgRegisterGovernanceResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgRegisterGovernanceResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgRegisterGovernanceResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgRegisterGovernanceResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgRegisterGovernanceResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgRegisterGovernanceResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgRegisterGovernanceResponse) New() protoreflect.Message { - return new(fastReflection_MsgRegisterGovernanceResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgRegisterGovernanceResponse) Interface() protoreflect.ProtoMessage { - return (*MsgRegisterGovernanceResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgRegisterGovernanceResponse) 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_MsgRegisterGovernanceResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.MsgRegisterGovernanceResponse")) - } - panic(fmt.Errorf("message juno.cwhooks.v1.MsgRegisterGovernanceResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgRegisterGovernanceResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.MsgRegisterGovernanceResponse")) - } - panic(fmt.Errorf("message juno.cwhooks.v1.MsgRegisterGovernanceResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgRegisterGovernanceResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.MsgRegisterGovernanceResponse")) - } - panic(fmt.Errorf("message juno.cwhooks.v1.MsgRegisterGovernanceResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgRegisterGovernanceResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.MsgRegisterGovernanceResponse")) - } - panic(fmt.Errorf("message juno.cwhooks.v1.MsgRegisterGovernanceResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgRegisterGovernanceResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.MsgRegisterGovernanceResponse")) - } - panic(fmt.Errorf("message juno.cwhooks.v1.MsgRegisterGovernanceResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgRegisterGovernanceResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.MsgRegisterGovernanceResponse")) - } - panic(fmt.Errorf("message juno.cwhooks.v1.MsgRegisterGovernanceResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgRegisterGovernanceResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in juno.cwhooks.v1.MsgRegisterGovernanceResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgRegisterGovernanceResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgRegisterGovernanceResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgRegisterGovernanceResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgRegisterGovernanceResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgRegisterGovernanceResponse) - 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().(*MsgRegisterGovernanceResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]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().(*MsgRegisterGovernanceResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRegisterGovernanceResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRegisterGovernanceResponse: 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_MsgUnregisterGovernance protoreflect.MessageDescriptor - fd_MsgUnregisterGovernance_contract_address protoreflect.FieldDescriptor - fd_MsgUnregisterGovernance_register_address protoreflect.FieldDescriptor -) - -func init() { - file_juno_cwhooks_v1_tx_proto_init() - md_MsgUnregisterGovernance = File_juno_cwhooks_v1_tx_proto.Messages().ByName("MsgUnregisterGovernance") - fd_MsgUnregisterGovernance_contract_address = md_MsgUnregisterGovernance.Fields().ByName("contract_address") - fd_MsgUnregisterGovernance_register_address = md_MsgUnregisterGovernance.Fields().ByName("register_address") -} - -var _ protoreflect.Message = (*fastReflection_MsgUnregisterGovernance)(nil) - -type fastReflection_MsgUnregisterGovernance MsgUnregisterGovernance - -func (x *MsgUnregisterGovernance) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgUnregisterGovernance)(x) -} - -func (x *MsgUnregisterGovernance) slowProtoReflect() protoreflect.Message { - mi := &file_juno_cwhooks_v1_tx_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgUnregisterGovernance_messageType fastReflection_MsgUnregisterGovernance_messageType -var _ protoreflect.MessageType = fastReflection_MsgUnregisterGovernance_messageType{} - -type fastReflection_MsgUnregisterGovernance_messageType struct{} - -func (x fastReflection_MsgUnregisterGovernance_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgUnregisterGovernance)(nil) -} -func (x fastReflection_MsgUnregisterGovernance_messageType) New() protoreflect.Message { - return new(fastReflection_MsgUnregisterGovernance) -} -func (x fastReflection_MsgUnregisterGovernance_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUnregisterGovernance -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgUnregisterGovernance) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUnregisterGovernance -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgUnregisterGovernance) Type() protoreflect.MessageType { - return _fastReflection_MsgUnregisterGovernance_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgUnregisterGovernance) New() protoreflect.Message { - return new(fastReflection_MsgUnregisterGovernance) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgUnregisterGovernance) Interface() protoreflect.ProtoMessage { - return (*MsgUnregisterGovernance)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgUnregisterGovernance) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ContractAddress != "" { - value := protoreflect.ValueOfString(x.ContractAddress) - if !f(fd_MsgUnregisterGovernance_contract_address, value) { - return - } - } - if x.RegisterAddress != "" { - value := protoreflect.ValueOfString(x.RegisterAddress) - if !f(fd_MsgUnregisterGovernance_register_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_MsgUnregisterGovernance) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "juno.cwhooks.v1.MsgUnregisterGovernance.contract_address": - return x.ContractAddress != "" - case "juno.cwhooks.v1.MsgUnregisterGovernance.register_address": - return x.RegisterAddress != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.MsgUnregisterGovernance")) - } - panic(fmt.Errorf("message juno.cwhooks.v1.MsgUnregisterGovernance does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUnregisterGovernance) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "juno.cwhooks.v1.MsgUnregisterGovernance.contract_address": - x.ContractAddress = "" - case "juno.cwhooks.v1.MsgUnregisterGovernance.register_address": - x.RegisterAddress = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.MsgUnregisterGovernance")) - } - panic(fmt.Errorf("message juno.cwhooks.v1.MsgUnregisterGovernance does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgUnregisterGovernance) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "juno.cwhooks.v1.MsgUnregisterGovernance.contract_address": - value := x.ContractAddress - return protoreflect.ValueOfString(value) - case "juno.cwhooks.v1.MsgUnregisterGovernance.register_address": - value := x.RegisterAddress - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.MsgUnregisterGovernance")) - } - panic(fmt.Errorf("message juno.cwhooks.v1.MsgUnregisterGovernance does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUnregisterGovernance) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "juno.cwhooks.v1.MsgUnregisterGovernance.contract_address": - x.ContractAddress = value.Interface().(string) - case "juno.cwhooks.v1.MsgUnregisterGovernance.register_address": - x.RegisterAddress = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.MsgUnregisterGovernance")) - } - panic(fmt.Errorf("message juno.cwhooks.v1.MsgUnregisterGovernance does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUnregisterGovernance) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "juno.cwhooks.v1.MsgUnregisterGovernance.contract_address": - panic(fmt.Errorf("field contract_address of message juno.cwhooks.v1.MsgUnregisterGovernance is not mutable")) - case "juno.cwhooks.v1.MsgUnregisterGovernance.register_address": - panic(fmt.Errorf("field register_address of message juno.cwhooks.v1.MsgUnregisterGovernance is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.MsgUnregisterGovernance")) - } - panic(fmt.Errorf("message juno.cwhooks.v1.MsgUnregisterGovernance does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgUnregisterGovernance) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "juno.cwhooks.v1.MsgUnregisterGovernance.contract_address": - return protoreflect.ValueOfString("") - case "juno.cwhooks.v1.MsgUnregisterGovernance.register_address": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.MsgUnregisterGovernance")) - } - panic(fmt.Errorf("message juno.cwhooks.v1.MsgUnregisterGovernance does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgUnregisterGovernance) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in juno.cwhooks.v1.MsgUnregisterGovernance", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgUnregisterGovernance) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUnregisterGovernance) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgUnregisterGovernance) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgUnregisterGovernance) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgUnregisterGovernance) - 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.ContractAddress) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.RegisterAddress) - 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().(*MsgUnregisterGovernance) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]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.RegisterAddress) > 0 { - i -= len(x.RegisterAddress) - copy(dAtA[i:], x.RegisterAddress) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.RegisterAddress))) - i-- - dAtA[i] = 0x12 - } - if len(x.ContractAddress) > 0 { - i -= len(x.ContractAddress) - copy(dAtA[i:], x.ContractAddress) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ContractAddress))) - 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().(*MsgUnregisterGovernance) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUnregisterGovernance: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUnregisterGovernance: 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 ContractAddress", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.ContractAddress = 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 RegisterAddress", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.RegisterAddress = 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_MsgUnregisterGovernanceResponse protoreflect.MessageDescriptor -) - -func init() { - file_juno_cwhooks_v1_tx_proto_init() - md_MsgUnregisterGovernanceResponse = File_juno_cwhooks_v1_tx_proto.Messages().ByName("MsgUnregisterGovernanceResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgUnregisterGovernanceResponse)(nil) - -type fastReflection_MsgUnregisterGovernanceResponse MsgUnregisterGovernanceResponse - -func (x *MsgUnregisterGovernanceResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgUnregisterGovernanceResponse)(x) -} - -func (x *MsgUnregisterGovernanceResponse) slowProtoReflect() protoreflect.Message { - mi := &file_juno_cwhooks_v1_tx_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgUnregisterGovernanceResponse_messageType fastReflection_MsgUnregisterGovernanceResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgUnregisterGovernanceResponse_messageType{} - -type fastReflection_MsgUnregisterGovernanceResponse_messageType struct{} - -func (x fastReflection_MsgUnregisterGovernanceResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgUnregisterGovernanceResponse)(nil) -} -func (x fastReflection_MsgUnregisterGovernanceResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgUnregisterGovernanceResponse) -} -func (x fastReflection_MsgUnregisterGovernanceResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUnregisterGovernanceResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgUnregisterGovernanceResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUnregisterGovernanceResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgUnregisterGovernanceResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgUnregisterGovernanceResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgUnregisterGovernanceResponse) New() protoreflect.Message { - return new(fastReflection_MsgUnregisterGovernanceResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgUnregisterGovernanceResponse) Interface() protoreflect.ProtoMessage { - return (*MsgUnregisterGovernanceResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgUnregisterGovernanceResponse) 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_MsgUnregisterGovernanceResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.MsgUnregisterGovernanceResponse")) - } - panic(fmt.Errorf("message juno.cwhooks.v1.MsgUnregisterGovernanceResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUnregisterGovernanceResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.MsgUnregisterGovernanceResponse")) - } - panic(fmt.Errorf("message juno.cwhooks.v1.MsgUnregisterGovernanceResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgUnregisterGovernanceResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.MsgUnregisterGovernanceResponse")) - } - panic(fmt.Errorf("message juno.cwhooks.v1.MsgUnregisterGovernanceResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUnregisterGovernanceResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.MsgUnregisterGovernanceResponse")) - } - panic(fmt.Errorf("message juno.cwhooks.v1.MsgUnregisterGovernanceResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUnregisterGovernanceResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.MsgUnregisterGovernanceResponse")) - } - panic(fmt.Errorf("message juno.cwhooks.v1.MsgUnregisterGovernanceResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgUnregisterGovernanceResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.MsgUnregisterGovernanceResponse")) - } - panic(fmt.Errorf("message juno.cwhooks.v1.MsgUnregisterGovernanceResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgUnregisterGovernanceResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in juno.cwhooks.v1.MsgUnregisterGovernanceResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgUnregisterGovernanceResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUnregisterGovernanceResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgUnregisterGovernanceResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgUnregisterGovernanceResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgUnregisterGovernanceResponse) - 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().(*MsgUnregisterGovernanceResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]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().(*MsgUnregisterGovernanceResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUnregisterGovernanceResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUnregisterGovernanceResponse: 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_MsgUnregisterStaking protoreflect.MessageDescriptor - fd_MsgUnregisterStaking_contract_address protoreflect.FieldDescriptor - fd_MsgUnregisterStaking_register_address protoreflect.FieldDescriptor -) - -func init() { - file_juno_cwhooks_v1_tx_proto_init() - md_MsgUnregisterStaking = File_juno_cwhooks_v1_tx_proto.Messages().ByName("MsgUnregisterStaking") - fd_MsgUnregisterStaking_contract_address = md_MsgUnregisterStaking.Fields().ByName("contract_address") - fd_MsgUnregisterStaking_register_address = md_MsgUnregisterStaking.Fields().ByName("register_address") -} - -var _ protoreflect.Message = (*fastReflection_MsgUnregisterStaking)(nil) - -type fastReflection_MsgUnregisterStaking MsgUnregisterStaking - -func (x *MsgUnregisterStaking) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgUnregisterStaking)(x) -} - -func (x *MsgUnregisterStaking) slowProtoReflect() protoreflect.Message { - mi := &file_juno_cwhooks_v1_tx_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgUnregisterStaking_messageType fastReflection_MsgUnregisterStaking_messageType -var _ protoreflect.MessageType = fastReflection_MsgUnregisterStaking_messageType{} - -type fastReflection_MsgUnregisterStaking_messageType struct{} - -func (x fastReflection_MsgUnregisterStaking_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgUnregisterStaking)(nil) -} -func (x fastReflection_MsgUnregisterStaking_messageType) New() protoreflect.Message { - return new(fastReflection_MsgUnregisterStaking) -} -func (x fastReflection_MsgUnregisterStaking_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUnregisterStaking -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgUnregisterStaking) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUnregisterStaking -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgUnregisterStaking) Type() protoreflect.MessageType { - return _fastReflection_MsgUnregisterStaking_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgUnregisterStaking) New() protoreflect.Message { - return new(fastReflection_MsgUnregisterStaking) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgUnregisterStaking) Interface() protoreflect.ProtoMessage { - return (*MsgUnregisterStaking)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgUnregisterStaking) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ContractAddress != "" { - value := protoreflect.ValueOfString(x.ContractAddress) - if !f(fd_MsgUnregisterStaking_contract_address, value) { - return - } - } - if x.RegisterAddress != "" { - value := protoreflect.ValueOfString(x.RegisterAddress) - if !f(fd_MsgUnregisterStaking_register_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_MsgUnregisterStaking) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "juno.cwhooks.v1.MsgUnregisterStaking.contract_address": - return x.ContractAddress != "" - case "juno.cwhooks.v1.MsgUnregisterStaking.register_address": - return x.RegisterAddress != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.MsgUnregisterStaking")) - } - panic(fmt.Errorf("message juno.cwhooks.v1.MsgUnregisterStaking does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUnregisterStaking) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "juno.cwhooks.v1.MsgUnregisterStaking.contract_address": - x.ContractAddress = "" - case "juno.cwhooks.v1.MsgUnregisterStaking.register_address": - x.RegisterAddress = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.MsgUnregisterStaking")) - } - panic(fmt.Errorf("message juno.cwhooks.v1.MsgUnregisterStaking does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgUnregisterStaking) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "juno.cwhooks.v1.MsgUnregisterStaking.contract_address": - value := x.ContractAddress - return protoreflect.ValueOfString(value) - case "juno.cwhooks.v1.MsgUnregisterStaking.register_address": - value := x.RegisterAddress - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.MsgUnregisterStaking")) - } - panic(fmt.Errorf("message juno.cwhooks.v1.MsgUnregisterStaking does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUnregisterStaking) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "juno.cwhooks.v1.MsgUnregisterStaking.contract_address": - x.ContractAddress = value.Interface().(string) - case "juno.cwhooks.v1.MsgUnregisterStaking.register_address": - x.RegisterAddress = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.MsgUnregisterStaking")) - } - panic(fmt.Errorf("message juno.cwhooks.v1.MsgUnregisterStaking does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUnregisterStaking) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "juno.cwhooks.v1.MsgUnregisterStaking.contract_address": - panic(fmt.Errorf("field contract_address of message juno.cwhooks.v1.MsgUnregisterStaking is not mutable")) - case "juno.cwhooks.v1.MsgUnregisterStaking.register_address": - panic(fmt.Errorf("field register_address of message juno.cwhooks.v1.MsgUnregisterStaking is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.MsgUnregisterStaking")) - } - panic(fmt.Errorf("message juno.cwhooks.v1.MsgUnregisterStaking does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgUnregisterStaking) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "juno.cwhooks.v1.MsgUnregisterStaking.contract_address": - return protoreflect.ValueOfString("") - case "juno.cwhooks.v1.MsgUnregisterStaking.register_address": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.MsgUnregisterStaking")) - } - panic(fmt.Errorf("message juno.cwhooks.v1.MsgUnregisterStaking does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgUnregisterStaking) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in juno.cwhooks.v1.MsgUnregisterStaking", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgUnregisterStaking) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUnregisterStaking) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgUnregisterStaking) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgUnregisterStaking) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgUnregisterStaking) - 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.ContractAddress) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.RegisterAddress) - 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().(*MsgUnregisterStaking) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]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.RegisterAddress) > 0 { - i -= len(x.RegisterAddress) - copy(dAtA[i:], x.RegisterAddress) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.RegisterAddress))) - i-- - dAtA[i] = 0x12 - } - if len(x.ContractAddress) > 0 { - i -= len(x.ContractAddress) - copy(dAtA[i:], x.ContractAddress) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ContractAddress))) - 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().(*MsgUnregisterStaking) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUnregisterStaking: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUnregisterStaking: 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 ContractAddress", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.ContractAddress = 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 RegisterAddress", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.RegisterAddress = 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_MsgUnregisterStakingResponse protoreflect.MessageDescriptor -) - -func init() { - file_juno_cwhooks_v1_tx_proto_init() - md_MsgUnregisterStakingResponse = File_juno_cwhooks_v1_tx_proto.Messages().ByName("MsgUnregisterStakingResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgUnregisterStakingResponse)(nil) - -type fastReflection_MsgUnregisterStakingResponse MsgUnregisterStakingResponse - -func (x *MsgUnregisterStakingResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgUnregisterStakingResponse)(x) -} - -func (x *MsgUnregisterStakingResponse) slowProtoReflect() protoreflect.Message { - mi := &file_juno_cwhooks_v1_tx_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgUnregisterStakingResponse_messageType fastReflection_MsgUnregisterStakingResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgUnregisterStakingResponse_messageType{} - -type fastReflection_MsgUnregisterStakingResponse_messageType struct{} - -func (x fastReflection_MsgUnregisterStakingResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgUnregisterStakingResponse)(nil) -} -func (x fastReflection_MsgUnregisterStakingResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgUnregisterStakingResponse) -} -func (x fastReflection_MsgUnregisterStakingResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUnregisterStakingResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgUnregisterStakingResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUnregisterStakingResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgUnregisterStakingResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgUnregisterStakingResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgUnregisterStakingResponse) New() protoreflect.Message { - return new(fastReflection_MsgUnregisterStakingResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgUnregisterStakingResponse) Interface() protoreflect.ProtoMessage { - return (*MsgUnregisterStakingResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgUnregisterStakingResponse) 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_MsgUnregisterStakingResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.MsgUnregisterStakingResponse")) - } - panic(fmt.Errorf("message juno.cwhooks.v1.MsgUnregisterStakingResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUnregisterStakingResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.MsgUnregisterStakingResponse")) - } - panic(fmt.Errorf("message juno.cwhooks.v1.MsgUnregisterStakingResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgUnregisterStakingResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.MsgUnregisterStakingResponse")) - } - panic(fmt.Errorf("message juno.cwhooks.v1.MsgUnregisterStakingResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUnregisterStakingResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.MsgUnregisterStakingResponse")) - } - panic(fmt.Errorf("message juno.cwhooks.v1.MsgUnregisterStakingResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUnregisterStakingResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.MsgUnregisterStakingResponse")) - } - panic(fmt.Errorf("message juno.cwhooks.v1.MsgUnregisterStakingResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgUnregisterStakingResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.MsgUnregisterStakingResponse")) - } - panic(fmt.Errorf("message juno.cwhooks.v1.MsgUnregisterStakingResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgUnregisterStakingResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in juno.cwhooks.v1.MsgUnregisterStakingResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgUnregisterStakingResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUnregisterStakingResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgUnregisterStakingResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgUnregisterStakingResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgUnregisterStakingResponse) - 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().(*MsgUnregisterStakingResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]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().(*MsgUnregisterStakingResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUnregisterStakingResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUnregisterStakingResponse: 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: juno/cwhooks/v1/tx.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// MsgUpdateParams is the Msg/UpdateParams request type. -type MsgUpdateParams struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // authority is the address of the governance account. - Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` - // params defines the x/clock 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_juno_cwhooks_v1_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_juno_cwhooks_v1_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. -// -// Since: cosmos-sdk 0.47 -type MsgUpdateParamsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgUpdateParamsResponse) Reset() { - *x = MsgUpdateParamsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_juno_cwhooks_v1_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_juno_cwhooks_v1_tx_proto_rawDescGZIP(), []int{1} -} - -// MsgRegisterStaking -type MsgRegisterStaking struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ContractAddress string `protobuf:"bytes,1,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"` - RegisterAddress string `protobuf:"bytes,2,opt,name=register_address,json=registerAddress,proto3" json:"register_address,omitempty"` -} - -func (x *MsgRegisterStaking) Reset() { - *x = MsgRegisterStaking{} - if protoimpl.UnsafeEnabled { - mi := &file_juno_cwhooks_v1_tx_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgRegisterStaking) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgRegisterStaking) ProtoMessage() {} - -// Deprecated: Use MsgRegisterStaking.ProtoReflect.Descriptor instead. -func (*MsgRegisterStaking) Descriptor() ([]byte, []int) { - return file_juno_cwhooks_v1_tx_proto_rawDescGZIP(), []int{2} -} - -func (x *MsgRegisterStaking) GetContractAddress() string { - if x != nil { - return x.ContractAddress - } - return "" -} - -func (x *MsgRegisterStaking) GetRegisterAddress() string { - if x != nil { - return x.RegisterAddress - } - return "" -} - -// MsgRegisterStakingResponse -type MsgRegisterStakingResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgRegisterStakingResponse) Reset() { - *x = MsgRegisterStakingResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_juno_cwhooks_v1_tx_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgRegisterStakingResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgRegisterStakingResponse) ProtoMessage() {} - -// Deprecated: Use MsgRegisterStakingResponse.ProtoReflect.Descriptor instead. -func (*MsgRegisterStakingResponse) Descriptor() ([]byte, []int) { - return file_juno_cwhooks_v1_tx_proto_rawDescGZIP(), []int{3} -} - -// MsgRegisterGovernance -type MsgRegisterGovernance struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ContractAddress string `protobuf:"bytes,1,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"` - RegisterAddress string `protobuf:"bytes,2,opt,name=register_address,json=registerAddress,proto3" json:"register_address,omitempty"` -} - -func (x *MsgRegisterGovernance) Reset() { - *x = MsgRegisterGovernance{} - if protoimpl.UnsafeEnabled { - mi := &file_juno_cwhooks_v1_tx_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgRegisterGovernance) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgRegisterGovernance) ProtoMessage() {} - -// Deprecated: Use MsgRegisterGovernance.ProtoReflect.Descriptor instead. -func (*MsgRegisterGovernance) Descriptor() ([]byte, []int) { - return file_juno_cwhooks_v1_tx_proto_rawDescGZIP(), []int{4} -} - -func (x *MsgRegisterGovernance) GetContractAddress() string { - if x != nil { - return x.ContractAddress - } - return "" -} - -func (x *MsgRegisterGovernance) GetRegisterAddress() string { - if x != nil { - return x.RegisterAddress - } - return "" -} - -// MsgRegisterGovernanceResponse -type MsgRegisterGovernanceResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgRegisterGovernanceResponse) Reset() { - *x = MsgRegisterGovernanceResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_juno_cwhooks_v1_tx_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgRegisterGovernanceResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgRegisterGovernanceResponse) ProtoMessage() {} - -// Deprecated: Use MsgRegisterGovernanceResponse.ProtoReflect.Descriptor instead. -func (*MsgRegisterGovernanceResponse) Descriptor() ([]byte, []int) { - return file_juno_cwhooks_v1_tx_proto_rawDescGZIP(), []int{5} -} - -// MsgUnregisterGovernance -type MsgUnregisterGovernance struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ContractAddress string `protobuf:"bytes,1,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"` - RegisterAddress string `protobuf:"bytes,2,opt,name=register_address,json=registerAddress,proto3" json:"register_address,omitempty"` -} - -func (x *MsgUnregisterGovernance) Reset() { - *x = MsgUnregisterGovernance{} - if protoimpl.UnsafeEnabled { - mi := &file_juno_cwhooks_v1_tx_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgUnregisterGovernance) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgUnregisterGovernance) ProtoMessage() {} - -// Deprecated: Use MsgUnregisterGovernance.ProtoReflect.Descriptor instead. -func (*MsgUnregisterGovernance) Descriptor() ([]byte, []int) { - return file_juno_cwhooks_v1_tx_proto_rawDescGZIP(), []int{6} -} - -func (x *MsgUnregisterGovernance) GetContractAddress() string { - if x != nil { - return x.ContractAddress - } - return "" -} - -func (x *MsgUnregisterGovernance) GetRegisterAddress() string { - if x != nil { - return x.RegisterAddress - } - return "" -} - -// MsgUnregisterGovernanceResponse -type MsgUnregisterGovernanceResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgUnregisterGovernanceResponse) Reset() { - *x = MsgUnregisterGovernanceResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_juno_cwhooks_v1_tx_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgUnregisterGovernanceResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgUnregisterGovernanceResponse) ProtoMessage() {} - -// Deprecated: Use MsgUnregisterGovernanceResponse.ProtoReflect.Descriptor instead. -func (*MsgUnregisterGovernanceResponse) Descriptor() ([]byte, []int) { - return file_juno_cwhooks_v1_tx_proto_rawDescGZIP(), []int{7} -} - -// MsgUnregisterStaking -type MsgUnregisterStaking struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ContractAddress string `protobuf:"bytes,1,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"` - RegisterAddress string `protobuf:"bytes,2,opt,name=register_address,json=registerAddress,proto3" json:"register_address,omitempty"` -} - -func (x *MsgUnregisterStaking) Reset() { - *x = MsgUnregisterStaking{} - if protoimpl.UnsafeEnabled { - mi := &file_juno_cwhooks_v1_tx_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgUnregisterStaking) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgUnregisterStaking) ProtoMessage() {} - -// Deprecated: Use MsgUnregisterStaking.ProtoReflect.Descriptor instead. -func (*MsgUnregisterStaking) Descriptor() ([]byte, []int) { - return file_juno_cwhooks_v1_tx_proto_rawDescGZIP(), []int{8} -} - -func (x *MsgUnregisterStaking) GetContractAddress() string { - if x != nil { - return x.ContractAddress - } - return "" -} - -func (x *MsgUnregisterStaking) GetRegisterAddress() string { - if x != nil { - return x.RegisterAddress - } - return "" -} - -// MsgUnregisterStakingResponse -type MsgUnregisterStakingResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgUnregisterStakingResponse) Reset() { - *x = MsgUnregisterStakingResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_juno_cwhooks_v1_tx_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgUnregisterStakingResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgUnregisterStakingResponse) ProtoMessage() {} - -// Deprecated: Use MsgUnregisterStakingResponse.ProtoReflect.Descriptor instead. -func (*MsgUnregisterStakingResponse) Descriptor() ([]byte, []int) { - return file_juno_cwhooks_v1_tx_proto_rawDescGZIP(), []int{9} -} - -var File_juno_cwhooks_v1_tx_proto protoreflect.FileDescriptor - -var file_juno_cwhooks_v1_tx_proto_rawDesc = []byte{ - 0x0a, 0x18, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2f, 0x76, - 0x31, 0x2f, 0x74, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x6a, 0x75, 0x6e, 0x6f, - 0x2e, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2e, 0x76, 0x31, 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, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, 0x63, - 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, - 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc0, 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, 0x3a, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x63, 0x77, 0x68, 0x6f, 0x6f, - 0x6b, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x09, 0xc8, 0xde, - 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x3a, - 0x39, 0x88, 0xa0, 0x1f, 0x00, 0xe8, 0xa0, 0x1f, 0x00, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, - 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x8a, 0xe7, 0xb0, 0x2a, 0x1e, 0x6a, 0x75, 0x6e, 0x6f, - 0x2f, 0x78, 0x2f, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 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, 0x22, 0xe3, 0x01, 0x0a, 0x12, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, - 0x69, 0x73, 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x12, 0x43, 0x0a, 0x10, - 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 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, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x12, 0x43, 0x0a, 0x10, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 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, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x41, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x3a, 0x43, 0x88, 0xa0, 0x1f, 0x00, 0xe8, 0xa0, 0x1f, 0x00, - 0x82, 0xe7, 0xb0, 0x2a, 0x10, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x61, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x8a, 0xe7, 0xb0, 0x2a, 0x21, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, 0x78, - 0x2f, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2f, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, - 0x73, 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x22, 0x1c, 0x0a, 0x1a, 0x4d, - 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, 0x6b, 0x69, 0x6e, - 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xe9, 0x01, 0x0a, 0x15, 0x4d, 0x73, - 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x47, 0x6f, 0x76, 0x65, 0x72, 0x6e, 0x61, - 0x6e, 0x63, 0x65, 0x12, 0x43, 0x0a, 0x10, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 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, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, - 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x43, 0x0a, 0x10, 0x72, 0x65, 0x67, 0x69, - 0x73, 0x74, 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, 0x72, 0x65, - 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x3a, 0x46, 0x88, - 0xa0, 0x1f, 0x00, 0xe8, 0xa0, 0x1f, 0x00, 0x82, 0xe7, 0xb0, 0x2a, 0x10, 0x72, 0x65, 0x67, 0x69, - 0x73, 0x74, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x8a, 0xe7, 0xb0, 0x2a, - 0x24, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, 0x78, 0x2f, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2f, - 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x47, 0x6f, 0x76, 0x65, 0x72, - 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x1f, 0x0a, 0x1d, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, - 0x73, 0x74, 0x65, 0x72, 0x47, 0x6f, 0x76, 0x65, 0x72, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xed, 0x01, 0x0a, 0x17, 0x4d, 0x73, 0x67, 0x55, 0x6e, - 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x47, 0x6f, 0x76, 0x65, 0x72, 0x6e, 0x61, 0x6e, - 0x63, 0x65, 0x12, 0x43, 0x0a, 0x10, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 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, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, - 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x43, 0x0a, 0x10, 0x72, 0x65, 0x67, 0x69, 0x73, - 0x74, 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, 0x72, 0x65, 0x67, - 0x69, 0x73, 0x74, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x3a, 0x48, 0x88, 0xa0, - 0x1f, 0x00, 0xe8, 0xa0, 0x1f, 0x00, 0x82, 0xe7, 0xb0, 0x2a, 0x10, 0x72, 0x65, 0x67, 0x69, 0x73, - 0x74, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x8a, 0xe7, 0xb0, 0x2a, 0x26, - 0x6a, 0x75, 0x6e, 0x6f, 0x2f, 0x78, 0x2f, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2f, 0x4d, - 0x73, 0x67, 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x47, 0x6f, 0x76, 0x65, - 0x72, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x21, 0x0a, 0x1f, 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x72, - 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x47, 0x6f, 0x76, 0x65, 0x72, 0x6e, 0x61, 0x6e, 0x63, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xe7, 0x01, 0x0a, 0x14, 0x4d, 0x73, - 0x67, 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, 0x6b, 0x69, - 0x6e, 0x67, 0x12, 0x43, 0x0a, 0x10, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 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, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, - 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x43, 0x0a, 0x10, 0x72, 0x65, 0x67, 0x69, 0x73, - 0x74, 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, 0x72, 0x65, 0x67, - 0x69, 0x73, 0x74, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x3a, 0x45, 0x88, 0xa0, - 0x1f, 0x00, 0xe8, 0xa0, 0x1f, 0x00, 0x82, 0xe7, 0xb0, 0x2a, 0x10, 0x72, 0x65, 0x67, 0x69, 0x73, - 0x74, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x8a, 0xe7, 0xb0, 0x2a, 0x23, - 0x6a, 0x75, 0x6e, 0x6f, 0x2f, 0x78, 0x2f, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2f, 0x4d, - 0x73, 0x67, 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, 0x6b, - 0x69, 0x6e, 0x67, 0x22, 0x1e, 0x0a, 0x1c, 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, - 0x73, 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x32, 0x9a, 0x04, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x5a, 0x0a, 0x0c, 0x55, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x20, 0x2e, 0x6a, 0x75, - 0x6e, 0x6f, 0x2e, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, - 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x28, 0x2e, - 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2e, 0x76, 0x31, 0x2e, - 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x63, 0x0a, 0x0f, 0x52, 0x65, 0x67, 0x69, 0x73, - 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x12, 0x23, 0x2e, 0x6a, 0x75, 0x6e, - 0x6f, 0x2e, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, - 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x1a, - 0x2b, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2e, 0x76, - 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, - 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x69, 0x0a, 0x11, - 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, 0x6b, 0x69, 0x6e, - 0x67, 0x12, 0x25, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, - 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, - 0x72, 0x53, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x1a, 0x2d, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, - 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x6e, - 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6c, 0x0a, 0x12, 0x52, 0x65, 0x67, 0x69, 0x73, - 0x74, 0x65, 0x72, 0x47, 0x6f, 0x76, 0x65, 0x72, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x26, 0x2e, - 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2e, 0x76, 0x31, 0x2e, - 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x47, 0x6f, 0x76, 0x65, 0x72, - 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x1a, 0x2e, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x63, 0x77, 0x68, - 0x6f, 0x6f, 0x6b, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, - 0x74, 0x65, 0x72, 0x47, 0x6f, 0x76, 0x65, 0x72, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x72, 0x0a, 0x14, 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, - 0x74, 0x65, 0x72, 0x47, 0x6f, 0x76, 0x65, 0x72, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x28, 0x2e, - 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2e, 0x76, 0x31, 0x2e, - 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x47, 0x6f, 0x76, - 0x65, 0x72, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x1a, 0x30, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x63, - 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x72, - 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x47, 0x6f, 0x76, 0x65, 0x72, 0x6e, 0x61, 0x6e, 0x63, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a, 0x01, - 0x42, 0xa8, 0x01, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x63, 0x77, - 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2e, 0x76, 0x31, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, - 0x6f, 0x50, 0x01, 0x5a, 0x2a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, - 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, 0x63, 0x77, 0x68, 0x6f, 0x6f, - 0x6b, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x76, 0x31, 0xa2, - 0x02, 0x03, 0x4a, 0x43, 0x58, 0xaa, 0x02, 0x0f, 0x4a, 0x75, 0x6e, 0x6f, 0x2e, 0x43, 0x77, 0x68, - 0x6f, 0x6f, 0x6b, 0x73, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0f, 0x4a, 0x75, 0x6e, 0x6f, 0x5c, 0x43, - 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1b, 0x4a, 0x75, 0x6e, 0x6f, - 0x5c, 0x43, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x4a, 0x75, 0x6e, 0x6f, 0x3a, 0x3a, - 0x43, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, -} - -var ( - file_juno_cwhooks_v1_tx_proto_rawDescOnce sync.Once - file_juno_cwhooks_v1_tx_proto_rawDescData = file_juno_cwhooks_v1_tx_proto_rawDesc -) - -func file_juno_cwhooks_v1_tx_proto_rawDescGZIP() []byte { - file_juno_cwhooks_v1_tx_proto_rawDescOnce.Do(func() { - file_juno_cwhooks_v1_tx_proto_rawDescData = protoimpl.X.CompressGZIP(file_juno_cwhooks_v1_tx_proto_rawDescData) - }) - return file_juno_cwhooks_v1_tx_proto_rawDescData -} - -var file_juno_cwhooks_v1_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 10) -var file_juno_cwhooks_v1_tx_proto_goTypes = []interface{}{ - (*MsgUpdateParams)(nil), // 0: juno.cwhooks.v1.MsgUpdateParams - (*MsgUpdateParamsResponse)(nil), // 1: juno.cwhooks.v1.MsgUpdateParamsResponse - (*MsgRegisterStaking)(nil), // 2: juno.cwhooks.v1.MsgRegisterStaking - (*MsgRegisterStakingResponse)(nil), // 3: juno.cwhooks.v1.MsgRegisterStakingResponse - (*MsgRegisterGovernance)(nil), // 4: juno.cwhooks.v1.MsgRegisterGovernance - (*MsgRegisterGovernanceResponse)(nil), // 5: juno.cwhooks.v1.MsgRegisterGovernanceResponse - (*MsgUnregisterGovernance)(nil), // 6: juno.cwhooks.v1.MsgUnregisterGovernance - (*MsgUnregisterGovernanceResponse)(nil), // 7: juno.cwhooks.v1.MsgUnregisterGovernanceResponse - (*MsgUnregisterStaking)(nil), // 8: juno.cwhooks.v1.MsgUnregisterStaking - (*MsgUnregisterStakingResponse)(nil), // 9: juno.cwhooks.v1.MsgUnregisterStakingResponse - (*Params)(nil), // 10: juno.cwhooks.v1.Params -} -var file_juno_cwhooks_v1_tx_proto_depIdxs = []int32{ - 10, // 0: juno.cwhooks.v1.MsgUpdateParams.params:type_name -> juno.cwhooks.v1.Params - 0, // 1: juno.cwhooks.v1.Msg.UpdateParams:input_type -> juno.cwhooks.v1.MsgUpdateParams - 2, // 2: juno.cwhooks.v1.Msg.RegisterStaking:input_type -> juno.cwhooks.v1.MsgRegisterStaking - 8, // 3: juno.cwhooks.v1.Msg.UnregisterStaking:input_type -> juno.cwhooks.v1.MsgUnregisterStaking - 4, // 4: juno.cwhooks.v1.Msg.RegisterGovernance:input_type -> juno.cwhooks.v1.MsgRegisterGovernance - 6, // 5: juno.cwhooks.v1.Msg.UnregisterGovernance:input_type -> juno.cwhooks.v1.MsgUnregisterGovernance - 1, // 6: juno.cwhooks.v1.Msg.UpdateParams:output_type -> juno.cwhooks.v1.MsgUpdateParamsResponse - 3, // 7: juno.cwhooks.v1.Msg.RegisterStaking:output_type -> juno.cwhooks.v1.MsgRegisterStakingResponse - 9, // 8: juno.cwhooks.v1.Msg.UnregisterStaking:output_type -> juno.cwhooks.v1.MsgUnregisterStakingResponse - 5, // 9: juno.cwhooks.v1.Msg.RegisterGovernance:output_type -> juno.cwhooks.v1.MsgRegisterGovernanceResponse - 7, // 10: juno.cwhooks.v1.Msg.UnregisterGovernance:output_type -> juno.cwhooks.v1.MsgUnregisterGovernanceResponse - 6, // [6:11] is the sub-list for method output_type - 1, // [1:6] 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_juno_cwhooks_v1_tx_proto_init() } -func file_juno_cwhooks_v1_tx_proto_init() { - if File_juno_cwhooks_v1_tx_proto != nil { - return - } - file_juno_cwhooks_v1_genesis_proto_init() - if !protoimpl.UnsafeEnabled { - file_juno_cwhooks_v1_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_juno_cwhooks_v1_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_juno_cwhooks_v1_tx_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgRegisterStaking); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_juno_cwhooks_v1_tx_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgRegisterStakingResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_juno_cwhooks_v1_tx_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgRegisterGovernance); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_juno_cwhooks_v1_tx_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgRegisterGovernanceResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_juno_cwhooks_v1_tx_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgUnregisterGovernance); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_juno_cwhooks_v1_tx_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgUnregisterGovernanceResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_juno_cwhooks_v1_tx_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgUnregisterStaking); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_juno_cwhooks_v1_tx_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgUnregisterStakingResponse); 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_juno_cwhooks_v1_tx_proto_rawDesc, - NumEnums: 0, - NumMessages: 10, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_juno_cwhooks_v1_tx_proto_goTypes, - DependencyIndexes: file_juno_cwhooks_v1_tx_proto_depIdxs, - MessageInfos: file_juno_cwhooks_v1_tx_proto_msgTypes, - }.Build() - File_juno_cwhooks_v1_tx_proto = out.File - file_juno_cwhooks_v1_tx_proto_rawDesc = nil - file_juno_cwhooks_v1_tx_proto_goTypes = nil - file_juno_cwhooks_v1_tx_proto_depIdxs = nil -} diff --git a/api/juno/cwhooks/v1/tx_grpc.pb.go b/api/juno/cwhooks/v1/tx_grpc.pb.go deleted file mode 100644 index 6def1be77..000000000 --- a/api/juno/cwhooks/v1/tx_grpc.pb.go +++ /dev/null @@ -1,289 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.5.1 -// - protoc (unknown) -// source: juno/cwhooks/v1/tx.proto - -package cwhooksv1 - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.64.0 or later. -const _ = grpc.SupportPackageIsVersion9 - -const ( - Msg_UpdateParams_FullMethodName = "/juno.cwhooks.v1.Msg/UpdateParams" - Msg_RegisterStaking_FullMethodName = "/juno.cwhooks.v1.Msg/RegisterStaking" - Msg_UnregisterStaking_FullMethodName = "/juno.cwhooks.v1.Msg/UnregisterStaking" - Msg_RegisterGovernance_FullMethodName = "/juno.cwhooks.v1.Msg/RegisterGovernance" - Msg_UnregisterGovernance_FullMethodName = "/juno.cwhooks.v1.Msg/UnregisterGovernance" -) - -// MsgClient is the client API for Msg service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -// -// Msg defines the Msg service. -type MsgClient interface { - // UpdateParams defines a governance operation for updating the x/clock module - // parameters. The authority is hard-coded to the x/gov module account. - UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) - // RegisterStaking. - RegisterStaking(ctx context.Context, in *MsgRegisterStaking, opts ...grpc.CallOption) (*MsgRegisterStakingResponse, error) - // UnregisterStaking. - UnregisterStaking(ctx context.Context, in *MsgUnregisterStaking, opts ...grpc.CallOption) (*MsgUnregisterStakingResponse, error) - // RegisterGovernance. - RegisterGovernance(ctx context.Context, in *MsgRegisterGovernance, opts ...grpc.CallOption) (*MsgRegisterGovernanceResponse, error) - // UnregisterGovernance. - UnregisterGovernance(ctx context.Context, in *MsgUnregisterGovernance, opts ...grpc.CallOption) (*MsgUnregisterGovernanceResponse, error) -} - -type msgClient struct { - cc grpc.ClientConnInterface -} - -func NewMsgClient(cc grpc.ClientConnInterface) MsgClient { - return &msgClient{cc} -} - -func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(MsgUpdateParamsResponse) - err := c.cc.Invoke(ctx, Msg_UpdateParams_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) RegisterStaking(ctx context.Context, in *MsgRegisterStaking, opts ...grpc.CallOption) (*MsgRegisterStakingResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(MsgRegisterStakingResponse) - err := c.cc.Invoke(ctx, Msg_RegisterStaking_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) UnregisterStaking(ctx context.Context, in *MsgUnregisterStaking, opts ...grpc.CallOption) (*MsgUnregisterStakingResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(MsgUnregisterStakingResponse) - err := c.cc.Invoke(ctx, Msg_UnregisterStaking_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) RegisterGovernance(ctx context.Context, in *MsgRegisterGovernance, opts ...grpc.CallOption) (*MsgRegisterGovernanceResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(MsgRegisterGovernanceResponse) - err := c.cc.Invoke(ctx, Msg_RegisterGovernance_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) UnregisterGovernance(ctx context.Context, in *MsgUnregisterGovernance, opts ...grpc.CallOption) (*MsgUnregisterGovernanceResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(MsgUnregisterGovernanceResponse) - err := c.cc.Invoke(ctx, Msg_UnregisterGovernance_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -// MsgServer is the server API for Msg service. -// All implementations must embed UnimplementedMsgServer -// for forward compatibility. -// -// Msg defines the Msg service. -type MsgServer interface { - // UpdateParams defines a governance operation for updating the x/clock module - // parameters. The authority is hard-coded to the x/gov module account. - UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) - // RegisterStaking. - RegisterStaking(context.Context, *MsgRegisterStaking) (*MsgRegisterStakingResponse, error) - // UnregisterStaking. - UnregisterStaking(context.Context, *MsgUnregisterStaking) (*MsgUnregisterStakingResponse, error) - // RegisterGovernance. - RegisterGovernance(context.Context, *MsgRegisterGovernance) (*MsgRegisterGovernanceResponse, error) - // UnregisterGovernance. - UnregisterGovernance(context.Context, *MsgUnregisterGovernance) (*MsgUnregisterGovernanceResponse, error) - mustEmbedUnimplementedMsgServer() -} - -// UnimplementedMsgServer must be embedded to have -// forward compatible implementations. -// -// NOTE: this should be embedded by value instead of pointer to avoid a nil -// pointer dereference when methods are called. -type UnimplementedMsgServer struct{} - -func (UnimplementedMsgServer) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateParams not implemented") -} -func (UnimplementedMsgServer) RegisterStaking(context.Context, *MsgRegisterStaking) (*MsgRegisterStakingResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RegisterStaking not implemented") -} -func (UnimplementedMsgServer) UnregisterStaking(context.Context, *MsgUnregisterStaking) (*MsgUnregisterStakingResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UnregisterStaking not implemented") -} -func (UnimplementedMsgServer) RegisterGovernance(context.Context, *MsgRegisterGovernance) (*MsgRegisterGovernanceResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RegisterGovernance not implemented") -} -func (UnimplementedMsgServer) UnregisterGovernance(context.Context, *MsgUnregisterGovernance) (*MsgUnregisterGovernanceResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UnregisterGovernance not implemented") -} -func (UnimplementedMsgServer) mustEmbedUnimplementedMsgServer() {} -func (UnimplementedMsgServer) testEmbeddedByValue() {} - -// UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to MsgServer will -// result in compilation errors. -type UnsafeMsgServer interface { - mustEmbedUnimplementedMsgServer() -} - -func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer) { - // If the following call pancis, it indicates UnimplementedMsgServer was - // embedded by pointer and is nil. This will cause panics if an - // unimplemented method is ever invoked, so we test this at initialization - // time to prevent it from happening at runtime later due to I/O. - if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { - t.testEmbeddedByValue() - } - s.RegisterService(&Msg_ServiceDesc, srv) -} - -func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgUpdateParams) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).UpdateParams(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_UpdateParams_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).UpdateParams(ctx, req.(*MsgUpdateParams)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_RegisterStaking_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgRegisterStaking) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).RegisterStaking(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_RegisterStaking_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).RegisterStaking(ctx, req.(*MsgRegisterStaking)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_UnregisterStaking_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgUnregisterStaking) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).UnregisterStaking(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_UnregisterStaking_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).UnregisterStaking(ctx, req.(*MsgUnregisterStaking)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_RegisterGovernance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgRegisterGovernance) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).RegisterGovernance(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_RegisterGovernance_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).RegisterGovernance(ctx, req.(*MsgRegisterGovernance)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_UnregisterGovernance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgUnregisterGovernance) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).UnregisterGovernance(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_UnregisterGovernance_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).UnregisterGovernance(ctx, req.(*MsgUnregisterGovernance)) - } - return interceptor(ctx, in, info, handler) -} - -// Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var Msg_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "juno.cwhooks.v1.Msg", - HandlerType: (*MsgServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "UpdateParams", - Handler: _Msg_UpdateParams_Handler, - }, - { - MethodName: "RegisterStaking", - Handler: _Msg_RegisterStaking_Handler, - }, - { - MethodName: "UnregisterStaking", - Handler: _Msg_UnregisterStaking_Handler, - }, - { - MethodName: "RegisterGovernance", - Handler: _Msg_RegisterGovernance_Handler, - }, - { - MethodName: "UnregisterGovernance", - Handler: _Msg_UnregisterGovernance_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "juno/cwhooks/v1/tx.proto", -} diff --git a/api/juno/cwhooks/v2/contract.pulsar.go b/api/juno/cwhooks/v2/contract.pulsar.go new file mode 100644 index 000000000..241d0aef0 --- /dev/null +++ b/api/juno/cwhooks/v2/contract.pulsar.go @@ -0,0 +1,709 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package cwhooksv2 + +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_ContractInfo protoreflect.MessageDescriptor + fd_ContractInfo_contract_address protoreflect.FieldDescriptor + fd_ContractInfo_failure_counter protoreflect.FieldDescriptor + fd_ContractInfo_latest_error protoreflect.FieldDescriptor +) + +func init() { + file_juno_cwhooks_v2_contract_proto_init() + md_ContractInfo = File_juno_cwhooks_v2_contract_proto.Messages().ByName("ContractInfo") + fd_ContractInfo_contract_address = md_ContractInfo.Fields().ByName("contract_address") + fd_ContractInfo_failure_counter = md_ContractInfo.Fields().ByName("failure_counter") + fd_ContractInfo_latest_error = md_ContractInfo.Fields().ByName("latest_error") +} + +var _ protoreflect.Message = (*fastReflection_ContractInfo)(nil) + +type fastReflection_ContractInfo ContractInfo + +func (x *ContractInfo) ProtoReflect() protoreflect.Message { + return (*fastReflection_ContractInfo)(x) +} + +func (x *ContractInfo) slowProtoReflect() protoreflect.Message { + mi := &file_juno_cwhooks_v2_contract_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_ContractInfo_messageType fastReflection_ContractInfo_messageType +var _ protoreflect.MessageType = fastReflection_ContractInfo_messageType{} + +type fastReflection_ContractInfo_messageType struct{} + +func (x fastReflection_ContractInfo_messageType) Zero() protoreflect.Message { + return (*fastReflection_ContractInfo)(nil) +} +func (x fastReflection_ContractInfo_messageType) New() protoreflect.Message { + return new(fastReflection_ContractInfo) +} +func (x fastReflection_ContractInfo_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_ContractInfo +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_ContractInfo) Descriptor() protoreflect.MessageDescriptor { + return md_ContractInfo +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_ContractInfo) Type() protoreflect.MessageType { + return _fastReflection_ContractInfo_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_ContractInfo) New() protoreflect.Message { + return new(fastReflection_ContractInfo) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_ContractInfo) Interface() protoreflect.ProtoMessage { + return (*ContractInfo)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_ContractInfo) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.ContractAddress != "" { + value := protoreflect.ValueOfString(x.ContractAddress) + if !f(fd_ContractInfo_contract_address, value) { + return + } + } + if x.FailureCounter != uint32(0) { + value := protoreflect.ValueOfUint32(x.FailureCounter) + if !f(fd_ContractInfo_failure_counter, value) { + return + } + } + if x.LatestError != "" { + value := protoreflect.ValueOfString(x.LatestError) + if !f(fd_ContractInfo_latest_error, 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_ContractInfo) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "juno.cwhooks.v2.ContractInfo.contract_address": + return x.ContractAddress != "" + case "juno.cwhooks.v2.ContractInfo.failure_counter": + return x.FailureCounter != uint32(0) + case "juno.cwhooks.v2.ContractInfo.latest_error": + return x.LatestError != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.ContractInfo")) + } + panic(fmt.Errorf("message juno.cwhooks.v2.ContractInfo does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_ContractInfo) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "juno.cwhooks.v2.ContractInfo.contract_address": + x.ContractAddress = "" + case "juno.cwhooks.v2.ContractInfo.failure_counter": + x.FailureCounter = uint32(0) + case "juno.cwhooks.v2.ContractInfo.latest_error": + x.LatestError = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.ContractInfo")) + } + panic(fmt.Errorf("message juno.cwhooks.v2.ContractInfo does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_ContractInfo) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "juno.cwhooks.v2.ContractInfo.contract_address": + value := x.ContractAddress + return protoreflect.ValueOfString(value) + case "juno.cwhooks.v2.ContractInfo.failure_counter": + value := x.FailureCounter + return protoreflect.ValueOfUint32(value) + case "juno.cwhooks.v2.ContractInfo.latest_error": + value := x.LatestError + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.ContractInfo")) + } + panic(fmt.Errorf("message juno.cwhooks.v2.ContractInfo does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_ContractInfo) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "juno.cwhooks.v2.ContractInfo.contract_address": + x.ContractAddress = value.Interface().(string) + case "juno.cwhooks.v2.ContractInfo.failure_counter": + x.FailureCounter = uint32(value.Uint()) + case "juno.cwhooks.v2.ContractInfo.latest_error": + x.LatestError = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.ContractInfo")) + } + panic(fmt.Errorf("message juno.cwhooks.v2.ContractInfo does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_ContractInfo) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "juno.cwhooks.v2.ContractInfo.contract_address": + panic(fmt.Errorf("field contract_address of message juno.cwhooks.v2.ContractInfo is not mutable")) + case "juno.cwhooks.v2.ContractInfo.failure_counter": + panic(fmt.Errorf("field failure_counter of message juno.cwhooks.v2.ContractInfo is not mutable")) + case "juno.cwhooks.v2.ContractInfo.latest_error": + panic(fmt.Errorf("field latest_error of message juno.cwhooks.v2.ContractInfo is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.ContractInfo")) + } + panic(fmt.Errorf("message juno.cwhooks.v2.ContractInfo does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_ContractInfo) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "juno.cwhooks.v2.ContractInfo.contract_address": + return protoreflect.ValueOfString("") + case "juno.cwhooks.v2.ContractInfo.failure_counter": + return protoreflect.ValueOfUint32(uint32(0)) + case "juno.cwhooks.v2.ContractInfo.latest_error": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.ContractInfo")) + } + panic(fmt.Errorf("message juno.cwhooks.v2.ContractInfo does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_ContractInfo) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in juno.cwhooks.v2.ContractInfo", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_ContractInfo) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_ContractInfo) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_ContractInfo) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_ContractInfo) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*ContractInfo) + 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.ContractAddress) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.FailureCounter != 0 { + n += 1 + runtime.Sov(uint64(x.FailureCounter)) + } + l = len(x.LatestError) + 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().(*ContractInfo) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]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.LatestError) > 0 { + i -= len(x.LatestError) + copy(dAtA[i:], x.LatestError) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.LatestError))) + i-- + dAtA[i] = 0x1a + } + if x.FailureCounter != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.FailureCounter)) + i-- + dAtA[i] = 0x10 + } + if len(x.ContractAddress) > 0 { + i -= len(x.ContractAddress) + copy(dAtA[i:], x.ContractAddress) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ContractAddress))) + 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().(*ContractInfo) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ContractInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ContractInfo: 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 ContractAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.ContractAddress = 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 FailureCounter", wireType) + } + x.FailureCounter = 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.FailureCounter |= uint32(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 LatestError", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.LatestError = 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: juno/cwhooks/v2/contract.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) +) + +// ContractInfo defines the registered contract address and the address used for registering the contract. +type ContractInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ContractAddress string `protobuf:"bytes,1,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"` + FailureCounter uint32 `protobuf:"varint,2,opt,name=failure_counter,json=failureCounter,proto3" json:"failure_counter,omitempty"` + LatestError string `protobuf:"bytes,3,opt,name=latest_error,json=latestError,proto3" json:"latest_error,omitempty"` +} + +func (x *ContractInfo) Reset() { + *x = ContractInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_juno_cwhooks_v2_contract_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ContractInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ContractInfo) ProtoMessage() {} + +// Deprecated: Use ContractInfo.ProtoReflect.Descriptor instead. +func (*ContractInfo) Descriptor() ([]byte, []int) { + return file_juno_cwhooks_v2_contract_proto_rawDescGZIP(), []int{0} +} + +func (x *ContractInfo) GetContractAddress() string { + if x != nil { + return x.ContractAddress + } + return "" +} + +func (x *ContractInfo) GetFailureCounter() uint32 { + if x != nil { + return x.FailureCounter + } + return 0 +} + +func (x *ContractInfo) GetLatestError() string { + if x != nil { + return x.LatestError + } + return "" +} + +var File_juno_cwhooks_v2_contract_proto protoreflect.FileDescriptor + +var file_juno_cwhooks_v2_contract_proto_rawDesc = []byte{ + 0x0a, 0x1e, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2f, 0x76, + 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x12, 0x0f, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2e, 0x76, + 0x32, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, + 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x22, 0xa5, 0x01, 0x0a, 0x0c, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, + 0x6e, 0x66, 0x6f, 0x12, 0x43, 0x0a, 0x10, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 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, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, + 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x66, 0x61, 0x69, 0x6c, + 0x75, 0x72, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0d, 0x52, 0x0e, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x65, + 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x65, 0x72, 0x72, 0x6f, + 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x45, + 0x72, 0x72, 0x6f, 0x72, 0x3a, 0x04, 0xe8, 0xa0, 0x1f, 0x01, 0x42, 0xae, 0x01, 0x0a, 0x13, 0x63, + 0x6f, 0x6d, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2e, + 0x76, 0x32, 0x42, 0x0d, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x50, 0x72, 0x6f, 0x74, + 0x6f, 0x50, 0x01, 0x5a, 0x2a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, + 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, 0x63, 0x77, 0x68, 0x6f, 0x6f, + 0x6b, 0x73, 0x2f, 0x76, 0x32, 0x3b, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x76, 0x32, 0xa2, + 0x02, 0x03, 0x4a, 0x43, 0x58, 0xaa, 0x02, 0x0f, 0x4a, 0x75, 0x6e, 0x6f, 0x2e, 0x43, 0x77, 0x68, + 0x6f, 0x6f, 0x6b, 0x73, 0x2e, 0x56, 0x32, 0xca, 0x02, 0x0f, 0x4a, 0x75, 0x6e, 0x6f, 0x5c, 0x43, + 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x5c, 0x56, 0x32, 0xe2, 0x02, 0x1b, 0x4a, 0x75, 0x6e, 0x6f, + 0x5c, 0x43, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x5c, 0x56, 0x32, 0x5c, 0x47, 0x50, 0x42, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x4a, 0x75, 0x6e, 0x6f, 0x3a, 0x3a, + 0x43, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, +} + +var ( + file_juno_cwhooks_v2_contract_proto_rawDescOnce sync.Once + file_juno_cwhooks_v2_contract_proto_rawDescData = file_juno_cwhooks_v2_contract_proto_rawDesc +) + +func file_juno_cwhooks_v2_contract_proto_rawDescGZIP() []byte { + file_juno_cwhooks_v2_contract_proto_rawDescOnce.Do(func() { + file_juno_cwhooks_v2_contract_proto_rawDescData = protoimpl.X.CompressGZIP(file_juno_cwhooks_v2_contract_proto_rawDescData) + }) + return file_juno_cwhooks_v2_contract_proto_rawDescData +} + +var file_juno_cwhooks_v2_contract_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_juno_cwhooks_v2_contract_proto_goTypes = []interface{}{ + (*ContractInfo)(nil), // 0: juno.cwhooks.v2.ContractInfo +} +var file_juno_cwhooks_v2_contract_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_juno_cwhooks_v2_contract_proto_init() } +func file_juno_cwhooks_v2_contract_proto_init() { + if File_juno_cwhooks_v2_contract_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_juno_cwhooks_v2_contract_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ContractInfo); 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_juno_cwhooks_v2_contract_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_juno_cwhooks_v2_contract_proto_goTypes, + DependencyIndexes: file_juno_cwhooks_v2_contract_proto_depIdxs, + MessageInfos: file_juno_cwhooks_v2_contract_proto_msgTypes, + }.Build() + File_juno_cwhooks_v2_contract_proto = out.File + file_juno_cwhooks_v2_contract_proto_rawDesc = nil + file_juno_cwhooks_v2_contract_proto_goTypes = nil + file_juno_cwhooks_v2_contract_proto_depIdxs = nil +} diff --git a/api/juno/cwhooks/v1/genesis.pulsar.go b/api/juno/cwhooks/v2/genesis.pulsar.go similarity index 70% rename from api/juno/cwhooks/v1/genesis.pulsar.go rename to api/juno/cwhooks/v2/genesis.pulsar.go index 19fa3cd72..5e53c14df 100644 --- a/api/juno/cwhooks/v1/genesis.pulsar.go +++ b/api/juno/cwhooks/v2/genesis.pulsar.go @@ -1,10 +1,9 @@ // Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package cwhooksv1 +package cwhooksv2 import ( _ "cosmossdk.io/api/amino" fmt "fmt" - _ "github.com/cosmos/cosmos-proto" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" @@ -18,7 +17,7 @@ import ( var _ protoreflect.List = (*_GenesisState_2_list)(nil) type _GenesisState_2_list struct { - list *[]string + list *[]*ContractInfo } func (x *_GenesisState_2_list) Len() int { @@ -29,32 +28,37 @@ func (x *_GenesisState_2_list) Len() int { } func (x *_GenesisState_2_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfString((*x.list)[i]) + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } func (x *_GenesisState_2_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*ContractInfo) (*x.list)[i] = concreteValue } func (x *_GenesisState_2_list) Append(value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*ContractInfo) *x.list = append(*x.list, concreteValue) } func (x *_GenesisState_2_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message GenesisState at list field StakingContractAddresses as it is not of Message kind")) + v := new(ContractInfo) + *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 := "" - return protoreflect.ValueOfString(v) + v := new(ContractInfo) + return protoreflect.ValueOfMessage(v.ProtoReflect()) } func (x *_GenesisState_2_list) IsValid() bool { @@ -64,7 +68,7 @@ func (x *_GenesisState_2_list) IsValid() bool { var _ protoreflect.List = (*_GenesisState_3_list)(nil) type _GenesisState_3_list struct { - list *[]string + list *[]*ContractInfo } func (x *_GenesisState_3_list) Len() int { @@ -75,32 +79,37 @@ func (x *_GenesisState_3_list) Len() int { } func (x *_GenesisState_3_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfString((*x.list)[i]) + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } func (x *_GenesisState_3_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*ContractInfo) (*x.list)[i] = concreteValue } func (x *_GenesisState_3_list) Append(value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*ContractInfo) *x.list = append(*x.list, concreteValue) } func (x *_GenesisState_3_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message GenesisState at list field GovContractAddresses as it is not of Message kind")) + v := new(ContractInfo) + *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 := "" - return protoreflect.ValueOfString(v) + v := new(ContractInfo) + return protoreflect.ValueOfMessage(v.ProtoReflect()) } func (x *_GenesisState_3_list) IsValid() bool { @@ -115,8 +124,8 @@ var ( ) func init() { - file_juno_cwhooks_v1_genesis_proto_init() - md_GenesisState = File_juno_cwhooks_v1_genesis_proto.Messages().ByName("GenesisState") + file_juno_cwhooks_v2_genesis_proto_init() + md_GenesisState = File_juno_cwhooks_v2_genesis_proto.Messages().ByName("GenesisState") fd_GenesisState_params = md_GenesisState.Fields().ByName("params") fd_GenesisState_staking_contract_addresses = md_GenesisState.Fields().ByName("staking_contract_addresses") fd_GenesisState_gov_contract_addresses = md_GenesisState.Fields().ByName("gov_contract_addresses") @@ -131,7 +140,7 @@ func (x *GenesisState) ProtoReflect() protoreflect.Message { } func (x *GenesisState) slowProtoReflect() protoreflect.Message { - mi := &file_juno_cwhooks_v1_genesis_proto_msgTypes[0] + mi := &file_juno_cwhooks_v2_genesis_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -220,17 +229,17 @@ func (x *fastReflection_GenesisState) Range(f func(protoreflect.FieldDescriptor, // a repeated field is populated if it is non-empty. func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "juno.cwhooks.v1.GenesisState.params": + case "juno.cwhooks.v2.GenesisState.params": return x.Params != nil - case "juno.cwhooks.v1.GenesisState.staking_contract_addresses": + case "juno.cwhooks.v2.GenesisState.staking_contract_addresses": return len(x.StakingContractAddresses) != 0 - case "juno.cwhooks.v1.GenesisState.gov_contract_addresses": + case "juno.cwhooks.v2.GenesisState.gov_contract_addresses": return len(x.GovContractAddresses) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.GenesisState")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.GenesisState")) } - panic(fmt.Errorf("message juno.cwhooks.v1.GenesisState does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.cwhooks.v2.GenesisState does not contain field %s", fd.FullName())) } } @@ -242,17 +251,17 @@ func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_GenesisState) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "juno.cwhooks.v1.GenesisState.params": + case "juno.cwhooks.v2.GenesisState.params": x.Params = nil - case "juno.cwhooks.v1.GenesisState.staking_contract_addresses": + case "juno.cwhooks.v2.GenesisState.staking_contract_addresses": x.StakingContractAddresses = nil - case "juno.cwhooks.v1.GenesisState.gov_contract_addresses": + case "juno.cwhooks.v2.GenesisState.gov_contract_addresses": x.GovContractAddresses = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.GenesisState")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.GenesisState")) } - panic(fmt.Errorf("message juno.cwhooks.v1.GenesisState does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.cwhooks.v2.GenesisState does not contain field %s", fd.FullName())) } } @@ -264,16 +273,16 @@ func (x *fastReflection_GenesisState) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "juno.cwhooks.v1.GenesisState.params": + case "juno.cwhooks.v2.GenesisState.params": value := x.Params return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "juno.cwhooks.v1.GenesisState.staking_contract_addresses": + case "juno.cwhooks.v2.GenesisState.staking_contract_addresses": if len(x.StakingContractAddresses) == 0 { return protoreflect.ValueOfList(&_GenesisState_2_list{}) } listValue := &_GenesisState_2_list{list: &x.StakingContractAddresses} return protoreflect.ValueOfList(listValue) - case "juno.cwhooks.v1.GenesisState.gov_contract_addresses": + case "juno.cwhooks.v2.GenesisState.gov_contract_addresses": if len(x.GovContractAddresses) == 0 { return protoreflect.ValueOfList(&_GenesisState_3_list{}) } @@ -281,9 +290,9 @@ func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescripto return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.GenesisState")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.GenesisState")) } - panic(fmt.Errorf("message juno.cwhooks.v1.GenesisState does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message juno.cwhooks.v2.GenesisState does not contain field %s", descriptor.FullName())) } } @@ -299,21 +308,21 @@ func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescripto // 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 "juno.cwhooks.v1.GenesisState.params": + case "juno.cwhooks.v2.GenesisState.params": x.Params = value.Message().Interface().(*Params) - case "juno.cwhooks.v1.GenesisState.staking_contract_addresses": + case "juno.cwhooks.v2.GenesisState.staking_contract_addresses": lv := value.List() clv := lv.(*_GenesisState_2_list) x.StakingContractAddresses = *clv.list - case "juno.cwhooks.v1.GenesisState.gov_contract_addresses": + case "juno.cwhooks.v2.GenesisState.gov_contract_addresses": lv := value.List() clv := lv.(*_GenesisState_3_list) x.GovContractAddresses = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.GenesisState")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.GenesisState")) } - panic(fmt.Errorf("message juno.cwhooks.v1.GenesisState does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.cwhooks.v2.GenesisState does not contain field %s", fd.FullName())) } } @@ -329,28 +338,28 @@ func (x *fastReflection_GenesisState) Set(fd protoreflect.FieldDescriptor, value // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "juno.cwhooks.v1.GenesisState.params": + case "juno.cwhooks.v2.GenesisState.params": if x.Params == nil { x.Params = new(Params) } return protoreflect.ValueOfMessage(x.Params.ProtoReflect()) - case "juno.cwhooks.v1.GenesisState.staking_contract_addresses": + case "juno.cwhooks.v2.GenesisState.staking_contract_addresses": if x.StakingContractAddresses == nil { - x.StakingContractAddresses = []string{} + x.StakingContractAddresses = []*ContractInfo{} } value := &_GenesisState_2_list{list: &x.StakingContractAddresses} return protoreflect.ValueOfList(value) - case "juno.cwhooks.v1.GenesisState.gov_contract_addresses": + case "juno.cwhooks.v2.GenesisState.gov_contract_addresses": if x.GovContractAddresses == nil { - x.GovContractAddresses = []string{} + x.GovContractAddresses = []*ContractInfo{} } value := &_GenesisState_3_list{list: &x.GovContractAddresses} return protoreflect.ValueOfList(value) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.GenesisState")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.GenesisState")) } - panic(fmt.Errorf("message juno.cwhooks.v1.GenesisState does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.cwhooks.v2.GenesisState does not contain field %s", fd.FullName())) } } @@ -359,20 +368,20 @@ func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) p // 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 "juno.cwhooks.v1.GenesisState.params": + case "juno.cwhooks.v2.GenesisState.params": m := new(Params) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "juno.cwhooks.v1.GenesisState.staking_contract_addresses": - list := []string{} + case "juno.cwhooks.v2.GenesisState.staking_contract_addresses": + list := []*ContractInfo{} return protoreflect.ValueOfList(&_GenesisState_2_list{list: &list}) - case "juno.cwhooks.v1.GenesisState.gov_contract_addresses": - list := []string{} + case "juno.cwhooks.v2.GenesisState.gov_contract_addresses": + list := []*ContractInfo{} return protoreflect.ValueOfList(&_GenesisState_3_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.GenesisState")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.GenesisState")) } - panic(fmt.Errorf("message juno.cwhooks.v1.GenesisState does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.cwhooks.v2.GenesisState does not contain field %s", fd.FullName())) } } @@ -382,7 +391,7 @@ func (x *fastReflection_GenesisState) NewField(fd protoreflect.FieldDescriptor) func (x *fastReflection_GenesisState) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in juno.cwhooks.v1.GenesisState", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in juno.cwhooks.v2.GenesisState", d.FullName())) } panic("unreachable") } @@ -442,14 +451,14 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { n += 1 + l + runtime.Sov(uint64(l)) } if len(x.StakingContractAddresses) > 0 { - for _, s := range x.StakingContractAddresses { - l = len(s) + for _, e := range x.StakingContractAddresses { + l = options.Size(e) n += 1 + l + runtime.Sov(uint64(l)) } } if len(x.GovContractAddresses) > 0 { - for _, s := range x.GovContractAddresses { - l = len(s) + for _, e := range x.GovContractAddresses { + l = options.Size(e) n += 1 + l + runtime.Sov(uint64(l)) } } @@ -484,18 +493,32 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { } if len(x.GovContractAddresses) > 0 { for iNdEx := len(x.GovContractAddresses) - 1; iNdEx >= 0; iNdEx-- { - i -= len(x.GovContractAddresses[iNdEx]) - copy(dAtA[i:], x.GovContractAddresses[iNdEx]) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.GovContractAddresses[iNdEx]))) + encoded, err := options.Marshal(x.GovContractAddresses[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.StakingContractAddresses) > 0 { for iNdEx := len(x.StakingContractAddresses) - 1; iNdEx >= 0; iNdEx-- { - i -= len(x.StakingContractAddresses[iNdEx]) - copy(dAtA[i:], x.StakingContractAddresses[iNdEx]) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.StakingContractAddresses[iNdEx]))) + encoded, err := options.Marshal(x.StakingContractAddresses[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 } @@ -603,7 +626,7 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field StakingContractAddresses", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -613,29 +636,31 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.StakingContractAddresses = append(x.StakingContractAddresses, string(dAtA[iNdEx:postIndex])) + x.StakingContractAddresses = append(x.StakingContractAddresses, &ContractInfo{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.StakingContractAddresses[len(x.StakingContractAddresses)-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 GovContractAddresses", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -645,23 +670,25 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.GovContractAddresses = append(x.GovContractAddresses, string(dAtA[iNdEx:postIndex])) + x.GovContractAddresses = append(x.GovContractAddresses, &ContractInfo{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.GovContractAddresses[len(x.GovContractAddresses)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } iNdEx = postIndex default: iNdEx = preIndex @@ -699,14 +726,16 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { } var ( - md_Params protoreflect.MessageDescriptor - fd_Params_contract_gas_limit protoreflect.FieldDescriptor + md_Params protoreflect.MessageDescriptor + fd_Params_contract_gas_limit protoreflect.FieldDescriptor + fd_Params_contract_failure_removal_threshold protoreflect.FieldDescriptor ) func init() { - file_juno_cwhooks_v1_genesis_proto_init() - md_Params = File_juno_cwhooks_v1_genesis_proto.Messages().ByName("Params") + file_juno_cwhooks_v2_genesis_proto_init() + md_Params = File_juno_cwhooks_v2_genesis_proto.Messages().ByName("Params") fd_Params_contract_gas_limit = md_Params.Fields().ByName("contract_gas_limit") + fd_Params_contract_failure_removal_threshold = md_Params.Fields().ByName("contract_failure_removal_threshold") } var _ protoreflect.Message = (*fastReflection_Params)(nil) @@ -718,7 +747,7 @@ func (x *Params) ProtoReflect() protoreflect.Message { } func (x *Params) slowProtoReflect() protoreflect.Message { - mi := &file_juno_cwhooks_v1_genesis_proto_msgTypes[1] + mi := &file_juno_cwhooks_v2_genesis_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -780,6 +809,12 @@ func (x *fastReflection_Params) Range(f func(protoreflect.FieldDescriptor, proto return } } + if x.ContractFailureRemovalThreshold != uint64(0) { + value := protoreflect.ValueOfUint64(x.ContractFailureRemovalThreshold) + if !f(fd_Params_contract_failure_removal_threshold, value) { + return + } + } } // Has reports whether a field is populated. @@ -795,13 +830,15 @@ func (x *fastReflection_Params) Range(f func(protoreflect.FieldDescriptor, proto // a repeated field is populated if it is non-empty. func (x *fastReflection_Params) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "juno.cwhooks.v1.Params.contract_gas_limit": + case "juno.cwhooks.v2.Params.contract_gas_limit": return x.ContractGasLimit != uint64(0) + case "juno.cwhooks.v2.Params.contract_failure_removal_threshold": + return x.ContractFailureRemovalThreshold != uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.Params")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.Params")) } - panic(fmt.Errorf("message juno.cwhooks.v1.Params does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.cwhooks.v2.Params does not contain field %s", fd.FullName())) } } @@ -813,13 +850,15 @@ func (x *fastReflection_Params) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Params) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "juno.cwhooks.v1.Params.contract_gas_limit": + case "juno.cwhooks.v2.Params.contract_gas_limit": x.ContractGasLimit = uint64(0) + case "juno.cwhooks.v2.Params.contract_failure_removal_threshold": + x.ContractFailureRemovalThreshold = uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.Params")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.Params")) } - panic(fmt.Errorf("message juno.cwhooks.v1.Params does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.cwhooks.v2.Params does not contain field %s", fd.FullName())) } } @@ -831,14 +870,17 @@ func (x *fastReflection_Params) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_Params) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "juno.cwhooks.v1.Params.contract_gas_limit": + case "juno.cwhooks.v2.Params.contract_gas_limit": value := x.ContractGasLimit return protoreflect.ValueOfUint64(value) + case "juno.cwhooks.v2.Params.contract_failure_removal_threshold": + value := x.ContractFailureRemovalThreshold + return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.Params")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.Params")) } - panic(fmt.Errorf("message juno.cwhooks.v1.Params does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message juno.cwhooks.v2.Params does not contain field %s", descriptor.FullName())) } } @@ -854,13 +896,15 @@ func (x *fastReflection_Params) Get(descriptor protoreflect.FieldDescriptor) pro // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Params) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "juno.cwhooks.v1.Params.contract_gas_limit": + case "juno.cwhooks.v2.Params.contract_gas_limit": x.ContractGasLimit = value.Uint() + case "juno.cwhooks.v2.Params.contract_failure_removal_threshold": + x.ContractFailureRemovalThreshold = value.Uint() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.Params")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.Params")) } - panic(fmt.Errorf("message juno.cwhooks.v1.Params does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.cwhooks.v2.Params does not contain field %s", fd.FullName())) } } @@ -876,13 +920,15 @@ func (x *fastReflection_Params) Set(fd protoreflect.FieldDescriptor, value proto // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Params) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "juno.cwhooks.v1.Params.contract_gas_limit": - panic(fmt.Errorf("field contract_gas_limit of message juno.cwhooks.v1.Params is not mutable")) + case "juno.cwhooks.v2.Params.contract_gas_limit": + panic(fmt.Errorf("field contract_gas_limit of message juno.cwhooks.v2.Params is not mutable")) + case "juno.cwhooks.v2.Params.contract_failure_removal_threshold": + panic(fmt.Errorf("field contract_failure_removal_threshold of message juno.cwhooks.v2.Params is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.Params")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.Params")) } - panic(fmt.Errorf("message juno.cwhooks.v1.Params does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.cwhooks.v2.Params does not contain field %s", fd.FullName())) } } @@ -891,13 +937,15 @@ func (x *fastReflection_Params) Mutable(fd protoreflect.FieldDescriptor) protore // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_Params) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "juno.cwhooks.v1.Params.contract_gas_limit": + case "juno.cwhooks.v2.Params.contract_gas_limit": + return protoreflect.ValueOfUint64(uint64(0)) + case "juno.cwhooks.v2.Params.contract_failure_removal_threshold": return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.Params")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.Params")) } - panic(fmt.Errorf("message juno.cwhooks.v1.Params does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.cwhooks.v2.Params does not contain field %s", fd.FullName())) } } @@ -907,7 +955,7 @@ func (x *fastReflection_Params) NewField(fd protoreflect.FieldDescriptor) protor func (x *fastReflection_Params) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in juno.cwhooks.v1.Params", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in juno.cwhooks.v2.Params", d.FullName())) } panic("unreachable") } @@ -965,6 +1013,9 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { if x.ContractGasLimit != 0 { n += 1 + runtime.Sov(uint64(x.ContractGasLimit)) } + if x.ContractFailureRemovalThreshold != 0 { + n += 1 + runtime.Sov(uint64(x.ContractFailureRemovalThreshold)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -994,6 +1045,11 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if x.ContractFailureRemovalThreshold != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.ContractFailureRemovalThreshold)) + i-- + dAtA[i] = 0x10 + } if x.ContractGasLimit != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.ContractGasLimit)) i-- @@ -1067,6 +1123,25 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { break } } + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ContractFailureRemovalThreshold", wireType) + } + x.ContractFailureRemovalThreshold = 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.ContractFailureRemovalThreshold |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -1106,7 +1181,7 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { // versions: // protoc-gen-go v1.27.0 // protoc (unknown) -// source: juno/cwhooks/v1/genesis.proto +// source: juno/cwhooks/v2/genesis.proto const ( // Verify that this generated code is sufficiently up-to-date. @@ -1124,15 +1199,15 @@ type GenesisState struct { // Params of this module Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` // staking_contract_addresses - StakingContractAddresses []string `protobuf:"bytes,2,rep,name=staking_contract_addresses,json=stakingContractAddresses,proto3" json:"staking_contract_addresses,omitempty"` + StakingContractAddresses []*ContractInfo `protobuf:"bytes,2,rep,name=staking_contract_addresses,json=stakingContractAddresses,proto3" json:"staking_contract_addresses,omitempty"` // gov_contract_addresses - GovContractAddresses []string `protobuf:"bytes,3,rep,name=gov_contract_addresses,json=govContractAddresses,proto3" json:"gov_contract_addresses,omitempty"` + GovContractAddresses []*ContractInfo `protobuf:"bytes,3,rep,name=gov_contract_addresses,json=govContractAddresses,proto3" json:"gov_contract_addresses,omitempty"` } func (x *GenesisState) Reset() { *x = GenesisState{} if protoimpl.UnsafeEnabled { - mi := &file_juno_cwhooks_v1_genesis_proto_msgTypes[0] + mi := &file_juno_cwhooks_v2_genesis_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1146,7 +1221,7 @@ func (*GenesisState) ProtoMessage() {} // Deprecated: Use GenesisState.ProtoReflect.Descriptor instead. func (*GenesisState) Descriptor() ([]byte, []int) { - return file_juno_cwhooks_v1_genesis_proto_rawDescGZIP(), []int{0} + return file_juno_cwhooks_v2_genesis_proto_rawDescGZIP(), []int{0} } func (x *GenesisState) GetParams() *Params { @@ -1156,14 +1231,14 @@ func (x *GenesisState) GetParams() *Params { return nil } -func (x *GenesisState) GetStakingContractAddresses() []string { +func (x *GenesisState) GetStakingContractAddresses() []*ContractInfo { if x != nil { return x.StakingContractAddresses } return nil } -func (x *GenesisState) GetGovContractAddresses() []string { +func (x *GenesisState) GetGovContractAddresses() []*ContractInfo { if x != nil { return x.GovContractAddresses } @@ -1178,12 +1253,14 @@ type Params struct { // contract_gas_limit is the contract call gas limit ContractGasLimit uint64 `protobuf:"varint,1,opt,name=contract_gas_limit,json=contractGasLimit,proto3" json:"contract_gas_limit,omitempty"` + // contract_failure_removal_threshold is the threshold for removing a contract after consecutive failures + ContractFailureRemovalThreshold uint64 `protobuf:"varint,2,opt,name=contract_failure_removal_threshold,json=contractFailureRemovalThreshold,proto3" json:"contract_failure_removal_threshold,omitempty"` } func (x *Params) Reset() { *x = Params{} if protoimpl.UnsafeEnabled { - mi := &file_juno_cwhooks_v1_genesis_proto_msgTypes[1] + mi := &file_juno_cwhooks_v2_genesis_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1197,7 +1274,7 @@ func (*Params) ProtoMessage() {} // Deprecated: Use Params.ProtoReflect.Descriptor instead. func (*Params) Descriptor() ([]byte, []int) { - return file_juno_cwhooks_v1_genesis_proto_rawDescGZIP(), []int{1} + return file_juno_cwhooks_v2_genesis_proto_rawDescGZIP(), []int{1} } func (x *Params) GetContractGasLimit() uint64 { @@ -1207,82 +1284,101 @@ func (x *Params) GetContractGasLimit() uint64 { return 0 } -var File_juno_cwhooks_v1_genesis_proto protoreflect.FileDescriptor +func (x *Params) GetContractFailureRemovalThreshold() uint64 { + if x != nil { + return x.ContractFailureRemovalThreshold + } + return 0 +} + +var File_juno_cwhooks_v2_genesis_proto protoreflect.FileDescriptor -var file_juno_cwhooks_v1_genesis_proto_rawDesc = []byte{ +var file_juno_cwhooks_v2_genesis_proto_rawDesc = []byte{ 0x0a, 0x1d, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2f, 0x76, - 0x31, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, - 0x0f, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2e, 0x76, 0x31, + 0x32, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x0f, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2e, 0x76, 0x32, 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, 0x22, 0xf2, 0x01, 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, - 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3a, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x63, 0x77, 0x68, - 0x6f, 0x6f, 0x6b, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x09, - 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, - 0x73, 0x12, 0x56, 0x0a, 0x1a, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x63, 0x6f, 0x6e, - 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x18, - 0x02, 0x20, 0x03, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, - 0x18, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, - 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x12, 0x4e, 0x0a, 0x16, 0x67, 0x6f, 0x76, - 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, - 0x69, 0x6e, 0x67, 0x52, 0x14, 0x67, 0x6f, 0x76, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, - 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x22, 0x3c, 0x0a, 0x06, 0x50, 0x61, 0x72, - 0x61, 0x6d, 0x73, 0x12, 0x2c, 0x0a, 0x12, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, - 0x67, 0x61, 0x73, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x10, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x47, 0x61, 0x73, 0x4c, 0x69, 0x6d, 0x69, - 0x74, 0x3a, 0x04, 0xe8, 0xa0, 0x1f, 0x01, 0x42, 0xad, 0x01, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, - 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2e, 0x76, 0x31, 0x42, - 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, - 0x2a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, - 0x69, 0x2f, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2f, 0x76, - 0x31, 0x3b, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4a, 0x43, - 0x58, 0xaa, 0x02, 0x0f, 0x4a, 0x75, 0x6e, 0x6f, 0x2e, 0x43, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, - 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0f, 0x4a, 0x75, 0x6e, 0x6f, 0x5c, 0x43, 0x77, 0x68, 0x6f, 0x6f, - 0x6b, 0x73, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1b, 0x4a, 0x75, 0x6e, 0x6f, 0x5c, 0x43, 0x77, 0x68, - 0x6f, 0x6f, 0x6b, 0x73, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x4a, 0x75, 0x6e, 0x6f, 0x3a, 0x3a, 0x43, 0x77, 0x68, 0x6f, - 0x6f, 0x6b, 0x73, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 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, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, + 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, + 0x61, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x92, 0x02, 0x0a, 0x0c, 0x47, 0x65, + 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3a, 0x0a, 0x06, 0x70, 0x61, + 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x6a, 0x75, 0x6e, + 0x6f, 0x2e, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x50, 0x61, 0x72, + 0x61, 0x6d, 0x73, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, + 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x66, 0x0a, 0x1a, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, + 0x67, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x6a, 0x75, 0x6e, + 0x6f, 0x2e, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x6f, 0x6e, + 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, + 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x18, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, + 0x74, 0x72, 0x61, 0x63, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x12, 0x5e, + 0x0a, 0x16, 0x67, 0x6f, 0x76, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x61, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, + 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2e, 0x76, 0x32, + 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x09, 0xc8, + 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x14, 0x67, 0x6f, 0x76, 0x43, 0x6f, 0x6e, + 0x74, 0x72, 0x61, 0x63, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x22, 0x89, + 0x01, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x2c, 0x0a, 0x12, 0x63, 0x6f, 0x6e, + 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x67, 0x61, 0x73, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x10, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x47, + 0x61, 0x73, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x4b, 0x0a, 0x22, 0x63, 0x6f, 0x6e, 0x74, 0x72, + 0x61, 0x63, 0x74, 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x5f, 0x72, 0x65, 0x6d, 0x6f, + 0x76, 0x61, 0x6c, 0x5f, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x1f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x46, 0x61, 0x69, + 0x6c, 0x75, 0x72, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x54, 0x68, 0x72, 0x65, 0x73, + 0x68, 0x6f, 0x6c, 0x64, 0x3a, 0x04, 0xe8, 0xa0, 0x1f, 0x01, 0x42, 0xad, 0x01, 0x0a, 0x13, 0x63, + 0x6f, 0x6d, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2e, + 0x76, 0x32, 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, + 0x50, 0x01, 0x5a, 0x2a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, + 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, + 0x73, 0x2f, 0x76, 0x32, 0x3b, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x76, 0x32, 0xa2, 0x02, + 0x03, 0x4a, 0x43, 0x58, 0xaa, 0x02, 0x0f, 0x4a, 0x75, 0x6e, 0x6f, 0x2e, 0x43, 0x77, 0x68, 0x6f, + 0x6f, 0x6b, 0x73, 0x2e, 0x56, 0x32, 0xca, 0x02, 0x0f, 0x4a, 0x75, 0x6e, 0x6f, 0x5c, 0x43, 0x77, + 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x5c, 0x56, 0x32, 0xe2, 0x02, 0x1b, 0x4a, 0x75, 0x6e, 0x6f, 0x5c, + 0x43, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x5c, 0x56, 0x32, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x4a, 0x75, 0x6e, 0x6f, 0x3a, 0x3a, 0x43, + 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, } var ( - file_juno_cwhooks_v1_genesis_proto_rawDescOnce sync.Once - file_juno_cwhooks_v1_genesis_proto_rawDescData = file_juno_cwhooks_v1_genesis_proto_rawDesc + file_juno_cwhooks_v2_genesis_proto_rawDescOnce sync.Once + file_juno_cwhooks_v2_genesis_proto_rawDescData = file_juno_cwhooks_v2_genesis_proto_rawDesc ) -func file_juno_cwhooks_v1_genesis_proto_rawDescGZIP() []byte { - file_juno_cwhooks_v1_genesis_proto_rawDescOnce.Do(func() { - file_juno_cwhooks_v1_genesis_proto_rawDescData = protoimpl.X.CompressGZIP(file_juno_cwhooks_v1_genesis_proto_rawDescData) +func file_juno_cwhooks_v2_genesis_proto_rawDescGZIP() []byte { + file_juno_cwhooks_v2_genesis_proto_rawDescOnce.Do(func() { + file_juno_cwhooks_v2_genesis_proto_rawDescData = protoimpl.X.CompressGZIP(file_juno_cwhooks_v2_genesis_proto_rawDescData) }) - return file_juno_cwhooks_v1_genesis_proto_rawDescData + return file_juno_cwhooks_v2_genesis_proto_rawDescData } -var file_juno_cwhooks_v1_genesis_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_juno_cwhooks_v1_genesis_proto_goTypes = []interface{}{ - (*GenesisState)(nil), // 0: juno.cwhooks.v1.GenesisState - (*Params)(nil), // 1: juno.cwhooks.v1.Params +var file_juno_cwhooks_v2_genesis_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_juno_cwhooks_v2_genesis_proto_goTypes = []interface{}{ + (*GenesisState)(nil), // 0: juno.cwhooks.v2.GenesisState + (*Params)(nil), // 1: juno.cwhooks.v2.Params + (*ContractInfo)(nil), // 2: juno.cwhooks.v2.ContractInfo } -var file_juno_cwhooks_v1_genesis_proto_depIdxs = []int32{ - 1, // 0: juno.cwhooks.v1.GenesisState.params:type_name -> juno.cwhooks.v1.Params - 1, // [1:1] is the sub-list for method output_type - 1, // [1:1] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name +var file_juno_cwhooks_v2_genesis_proto_depIdxs = []int32{ + 1, // 0: juno.cwhooks.v2.GenesisState.params:type_name -> juno.cwhooks.v2.Params + 2, // 1: juno.cwhooks.v2.GenesisState.staking_contract_addresses:type_name -> juno.cwhooks.v2.ContractInfo + 2, // 2: juno.cwhooks.v2.GenesisState.gov_contract_addresses:type_name -> juno.cwhooks.v2.ContractInfo + 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_juno_cwhooks_v1_genesis_proto_init() } -func file_juno_cwhooks_v1_genesis_proto_init() { - if File_juno_cwhooks_v1_genesis_proto != nil { +func init() { file_juno_cwhooks_v2_genesis_proto_init() } +func file_juno_cwhooks_v2_genesis_proto_init() { + if File_juno_cwhooks_v2_genesis_proto != nil { return } + file_juno_cwhooks_v2_contract_proto_init() if !protoimpl.UnsafeEnabled { - file_juno_cwhooks_v1_genesis_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_juno_cwhooks_v2_genesis_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GenesisState); i { case 0: return &v.state @@ -1294,7 +1390,7 @@ func file_juno_cwhooks_v1_genesis_proto_init() { return nil } } - file_juno_cwhooks_v1_genesis_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_juno_cwhooks_v2_genesis_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Params); i { case 0: return &v.state @@ -1311,18 +1407,18 @@ func file_juno_cwhooks_v1_genesis_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_juno_cwhooks_v1_genesis_proto_rawDesc, + RawDescriptor: file_juno_cwhooks_v2_genesis_proto_rawDesc, NumEnums: 0, NumMessages: 2, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_juno_cwhooks_v1_genesis_proto_goTypes, - DependencyIndexes: file_juno_cwhooks_v1_genesis_proto_depIdxs, - MessageInfos: file_juno_cwhooks_v1_genesis_proto_msgTypes, + GoTypes: file_juno_cwhooks_v2_genesis_proto_goTypes, + DependencyIndexes: file_juno_cwhooks_v2_genesis_proto_depIdxs, + MessageInfos: file_juno_cwhooks_v2_genesis_proto_msgTypes, }.Build() - File_juno_cwhooks_v1_genesis_proto = out.File - file_juno_cwhooks_v1_genesis_proto_rawDesc = nil - file_juno_cwhooks_v1_genesis_proto_goTypes = nil - file_juno_cwhooks_v1_genesis_proto_depIdxs = nil + File_juno_cwhooks_v2_genesis_proto = out.File + file_juno_cwhooks_v2_genesis_proto_rawDesc = nil + file_juno_cwhooks_v2_genesis_proto_goTypes = nil + file_juno_cwhooks_v2_genesis_proto_depIdxs = nil } diff --git a/api/juno/cwhooks/v1/query.pulsar.go b/api/juno/cwhooks/v2/query.pulsar.go similarity index 62% rename from api/juno/cwhooks/v1/query.pulsar.go rename to api/juno/cwhooks/v2/query.pulsar.go index 40ea2912a..5466ed918 100644 --- a/api/juno/cwhooks/v1/query.pulsar.go +++ b/api/juno/cwhooks/v2/query.pulsar.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package cwhooksv1 +package cwhooksv2 import ( _ "cosmossdk.io/api/amino" @@ -22,8 +22,8 @@ var ( ) func init() { - file_juno_cwhooks_v1_query_proto_init() - md_QueryParamsRequest = File_juno_cwhooks_v1_query_proto.Messages().ByName("QueryParamsRequest") + file_juno_cwhooks_v2_query_proto_init() + md_QueryParamsRequest = File_juno_cwhooks_v2_query_proto.Messages().ByName("QueryParamsRequest") } var _ protoreflect.Message = (*fastReflection_QueryParamsRequest)(nil) @@ -35,7 +35,7 @@ func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message { } func (x *QueryParamsRequest) slowProtoReflect() protoreflect.Message { - mi := &file_juno_cwhooks_v1_query_proto_msgTypes[0] + mi := &file_juno_cwhooks_v2_query_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -108,9 +108,9 @@ func (x *fastReflection_QueryParamsRequest) Has(fd protoreflect.FieldDescriptor) switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.QueryParamsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.QueryParamsRequest")) } - panic(fmt.Errorf("message juno.cwhooks.v1.QueryParamsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.cwhooks.v2.QueryParamsRequest does not contain field %s", fd.FullName())) } } @@ -124,9 +124,9 @@ func (x *fastReflection_QueryParamsRequest) Clear(fd protoreflect.FieldDescripto switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.QueryParamsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.QueryParamsRequest")) } - panic(fmt.Errorf("message juno.cwhooks.v1.QueryParamsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.cwhooks.v2.QueryParamsRequest does not contain field %s", fd.FullName())) } } @@ -140,9 +140,9 @@ func (x *fastReflection_QueryParamsRequest) Get(descriptor protoreflect.FieldDes switch descriptor.FullName() { default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.QueryParamsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.QueryParamsRequest")) } - panic(fmt.Errorf("message juno.cwhooks.v1.QueryParamsRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message juno.cwhooks.v2.QueryParamsRequest does not contain field %s", descriptor.FullName())) } } @@ -160,9 +160,9 @@ func (x *fastReflection_QueryParamsRequest) Set(fd protoreflect.FieldDescriptor, switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.QueryParamsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.QueryParamsRequest")) } - panic(fmt.Errorf("message juno.cwhooks.v1.QueryParamsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.cwhooks.v2.QueryParamsRequest does not contain field %s", fd.FullName())) } } @@ -180,9 +180,9 @@ func (x *fastReflection_QueryParamsRequest) Mutable(fd protoreflect.FieldDescrip switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.QueryParamsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.QueryParamsRequest")) } - panic(fmt.Errorf("message juno.cwhooks.v1.QueryParamsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.cwhooks.v2.QueryParamsRequest does not contain field %s", fd.FullName())) } } @@ -193,9 +193,9 @@ func (x *fastReflection_QueryParamsRequest) NewField(fd protoreflect.FieldDescri switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.QueryParamsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.QueryParamsRequest")) } - panic(fmt.Errorf("message juno.cwhooks.v1.QueryParamsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.cwhooks.v2.QueryParamsRequest does not contain field %s", fd.FullName())) } } @@ -205,7 +205,7 @@ func (x *fastReflection_QueryParamsRequest) NewField(fd protoreflect.FieldDescri func (x *fastReflection_QueryParamsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in juno.cwhooks.v1.QueryParamsRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in juno.cwhooks.v2.QueryParamsRequest", d.FullName())) } panic("unreachable") } @@ -379,8 +379,8 @@ var ( ) func init() { - file_juno_cwhooks_v1_query_proto_init() - md_QueryParamsResponse = File_juno_cwhooks_v1_query_proto.Messages().ByName("QueryParamsResponse") + file_juno_cwhooks_v2_query_proto_init() + md_QueryParamsResponse = File_juno_cwhooks_v2_query_proto.Messages().ByName("QueryParamsResponse") fd_QueryParamsResponse_params = md_QueryParamsResponse.Fields().ByName("params") } @@ -393,7 +393,7 @@ func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message { } func (x *QueryParamsResponse) slowProtoReflect() protoreflect.Message { - mi := &file_juno_cwhooks_v1_query_proto_msgTypes[1] + mi := &file_juno_cwhooks_v2_query_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -470,13 +470,13 @@ func (x *fastReflection_QueryParamsResponse) Range(f func(protoreflect.FieldDesc // a repeated field is populated if it is non-empty. func (x *fastReflection_QueryParamsResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "juno.cwhooks.v1.QueryParamsResponse.params": + case "juno.cwhooks.v2.QueryParamsResponse.params": return x.Params != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.QueryParamsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.QueryParamsResponse")) } - panic(fmt.Errorf("message juno.cwhooks.v1.QueryParamsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.cwhooks.v2.QueryParamsResponse does not contain field %s", fd.FullName())) } } @@ -488,13 +488,13 @@ func (x *fastReflection_QueryParamsResponse) Has(fd protoreflect.FieldDescriptor // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryParamsResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "juno.cwhooks.v1.QueryParamsResponse.params": + case "juno.cwhooks.v2.QueryParamsResponse.params": x.Params = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.QueryParamsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.QueryParamsResponse")) } - panic(fmt.Errorf("message juno.cwhooks.v1.QueryParamsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.cwhooks.v2.QueryParamsResponse does not contain field %s", fd.FullName())) } } @@ -506,14 +506,14 @@ func (x *fastReflection_QueryParamsResponse) Clear(fd protoreflect.FieldDescript // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_QueryParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "juno.cwhooks.v1.QueryParamsResponse.params": + case "juno.cwhooks.v2.QueryParamsResponse.params": value := x.Params return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.QueryParamsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.QueryParamsResponse")) } - panic(fmt.Errorf("message juno.cwhooks.v1.QueryParamsResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message juno.cwhooks.v2.QueryParamsResponse does not contain field %s", descriptor.FullName())) } } @@ -529,13 +529,13 @@ func (x *fastReflection_QueryParamsResponse) Get(descriptor protoreflect.FieldDe // 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 "juno.cwhooks.v1.QueryParamsResponse.params": + case "juno.cwhooks.v2.QueryParamsResponse.params": x.Params = value.Message().Interface().(*Params) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.QueryParamsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.QueryParamsResponse")) } - panic(fmt.Errorf("message juno.cwhooks.v1.QueryParamsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.cwhooks.v2.QueryParamsResponse does not contain field %s", fd.FullName())) } } @@ -551,16 +551,16 @@ func (x *fastReflection_QueryParamsResponse) Set(fd protoreflect.FieldDescriptor // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "juno.cwhooks.v1.QueryParamsResponse.params": + case "juno.cwhooks.v2.QueryParamsResponse.params": if x.Params == nil { x.Params = new(Params) } return protoreflect.ValueOfMessage(x.Params.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.QueryParamsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.QueryParamsResponse")) } - panic(fmt.Errorf("message juno.cwhooks.v1.QueryParamsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.cwhooks.v2.QueryParamsResponse does not contain field %s", fd.FullName())) } } @@ -569,14 +569,14 @@ func (x *fastReflection_QueryParamsResponse) Mutable(fd protoreflect.FieldDescri // 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 "juno.cwhooks.v1.QueryParamsResponse.params": + case "juno.cwhooks.v2.QueryParamsResponse.params": m := new(Params) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.QueryParamsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.QueryParamsResponse")) } - panic(fmt.Errorf("message juno.cwhooks.v1.QueryParamsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.cwhooks.v2.QueryParamsResponse does not contain field %s", fd.FullName())) } } @@ -586,7 +586,7 @@ func (x *fastReflection_QueryParamsResponse) NewField(fd protoreflect.FieldDescr func (x *fastReflection_QueryParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in juno.cwhooks.v1.QueryParamsResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in juno.cwhooks.v2.QueryParamsResponse", d.FullName())) } panic("unreachable") } @@ -809,24 +809,26 @@ func (x *fastReflection_QueryParamsResponse) ProtoMethods() *protoiface.Methods } var ( - md_QueryStakingContractsRequest protoreflect.MessageDescriptor + md_QueryContractsRequest protoreflect.MessageDescriptor + fd_QueryContractsRequest_module protoreflect.FieldDescriptor ) func init() { - file_juno_cwhooks_v1_query_proto_init() - md_QueryStakingContractsRequest = File_juno_cwhooks_v1_query_proto.Messages().ByName("QueryStakingContractsRequest") + file_juno_cwhooks_v2_query_proto_init() + md_QueryContractsRequest = File_juno_cwhooks_v2_query_proto.Messages().ByName("QueryContractsRequest") + fd_QueryContractsRequest_module = md_QueryContractsRequest.Fields().ByName("module") } -var _ protoreflect.Message = (*fastReflection_QueryStakingContractsRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryContractsRequest)(nil) -type fastReflection_QueryStakingContractsRequest QueryStakingContractsRequest +type fastReflection_QueryContractsRequest QueryContractsRequest -func (x *QueryStakingContractsRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryStakingContractsRequest)(x) +func (x *QueryContractsRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryContractsRequest)(x) } -func (x *QueryStakingContractsRequest) slowProtoReflect() protoreflect.Message { - mi := &file_juno_cwhooks_v1_query_proto_msgTypes[2] +func (x *QueryContractsRequest) slowProtoReflect() protoreflect.Message { + mi := &file_juno_cwhooks_v2_query_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -837,43 +839,43 @@ func (x *QueryStakingContractsRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryStakingContractsRequest_messageType fastReflection_QueryStakingContractsRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryStakingContractsRequest_messageType{} +var _fastReflection_QueryContractsRequest_messageType fastReflection_QueryContractsRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryContractsRequest_messageType{} -type fastReflection_QueryStakingContractsRequest_messageType struct{} +type fastReflection_QueryContractsRequest_messageType struct{} -func (x fastReflection_QueryStakingContractsRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryStakingContractsRequest)(nil) +func (x fastReflection_QueryContractsRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryContractsRequest)(nil) } -func (x fastReflection_QueryStakingContractsRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryStakingContractsRequest) +func (x fastReflection_QueryContractsRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryContractsRequest) } -func (x fastReflection_QueryStakingContractsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryStakingContractsRequest +func (x fastReflection_QueryContractsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryContractsRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryStakingContractsRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryStakingContractsRequest +func (x *fastReflection_QueryContractsRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryContractsRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryStakingContractsRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryStakingContractsRequest_messageType +func (x *fastReflection_QueryContractsRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryContractsRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryStakingContractsRequest) New() protoreflect.Message { - return new(fastReflection_QueryStakingContractsRequest) +func (x *fastReflection_QueryContractsRequest) New() protoreflect.Message { + return new(fastReflection_QueryContractsRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryStakingContractsRequest) Interface() protoreflect.ProtoMessage { - return (*QueryStakingContractsRequest)(x) +func (x *fastReflection_QueryContractsRequest) Interface() protoreflect.ProtoMessage { + return (*QueryContractsRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -881,7 +883,13 @@ func (x *fastReflection_QueryStakingContractsRequest) Interface() protoreflect.P // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryStakingContractsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryContractsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Module != "" { + value := protoreflect.ValueOfString(x.Module) + if !f(fd_QueryContractsRequest_module, value) { + return + } + } } // Has reports whether a field is populated. @@ -895,13 +903,15 @@ func (x *fastReflection_QueryStakingContractsRequest) Range(f func(protoreflect. // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryStakingContractsRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryContractsRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { + case "juno.cwhooks.v2.QueryContractsRequest.module": + return x.Module != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.QueryStakingContractsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.QueryContractsRequest")) } - panic(fmt.Errorf("message juno.cwhooks.v1.QueryStakingContractsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.cwhooks.v2.QueryContractsRequest does not contain field %s", fd.FullName())) } } @@ -911,13 +921,15 @@ func (x *fastReflection_QueryStakingContractsRequest) Has(fd protoreflect.FieldD // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryStakingContractsRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryContractsRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { + case "juno.cwhooks.v2.QueryContractsRequest.module": + x.Module = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.QueryStakingContractsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.QueryContractsRequest")) } - panic(fmt.Errorf("message juno.cwhooks.v1.QueryStakingContractsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.cwhooks.v2.QueryContractsRequest does not contain field %s", fd.FullName())) } } @@ -927,13 +939,16 @@ func (x *fastReflection_QueryStakingContractsRequest) Clear(fd protoreflect.Fiel // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryStakingContractsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryContractsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { + case "juno.cwhooks.v2.QueryContractsRequest.module": + value := x.Module + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.QueryStakingContractsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.QueryContractsRequest")) } - panic(fmt.Errorf("message juno.cwhooks.v1.QueryStakingContractsRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message juno.cwhooks.v2.QueryContractsRequest does not contain field %s", descriptor.FullName())) } } @@ -947,13 +962,15 @@ func (x *fastReflection_QueryStakingContractsRequest) Get(descriptor protoreflec // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryStakingContractsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryContractsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { + case "juno.cwhooks.v2.QueryContractsRequest.module": + x.Module = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.QueryStakingContractsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.QueryContractsRequest")) } - panic(fmt.Errorf("message juno.cwhooks.v1.QueryStakingContractsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.cwhooks.v2.QueryContractsRequest does not contain field %s", fd.FullName())) } } @@ -967,36 +984,40 @@ func (x *fastReflection_QueryStakingContractsRequest) Set(fd protoreflect.FieldD // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryStakingContractsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryContractsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "juno.cwhooks.v2.QueryContractsRequest.module": + panic(fmt.Errorf("field module of message juno.cwhooks.v2.QueryContractsRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.QueryStakingContractsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.QueryContractsRequest")) } - panic(fmt.Errorf("message juno.cwhooks.v1.QueryStakingContractsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.cwhooks.v2.QueryContractsRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryStakingContractsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryContractsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "juno.cwhooks.v2.QueryContractsRequest.module": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.QueryStakingContractsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.QueryContractsRequest")) } - panic(fmt.Errorf("message juno.cwhooks.v1.QueryStakingContractsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.cwhooks.v2.QueryContractsRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryStakingContractsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryContractsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in juno.cwhooks.v1.QueryStakingContractsRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in juno.cwhooks.v2.QueryContractsRequest", d.FullName())) } panic("unreachable") } @@ -1004,7 +1025,7 @@ func (x *fastReflection_QueryStakingContractsRequest) WhichOneof(d protoreflect. // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryStakingContractsRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryContractsRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -1015,7 +1036,7 @@ func (x *fastReflection_QueryStakingContractsRequest) GetUnknown() protoreflect. // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryStakingContractsRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryContractsRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -1027,7 +1048,7 @@ func (x *fastReflection_QueryStakingContractsRequest) SetUnknown(fields protoref // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryStakingContractsRequest) IsValid() bool { +func (x *fastReflection_QueryContractsRequest) IsValid() bool { return x != nil } @@ -1037,9 +1058,9 @@ func (x *fastReflection_QueryStakingContractsRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryStakingContractsRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryContractsRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryStakingContractsRequest) + x := input.Message.Interface().(*QueryContractsRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1051,6 +1072,10 @@ func (x *fastReflection_QueryStakingContractsRequest) ProtoMethods() *protoiface var n int var l int _ = l + l = len(x.Module) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -1061,7 +1086,7 @@ func (x *fastReflection_QueryStakingContractsRequest) ProtoMethods() *protoiface } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryStakingContractsRequest) + x := input.Message.Interface().(*QueryContractsRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1080,6 +1105,13 @@ func (x *fastReflection_QueryStakingContractsRequest) ProtoMethods() *protoiface i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if len(x.Module) > 0 { + i -= len(x.Module) + copy(dAtA[i:], x.Module) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Module))) + i-- + dAtA[i] = 0xa + } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) } else { @@ -1091,7 +1123,7 @@ func (x *fastReflection_QueryStakingContractsRequest) ProtoMethods() *protoiface }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryStakingContractsRequest) + x := input.Message.Interface().(*QueryContractsRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1123,12 +1155,44 @@ func (x *fastReflection_QueryStakingContractsRequest) ProtoMethods() *protoiface fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStakingContractsRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryContractsRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStakingContractsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryContractsRequest: 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 Module", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Module = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -1164,73 +1228,78 @@ func (x *fastReflection_QueryStakingContractsRequest) ProtoMethods() *protoiface } } -var _ protoreflect.List = (*_QueryStakingContractsResponse_1_list)(nil) +var _ protoreflect.List = (*_QueryContractsResponse_1_list)(nil) -type _QueryStakingContractsResponse_1_list struct { - list *[]string +type _QueryContractsResponse_1_list struct { + list *[]*ContractInfo } -func (x *_QueryStakingContractsResponse_1_list) Len() int { +func (x *_QueryContractsResponse_1_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_QueryStakingContractsResponse_1_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfString((*x.list)[i]) +func (x *_QueryContractsResponse_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_QueryStakingContractsResponse_1_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped +func (x *_QueryContractsResponse_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*ContractInfo) (*x.list)[i] = concreteValue } -func (x *_QueryStakingContractsResponse_1_list) Append(value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped +func (x *_QueryContractsResponse_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*ContractInfo) *x.list = append(*x.list, concreteValue) } -func (x *_QueryStakingContractsResponse_1_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message QueryStakingContractsResponse at list field Contracts as it is not of Message kind")) +func (x *_QueryContractsResponse_1_list) AppendMutable() protoreflect.Value { + v := new(ContractInfo) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_QueryStakingContractsResponse_1_list) Truncate(n int) { +func (x *_QueryContractsResponse_1_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } *x.list = (*x.list)[:n] } -func (x *_QueryStakingContractsResponse_1_list) NewElement() protoreflect.Value { - v := "" - return protoreflect.ValueOfString(v) +func (x *_QueryContractsResponse_1_list) NewElement() protoreflect.Value { + v := new(ContractInfo) + return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_QueryStakingContractsResponse_1_list) IsValid() bool { +func (x *_QueryContractsResponse_1_list) IsValid() bool { return x.list != nil } var ( - md_QueryStakingContractsResponse protoreflect.MessageDescriptor - fd_QueryStakingContractsResponse_contracts protoreflect.FieldDescriptor + md_QueryContractsResponse protoreflect.MessageDescriptor + fd_QueryContractsResponse_contracts protoreflect.FieldDescriptor ) func init() { - file_juno_cwhooks_v1_query_proto_init() - md_QueryStakingContractsResponse = File_juno_cwhooks_v1_query_proto.Messages().ByName("QueryStakingContractsResponse") - fd_QueryStakingContractsResponse_contracts = md_QueryStakingContractsResponse.Fields().ByName("contracts") + file_juno_cwhooks_v2_query_proto_init() + md_QueryContractsResponse = File_juno_cwhooks_v2_query_proto.Messages().ByName("QueryContractsResponse") + fd_QueryContractsResponse_contracts = md_QueryContractsResponse.Fields().ByName("contracts") } -var _ protoreflect.Message = (*fastReflection_QueryStakingContractsResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryContractsResponse)(nil) -type fastReflection_QueryStakingContractsResponse QueryStakingContractsResponse +type fastReflection_QueryContractsResponse QueryContractsResponse -func (x *QueryStakingContractsResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryStakingContractsResponse)(x) +func (x *QueryContractsResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryContractsResponse)(x) } -func (x *QueryStakingContractsResponse) slowProtoReflect() protoreflect.Message { - mi := &file_juno_cwhooks_v1_query_proto_msgTypes[3] +func (x *QueryContractsResponse) slowProtoReflect() protoreflect.Message { + mi := &file_juno_cwhooks_v2_query_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1241,43 +1310,43 @@ func (x *QueryStakingContractsResponse) slowProtoReflect() protoreflect.Message return mi.MessageOf(x) } -var _fastReflection_QueryStakingContractsResponse_messageType fastReflection_QueryStakingContractsResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryStakingContractsResponse_messageType{} +var _fastReflection_QueryContractsResponse_messageType fastReflection_QueryContractsResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryContractsResponse_messageType{} -type fastReflection_QueryStakingContractsResponse_messageType struct{} +type fastReflection_QueryContractsResponse_messageType struct{} -func (x fastReflection_QueryStakingContractsResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryStakingContractsResponse)(nil) +func (x fastReflection_QueryContractsResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryContractsResponse)(nil) } -func (x fastReflection_QueryStakingContractsResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryStakingContractsResponse) +func (x fastReflection_QueryContractsResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryContractsResponse) } -func (x fastReflection_QueryStakingContractsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryStakingContractsResponse +func (x fastReflection_QueryContractsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryContractsResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryStakingContractsResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryStakingContractsResponse +func (x *fastReflection_QueryContractsResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryContractsResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryStakingContractsResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryStakingContractsResponse_messageType +func (x *fastReflection_QueryContractsResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryContractsResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryStakingContractsResponse) New() protoreflect.Message { - return new(fastReflection_QueryStakingContractsResponse) +func (x *fastReflection_QueryContractsResponse) New() protoreflect.Message { + return new(fastReflection_QueryContractsResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryStakingContractsResponse) Interface() protoreflect.ProtoMessage { - return (*QueryStakingContractsResponse)(x) +func (x *fastReflection_QueryContractsResponse) Interface() protoreflect.ProtoMessage { + return (*QueryContractsResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -1285,10 +1354,10 @@ func (x *fastReflection_QueryStakingContractsResponse) Interface() protoreflect. // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryStakingContractsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryContractsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if len(x.Contracts) != 0 { - value := protoreflect.ValueOfList(&_QueryStakingContractsResponse_1_list{list: &x.Contracts}) - if !f(fd_QueryStakingContractsResponse_contracts, value) { + value := protoreflect.ValueOfList(&_QueryContractsResponse_1_list{list: &x.Contracts}) + if !f(fd_QueryContractsResponse_contracts, value) { return } } @@ -1305,15 +1374,15 @@ func (x *fastReflection_QueryStakingContractsResponse) Range(f func(protoreflect // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryStakingContractsResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryContractsResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "juno.cwhooks.v1.QueryStakingContractsResponse.contracts": + case "juno.cwhooks.v2.QueryContractsResponse.contracts": return len(x.Contracts) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.QueryStakingContractsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.QueryContractsResponse")) } - panic(fmt.Errorf("message juno.cwhooks.v1.QueryStakingContractsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.cwhooks.v2.QueryContractsResponse does not contain field %s", fd.FullName())) } } @@ -1323,15 +1392,15 @@ func (x *fastReflection_QueryStakingContractsResponse) Has(fd protoreflect.Field // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryStakingContractsResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryContractsResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "juno.cwhooks.v1.QueryStakingContractsResponse.contracts": + case "juno.cwhooks.v2.QueryContractsResponse.contracts": x.Contracts = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.QueryStakingContractsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.QueryContractsResponse")) } - panic(fmt.Errorf("message juno.cwhooks.v1.QueryStakingContractsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.cwhooks.v2.QueryContractsResponse does not contain field %s", fd.FullName())) } } @@ -1341,19 +1410,19 @@ func (x *fastReflection_QueryStakingContractsResponse) Clear(fd protoreflect.Fie // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryStakingContractsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryContractsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "juno.cwhooks.v1.QueryStakingContractsResponse.contracts": + case "juno.cwhooks.v2.QueryContractsResponse.contracts": if len(x.Contracts) == 0 { - return protoreflect.ValueOfList(&_QueryStakingContractsResponse_1_list{}) + return protoreflect.ValueOfList(&_QueryContractsResponse_1_list{}) } - listValue := &_QueryStakingContractsResponse_1_list{list: &x.Contracts} + listValue := &_QueryContractsResponse_1_list{list: &x.Contracts} return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.QueryStakingContractsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.QueryContractsResponse")) } - panic(fmt.Errorf("message juno.cwhooks.v1.QueryStakingContractsResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message juno.cwhooks.v2.QueryContractsResponse does not contain field %s", descriptor.FullName())) } } @@ -1367,17 +1436,17 @@ func (x *fastReflection_QueryStakingContractsResponse) Get(descriptor protorefle // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryStakingContractsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryContractsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "juno.cwhooks.v1.QueryStakingContractsResponse.contracts": + case "juno.cwhooks.v2.QueryContractsResponse.contracts": lv := value.List() - clv := lv.(*_QueryStakingContractsResponse_1_list) + clv := lv.(*_QueryContractsResponse_1_list) x.Contracts = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.QueryStakingContractsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.QueryContractsResponse")) } - panic(fmt.Errorf("message juno.cwhooks.v1.QueryStakingContractsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.cwhooks.v2.QueryContractsResponse does not contain field %s", fd.FullName())) } } @@ -1391,45 +1460,45 @@ func (x *fastReflection_QueryStakingContractsResponse) Set(fd protoreflect.Field // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryStakingContractsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryContractsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "juno.cwhooks.v1.QueryStakingContractsResponse.contracts": + case "juno.cwhooks.v2.QueryContractsResponse.contracts": if x.Contracts == nil { - x.Contracts = []string{} + x.Contracts = []*ContractInfo{} } - value := &_QueryStakingContractsResponse_1_list{list: &x.Contracts} + value := &_QueryContractsResponse_1_list{list: &x.Contracts} return protoreflect.ValueOfList(value) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.QueryStakingContractsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.QueryContractsResponse")) } - panic(fmt.Errorf("message juno.cwhooks.v1.QueryStakingContractsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.cwhooks.v2.QueryContractsResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryStakingContractsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryContractsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "juno.cwhooks.v1.QueryStakingContractsResponse.contracts": - list := []string{} - return protoreflect.ValueOfList(&_QueryStakingContractsResponse_1_list{list: &list}) + case "juno.cwhooks.v2.QueryContractsResponse.contracts": + list := []*ContractInfo{} + return protoreflect.ValueOfList(&_QueryContractsResponse_1_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.QueryStakingContractsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.QueryContractsResponse")) } - panic(fmt.Errorf("message juno.cwhooks.v1.QueryStakingContractsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.cwhooks.v2.QueryContractsResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryStakingContractsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryContractsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in juno.cwhooks.v1.QueryStakingContractsResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in juno.cwhooks.v2.QueryContractsResponse", d.FullName())) } panic("unreachable") } @@ -1437,7 +1506,7 @@ func (x *fastReflection_QueryStakingContractsResponse) WhichOneof(d protoreflect // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryStakingContractsResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryContractsResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -1448,7 +1517,7 @@ func (x *fastReflection_QueryStakingContractsResponse) GetUnknown() protoreflect // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryStakingContractsResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryContractsResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -1460,7 +1529,7 @@ func (x *fastReflection_QueryStakingContractsResponse) SetUnknown(fields protore // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryStakingContractsResponse) IsValid() bool { +func (x *fastReflection_QueryContractsResponse) IsValid() bool { return x != nil } @@ -1470,9 +1539,9 @@ func (x *fastReflection_QueryStakingContractsResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryStakingContractsResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryContractsResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryStakingContractsResponse) + x := input.Message.Interface().(*QueryContractsResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1485,8 +1554,8 @@ func (x *fastReflection_QueryStakingContractsResponse) ProtoMethods() *protoifac var l int _ = l if len(x.Contracts) > 0 { - for _, s := range x.Contracts { - l = len(s) + for _, e := range x.Contracts { + l = options.Size(e) n += 1 + l + runtime.Sov(uint64(l)) } } @@ -1500,7 +1569,7 @@ func (x *fastReflection_QueryStakingContractsResponse) ProtoMethods() *protoifac } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryStakingContractsResponse) + x := input.Message.Interface().(*QueryContractsResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1521,9 +1590,16 @@ func (x *fastReflection_QueryStakingContractsResponse) ProtoMethods() *protoifac } if len(x.Contracts) > 0 { for iNdEx := len(x.Contracts) - 1; iNdEx >= 0; iNdEx-- { - i -= len(x.Contracts[iNdEx]) - copy(dAtA[i:], x.Contracts[iNdEx]) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Contracts[iNdEx]))) + encoded, err := options.Marshal(x.Contracts[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 } @@ -1539,7 +1615,7 @@ func (x *fastReflection_QueryStakingContractsResponse) ProtoMethods() *protoifac }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryStakingContractsResponse) + x := input.Message.Interface().(*QueryContractsResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1571,17 +1647,17 @@ func (x *fastReflection_QueryStakingContractsResponse) ProtoMethods() *protoifac fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStakingContractsResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryContractsResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStakingContractsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryContractsResponse: 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 Contracts", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -1591,23 +1667,25 @@ func (x *fastReflection_QueryStakingContractsResponse) ProtoMethods() *protoifac } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Contracts = append(x.Contracts, string(dAtA[iNdEx:postIndex])) + x.Contracts = append(x.Contracts, &ContractInfo{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Contracts[len(x.Contracts)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } iNdEx = postIndex default: iNdEx = preIndex @@ -1645,24 +1723,28 @@ func (x *fastReflection_QueryStakingContractsResponse) ProtoMethods() *protoifac } var ( - md_QueryGovernanceContractsRequest protoreflect.MessageDescriptor + md_QueryContractInfoRequest protoreflect.MessageDescriptor + fd_QueryContractInfoRequest_module protoreflect.FieldDescriptor + fd_QueryContractInfoRequest_contract_address protoreflect.FieldDescriptor ) func init() { - file_juno_cwhooks_v1_query_proto_init() - md_QueryGovernanceContractsRequest = File_juno_cwhooks_v1_query_proto.Messages().ByName("QueryGovernanceContractsRequest") + file_juno_cwhooks_v2_query_proto_init() + md_QueryContractInfoRequest = File_juno_cwhooks_v2_query_proto.Messages().ByName("QueryContractInfoRequest") + fd_QueryContractInfoRequest_module = md_QueryContractInfoRequest.Fields().ByName("module") + fd_QueryContractInfoRequest_contract_address = md_QueryContractInfoRequest.Fields().ByName("contract_address") } -var _ protoreflect.Message = (*fastReflection_QueryGovernanceContractsRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryContractInfoRequest)(nil) -type fastReflection_QueryGovernanceContractsRequest QueryGovernanceContractsRequest +type fastReflection_QueryContractInfoRequest QueryContractInfoRequest -func (x *QueryGovernanceContractsRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryGovernanceContractsRequest)(x) +func (x *QueryContractInfoRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryContractInfoRequest)(x) } -func (x *QueryGovernanceContractsRequest) slowProtoReflect() protoreflect.Message { - mi := &file_juno_cwhooks_v1_query_proto_msgTypes[4] +func (x *QueryContractInfoRequest) slowProtoReflect() protoreflect.Message { + mi := &file_juno_cwhooks_v2_query_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1673,43 +1755,43 @@ func (x *QueryGovernanceContractsRequest) slowProtoReflect() protoreflect.Messag return mi.MessageOf(x) } -var _fastReflection_QueryGovernanceContractsRequest_messageType fastReflection_QueryGovernanceContractsRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryGovernanceContractsRequest_messageType{} +var _fastReflection_QueryContractInfoRequest_messageType fastReflection_QueryContractInfoRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryContractInfoRequest_messageType{} -type fastReflection_QueryGovernanceContractsRequest_messageType struct{} +type fastReflection_QueryContractInfoRequest_messageType struct{} -func (x fastReflection_QueryGovernanceContractsRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryGovernanceContractsRequest)(nil) +func (x fastReflection_QueryContractInfoRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryContractInfoRequest)(nil) } -func (x fastReflection_QueryGovernanceContractsRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryGovernanceContractsRequest) +func (x fastReflection_QueryContractInfoRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryContractInfoRequest) } -func (x fastReflection_QueryGovernanceContractsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGovernanceContractsRequest +func (x fastReflection_QueryContractInfoRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryContractInfoRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryGovernanceContractsRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGovernanceContractsRequest +func (x *fastReflection_QueryContractInfoRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryContractInfoRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryGovernanceContractsRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryGovernanceContractsRequest_messageType +func (x *fastReflection_QueryContractInfoRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryContractInfoRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryGovernanceContractsRequest) New() protoreflect.Message { - return new(fastReflection_QueryGovernanceContractsRequest) +func (x *fastReflection_QueryContractInfoRequest) New() protoreflect.Message { + return new(fastReflection_QueryContractInfoRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryGovernanceContractsRequest) Interface() protoreflect.ProtoMessage { - return (*QueryGovernanceContractsRequest)(x) +func (x *fastReflection_QueryContractInfoRequest) Interface() protoreflect.ProtoMessage { + return (*QueryContractInfoRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -1717,7 +1799,19 @@ func (x *fastReflection_QueryGovernanceContractsRequest) Interface() protoreflec // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryGovernanceContractsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryContractInfoRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Module != "" { + value := protoreflect.ValueOfString(x.Module) + if !f(fd_QueryContractInfoRequest_module, value) { + return + } + } + if x.ContractAddress != "" { + value := protoreflect.ValueOfString(x.ContractAddress) + if !f(fd_QueryContractInfoRequest_contract_address, value) { + return + } + } } // Has reports whether a field is populated. @@ -1731,13 +1825,17 @@ func (x *fastReflection_QueryGovernanceContractsRequest) Range(f func(protorefle // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryGovernanceContractsRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryContractInfoRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { + case "juno.cwhooks.v2.QueryContractInfoRequest.module": + return x.Module != "" + case "juno.cwhooks.v2.QueryContractInfoRequest.contract_address": + return x.ContractAddress != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.QueryGovernanceContractsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.QueryContractInfoRequest")) } - panic(fmt.Errorf("message juno.cwhooks.v1.QueryGovernanceContractsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.cwhooks.v2.QueryContractInfoRequest does not contain field %s", fd.FullName())) } } @@ -1747,13 +1845,17 @@ func (x *fastReflection_QueryGovernanceContractsRequest) Has(fd protoreflect.Fie // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGovernanceContractsRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryContractInfoRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { + case "juno.cwhooks.v2.QueryContractInfoRequest.module": + x.Module = "" + case "juno.cwhooks.v2.QueryContractInfoRequest.contract_address": + x.ContractAddress = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.QueryGovernanceContractsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.QueryContractInfoRequest")) } - panic(fmt.Errorf("message juno.cwhooks.v1.QueryGovernanceContractsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.cwhooks.v2.QueryContractInfoRequest does not contain field %s", fd.FullName())) } } @@ -1763,13 +1865,19 @@ func (x *fastReflection_QueryGovernanceContractsRequest) Clear(fd protoreflect.F // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryGovernanceContractsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryContractInfoRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { + case "juno.cwhooks.v2.QueryContractInfoRequest.module": + value := x.Module + return protoreflect.ValueOfString(value) + case "juno.cwhooks.v2.QueryContractInfoRequest.contract_address": + value := x.ContractAddress + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.QueryGovernanceContractsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.QueryContractInfoRequest")) } - panic(fmt.Errorf("message juno.cwhooks.v1.QueryGovernanceContractsRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message juno.cwhooks.v2.QueryContractInfoRequest does not contain field %s", descriptor.FullName())) } } @@ -1783,13 +1891,17 @@ func (x *fastReflection_QueryGovernanceContractsRequest) Get(descriptor protoref // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGovernanceContractsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryContractInfoRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { + case "juno.cwhooks.v2.QueryContractInfoRequest.module": + x.Module = value.Interface().(string) + case "juno.cwhooks.v2.QueryContractInfoRequest.contract_address": + x.ContractAddress = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.QueryGovernanceContractsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.QueryContractInfoRequest")) } - panic(fmt.Errorf("message juno.cwhooks.v1.QueryGovernanceContractsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.cwhooks.v2.QueryContractInfoRequest does not contain field %s", fd.FullName())) } } @@ -1803,36 +1915,44 @@ func (x *fastReflection_QueryGovernanceContractsRequest) Set(fd protoreflect.Fie // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGovernanceContractsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryContractInfoRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "juno.cwhooks.v2.QueryContractInfoRequest.module": + panic(fmt.Errorf("field module of message juno.cwhooks.v2.QueryContractInfoRequest is not mutable")) + case "juno.cwhooks.v2.QueryContractInfoRequest.contract_address": + panic(fmt.Errorf("field contract_address of message juno.cwhooks.v2.QueryContractInfoRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.QueryGovernanceContractsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.QueryContractInfoRequest")) } - panic(fmt.Errorf("message juno.cwhooks.v1.QueryGovernanceContractsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.cwhooks.v2.QueryContractInfoRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryGovernanceContractsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryContractInfoRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "juno.cwhooks.v2.QueryContractInfoRequest.module": + return protoreflect.ValueOfString("") + case "juno.cwhooks.v2.QueryContractInfoRequest.contract_address": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.QueryGovernanceContractsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.QueryContractInfoRequest")) } - panic(fmt.Errorf("message juno.cwhooks.v1.QueryGovernanceContractsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.cwhooks.v2.QueryContractInfoRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryGovernanceContractsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryContractInfoRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in juno.cwhooks.v1.QueryGovernanceContractsRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in juno.cwhooks.v2.QueryContractInfoRequest", d.FullName())) } panic("unreachable") } @@ -1840,7 +1960,7 @@ func (x *fastReflection_QueryGovernanceContractsRequest) WhichOneof(d protorefle // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryGovernanceContractsRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryContractInfoRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -1851,7 +1971,7 @@ func (x *fastReflection_QueryGovernanceContractsRequest) GetUnknown() protorefle // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGovernanceContractsRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryContractInfoRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -1863,7 +1983,7 @@ func (x *fastReflection_QueryGovernanceContractsRequest) SetUnknown(fields proto // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryGovernanceContractsRequest) IsValid() bool { +func (x *fastReflection_QueryContractInfoRequest) IsValid() bool { return x != nil } @@ -1873,9 +1993,9 @@ func (x *fastReflection_QueryGovernanceContractsRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryGovernanceContractsRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryContractInfoRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryGovernanceContractsRequest) + x := input.Message.Interface().(*QueryContractInfoRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1887,6 +2007,14 @@ func (x *fastReflection_QueryGovernanceContractsRequest) ProtoMethods() *protoif var n int var l int _ = l + l = len(x.Module) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.ContractAddress) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -1897,7 +2025,7 @@ func (x *fastReflection_QueryGovernanceContractsRequest) ProtoMethods() *protoif } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryGovernanceContractsRequest) + x := input.Message.Interface().(*QueryContractInfoRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1916,6 +2044,20 @@ func (x *fastReflection_QueryGovernanceContractsRequest) ProtoMethods() *protoif i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if len(x.ContractAddress) > 0 { + i -= len(x.ContractAddress) + copy(dAtA[i:], x.ContractAddress) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ContractAddress))) + i-- + dAtA[i] = 0x12 + } + if len(x.Module) > 0 { + i -= len(x.Module) + copy(dAtA[i:], x.Module) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Module))) + i-- + dAtA[i] = 0xa + } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) } else { @@ -1927,7 +2069,7 @@ func (x *fastReflection_QueryGovernanceContractsRequest) ProtoMethods() *protoif }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryGovernanceContractsRequest) + x := input.Message.Interface().(*QueryContractInfoRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1959,12 +2101,76 @@ func (x *fastReflection_QueryGovernanceContractsRequest) ProtoMethods() *protoif fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGovernanceContractsRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryContractInfoRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGovernanceContractsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryContractInfoRequest: 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 Module", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Module = 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 ContractAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.ContractAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -2000,73 +2206,27 @@ func (x *fastReflection_QueryGovernanceContractsRequest) ProtoMethods() *protoif } } -var _ protoreflect.List = (*_QueryGovernanceContractsResponse_1_list)(nil) - -type _QueryGovernanceContractsResponse_1_list struct { - list *[]string -} - -func (x *_QueryGovernanceContractsResponse_1_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_QueryGovernanceContractsResponse_1_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfString((*x.list)[i]) -} - -func (x *_QueryGovernanceContractsResponse_1_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_QueryGovernanceContractsResponse_1_list) Append(value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_QueryGovernanceContractsResponse_1_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message QueryGovernanceContractsResponse at list field Contracts as it is not of Message kind")) -} - -func (x *_QueryGovernanceContractsResponse_1_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_QueryGovernanceContractsResponse_1_list) NewElement() protoreflect.Value { - v := "" - return protoreflect.ValueOfString(v) -} - -func (x *_QueryGovernanceContractsResponse_1_list) IsValid() bool { - return x.list != nil -} - var ( - md_QueryGovernanceContractsResponse protoreflect.MessageDescriptor - fd_QueryGovernanceContractsResponse_contracts protoreflect.FieldDescriptor + md_QueryContractInfoResponse protoreflect.MessageDescriptor + fd_QueryContractInfoResponse_contract protoreflect.FieldDescriptor ) func init() { - file_juno_cwhooks_v1_query_proto_init() - md_QueryGovernanceContractsResponse = File_juno_cwhooks_v1_query_proto.Messages().ByName("QueryGovernanceContractsResponse") - fd_QueryGovernanceContractsResponse_contracts = md_QueryGovernanceContractsResponse.Fields().ByName("contracts") + file_juno_cwhooks_v2_query_proto_init() + md_QueryContractInfoResponse = File_juno_cwhooks_v2_query_proto.Messages().ByName("QueryContractInfoResponse") + fd_QueryContractInfoResponse_contract = md_QueryContractInfoResponse.Fields().ByName("contract") } -var _ protoreflect.Message = (*fastReflection_QueryGovernanceContractsResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryContractInfoResponse)(nil) -type fastReflection_QueryGovernanceContractsResponse QueryGovernanceContractsResponse +type fastReflection_QueryContractInfoResponse QueryContractInfoResponse -func (x *QueryGovernanceContractsResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryGovernanceContractsResponse)(x) +func (x *QueryContractInfoResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryContractInfoResponse)(x) } -func (x *QueryGovernanceContractsResponse) slowProtoReflect() protoreflect.Message { - mi := &file_juno_cwhooks_v1_query_proto_msgTypes[5] +func (x *QueryContractInfoResponse) slowProtoReflect() protoreflect.Message { + mi := &file_juno_cwhooks_v2_query_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2077,43 +2237,43 @@ func (x *QueryGovernanceContractsResponse) slowProtoReflect() protoreflect.Messa return mi.MessageOf(x) } -var _fastReflection_QueryGovernanceContractsResponse_messageType fastReflection_QueryGovernanceContractsResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryGovernanceContractsResponse_messageType{} +var _fastReflection_QueryContractInfoResponse_messageType fastReflection_QueryContractInfoResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryContractInfoResponse_messageType{} -type fastReflection_QueryGovernanceContractsResponse_messageType struct{} +type fastReflection_QueryContractInfoResponse_messageType struct{} -func (x fastReflection_QueryGovernanceContractsResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryGovernanceContractsResponse)(nil) +func (x fastReflection_QueryContractInfoResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryContractInfoResponse)(nil) } -func (x fastReflection_QueryGovernanceContractsResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryGovernanceContractsResponse) +func (x fastReflection_QueryContractInfoResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryContractInfoResponse) } -func (x fastReflection_QueryGovernanceContractsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGovernanceContractsResponse +func (x fastReflection_QueryContractInfoResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryContractInfoResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryGovernanceContractsResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGovernanceContractsResponse +func (x *fastReflection_QueryContractInfoResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryContractInfoResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryGovernanceContractsResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryGovernanceContractsResponse_messageType +func (x *fastReflection_QueryContractInfoResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryContractInfoResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryGovernanceContractsResponse) New() protoreflect.Message { - return new(fastReflection_QueryGovernanceContractsResponse) +func (x *fastReflection_QueryContractInfoResponse) New() protoreflect.Message { + return new(fastReflection_QueryContractInfoResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryGovernanceContractsResponse) Interface() protoreflect.ProtoMessage { - return (*QueryGovernanceContractsResponse)(x) +func (x *fastReflection_QueryContractInfoResponse) Interface() protoreflect.ProtoMessage { + return (*QueryContractInfoResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -2121,10 +2281,10 @@ func (x *fastReflection_QueryGovernanceContractsResponse) Interface() protorefle // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryGovernanceContractsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.Contracts) != 0 { - value := protoreflect.ValueOfList(&_QueryGovernanceContractsResponse_1_list{list: &x.Contracts}) - if !f(fd_QueryGovernanceContractsResponse_contracts, value) { +func (x *fastReflection_QueryContractInfoResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Contract != nil { + value := protoreflect.ValueOfMessage(x.Contract.ProtoReflect()) + if !f(fd_QueryContractInfoResponse_contract, value) { return } } @@ -2141,15 +2301,15 @@ func (x *fastReflection_QueryGovernanceContractsResponse) Range(f func(protorefl // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryGovernanceContractsResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryContractInfoResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "juno.cwhooks.v1.QueryGovernanceContractsResponse.contracts": - return len(x.Contracts) != 0 + case "juno.cwhooks.v2.QueryContractInfoResponse.contract": + return x.Contract != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.QueryGovernanceContractsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.QueryContractInfoResponse")) } - panic(fmt.Errorf("message juno.cwhooks.v1.QueryGovernanceContractsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.cwhooks.v2.QueryContractInfoResponse does not contain field %s", fd.FullName())) } } @@ -2159,15 +2319,15 @@ func (x *fastReflection_QueryGovernanceContractsResponse) Has(fd protoreflect.Fi // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGovernanceContractsResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryContractInfoResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "juno.cwhooks.v1.QueryGovernanceContractsResponse.contracts": - x.Contracts = nil + case "juno.cwhooks.v2.QueryContractInfoResponse.contract": + x.Contract = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.QueryGovernanceContractsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.QueryContractInfoResponse")) } - panic(fmt.Errorf("message juno.cwhooks.v1.QueryGovernanceContractsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.cwhooks.v2.QueryContractInfoResponse does not contain field %s", fd.FullName())) } } @@ -2177,19 +2337,16 @@ func (x *fastReflection_QueryGovernanceContractsResponse) Clear(fd protoreflect. // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryGovernanceContractsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryContractInfoResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "juno.cwhooks.v1.QueryGovernanceContractsResponse.contracts": - if len(x.Contracts) == 0 { - return protoreflect.ValueOfList(&_QueryGovernanceContractsResponse_1_list{}) - } - listValue := &_QueryGovernanceContractsResponse_1_list{list: &x.Contracts} - return protoreflect.ValueOfList(listValue) + case "juno.cwhooks.v2.QueryContractInfoResponse.contract": + value := x.Contract + return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.QueryGovernanceContractsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.QueryContractInfoResponse")) } - panic(fmt.Errorf("message juno.cwhooks.v1.QueryGovernanceContractsResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message juno.cwhooks.v2.QueryContractInfoResponse does not contain field %s", descriptor.FullName())) } } @@ -2203,17 +2360,15 @@ func (x *fastReflection_QueryGovernanceContractsResponse) Get(descriptor protore // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGovernanceContractsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryContractInfoResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "juno.cwhooks.v1.QueryGovernanceContractsResponse.contracts": - lv := value.List() - clv := lv.(*_QueryGovernanceContractsResponse_1_list) - x.Contracts = *clv.list + case "juno.cwhooks.v2.QueryContractInfoResponse.contract": + x.Contract = value.Message().Interface().(*ContractInfo) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.QueryGovernanceContractsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.QueryContractInfoResponse")) } - panic(fmt.Errorf("message juno.cwhooks.v1.QueryGovernanceContractsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.cwhooks.v2.QueryContractInfoResponse does not contain field %s", fd.FullName())) } } @@ -2227,45 +2382,44 @@ func (x *fastReflection_QueryGovernanceContractsResponse) Set(fd protoreflect.Fi // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGovernanceContractsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryContractInfoResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "juno.cwhooks.v1.QueryGovernanceContractsResponse.contracts": - if x.Contracts == nil { - x.Contracts = []string{} + case "juno.cwhooks.v2.QueryContractInfoResponse.contract": + if x.Contract == nil { + x.Contract = new(ContractInfo) } - value := &_QueryGovernanceContractsResponse_1_list{list: &x.Contracts} - return protoreflect.ValueOfList(value) + return protoreflect.ValueOfMessage(x.Contract.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.QueryGovernanceContractsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.QueryContractInfoResponse")) } - panic(fmt.Errorf("message juno.cwhooks.v1.QueryGovernanceContractsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.cwhooks.v2.QueryContractInfoResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryGovernanceContractsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryContractInfoResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "juno.cwhooks.v1.QueryGovernanceContractsResponse.contracts": - list := []string{} - return protoreflect.ValueOfList(&_QueryGovernanceContractsResponse_1_list{list: &list}) + case "juno.cwhooks.v2.QueryContractInfoResponse.contract": + m := new(ContractInfo) + return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v1.QueryGovernanceContractsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.QueryContractInfoResponse")) } - panic(fmt.Errorf("message juno.cwhooks.v1.QueryGovernanceContractsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.cwhooks.v2.QueryContractInfoResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryGovernanceContractsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryContractInfoResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in juno.cwhooks.v1.QueryGovernanceContractsResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in juno.cwhooks.v2.QueryContractInfoResponse", d.FullName())) } panic("unreachable") } @@ -2273,7 +2427,7 @@ func (x *fastReflection_QueryGovernanceContractsResponse) WhichOneof(d protorefl // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryGovernanceContractsResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryContractInfoResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -2284,7 +2438,7 @@ func (x *fastReflection_QueryGovernanceContractsResponse) GetUnknown() protorefl // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGovernanceContractsResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryContractInfoResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -2296,7 +2450,7 @@ func (x *fastReflection_QueryGovernanceContractsResponse) SetUnknown(fields prot // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryGovernanceContractsResponse) IsValid() bool { +func (x *fastReflection_QueryContractInfoResponse) IsValid() bool { return x != nil } @@ -2306,9 +2460,9 @@ func (x *fastReflection_QueryGovernanceContractsResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryGovernanceContractsResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryContractInfoResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryGovernanceContractsResponse) + x := input.Message.Interface().(*QueryContractInfoResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2320,11 +2474,9 @@ func (x *fastReflection_QueryGovernanceContractsResponse) ProtoMethods() *protoi var n int var l int _ = l - if len(x.Contracts) > 0 { - for _, s := range x.Contracts { - l = len(s) - n += 1 + l + runtime.Sov(uint64(l)) - } + if x.Contract != nil { + l = options.Size(x.Contract) + n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -2336,7 +2488,7 @@ func (x *fastReflection_QueryGovernanceContractsResponse) ProtoMethods() *protoi } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryGovernanceContractsResponse) + x := input.Message.Interface().(*QueryContractInfoResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2355,14 +2507,19 @@ func (x *fastReflection_QueryGovernanceContractsResponse) ProtoMethods() *protoi i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Contracts) > 0 { - for iNdEx := len(x.Contracts) - 1; iNdEx >= 0; iNdEx-- { - i -= len(x.Contracts[iNdEx]) - copy(dAtA[i:], x.Contracts[iNdEx]) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Contracts[iNdEx]))) - i-- - dAtA[i] = 0xa + if x.Contract != nil { + encoded, err := options.Marshal(x.Contract) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: 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...) @@ -2375,7 +2532,7 @@ func (x *fastReflection_QueryGovernanceContractsResponse) ProtoMethods() *protoi }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryGovernanceContractsResponse) + x := input.Message.Interface().(*QueryContractInfoResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2407,17 +2564,17 @@ func (x *fastReflection_QueryGovernanceContractsResponse) ProtoMethods() *protoi fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGovernanceContractsResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryContractInfoResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGovernanceContractsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryContractInfoResponse: 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 Contracts", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Contract", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -2427,23 +2584,27 @@ func (x *fastReflection_QueryGovernanceContractsResponse) ProtoMethods() *protoi } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Contracts = append(x.Contracts, string(dAtA[iNdEx:postIndex])) + if x.Contract == nil { + x.Contract = &ContractInfo{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Contract); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } iNdEx = postIndex default: iNdEx = preIndex @@ -2484,7 +2645,7 @@ func (x *fastReflection_QueryGovernanceContractsResponse) ProtoMethods() *protoi // versions: // protoc-gen-go v1.27.0 // protoc (unknown) -// source: juno/cwhooks/v1/query.proto +// source: juno/cwhooks/v2/query.proto const ( // Verify that this generated code is sufficiently up-to-date. @@ -2493,7 +2654,7 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// QueryParams is the request type to get all module params. +// QueryParamsRequest is the request type to get all module params type QueryParamsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2503,7 +2664,7 @@ type QueryParamsRequest struct { func (x *QueryParamsRequest) Reset() { *x = QueryParamsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_juno_cwhooks_v1_query_proto_msgTypes[0] + mi := &file_juno_cwhooks_v2_query_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2517,10 +2678,10 @@ func (*QueryParamsRequest) ProtoMessage() {} // Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead. func (*QueryParamsRequest) Descriptor() ([]byte, []int) { - return file_juno_cwhooks_v1_query_proto_rawDescGZIP(), []int{0} + return file_juno_cwhooks_v2_query_proto_rawDescGZIP(), []int{0} } -// QueryClockContractsResponse is the response type for the Query/ClockContracts RPC method. +// QueryParamsResponse is the response type for the Query/Params RPC method type QueryParamsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2532,7 +2693,7 @@ type QueryParamsResponse struct { func (x *QueryParamsResponse) Reset() { *x = QueryParamsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_juno_cwhooks_v1_query_proto_msgTypes[1] + mi := &file_juno_cwhooks_v2_query_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2546,7 +2707,7 @@ func (*QueryParamsResponse) ProtoMessage() {} // Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead. func (*QueryParamsResponse) Descriptor() ([]byte, []int) { - return file_juno_cwhooks_v1_query_proto_rawDescGZIP(), []int{1} + return file_juno_cwhooks_v2_query_proto_rawDescGZIP(), []int{1} } func (x *QueryParamsResponse) GetParams() *Params { @@ -2556,138 +2717,168 @@ func (x *QueryParamsResponse) GetParams() *Params { return nil } -// QueryStakingContractsRequest -type QueryStakingContractsRequest struct { +// QueryContractsRequest is the request type to get all contracts for a module +type QueryContractsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + + // The module key the contracts are registered for + Module string `protobuf:"bytes,1,opt,name=module,proto3" json:"module,omitempty"` } -func (x *QueryStakingContractsRequest) Reset() { - *x = QueryStakingContractsRequest{} +func (x *QueryContractsRequest) Reset() { + *x = QueryContractsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_juno_cwhooks_v1_query_proto_msgTypes[2] + mi := &file_juno_cwhooks_v2_query_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryStakingContractsRequest) String() string { +func (x *QueryContractsRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryStakingContractsRequest) ProtoMessage() {} +func (*QueryContractsRequest) ProtoMessage() {} + +// Deprecated: Use QueryContractsRequest.ProtoReflect.Descriptor instead. +func (*QueryContractsRequest) Descriptor() ([]byte, []int) { + return file_juno_cwhooks_v2_query_proto_rawDescGZIP(), []int{2} +} -// Deprecated: Use QueryStakingContractsRequest.ProtoReflect.Descriptor instead. -func (*QueryStakingContractsRequest) Descriptor() ([]byte, []int) { - return file_juno_cwhooks_v1_query_proto_rawDescGZIP(), []int{2} +func (x *QueryContractsRequest) GetModule() string { + if x != nil { + return x.Module + } + return "" } -// QueryStakingContractsResponse -type QueryStakingContractsResponse struct { +// QueryContractsResponse is the response type for the Query/Contracts RPC method +type QueryContractsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Contracts []string `protobuf:"bytes,1,rep,name=contracts,proto3" json:"contracts,omitempty"` + // The contracts registered for the module + Contracts []*ContractInfo `protobuf:"bytes,1,rep,name=contracts,proto3" json:"contracts,omitempty"` } -func (x *QueryStakingContractsResponse) Reset() { - *x = QueryStakingContractsResponse{} +func (x *QueryContractsResponse) Reset() { + *x = QueryContractsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_juno_cwhooks_v1_query_proto_msgTypes[3] + mi := &file_juno_cwhooks_v2_query_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryStakingContractsResponse) String() string { +func (x *QueryContractsResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryStakingContractsResponse) ProtoMessage() {} +func (*QueryContractsResponse) ProtoMessage() {} -// Deprecated: Use QueryStakingContractsResponse.ProtoReflect.Descriptor instead. -func (*QueryStakingContractsResponse) Descriptor() ([]byte, []int) { - return file_juno_cwhooks_v1_query_proto_rawDescGZIP(), []int{3} +// Deprecated: Use QueryContractsResponse.ProtoReflect.Descriptor instead. +func (*QueryContractsResponse) Descriptor() ([]byte, []int) { + return file_juno_cwhooks_v2_query_proto_rawDescGZIP(), []int{3} } -func (x *QueryStakingContractsResponse) GetContracts() []string { +func (x *QueryContractsResponse) GetContracts() []*ContractInfo { if x != nil { return x.Contracts } return nil } -// QueryStakingContractsRequest -type QueryGovernanceContractsRequest struct { +// QueryContractInfoRequest is the request type to get a contract info for a module and contract address +type QueryContractInfoRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + + // The module key the contract is registered for + Module string `protobuf:"bytes,1,opt,name=module,proto3" json:"module,omitempty"` + // The contract address to get info for + ContractAddress string `protobuf:"bytes,2,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"` } -func (x *QueryGovernanceContractsRequest) Reset() { - *x = QueryGovernanceContractsRequest{} +func (x *QueryContractInfoRequest) Reset() { + *x = QueryContractInfoRequest{} if protoimpl.UnsafeEnabled { - mi := &file_juno_cwhooks_v1_query_proto_msgTypes[4] + mi := &file_juno_cwhooks_v2_query_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryGovernanceContractsRequest) String() string { +func (x *QueryContractInfoRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryGovernanceContractsRequest) ProtoMessage() {} +func (*QueryContractInfoRequest) ProtoMessage() {} -// Deprecated: Use QueryGovernanceContractsRequest.ProtoReflect.Descriptor instead. -func (*QueryGovernanceContractsRequest) Descriptor() ([]byte, []int) { - return file_juno_cwhooks_v1_query_proto_rawDescGZIP(), []int{4} +// Deprecated: Use QueryContractInfoRequest.ProtoReflect.Descriptor instead. +func (*QueryContractInfoRequest) Descriptor() ([]byte, []int) { + return file_juno_cwhooks_v2_query_proto_rawDescGZIP(), []int{4} } -// QueryGovernanceContractsResponse -type QueryGovernanceContractsResponse struct { +func (x *QueryContractInfoRequest) GetModule() string { + if x != nil { + return x.Module + } + return "" +} + +func (x *QueryContractInfoRequest) GetContractAddress() string { + if x != nil { + return x.ContractAddress + } + return "" +} + +// QueryContractInfoResponse is the response type for the Query/ContractInfo RPC method +type QueryContractInfoResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Contracts []string `protobuf:"bytes,1,rep,name=contracts,proto3" json:"contracts,omitempty"` + Contract *ContractInfo `protobuf:"bytes,1,opt,name=contract,proto3" json:"contract,omitempty"` } -func (x *QueryGovernanceContractsResponse) Reset() { - *x = QueryGovernanceContractsResponse{} +func (x *QueryContractInfoResponse) Reset() { + *x = QueryContractInfoResponse{} if protoimpl.UnsafeEnabled { - mi := &file_juno_cwhooks_v1_query_proto_msgTypes[5] + mi := &file_juno_cwhooks_v2_query_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryGovernanceContractsResponse) String() string { +func (x *QueryContractInfoResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryGovernanceContractsResponse) ProtoMessage() {} +func (*QueryContractInfoResponse) ProtoMessage() {} -// Deprecated: Use QueryGovernanceContractsResponse.ProtoReflect.Descriptor instead. -func (*QueryGovernanceContractsResponse) Descriptor() ([]byte, []int) { - return file_juno_cwhooks_v1_query_proto_rawDescGZIP(), []int{5} +// Deprecated: Use QueryContractInfoResponse.ProtoReflect.Descriptor instead. +func (*QueryContractInfoResponse) Descriptor() ([]byte, []int) { + return file_juno_cwhooks_v2_query_proto_rawDescGZIP(), []int{5} } -func (x *QueryGovernanceContractsResponse) GetContracts() []string { +func (x *QueryContractInfoResponse) GetContract() *ContractInfo { if x != nil { - return x.Contracts + return x.Contract } return nil } -var File_juno_cwhooks_v1_query_proto protoreflect.FileDescriptor +var File_juno_cwhooks_v2_query_proto protoreflect.FileDescriptor -var file_juno_cwhooks_v1_query_proto_rawDesc = []byte{ +var file_juno_cwhooks_v2_query_proto_rawDesc = []byte{ 0x0a, 0x1b, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2f, 0x76, - 0x31, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x6a, - 0x75, 0x6e, 0x6f, 0x2e, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x11, + 0x32, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x6a, + 0x75, 0x6e, 0x6f, 0x2e, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2e, 0x76, 0x32, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, @@ -2695,119 +2886,131 @@ var file_juno_cwhooks_v1_query_proto_rawDesc = []byte{ 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, 0x1d, 0x6a, - 0x75, 0x6e, 0x6f, 0x2f, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x67, + 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x6a, + 0x75, 0x6e, 0x6f, 0x2f, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x63, + 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x6a, + 0x75, 0x6e, 0x6f, 0x2f, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x14, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x51, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, - 0x2e, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x61, + 0x2e, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x70, - 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x1e, 0x0a, 0x1c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, - 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x57, 0x0a, 0x1d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, - 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, - 0x63, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, - 0x69, 0x6e, 0x67, 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x22, 0x21, - 0x0a, 0x1f, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x6f, 0x76, 0x65, 0x72, 0x6e, 0x61, 0x6e, 0x63, - 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x22, 0x5a, 0x0a, 0x20, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x6f, 0x76, 0x65, 0x72, 0x6e, - 0x61, 0x6e, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, - 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, - 0x6e, 0x67, 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x32, 0xd8, 0x03, - 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x79, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, - 0x73, 0x12, 0x23, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, - 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x63, 0x77, - 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, - 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x24, 0x88, 0xe7, - 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x12, 0x17, 0x2f, 0x6a, 0x75, 0x6e, 0x6f, - 0x2f, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, - 0x6d, 0x73, 0x12, 0xa2, 0x01, 0x0a, 0x10, 0x53, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x43, 0x6f, - 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x12, 0x2d, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x63, - 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, - 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x63, 0x77, - 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, - 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2f, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x24, 0x12, 0x22, 0x2f, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, 0x63, 0x77, 0x68, 0x6f, 0x6f, - 0x6b, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x63, 0x6f, - 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x12, 0xae, 0x01, 0x0a, 0x13, 0x47, 0x6f, 0x76, 0x65, - 0x72, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x12, - 0x30, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2e, 0x76, - 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x6f, 0x76, 0x65, 0x72, 0x6e, 0x61, 0x6e, 0x63, - 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x31, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, - 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x6f, 0x76, 0x65, 0x72, 0x6e, 0x61, - 0x6e, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x32, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x27, 0x12, 0x25, 0x2f, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, - 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x6f, 0x76, 0x65, 0x72, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x63, - 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x42, 0xab, 0x01, 0x0a, 0x13, 0x63, 0x6f, 0x6d, - 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2e, 0x76, 0x31, - 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2a, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, - 0x2f, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2f, 0x76, 0x31, - 0x3b, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4a, 0x43, 0x58, - 0xaa, 0x02, 0x0f, 0x4a, 0x75, 0x6e, 0x6f, 0x2e, 0x43, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2e, - 0x56, 0x31, 0xca, 0x02, 0x0f, 0x4a, 0x75, 0x6e, 0x6f, 0x5c, 0x43, 0x77, 0x68, 0x6f, 0x6f, 0x6b, - 0x73, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1b, 0x4a, 0x75, 0x6e, 0x6f, 0x5c, 0x43, 0x77, 0x68, 0x6f, - 0x6f, 0x6b, 0x73, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0xea, 0x02, 0x11, 0x4a, 0x75, 0x6e, 0x6f, 0x3a, 0x3a, 0x43, 0x77, 0x68, 0x6f, 0x6f, - 0x6b, 0x73, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x2f, 0x0a, 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6f, + 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, + 0x0a, 0x06, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x22, 0x60, 0x0a, 0x16, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, + 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x46, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x63, 0x77, 0x68, 0x6f, 0x6f, + 0x6b, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x6e, + 0x66, 0x6f, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x09, 0x63, + 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x22, 0x77, 0x0a, 0x18, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x43, 0x0a, 0x10, + 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 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, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x22, 0x61, 0x0a, 0x19, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, + 0x63, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x44, + 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1d, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2e, + 0x76, 0x32, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x42, + 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x74, + 0x72, 0x61, 0x63, 0x74, 0x32, 0xc0, 0x03, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x79, + 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x23, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, + 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, + 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2e, 0x76, 0x32, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x24, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, + 0x12, 0x17, 0x2f, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2f, + 0x76, 0x32, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x8e, 0x01, 0x0a, 0x09, 0x43, 0x6f, + 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x12, 0x26, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x63, + 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, + 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x27, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2e, 0x76, + 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x30, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x25, 0x12, 0x23, 0x2f, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, 0x63, 0x77, 0x68, + 0x6f, 0x6f, 0x6b, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, + 0x73, 0x2f, 0x7b, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x7d, 0x12, 0xaa, 0x01, 0x0a, 0x0c, 0x43, + 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x29, 0x2e, 0x6a, 0x75, + 0x6e, 0x6f, 0x2e, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x63, 0x77, + 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6f, + 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x43, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x38, 0x12, + 0x36, 0x2f, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2f, 0x76, + 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x6d, 0x6f, 0x64, + 0x75, 0x6c, 0x65, 0x7d, 0x2f, 0x7b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x61, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x42, 0xab, 0x01, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, + 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2e, 0x76, 0x32, 0x42, + 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2a, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, + 0x6a, 0x75, 0x6e, 0x6f, 0x2f, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2f, 0x76, 0x32, 0x3b, + 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x76, 0x32, 0xa2, 0x02, 0x03, 0x4a, 0x43, 0x58, 0xaa, + 0x02, 0x0f, 0x4a, 0x75, 0x6e, 0x6f, 0x2e, 0x43, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2e, 0x56, + 0x32, 0xca, 0x02, 0x0f, 0x4a, 0x75, 0x6e, 0x6f, 0x5c, 0x43, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, + 0x5c, 0x56, 0x32, 0xe2, 0x02, 0x1b, 0x4a, 0x75, 0x6e, 0x6f, 0x5c, 0x43, 0x77, 0x68, 0x6f, 0x6f, + 0x6b, 0x73, 0x5c, 0x56, 0x32, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0xea, 0x02, 0x11, 0x4a, 0x75, 0x6e, 0x6f, 0x3a, 0x3a, 0x43, 0x77, 0x68, 0x6f, 0x6f, 0x6b, + 0x73, 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_juno_cwhooks_v1_query_proto_rawDescOnce sync.Once - file_juno_cwhooks_v1_query_proto_rawDescData = file_juno_cwhooks_v1_query_proto_rawDesc + file_juno_cwhooks_v2_query_proto_rawDescOnce sync.Once + file_juno_cwhooks_v2_query_proto_rawDescData = file_juno_cwhooks_v2_query_proto_rawDesc ) -func file_juno_cwhooks_v1_query_proto_rawDescGZIP() []byte { - file_juno_cwhooks_v1_query_proto_rawDescOnce.Do(func() { - file_juno_cwhooks_v1_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_juno_cwhooks_v1_query_proto_rawDescData) +func file_juno_cwhooks_v2_query_proto_rawDescGZIP() []byte { + file_juno_cwhooks_v2_query_proto_rawDescOnce.Do(func() { + file_juno_cwhooks_v2_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_juno_cwhooks_v2_query_proto_rawDescData) }) - return file_juno_cwhooks_v1_query_proto_rawDescData -} - -var file_juno_cwhooks_v1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 6) -var file_juno_cwhooks_v1_query_proto_goTypes = []interface{}{ - (*QueryParamsRequest)(nil), // 0: juno.cwhooks.v1.QueryParamsRequest - (*QueryParamsResponse)(nil), // 1: juno.cwhooks.v1.QueryParamsResponse - (*QueryStakingContractsRequest)(nil), // 2: juno.cwhooks.v1.QueryStakingContractsRequest - (*QueryStakingContractsResponse)(nil), // 3: juno.cwhooks.v1.QueryStakingContractsResponse - (*QueryGovernanceContractsRequest)(nil), // 4: juno.cwhooks.v1.QueryGovernanceContractsRequest - (*QueryGovernanceContractsResponse)(nil), // 5: juno.cwhooks.v1.QueryGovernanceContractsResponse - (*Params)(nil), // 6: juno.cwhooks.v1.Params -} -var file_juno_cwhooks_v1_query_proto_depIdxs = []int32{ - 6, // 0: juno.cwhooks.v1.QueryParamsResponse.params:type_name -> juno.cwhooks.v1.Params - 0, // 1: juno.cwhooks.v1.Query.Params:input_type -> juno.cwhooks.v1.QueryParamsRequest - 2, // 2: juno.cwhooks.v1.Query.StakingContracts:input_type -> juno.cwhooks.v1.QueryStakingContractsRequest - 4, // 3: juno.cwhooks.v1.Query.GovernanceContracts:input_type -> juno.cwhooks.v1.QueryGovernanceContractsRequest - 1, // 4: juno.cwhooks.v1.Query.Params:output_type -> juno.cwhooks.v1.QueryParamsResponse - 3, // 5: juno.cwhooks.v1.Query.StakingContracts:output_type -> juno.cwhooks.v1.QueryStakingContractsResponse - 5, // 6: juno.cwhooks.v1.Query.GovernanceContracts:output_type -> juno.cwhooks.v1.QueryGovernanceContractsResponse - 4, // [4:7] is the sub-list for method output_type - 1, // [1:4] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name -} - -func init() { file_juno_cwhooks_v1_query_proto_init() } -func file_juno_cwhooks_v1_query_proto_init() { - if File_juno_cwhooks_v1_query_proto != nil { + return file_juno_cwhooks_v2_query_proto_rawDescData +} + +var file_juno_cwhooks_v2_query_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_juno_cwhooks_v2_query_proto_goTypes = []interface{}{ + (*QueryParamsRequest)(nil), // 0: juno.cwhooks.v2.QueryParamsRequest + (*QueryParamsResponse)(nil), // 1: juno.cwhooks.v2.QueryParamsResponse + (*QueryContractsRequest)(nil), // 2: juno.cwhooks.v2.QueryContractsRequest + (*QueryContractsResponse)(nil), // 3: juno.cwhooks.v2.QueryContractsResponse + (*QueryContractInfoRequest)(nil), // 4: juno.cwhooks.v2.QueryContractInfoRequest + (*QueryContractInfoResponse)(nil), // 5: juno.cwhooks.v2.QueryContractInfoResponse + (*Params)(nil), // 6: juno.cwhooks.v2.Params + (*ContractInfo)(nil), // 7: juno.cwhooks.v2.ContractInfo +} +var file_juno_cwhooks_v2_query_proto_depIdxs = []int32{ + 6, // 0: juno.cwhooks.v2.QueryParamsResponse.params:type_name -> juno.cwhooks.v2.Params + 7, // 1: juno.cwhooks.v2.QueryContractsResponse.contracts:type_name -> juno.cwhooks.v2.ContractInfo + 7, // 2: juno.cwhooks.v2.QueryContractInfoResponse.contract:type_name -> juno.cwhooks.v2.ContractInfo + 0, // 3: juno.cwhooks.v2.Query.Params:input_type -> juno.cwhooks.v2.QueryParamsRequest + 2, // 4: juno.cwhooks.v2.Query.Contracts:input_type -> juno.cwhooks.v2.QueryContractsRequest + 4, // 5: juno.cwhooks.v2.Query.ContractInfo:input_type -> juno.cwhooks.v2.QueryContractInfoRequest + 1, // 6: juno.cwhooks.v2.Query.Params:output_type -> juno.cwhooks.v2.QueryParamsResponse + 3, // 7: juno.cwhooks.v2.Query.Contracts:output_type -> juno.cwhooks.v2.QueryContractsResponse + 5, // 8: juno.cwhooks.v2.Query.ContractInfo:output_type -> juno.cwhooks.v2.QueryContractInfoResponse + 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_juno_cwhooks_v2_query_proto_init() } +func file_juno_cwhooks_v2_query_proto_init() { + if File_juno_cwhooks_v2_query_proto != nil { return } - file_juno_cwhooks_v1_genesis_proto_init() + file_juno_cwhooks_v2_contract_proto_init() + file_juno_cwhooks_v2_genesis_proto_init() if !protoimpl.UnsafeEnabled { - file_juno_cwhooks_v1_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_juno_cwhooks_v2_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryParamsRequest); i { case 0: return &v.state @@ -2819,7 +3022,7 @@ func file_juno_cwhooks_v1_query_proto_init() { return nil } } - file_juno_cwhooks_v1_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_juno_cwhooks_v2_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryParamsResponse); i { case 0: return &v.state @@ -2831,8 +3034,8 @@ func file_juno_cwhooks_v1_query_proto_init() { return nil } } - file_juno_cwhooks_v1_query_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryStakingContractsRequest); i { + file_juno_cwhooks_v2_query_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryContractsRequest); i { case 0: return &v.state case 1: @@ -2843,8 +3046,8 @@ func file_juno_cwhooks_v1_query_proto_init() { return nil } } - file_juno_cwhooks_v1_query_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryStakingContractsResponse); i { + file_juno_cwhooks_v2_query_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryContractsResponse); i { case 0: return &v.state case 1: @@ -2855,8 +3058,8 @@ func file_juno_cwhooks_v1_query_proto_init() { return nil } } - file_juno_cwhooks_v1_query_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryGovernanceContractsRequest); i { + file_juno_cwhooks_v2_query_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryContractInfoRequest); i { case 0: return &v.state case 1: @@ -2867,8 +3070,8 @@ func file_juno_cwhooks_v1_query_proto_init() { return nil } } - file_juno_cwhooks_v1_query_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryGovernanceContractsResponse); i { + file_juno_cwhooks_v2_query_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryContractInfoResponse); i { case 0: return &v.state case 1: @@ -2884,18 +3087,18 @@ func file_juno_cwhooks_v1_query_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_juno_cwhooks_v1_query_proto_rawDesc, + RawDescriptor: file_juno_cwhooks_v2_query_proto_rawDesc, NumEnums: 0, NumMessages: 6, NumExtensions: 0, NumServices: 1, }, - GoTypes: file_juno_cwhooks_v1_query_proto_goTypes, - DependencyIndexes: file_juno_cwhooks_v1_query_proto_depIdxs, - MessageInfos: file_juno_cwhooks_v1_query_proto_msgTypes, + GoTypes: file_juno_cwhooks_v2_query_proto_goTypes, + DependencyIndexes: file_juno_cwhooks_v2_query_proto_depIdxs, + MessageInfos: file_juno_cwhooks_v2_query_proto_msgTypes, }.Build() - File_juno_cwhooks_v1_query_proto = out.File - file_juno_cwhooks_v1_query_proto_rawDesc = nil - file_juno_cwhooks_v1_query_proto_goTypes = nil - file_juno_cwhooks_v1_query_proto_depIdxs = nil + File_juno_cwhooks_v2_query_proto = out.File + file_juno_cwhooks_v2_query_proto_rawDesc = nil + file_juno_cwhooks_v2_query_proto_goTypes = nil + file_juno_cwhooks_v2_query_proto_depIdxs = nil } diff --git a/api/juno/cwhooks/v1/query_grpc.pb.go b/api/juno/cwhooks/v2/query_grpc.pb.go similarity index 60% rename from api/juno/cwhooks/v1/query_grpc.pb.go rename to api/juno/cwhooks/v2/query_grpc.pb.go index 95fd49cd3..faabcd822 100644 --- a/api/juno/cwhooks/v1/query_grpc.pb.go +++ b/api/juno/cwhooks/v2/query_grpc.pb.go @@ -2,9 +2,9 @@ // versions: // - protoc-gen-go-grpc v1.5.1 // - protoc (unknown) -// source: juno/cwhooks/v1/query.proto +// source: juno/cwhooks/v2/query.proto -package cwhooksv1 +package cwhooksv2 import ( context "context" @@ -19,23 +19,23 @@ import ( const _ = grpc.SupportPackageIsVersion9 const ( - Query_Params_FullMethodName = "/juno.cwhooks.v1.Query/Params" - Query_StakingContracts_FullMethodName = "/juno.cwhooks.v1.Query/StakingContracts" - Query_GovernanceContracts_FullMethodName = "/juno.cwhooks.v1.Query/GovernanceContracts" + Query_Params_FullMethodName = "/juno.cwhooks.v2.Query/Params" + Query_Contracts_FullMethodName = "/juno.cwhooks.v2.Query/Contracts" + Query_ContractInfo_FullMethodName = "/juno.cwhooks.v2.Query/ContractInfo" ) // QueryClient is the client API for Query service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. // -// Query defines the gRPC querier service. +// Query defines the gRPC querier service type QueryClient interface { - // Params + // Params gets all module params Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) - // StakingContracts - StakingContracts(ctx context.Context, in *QueryStakingContractsRequest, opts ...grpc.CallOption) (*QueryStakingContractsResponse, error) - // GovernanceContracts - GovernanceContracts(ctx context.Context, in *QueryGovernanceContractsRequest, opts ...grpc.CallOption) (*QueryGovernanceContractsResponse, error) + // Contracts gets all contracts for a module + Contracts(ctx context.Context, in *QueryContractsRequest, opts ...grpc.CallOption) (*QueryContractsResponse, error) + // ContractInfo gets a contract info for a module and contract address + ContractInfo(ctx context.Context, in *QueryContractInfoRequest, opts ...grpc.CallOption) (*QueryContractInfoResponse, error) } type queryClient struct { @@ -56,20 +56,20 @@ func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts . return out, nil } -func (c *queryClient) StakingContracts(ctx context.Context, in *QueryStakingContractsRequest, opts ...grpc.CallOption) (*QueryStakingContractsResponse, error) { +func (c *queryClient) Contracts(ctx context.Context, in *QueryContractsRequest, opts ...grpc.CallOption) (*QueryContractsResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(QueryStakingContractsResponse) - err := c.cc.Invoke(ctx, Query_StakingContracts_FullMethodName, in, out, cOpts...) + out := new(QueryContractsResponse) + err := c.cc.Invoke(ctx, Query_Contracts_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } -func (c *queryClient) GovernanceContracts(ctx context.Context, in *QueryGovernanceContractsRequest, opts ...grpc.CallOption) (*QueryGovernanceContractsResponse, error) { +func (c *queryClient) ContractInfo(ctx context.Context, in *QueryContractInfoRequest, opts ...grpc.CallOption) (*QueryContractInfoResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(QueryGovernanceContractsResponse) - err := c.cc.Invoke(ctx, Query_GovernanceContracts_FullMethodName, in, out, cOpts...) + out := new(QueryContractInfoResponse) + err := c.cc.Invoke(ctx, Query_ContractInfo_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -80,14 +80,14 @@ func (c *queryClient) GovernanceContracts(ctx context.Context, in *QueryGovernan // All implementations must embed UnimplementedQueryServer // for forward compatibility. // -// Query defines the gRPC querier service. +// Query defines the gRPC querier service type QueryServer interface { - // Params + // Params gets all module params Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) - // StakingContracts - StakingContracts(context.Context, *QueryStakingContractsRequest) (*QueryStakingContractsResponse, error) - // GovernanceContracts - GovernanceContracts(context.Context, *QueryGovernanceContractsRequest) (*QueryGovernanceContractsResponse, error) + // Contracts gets all contracts for a module + Contracts(context.Context, *QueryContractsRequest) (*QueryContractsResponse, error) + // ContractInfo gets a contract info for a module and contract address + ContractInfo(context.Context, *QueryContractInfoRequest) (*QueryContractInfoResponse, error) mustEmbedUnimplementedQueryServer() } @@ -101,11 +101,11 @@ type UnimplementedQueryServer struct{} func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") } -func (UnimplementedQueryServer) StakingContracts(context.Context, *QueryStakingContractsRequest) (*QueryStakingContractsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method StakingContracts not implemented") +func (UnimplementedQueryServer) Contracts(context.Context, *QueryContractsRequest) (*QueryContractsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Contracts not implemented") } -func (UnimplementedQueryServer) GovernanceContracts(context.Context, *QueryGovernanceContractsRequest) (*QueryGovernanceContractsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GovernanceContracts not implemented") +func (UnimplementedQueryServer) ContractInfo(context.Context, *QueryContractInfoRequest) (*QueryContractInfoResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ContractInfo not implemented") } func (UnimplementedQueryServer) mustEmbedUnimplementedQueryServer() {} func (UnimplementedQueryServer) testEmbeddedByValue() {} @@ -146,38 +146,38 @@ func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interf return interceptor(ctx, in, info, handler) } -func _Query_StakingContracts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryStakingContractsRequest) +func _Query_Contracts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryContractsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).StakingContracts(ctx, in) + return srv.(QueryServer).Contracts(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Query_StakingContracts_FullMethodName, + FullMethod: Query_Contracts_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).StakingContracts(ctx, req.(*QueryStakingContractsRequest)) + return srv.(QueryServer).Contracts(ctx, req.(*QueryContractsRequest)) } return interceptor(ctx, in, info, handler) } -func _Query_GovernanceContracts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGovernanceContractsRequest) +func _Query_ContractInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryContractInfoRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).GovernanceContracts(ctx, in) + return srv.(QueryServer).ContractInfo(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Query_GovernanceContracts_FullMethodName, + FullMethod: Query_ContractInfo_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).GovernanceContracts(ctx, req.(*QueryGovernanceContractsRequest)) + return srv.(QueryServer).ContractInfo(ctx, req.(*QueryContractInfoRequest)) } return interceptor(ctx, in, info, handler) } @@ -186,7 +186,7 @@ func _Query_GovernanceContracts_Handler(srv interface{}, ctx context.Context, de // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var Query_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "juno.cwhooks.v1.Query", + ServiceName: "juno.cwhooks.v2.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { @@ -194,14 +194,14 @@ var Query_ServiceDesc = grpc.ServiceDesc{ Handler: _Query_Params_Handler, }, { - MethodName: "StakingContracts", - Handler: _Query_StakingContracts_Handler, + MethodName: "Contracts", + Handler: _Query_Contracts_Handler, }, { - MethodName: "GovernanceContracts", - Handler: _Query_GovernanceContracts_Handler, + MethodName: "ContractInfo", + Handler: _Query_ContractInfo_Handler, }, }, Streams: []grpc.StreamDesc{}, - Metadata: "juno/cwhooks/v1/query.proto", + Metadata: "juno/cwhooks/v2/query.proto", } diff --git a/api/juno/cwhooks/v2/tx.pulsar.go b/api/juno/cwhooks/v2/tx.pulsar.go new file mode 100644 index 000000000..6081c2880 --- /dev/null +++ b/api/juno/cwhooks/v2/tx.pulsar.go @@ -0,0 +1,3169 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package cwhooksv2 + +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_juno_cwhooks_v2_tx_proto_init() + md_MsgUpdateParams = File_juno_cwhooks_v2_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_juno_cwhooks_v2_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 "juno.cwhooks.v2.MsgUpdateParams.authority": + return x.Authority != "" + case "juno.cwhooks.v2.MsgUpdateParams.params": + return x.Params != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.MsgUpdateParams")) + } + panic(fmt.Errorf("message juno.cwhooks.v2.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 "juno.cwhooks.v2.MsgUpdateParams.authority": + x.Authority = "" + case "juno.cwhooks.v2.MsgUpdateParams.params": + x.Params = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.MsgUpdateParams")) + } + panic(fmt.Errorf("message juno.cwhooks.v2.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 "juno.cwhooks.v2.MsgUpdateParams.authority": + value := x.Authority + return protoreflect.ValueOfString(value) + case "juno.cwhooks.v2.MsgUpdateParams.params": + value := x.Params + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.MsgUpdateParams")) + } + panic(fmt.Errorf("message juno.cwhooks.v2.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 "juno.cwhooks.v2.MsgUpdateParams.authority": + x.Authority = value.Interface().(string) + case "juno.cwhooks.v2.MsgUpdateParams.params": + x.Params = value.Message().Interface().(*Params) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.MsgUpdateParams")) + } + panic(fmt.Errorf("message juno.cwhooks.v2.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 "juno.cwhooks.v2.MsgUpdateParams.params": + if x.Params == nil { + x.Params = new(Params) + } + return protoreflect.ValueOfMessage(x.Params.ProtoReflect()) + case "juno.cwhooks.v2.MsgUpdateParams.authority": + panic(fmt.Errorf("field authority of message juno.cwhooks.v2.MsgUpdateParams is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.MsgUpdateParams")) + } + panic(fmt.Errorf("message juno.cwhooks.v2.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 "juno.cwhooks.v2.MsgUpdateParams.authority": + return protoreflect.ValueOfString("") + case "juno.cwhooks.v2.MsgUpdateParams.params": + m := new(Params) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.MsgUpdateParams")) + } + panic(fmt.Errorf("message juno.cwhooks.v2.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 juno.cwhooks.v2.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_juno_cwhooks_v2_tx_proto_init() + md_MsgUpdateParamsResponse = File_juno_cwhooks_v2_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_juno_cwhooks_v2_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: juno.cwhooks.v2.MsgUpdateParamsResponse")) + } + panic(fmt.Errorf("message juno.cwhooks.v2.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: juno.cwhooks.v2.MsgUpdateParamsResponse")) + } + panic(fmt.Errorf("message juno.cwhooks.v2.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: juno.cwhooks.v2.MsgUpdateParamsResponse")) + } + panic(fmt.Errorf("message juno.cwhooks.v2.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: juno.cwhooks.v2.MsgUpdateParamsResponse")) + } + panic(fmt.Errorf("message juno.cwhooks.v2.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: juno.cwhooks.v2.MsgUpdateParamsResponse")) + } + panic(fmt.Errorf("message juno.cwhooks.v2.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: juno.cwhooks.v2.MsgUpdateParamsResponse")) + } + panic(fmt.Errorf("message juno.cwhooks.v2.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 juno.cwhooks.v2.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_MsgRegisterContract protoreflect.MessageDescriptor + fd_MsgRegisterContract_sender_address protoreflect.FieldDescriptor + fd_MsgRegisterContract_module protoreflect.FieldDescriptor + fd_MsgRegisterContract_contract_address protoreflect.FieldDescriptor +) + +func init() { + file_juno_cwhooks_v2_tx_proto_init() + md_MsgRegisterContract = File_juno_cwhooks_v2_tx_proto.Messages().ByName("MsgRegisterContract") + fd_MsgRegisterContract_sender_address = md_MsgRegisterContract.Fields().ByName("sender_address") + fd_MsgRegisterContract_module = md_MsgRegisterContract.Fields().ByName("module") + fd_MsgRegisterContract_contract_address = md_MsgRegisterContract.Fields().ByName("contract_address") +} + +var _ protoreflect.Message = (*fastReflection_MsgRegisterContract)(nil) + +type fastReflection_MsgRegisterContract MsgRegisterContract + +func (x *MsgRegisterContract) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgRegisterContract)(x) +} + +func (x *MsgRegisterContract) slowProtoReflect() protoreflect.Message { + mi := &file_juno_cwhooks_v2_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_MsgRegisterContract_messageType fastReflection_MsgRegisterContract_messageType +var _ protoreflect.MessageType = fastReflection_MsgRegisterContract_messageType{} + +type fastReflection_MsgRegisterContract_messageType struct{} + +func (x fastReflection_MsgRegisterContract_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgRegisterContract)(nil) +} +func (x fastReflection_MsgRegisterContract_messageType) New() protoreflect.Message { + return new(fastReflection_MsgRegisterContract) +} +func (x fastReflection_MsgRegisterContract_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRegisterContract +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgRegisterContract) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRegisterContract +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_MsgRegisterContract) Type() protoreflect.MessageType { + return _fastReflection_MsgRegisterContract_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgRegisterContract) New() protoreflect.Message { + return new(fastReflection_MsgRegisterContract) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgRegisterContract) Interface() protoreflect.ProtoMessage { + return (*MsgRegisterContract)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_MsgRegisterContract) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.SenderAddress != "" { + value := protoreflect.ValueOfString(x.SenderAddress) + if !f(fd_MsgRegisterContract_sender_address, value) { + return + } + } + if x.Module != "" { + value := protoreflect.ValueOfString(x.Module) + if !f(fd_MsgRegisterContract_module, value) { + return + } + } + if x.ContractAddress != "" { + value := protoreflect.ValueOfString(x.ContractAddress) + if !f(fd_MsgRegisterContract_contract_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_MsgRegisterContract) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "juno.cwhooks.v2.MsgRegisterContract.sender_address": + return x.SenderAddress != "" + case "juno.cwhooks.v2.MsgRegisterContract.module": + return x.Module != "" + case "juno.cwhooks.v2.MsgRegisterContract.contract_address": + return x.ContractAddress != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.MsgRegisterContract")) + } + panic(fmt.Errorf("message juno.cwhooks.v2.MsgRegisterContract does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgRegisterContract) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "juno.cwhooks.v2.MsgRegisterContract.sender_address": + x.SenderAddress = "" + case "juno.cwhooks.v2.MsgRegisterContract.module": + x.Module = "" + case "juno.cwhooks.v2.MsgRegisterContract.contract_address": + x.ContractAddress = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.MsgRegisterContract")) + } + panic(fmt.Errorf("message juno.cwhooks.v2.MsgRegisterContract does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_MsgRegisterContract) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "juno.cwhooks.v2.MsgRegisterContract.sender_address": + value := x.SenderAddress + return protoreflect.ValueOfString(value) + case "juno.cwhooks.v2.MsgRegisterContract.module": + value := x.Module + return protoreflect.ValueOfString(value) + case "juno.cwhooks.v2.MsgRegisterContract.contract_address": + value := x.ContractAddress + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.MsgRegisterContract")) + } + panic(fmt.Errorf("message juno.cwhooks.v2.MsgRegisterContract does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgRegisterContract) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "juno.cwhooks.v2.MsgRegisterContract.sender_address": + x.SenderAddress = value.Interface().(string) + case "juno.cwhooks.v2.MsgRegisterContract.module": + x.Module = value.Interface().(string) + case "juno.cwhooks.v2.MsgRegisterContract.contract_address": + x.ContractAddress = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.MsgRegisterContract")) + } + panic(fmt.Errorf("message juno.cwhooks.v2.MsgRegisterContract does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgRegisterContract) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "juno.cwhooks.v2.MsgRegisterContract.sender_address": + panic(fmt.Errorf("field sender_address of message juno.cwhooks.v2.MsgRegisterContract is not mutable")) + case "juno.cwhooks.v2.MsgRegisterContract.module": + panic(fmt.Errorf("field module of message juno.cwhooks.v2.MsgRegisterContract is not mutable")) + case "juno.cwhooks.v2.MsgRegisterContract.contract_address": + panic(fmt.Errorf("field contract_address of message juno.cwhooks.v2.MsgRegisterContract is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.MsgRegisterContract")) + } + panic(fmt.Errorf("message juno.cwhooks.v2.MsgRegisterContract does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_MsgRegisterContract) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "juno.cwhooks.v2.MsgRegisterContract.sender_address": + return protoreflect.ValueOfString("") + case "juno.cwhooks.v2.MsgRegisterContract.module": + return protoreflect.ValueOfString("") + case "juno.cwhooks.v2.MsgRegisterContract.contract_address": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.MsgRegisterContract")) + } + panic(fmt.Errorf("message juno.cwhooks.v2.MsgRegisterContract does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_MsgRegisterContract) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in juno.cwhooks.v2.MsgRegisterContract", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_MsgRegisterContract) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgRegisterContract) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_MsgRegisterContract) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_MsgRegisterContract) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgRegisterContract) + 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.SenderAddress) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Module) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.ContractAddress) + 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().(*MsgRegisterContract) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]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.ContractAddress) > 0 { + i -= len(x.ContractAddress) + copy(dAtA[i:], x.ContractAddress) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ContractAddress))) + i-- + dAtA[i] = 0x1a + } + if len(x.Module) > 0 { + i -= len(x.Module) + copy(dAtA[i:], x.Module) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Module))) + i-- + dAtA[i] = 0x12 + } + if len(x.SenderAddress) > 0 { + i -= len(x.SenderAddress) + copy(dAtA[i:], x.SenderAddress) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.SenderAddress))) + 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().(*MsgRegisterContract) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRegisterContract: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRegisterContract: 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 SenderAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.SenderAddress = 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 Module", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Module = 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 ContractAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.ContractAddress = 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_MsgRegisterContractResponse protoreflect.MessageDescriptor +) + +func init() { + file_juno_cwhooks_v2_tx_proto_init() + md_MsgRegisterContractResponse = File_juno_cwhooks_v2_tx_proto.Messages().ByName("MsgRegisterContractResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgRegisterContractResponse)(nil) + +type fastReflection_MsgRegisterContractResponse MsgRegisterContractResponse + +func (x *MsgRegisterContractResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgRegisterContractResponse)(x) +} + +func (x *MsgRegisterContractResponse) slowProtoReflect() protoreflect.Message { + mi := &file_juno_cwhooks_v2_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_MsgRegisterContractResponse_messageType fastReflection_MsgRegisterContractResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgRegisterContractResponse_messageType{} + +type fastReflection_MsgRegisterContractResponse_messageType struct{} + +func (x fastReflection_MsgRegisterContractResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgRegisterContractResponse)(nil) +} +func (x fastReflection_MsgRegisterContractResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgRegisterContractResponse) +} +func (x fastReflection_MsgRegisterContractResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRegisterContractResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgRegisterContractResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRegisterContractResponse +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_MsgRegisterContractResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgRegisterContractResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgRegisterContractResponse) New() protoreflect.Message { + return new(fastReflection_MsgRegisterContractResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgRegisterContractResponse) Interface() protoreflect.ProtoMessage { + return (*MsgRegisterContractResponse)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_MsgRegisterContractResponse) 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_MsgRegisterContractResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.MsgRegisterContractResponse")) + } + panic(fmt.Errorf("message juno.cwhooks.v2.MsgRegisterContractResponse does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgRegisterContractResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.MsgRegisterContractResponse")) + } + panic(fmt.Errorf("message juno.cwhooks.v2.MsgRegisterContractResponse does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_MsgRegisterContractResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.MsgRegisterContractResponse")) + } + panic(fmt.Errorf("message juno.cwhooks.v2.MsgRegisterContractResponse does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgRegisterContractResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.MsgRegisterContractResponse")) + } + panic(fmt.Errorf("message juno.cwhooks.v2.MsgRegisterContractResponse does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgRegisterContractResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.MsgRegisterContractResponse")) + } + panic(fmt.Errorf("message juno.cwhooks.v2.MsgRegisterContractResponse does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_MsgRegisterContractResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.MsgRegisterContractResponse")) + } + panic(fmt.Errorf("message juno.cwhooks.v2.MsgRegisterContractResponse does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_MsgRegisterContractResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in juno.cwhooks.v2.MsgRegisterContractResponse", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_MsgRegisterContractResponse) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgRegisterContractResponse) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_MsgRegisterContractResponse) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_MsgRegisterContractResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgRegisterContractResponse) + 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().(*MsgRegisterContractResponse) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]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().(*MsgRegisterContractResponse) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRegisterContractResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRegisterContractResponse: 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_MsgUnregisterContract protoreflect.MessageDescriptor + fd_MsgUnregisterContract_sender_address protoreflect.FieldDescriptor + fd_MsgUnregisterContract_module protoreflect.FieldDescriptor + fd_MsgUnregisterContract_contract_address protoreflect.FieldDescriptor +) + +func init() { + file_juno_cwhooks_v2_tx_proto_init() + md_MsgUnregisterContract = File_juno_cwhooks_v2_tx_proto.Messages().ByName("MsgUnregisterContract") + fd_MsgUnregisterContract_sender_address = md_MsgUnregisterContract.Fields().ByName("sender_address") + fd_MsgUnregisterContract_module = md_MsgUnregisterContract.Fields().ByName("module") + fd_MsgUnregisterContract_contract_address = md_MsgUnregisterContract.Fields().ByName("contract_address") +} + +var _ protoreflect.Message = (*fastReflection_MsgUnregisterContract)(nil) + +type fastReflection_MsgUnregisterContract MsgUnregisterContract + +func (x *MsgUnregisterContract) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUnregisterContract)(x) +} + +func (x *MsgUnregisterContract) slowProtoReflect() protoreflect.Message { + mi := &file_juno_cwhooks_v2_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_MsgUnregisterContract_messageType fastReflection_MsgUnregisterContract_messageType +var _ protoreflect.MessageType = fastReflection_MsgUnregisterContract_messageType{} + +type fastReflection_MsgUnregisterContract_messageType struct{} + +func (x fastReflection_MsgUnregisterContract_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUnregisterContract)(nil) +} +func (x fastReflection_MsgUnregisterContract_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUnregisterContract) +} +func (x fastReflection_MsgUnregisterContract_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUnregisterContract +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgUnregisterContract) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUnregisterContract +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_MsgUnregisterContract) Type() protoreflect.MessageType { + return _fastReflection_MsgUnregisterContract_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgUnregisterContract) New() protoreflect.Message { + return new(fastReflection_MsgUnregisterContract) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgUnregisterContract) Interface() protoreflect.ProtoMessage { + return (*MsgUnregisterContract)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_MsgUnregisterContract) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.SenderAddress != "" { + value := protoreflect.ValueOfString(x.SenderAddress) + if !f(fd_MsgUnregisterContract_sender_address, value) { + return + } + } + if x.Module != "" { + value := protoreflect.ValueOfString(x.Module) + if !f(fd_MsgUnregisterContract_module, value) { + return + } + } + if x.ContractAddress != "" { + value := protoreflect.ValueOfString(x.ContractAddress) + if !f(fd_MsgUnregisterContract_contract_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_MsgUnregisterContract) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "juno.cwhooks.v2.MsgUnregisterContract.sender_address": + return x.SenderAddress != "" + case "juno.cwhooks.v2.MsgUnregisterContract.module": + return x.Module != "" + case "juno.cwhooks.v2.MsgUnregisterContract.contract_address": + return x.ContractAddress != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.MsgUnregisterContract")) + } + panic(fmt.Errorf("message juno.cwhooks.v2.MsgUnregisterContract does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgUnregisterContract) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "juno.cwhooks.v2.MsgUnregisterContract.sender_address": + x.SenderAddress = "" + case "juno.cwhooks.v2.MsgUnregisterContract.module": + x.Module = "" + case "juno.cwhooks.v2.MsgUnregisterContract.contract_address": + x.ContractAddress = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.MsgUnregisterContract")) + } + panic(fmt.Errorf("message juno.cwhooks.v2.MsgUnregisterContract does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_MsgUnregisterContract) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "juno.cwhooks.v2.MsgUnregisterContract.sender_address": + value := x.SenderAddress + return protoreflect.ValueOfString(value) + case "juno.cwhooks.v2.MsgUnregisterContract.module": + value := x.Module + return protoreflect.ValueOfString(value) + case "juno.cwhooks.v2.MsgUnregisterContract.contract_address": + value := x.ContractAddress + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.MsgUnregisterContract")) + } + panic(fmt.Errorf("message juno.cwhooks.v2.MsgUnregisterContract does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgUnregisterContract) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "juno.cwhooks.v2.MsgUnregisterContract.sender_address": + x.SenderAddress = value.Interface().(string) + case "juno.cwhooks.v2.MsgUnregisterContract.module": + x.Module = value.Interface().(string) + case "juno.cwhooks.v2.MsgUnregisterContract.contract_address": + x.ContractAddress = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.MsgUnregisterContract")) + } + panic(fmt.Errorf("message juno.cwhooks.v2.MsgUnregisterContract does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgUnregisterContract) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "juno.cwhooks.v2.MsgUnregisterContract.sender_address": + panic(fmt.Errorf("field sender_address of message juno.cwhooks.v2.MsgUnregisterContract is not mutable")) + case "juno.cwhooks.v2.MsgUnregisterContract.module": + panic(fmt.Errorf("field module of message juno.cwhooks.v2.MsgUnregisterContract is not mutable")) + case "juno.cwhooks.v2.MsgUnregisterContract.contract_address": + panic(fmt.Errorf("field contract_address of message juno.cwhooks.v2.MsgUnregisterContract is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.MsgUnregisterContract")) + } + panic(fmt.Errorf("message juno.cwhooks.v2.MsgUnregisterContract does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_MsgUnregisterContract) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "juno.cwhooks.v2.MsgUnregisterContract.sender_address": + return protoreflect.ValueOfString("") + case "juno.cwhooks.v2.MsgUnregisterContract.module": + return protoreflect.ValueOfString("") + case "juno.cwhooks.v2.MsgUnregisterContract.contract_address": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.MsgUnregisterContract")) + } + panic(fmt.Errorf("message juno.cwhooks.v2.MsgUnregisterContract does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_MsgUnregisterContract) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in juno.cwhooks.v2.MsgUnregisterContract", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_MsgUnregisterContract) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgUnregisterContract) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_MsgUnregisterContract) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_MsgUnregisterContract) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgUnregisterContract) + 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.SenderAddress) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Module) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.ContractAddress) + 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().(*MsgUnregisterContract) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]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.ContractAddress) > 0 { + i -= len(x.ContractAddress) + copy(dAtA[i:], x.ContractAddress) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ContractAddress))) + i-- + dAtA[i] = 0x1a + } + if len(x.Module) > 0 { + i -= len(x.Module) + copy(dAtA[i:], x.Module) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Module))) + i-- + dAtA[i] = 0x12 + } + if len(x.SenderAddress) > 0 { + i -= len(x.SenderAddress) + copy(dAtA[i:], x.SenderAddress) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.SenderAddress))) + 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().(*MsgUnregisterContract) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUnregisterContract: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUnregisterContract: 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 SenderAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.SenderAddress = 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 Module", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Module = 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 ContractAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.ContractAddress = 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_MsgUnregisterContractResponse protoreflect.MessageDescriptor +) + +func init() { + file_juno_cwhooks_v2_tx_proto_init() + md_MsgUnregisterContractResponse = File_juno_cwhooks_v2_tx_proto.Messages().ByName("MsgUnregisterContractResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgUnregisterContractResponse)(nil) + +type fastReflection_MsgUnregisterContractResponse MsgUnregisterContractResponse + +func (x *MsgUnregisterContractResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUnregisterContractResponse)(x) +} + +func (x *MsgUnregisterContractResponse) slowProtoReflect() protoreflect.Message { + mi := &file_juno_cwhooks_v2_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_MsgUnregisterContractResponse_messageType fastReflection_MsgUnregisterContractResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgUnregisterContractResponse_messageType{} + +type fastReflection_MsgUnregisterContractResponse_messageType struct{} + +func (x fastReflection_MsgUnregisterContractResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUnregisterContractResponse)(nil) +} +func (x fastReflection_MsgUnregisterContractResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUnregisterContractResponse) +} +func (x fastReflection_MsgUnregisterContractResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUnregisterContractResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgUnregisterContractResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUnregisterContractResponse +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_MsgUnregisterContractResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgUnregisterContractResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgUnregisterContractResponse) New() protoreflect.Message { + return new(fastReflection_MsgUnregisterContractResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgUnregisterContractResponse) Interface() protoreflect.ProtoMessage { + return (*MsgUnregisterContractResponse)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_MsgUnregisterContractResponse) 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_MsgUnregisterContractResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.MsgUnregisterContractResponse")) + } + panic(fmt.Errorf("message juno.cwhooks.v2.MsgUnregisterContractResponse does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgUnregisterContractResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.MsgUnregisterContractResponse")) + } + panic(fmt.Errorf("message juno.cwhooks.v2.MsgUnregisterContractResponse does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_MsgUnregisterContractResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.MsgUnregisterContractResponse")) + } + panic(fmt.Errorf("message juno.cwhooks.v2.MsgUnregisterContractResponse does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgUnregisterContractResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.MsgUnregisterContractResponse")) + } + panic(fmt.Errorf("message juno.cwhooks.v2.MsgUnregisterContractResponse does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgUnregisterContractResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.MsgUnregisterContractResponse")) + } + panic(fmt.Errorf("message juno.cwhooks.v2.MsgUnregisterContractResponse does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_MsgUnregisterContractResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.cwhooks.v2.MsgUnregisterContractResponse")) + } + panic(fmt.Errorf("message juno.cwhooks.v2.MsgUnregisterContractResponse does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_MsgUnregisterContractResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in juno.cwhooks.v2.MsgUnregisterContractResponse", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_MsgUnregisterContractResponse) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgUnregisterContractResponse) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_MsgUnregisterContractResponse) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_MsgUnregisterContractResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgUnregisterContractResponse) + 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().(*MsgUnregisterContractResponse) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]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().(*MsgUnregisterContractResponse) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUnregisterContractResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUnregisterContractResponse: 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: juno/cwhooks/v2/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 of the governance account + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // params defines the x/clock 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_juno_cwhooks_v2_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_juno_cwhooks_v2_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. +// +// Since: cosmos-sdk 0.47 +type MsgUpdateParamsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MsgUpdateParamsResponse) Reset() { + *x = MsgUpdateParamsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_juno_cwhooks_v2_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_juno_cwhooks_v2_tx_proto_rawDescGZIP(), []int{1} +} + +// MsgRegisterContract +type MsgRegisterContract struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The address of the sender + SenderAddress string `protobuf:"bytes,1,opt,name=sender_address,json=senderAddress,proto3" json:"sender_address,omitempty"` + // The module key the contract is registered for + Module string `protobuf:"bytes,2,opt,name=module,proto3" json:"module,omitempty"` + // The contract address to register + ContractAddress string `protobuf:"bytes,3,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"` +} + +func (x *MsgRegisterContract) Reset() { + *x = MsgRegisterContract{} + if protoimpl.UnsafeEnabled { + mi := &file_juno_cwhooks_v2_tx_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgRegisterContract) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgRegisterContract) ProtoMessage() {} + +// Deprecated: Use MsgRegisterContract.ProtoReflect.Descriptor instead. +func (*MsgRegisterContract) Descriptor() ([]byte, []int) { + return file_juno_cwhooks_v2_tx_proto_rawDescGZIP(), []int{2} +} + +func (x *MsgRegisterContract) GetSenderAddress() string { + if x != nil { + return x.SenderAddress + } + return "" +} + +func (x *MsgRegisterContract) GetModule() string { + if x != nil { + return x.Module + } + return "" +} + +func (x *MsgRegisterContract) GetContractAddress() string { + if x != nil { + return x.ContractAddress + } + return "" +} + +// MsgRegisterContractResponse +type MsgRegisterContractResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MsgRegisterContractResponse) Reset() { + *x = MsgRegisterContractResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_juno_cwhooks_v2_tx_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgRegisterContractResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgRegisterContractResponse) ProtoMessage() {} + +// Deprecated: Use MsgRegisterContractResponse.ProtoReflect.Descriptor instead. +func (*MsgRegisterContractResponse) Descriptor() ([]byte, []int) { + return file_juno_cwhooks_v2_tx_proto_rawDescGZIP(), []int{3} +} + +// MsgUnregisterContract +type MsgUnregisterContract struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The address of the sender + SenderAddress string `protobuf:"bytes,1,opt,name=sender_address,json=senderAddress,proto3" json:"sender_address,omitempty"` + // The module key the contract is registered for + Module string `protobuf:"bytes,2,opt,name=module,proto3" json:"module,omitempty"` + // The contract address to unregister + ContractAddress string `protobuf:"bytes,3,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"` +} + +func (x *MsgUnregisterContract) Reset() { + *x = MsgUnregisterContract{} + if protoimpl.UnsafeEnabled { + mi := &file_juno_cwhooks_v2_tx_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgUnregisterContract) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgUnregisterContract) ProtoMessage() {} + +// Deprecated: Use MsgUnregisterContract.ProtoReflect.Descriptor instead. +func (*MsgUnregisterContract) Descriptor() ([]byte, []int) { + return file_juno_cwhooks_v2_tx_proto_rawDescGZIP(), []int{4} +} + +func (x *MsgUnregisterContract) GetSenderAddress() string { + if x != nil { + return x.SenderAddress + } + return "" +} + +func (x *MsgUnregisterContract) GetModule() string { + if x != nil { + return x.Module + } + return "" +} + +func (x *MsgUnregisterContract) GetContractAddress() string { + if x != nil { + return x.ContractAddress + } + return "" +} + +// MsgUnregisterContractResponse +type MsgUnregisterContractResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MsgUnregisterContractResponse) Reset() { + *x = MsgUnregisterContractResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_juno_cwhooks_v2_tx_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgUnregisterContractResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgUnregisterContractResponse) ProtoMessage() {} + +// Deprecated: Use MsgUnregisterContractResponse.ProtoReflect.Descriptor instead. +func (*MsgUnregisterContractResponse) Descriptor() ([]byte, []int) { + return file_juno_cwhooks_v2_tx_proto_rawDescGZIP(), []int{5} +} + +var File_juno_cwhooks_v2_tx_proto protoreflect.FileDescriptor + +var file_juno_cwhooks_v2_tx_proto_rawDesc = []byte{ + 0x0a, 0x18, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2f, 0x76, + 0x32, 0x2f, 0x74, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x6a, 0x75, 0x6e, 0x6f, + 0x2e, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2e, 0x76, 0x32, 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, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, 0x63, + 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, + 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc0, 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, 0x3a, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x63, 0x77, 0x68, 0x6f, 0x6f, + 0x6b, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x09, 0xc8, 0xde, + 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x3a, + 0x39, 0x88, 0xa0, 0x1f, 0x00, 0xe8, 0xa0, 0x1f, 0x00, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, + 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x8a, 0xe7, 0xb0, 0x2a, 0x1e, 0x6a, 0x75, 0x6e, 0x6f, + 0x2f, 0x78, 0x2f, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 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, 0x22, 0xf7, 0x01, 0x0a, 0x13, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x12, 0x3f, 0x0a, + 0x0e, 0x73, 0x65, 0x6e, 0x64, 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, + 0x0d, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x16, + 0x0a, 0x06, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x43, 0x0a, 0x10, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, + 0x63, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x0f, 0x63, 0x6f, 0x6e, 0x74, + 0x72, 0x61, 0x63, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x3a, 0x42, 0x88, 0xa0, 0x1f, + 0x00, 0xe8, 0xa0, 0x1f, 0x00, 0x82, 0xe7, 0xb0, 0x2a, 0x0e, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, + 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x8a, 0xe7, 0xb0, 0x2a, 0x22, 0x6a, 0x75, 0x6e, + 0x6f, 0x2f, 0x78, 0x2f, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2f, 0x4d, 0x73, 0x67, 0x52, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x22, + 0x1d, 0x0a, 0x1b, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, + 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xfb, + 0x01, 0x0a, 0x15, 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, + 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x12, 0x3f, 0x0a, 0x0e, 0x73, 0x65, 0x6e, 0x64, + 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, 0x0d, 0x73, 0x65, 0x6e, 0x64, + 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x6f, 0x64, + 0x75, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x6f, 0x64, 0x75, 0x6c, + 0x65, 0x12, 0x43, 0x0a, 0x10, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x61, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, + 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, + 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x0f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x41, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x3a, 0x44, 0x88, 0xa0, 0x1f, 0x00, 0xe8, 0xa0, 0x1f, 0x00, + 0x82, 0xe7, 0xb0, 0x2a, 0x0e, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x8a, 0xe7, 0xb0, 0x2a, 0x24, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, 0x78, 0x2f, 0x63, + 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2f, 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x22, 0x1f, 0x0a, 0x1d, + 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, + 0x74, 0x72, 0x61, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xbe, 0x02, + 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x5a, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, + 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x20, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x63, 0x77, 0x68, + 0x6f, 0x6f, 0x6b, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x28, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x63, + 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x66, 0x0a, 0x10, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, + 0x74, 0x72, 0x61, 0x63, 0x74, 0x12, 0x24, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x63, 0x77, 0x68, + 0x6f, 0x6f, 0x6b, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x1a, 0x2c, 0x2e, 0x6a, 0x75, + 0x6e, 0x6f, 0x2e, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, + 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, + 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6c, 0x0a, 0x12, 0x55, 0x6e, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x12, + 0x26, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2e, 0x76, + 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x43, + 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x1a, 0x2e, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x63, + 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a, 0x01, 0x42, 0xa8, + 0x01, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x63, 0x77, 0x68, 0x6f, + 0x6f, 0x6b, 0x73, 0x2e, 0x76, 0x32, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, + 0x01, 0x5a, 0x2a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, + 0x61, 0x70, 0x69, 0x2f, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, + 0x2f, 0x76, 0x32, 0x3b, 0x63, 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x76, 0x32, 0xa2, 0x02, 0x03, + 0x4a, 0x43, 0x58, 0xaa, 0x02, 0x0f, 0x4a, 0x75, 0x6e, 0x6f, 0x2e, 0x43, 0x77, 0x68, 0x6f, 0x6f, + 0x6b, 0x73, 0x2e, 0x56, 0x32, 0xca, 0x02, 0x0f, 0x4a, 0x75, 0x6e, 0x6f, 0x5c, 0x43, 0x77, 0x68, + 0x6f, 0x6f, 0x6b, 0x73, 0x5c, 0x56, 0x32, 0xe2, 0x02, 0x1b, 0x4a, 0x75, 0x6e, 0x6f, 0x5c, 0x43, + 0x77, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x5c, 0x56, 0x32, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x4a, 0x75, 0x6e, 0x6f, 0x3a, 0x3a, 0x43, 0x77, + 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, +} + +var ( + file_juno_cwhooks_v2_tx_proto_rawDescOnce sync.Once + file_juno_cwhooks_v2_tx_proto_rawDescData = file_juno_cwhooks_v2_tx_proto_rawDesc +) + +func file_juno_cwhooks_v2_tx_proto_rawDescGZIP() []byte { + file_juno_cwhooks_v2_tx_proto_rawDescOnce.Do(func() { + file_juno_cwhooks_v2_tx_proto_rawDescData = protoimpl.X.CompressGZIP(file_juno_cwhooks_v2_tx_proto_rawDescData) + }) + return file_juno_cwhooks_v2_tx_proto_rawDescData +} + +var file_juno_cwhooks_v2_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_juno_cwhooks_v2_tx_proto_goTypes = []interface{}{ + (*MsgUpdateParams)(nil), // 0: juno.cwhooks.v2.MsgUpdateParams + (*MsgUpdateParamsResponse)(nil), // 1: juno.cwhooks.v2.MsgUpdateParamsResponse + (*MsgRegisterContract)(nil), // 2: juno.cwhooks.v2.MsgRegisterContract + (*MsgRegisterContractResponse)(nil), // 3: juno.cwhooks.v2.MsgRegisterContractResponse + (*MsgUnregisterContract)(nil), // 4: juno.cwhooks.v2.MsgUnregisterContract + (*MsgUnregisterContractResponse)(nil), // 5: juno.cwhooks.v2.MsgUnregisterContractResponse + (*Params)(nil), // 6: juno.cwhooks.v2.Params +} +var file_juno_cwhooks_v2_tx_proto_depIdxs = []int32{ + 6, // 0: juno.cwhooks.v2.MsgUpdateParams.params:type_name -> juno.cwhooks.v2.Params + 0, // 1: juno.cwhooks.v2.Msg.UpdateParams:input_type -> juno.cwhooks.v2.MsgUpdateParams + 2, // 2: juno.cwhooks.v2.Msg.RegisterContract:input_type -> juno.cwhooks.v2.MsgRegisterContract + 4, // 3: juno.cwhooks.v2.Msg.UnregisterContract:input_type -> juno.cwhooks.v2.MsgUnregisterContract + 1, // 4: juno.cwhooks.v2.Msg.UpdateParams:output_type -> juno.cwhooks.v2.MsgUpdateParamsResponse + 3, // 5: juno.cwhooks.v2.Msg.RegisterContract:output_type -> juno.cwhooks.v2.MsgRegisterContractResponse + 5, // 6: juno.cwhooks.v2.Msg.UnregisterContract:output_type -> juno.cwhooks.v2.MsgUnregisterContractResponse + 4, // [4:7] is the sub-list for method output_type + 1, // [1:4] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name +} + +func init() { file_juno_cwhooks_v2_tx_proto_init() } +func file_juno_cwhooks_v2_tx_proto_init() { + if File_juno_cwhooks_v2_tx_proto != nil { + return + } + file_juno_cwhooks_v2_genesis_proto_init() + if !protoimpl.UnsafeEnabled { + file_juno_cwhooks_v2_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_juno_cwhooks_v2_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_juno_cwhooks_v2_tx_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgRegisterContract); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_juno_cwhooks_v2_tx_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgRegisterContractResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_juno_cwhooks_v2_tx_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgUnregisterContract); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_juno_cwhooks_v2_tx_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgUnregisterContractResponse); 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_juno_cwhooks_v2_tx_proto_rawDesc, + NumEnums: 0, + NumMessages: 6, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_juno_cwhooks_v2_tx_proto_goTypes, + DependencyIndexes: file_juno_cwhooks_v2_tx_proto_depIdxs, + MessageInfos: file_juno_cwhooks_v2_tx_proto_msgTypes, + }.Build() + File_juno_cwhooks_v2_tx_proto = out.File + file_juno_cwhooks_v2_tx_proto_rawDesc = nil + file_juno_cwhooks_v2_tx_proto_goTypes = nil + file_juno_cwhooks_v2_tx_proto_depIdxs = nil +} diff --git a/api/juno/cwhooks/v2/tx_grpc.pb.go b/api/juno/cwhooks/v2/tx_grpc.pb.go new file mode 100644 index 000000000..1d0d3ae6d --- /dev/null +++ b/api/juno/cwhooks/v2/tx_grpc.pb.go @@ -0,0 +1,209 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.5.1 +// - protoc (unknown) +// source: juno/cwhooks/v2/tx.proto + +package cwhooksv2 + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + Msg_UpdateParams_FullMethodName = "/juno.cwhooks.v2.Msg/UpdateParams" + Msg_RegisterContract_FullMethodName = "/juno.cwhooks.v2.Msg/RegisterContract" + Msg_UnregisterContract_FullMethodName = "/juno.cwhooks.v2.Msg/UnregisterContract" +) + +// MsgClient is the client API for Msg service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// Msg defines the Msg service +type MsgClient interface { + // UpdateParams defines a governance operation for updating the x/clock module + // parameters. The authority is hard-coded to the x/gov module account. + UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) + // RegisterStaking. + RegisterContract(ctx context.Context, in *MsgRegisterContract, opts ...grpc.CallOption) (*MsgRegisterContractResponse, error) + // UnregisterContract. + UnregisterContract(ctx context.Context, in *MsgUnregisterContract, opts ...grpc.CallOption) (*MsgUnregisterContractResponse, error) +} + +type msgClient struct { + cc grpc.ClientConnInterface +} + +func NewMsgClient(cc grpc.ClientConnInterface) MsgClient { + return &msgClient{cc} +} + +func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(MsgUpdateParamsResponse) + err := c.cc.Invoke(ctx, Msg_UpdateParams_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) RegisterContract(ctx context.Context, in *MsgRegisterContract, opts ...grpc.CallOption) (*MsgRegisterContractResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(MsgRegisterContractResponse) + err := c.cc.Invoke(ctx, Msg_RegisterContract_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) UnregisterContract(ctx context.Context, in *MsgUnregisterContract, opts ...grpc.CallOption) (*MsgUnregisterContractResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(MsgUnregisterContractResponse) + err := c.cc.Invoke(ctx, Msg_UnregisterContract_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// MsgServer is the server API for Msg service. +// All implementations must embed UnimplementedMsgServer +// for forward compatibility. +// +// Msg defines the Msg service +type MsgServer interface { + // UpdateParams defines a governance operation for updating the x/clock module + // parameters. The authority is hard-coded to the x/gov module account. + UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) + // RegisterStaking. + RegisterContract(context.Context, *MsgRegisterContract) (*MsgRegisterContractResponse, error) + // UnregisterContract. + UnregisterContract(context.Context, *MsgUnregisterContract) (*MsgUnregisterContractResponse, error) + mustEmbedUnimplementedMsgServer() +} + +// UnimplementedMsgServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedMsgServer struct{} + +func (UnimplementedMsgServer) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateParams not implemented") +} +func (UnimplementedMsgServer) RegisterContract(context.Context, *MsgRegisterContract) (*MsgRegisterContractResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RegisterContract not implemented") +} +func (UnimplementedMsgServer) UnregisterContract(context.Context, *MsgUnregisterContract) (*MsgUnregisterContractResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UnregisterContract not implemented") +} +func (UnimplementedMsgServer) mustEmbedUnimplementedMsgServer() {} +func (UnimplementedMsgServer) testEmbeddedByValue() {} + +// UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to MsgServer will +// result in compilation errors. +type UnsafeMsgServer interface { + mustEmbedUnimplementedMsgServer() +} + +func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer) { + // If the following call pancis, it indicates UnimplementedMsgServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&Msg_ServiceDesc, srv) +} + +func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUpdateParams) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).UpdateParams(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_UpdateParams_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).UpdateParams(ctx, req.(*MsgUpdateParams)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_RegisterContract_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgRegisterContract) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).RegisterContract(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_RegisterContract_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).RegisterContract(ctx, req.(*MsgRegisterContract)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_UnregisterContract_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUnregisterContract) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).UnregisterContract(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_UnregisterContract_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).UnregisterContract(ctx, req.(*MsgUnregisterContract)) + } + return interceptor(ctx, in, info, handler) +} + +// Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var Msg_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "juno.cwhooks.v2.Msg", + HandlerType: (*MsgServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "UpdateParams", + Handler: _Msg_UpdateParams_Handler, + }, + { + MethodName: "RegisterContract", + Handler: _Msg_RegisterContract_Handler, + }, + { + MethodName: "UnregisterContract", + Handler: _Msg_UnregisterContract_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "juno/cwhooks/v2/tx.proto", +} diff --git a/api/juno/drip/module/v1/module.pulsar.go b/api/juno/drip/module/v1/module.pulsar.go index f8d939d4f..dd6c0d185 100644 --- a/api/juno/drip/module/v1/module.pulsar.go +++ b/api/juno/drip/module/v1/module.pulsar.go @@ -315,7 +315,7 @@ func (x *fastReflection_Module) ProtoMethods() *protoiface.Methods { copy(dAtA[i:], x.Authority) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) i-- - dAtA[i] = 0x12 + dAtA[i] = 0xa } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -366,7 +366,7 @@ func (x *fastReflection_Module) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Module: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 2: + case 1: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) } @@ -454,7 +454,7 @@ type Module struct { // authority defines the custom module authority. If not set, defaults to the // governance module. - Authority string `protobuf:"bytes,2,opt,name=authority,proto3" json:"authority,omitempty"` + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` } func (x *Module) Reset() { @@ -494,10 +494,10 @@ var file_juno_drip_module_v1_module_proto_rawDesc = []byte{ 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, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, + 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, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x43, 0x6f, 0x6e, 0x74, - 0x72, 0x61, 0x63, 0x74, 0x73, 0x2f, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, 0x76, 0x32, 0x38, 0x2f, 0x78, + 0x72, 0x61, 0x63, 0x74, 0x73, 0x2f, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, 0x76, 0x33, 0x30, 0x2f, 0x78, 0x2f, 0x64, 0x72, 0x69, 0x70, 0x42, 0xc4, 0x01, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x64, 0x72, 0x69, 0x70, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, diff --git a/api/juno/drip/v1/tx.pulsar.go b/api/juno/drip/v1/tx.pulsar.go index c3a2ef5d2..6c1983eaf 100644 --- a/api/juno/drip/v1/tx.pulsar.go +++ b/api/juno/drip/v1/tx.pulsar.go @@ -1998,32 +1998,29 @@ var file_juno_drip_v1_tx_proto_rawDesc = []byte{ 0x6e, 0x6f, 0x2f, 0x78, 0x2f, 0x64, 0x72, 0x69, 0x70, 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, 0xf1, 0x01, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x8c, 0x01, 0x0a, - 0x10, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, - 0x73, 0x12, 0x21, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x64, 0x72, 0x69, 0x70, 0x2e, 0x76, 0x31, - 0x2e, 0x4d, 0x73, 0x67, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x54, 0x6f, - 0x6b, 0x65, 0x6e, 0x73, 0x1a, 0x29, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x64, 0x72, 0x69, 0x70, - 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, - 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x2a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x22, 0x22, 0x2f, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, 0x64, - 0x72, 0x69, 0x70, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x78, 0x2f, 0x64, 0x69, 0x73, 0x74, 0x72, 0x69, - 0x62, 0x75, 0x74, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x12, 0x54, 0x0a, 0x0c, 0x55, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x1d, 0x2e, 0x6a, 0x75, - 0x6e, 0x6f, 0x2e, 0x64, 0x72, 0x69, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x25, 0x2e, 0x6a, 0x75, 0x6e, - 0x6f, 0x2e, 0x64, 0x72, 0x69, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a, 0x01, 0x42, 0x93, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, - 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x64, 0x72, 0x69, 0x70, 0x2e, 0x76, 0x31, 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, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, - 0x64, 0x72, 0x69, 0x70, 0x2f, 0x76, 0x31, 0x3b, 0x64, 0x72, 0x69, 0x70, 0x76, 0x31, 0xa2, 0x02, - 0x03, 0x4a, 0x44, 0x58, 0xaa, 0x02, 0x0c, 0x4a, 0x75, 0x6e, 0x6f, 0x2e, 0x44, 0x72, 0x69, 0x70, - 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0c, 0x4a, 0x75, 0x6e, 0x6f, 0x5c, 0x44, 0x72, 0x69, 0x70, 0x5c, - 0x56, 0x31, 0xe2, 0x02, 0x18, 0x4a, 0x75, 0x6e, 0x6f, 0x5c, 0x44, 0x72, 0x69, 0x70, 0x5c, 0x56, - 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, - 0x4a, 0x75, 0x6e, 0x6f, 0x3a, 0x3a, 0x44, 0x72, 0x69, 0x70, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xc4, 0x01, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x60, 0x0a, 0x10, + 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, + 0x12, 0x21, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x64, 0x72, 0x69, 0x70, 0x2e, 0x76, 0x31, 0x2e, + 0x4d, 0x73, 0x67, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x54, 0x6f, 0x6b, + 0x65, 0x6e, 0x73, 0x1a, 0x29, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x64, 0x72, 0x69, 0x70, 0x2e, + 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x54, + 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x1d, + 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x64, 0x72, 0x69, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, + 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x25, 0x2e, + 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x64, 0x72, 0x69, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a, 0x01, 0x42, 0x93, 0x01, 0x0a, 0x10, + 0x63, 0x6f, 0x6d, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x64, 0x72, 0x69, 0x70, 0x2e, 0x76, 0x31, + 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, 0x6a, 0x75, + 0x6e, 0x6f, 0x2f, 0x64, 0x72, 0x69, 0x70, 0x2f, 0x76, 0x31, 0x3b, 0x64, 0x72, 0x69, 0x70, 0x76, + 0x31, 0xa2, 0x02, 0x03, 0x4a, 0x44, 0x58, 0xaa, 0x02, 0x0c, 0x4a, 0x75, 0x6e, 0x6f, 0x2e, 0x44, + 0x72, 0x69, 0x70, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0c, 0x4a, 0x75, 0x6e, 0x6f, 0x5c, 0x44, 0x72, + 0x69, 0x70, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x18, 0x4a, 0x75, 0x6e, 0x6f, 0x5c, 0x44, 0x72, 0x69, + 0x70, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0xea, 0x02, 0x0e, 0x4a, 0x75, 0x6e, 0x6f, 0x3a, 0x3a, 0x44, 0x72, 0x69, 0x70, 0x3a, 0x3a, 0x56, + 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/api/gaia/globalfee/module/v1/module.pulsar.go b/api/juno/feemarket/module/v1/module.pulsar.go similarity index 79% rename from api/gaia/globalfee/module/v1/module.pulsar.go rename to api/juno/feemarket/module/v1/module.pulsar.go index 344224521..bdbea5128 100644 --- a/api/gaia/globalfee/module/v1/module.pulsar.go +++ b/api/juno/feemarket/module/v1/module.pulsar.go @@ -19,8 +19,8 @@ var ( ) func init() { - file_gaia_globalfee_module_v1_module_proto_init() - md_Module = File_gaia_globalfee_module_v1_module_proto.Messages().ByName("Module") + file_juno_feemarket_module_v1_module_proto_init() + md_Module = File_juno_feemarket_module_v1_module_proto.Messages().ByName("Module") fd_Module_authority = md_Module.Fields().ByName("authority") } @@ -33,7 +33,7 @@ func (x *Module) ProtoReflect() protoreflect.Message { } func (x *Module) slowProtoReflect() protoreflect.Message { - mi := &file_gaia_globalfee_module_v1_module_proto_msgTypes[0] + mi := &file_juno_feemarket_module_v1_module_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -110,13 +110,13 @@ func (x *fastReflection_Module) Range(f func(protoreflect.FieldDescriptor, proto // a repeated field is populated if it is non-empty. func (x *fastReflection_Module) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "gaia.globalfee.module.v1.Module.authority": + case "juno.feemarket.module.v1.Module.authority": return x.Authority != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: gaia.globalfee.module.v1.Module")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.module.v1.Module")) } - panic(fmt.Errorf("message gaia.globalfee.module.v1.Module does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.feemarket.module.v1.Module does not contain field %s", fd.FullName())) } } @@ -128,13 +128,13 @@ func (x *fastReflection_Module) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Module) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "gaia.globalfee.module.v1.Module.authority": + case "juno.feemarket.module.v1.Module.authority": x.Authority = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: gaia.globalfee.module.v1.Module")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.module.v1.Module")) } - panic(fmt.Errorf("message gaia.globalfee.module.v1.Module does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.feemarket.module.v1.Module does not contain field %s", fd.FullName())) } } @@ -146,14 +146,14 @@ func (x *fastReflection_Module) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_Module) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "gaia.globalfee.module.v1.Module.authority": + case "juno.feemarket.module.v1.Module.authority": value := x.Authority return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: gaia.globalfee.module.v1.Module")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.module.v1.Module")) } - panic(fmt.Errorf("message gaia.globalfee.module.v1.Module does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message juno.feemarket.module.v1.Module does not contain field %s", descriptor.FullName())) } } @@ -169,13 +169,13 @@ func (x *fastReflection_Module) Get(descriptor protoreflect.FieldDescriptor) pro // 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 "gaia.globalfee.module.v1.Module.authority": + case "juno.feemarket.module.v1.Module.authority": x.Authority = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: gaia.globalfee.module.v1.Module")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.module.v1.Module")) } - panic(fmt.Errorf("message gaia.globalfee.module.v1.Module does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.feemarket.module.v1.Module does not contain field %s", fd.FullName())) } } @@ -191,13 +191,13 @@ func (x *fastReflection_Module) Set(fd protoreflect.FieldDescriptor, value proto // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Module) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "gaia.globalfee.module.v1.Module.authority": - panic(fmt.Errorf("field authority of message gaia.globalfee.module.v1.Module is not mutable")) + case "juno.feemarket.module.v1.Module.authority": + panic(fmt.Errorf("field authority of message juno.feemarket.module.v1.Module is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: gaia.globalfee.module.v1.Module")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.module.v1.Module")) } - panic(fmt.Errorf("message gaia.globalfee.module.v1.Module does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.feemarket.module.v1.Module does not contain field %s", fd.FullName())) } } @@ -206,13 +206,13 @@ func (x *fastReflection_Module) Mutable(fd protoreflect.FieldDescriptor) protore // 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 "gaia.globalfee.module.v1.Module.authority": + case "juno.feemarket.module.v1.Module.authority": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: gaia.globalfee.module.v1.Module")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.module.v1.Module")) } - panic(fmt.Errorf("message gaia.globalfee.module.v1.Module does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.feemarket.module.v1.Module does not contain field %s", fd.FullName())) } } @@ -222,7 +222,7 @@ func (x *fastReflection_Module) NewField(fd protoreflect.FieldDescriptor) protor func (x *fastReflection_Module) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in gaia.globalfee.module.v1.Module", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in juno.feemarket.module.v1.Module", d.FullName())) } panic("unreachable") } @@ -315,7 +315,7 @@ func (x *fastReflection_Module) ProtoMethods() *protoiface.Methods { copy(dAtA[i:], x.Authority) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) i-- - dAtA[i] = 0x12 + dAtA[i] = 0xa } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -366,7 +366,7 @@ func (x *fastReflection_Module) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Module: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 2: + case 1: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) } @@ -437,7 +437,7 @@ func (x *fastReflection_Module) ProtoMethods() *protoiface.Methods { // versions: // protoc-gen-go v1.27.0 // protoc (unknown) -// source: gaia/globalfee/module/v1/module.proto +// source: juno/feemarket/module/v1/module.proto const ( // Verify that this generated code is sufficiently up-to-date. @@ -446,21 +446,21 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// Module is the config object of the mint module. +// Module is the config object of the builder 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 + // Authority defines the custom module authority. If not set, defaults to the // governance module. - Authority string `protobuf:"bytes,2,opt,name=authority,proto3" json:"authority,omitempty"` + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` } func (x *Module) Reset() { *x = Module{} if protoimpl.UnsafeEnabled { - mi := &file_gaia_globalfee_module_v1_module_proto_msgTypes[0] + mi := &file_juno_feemarket_module_v1_module_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -474,7 +474,7 @@ func (*Module) ProtoMessage() {} // Deprecated: Use Module.ProtoReflect.Descriptor instead. func (*Module) Descriptor() ([]byte, []int) { - return file_gaia_globalfee_module_v1_module_proto_rawDescGZIP(), []int{0} + return file_juno_feemarket_module_v1_module_proto_rawDescGZIP(), []int{0} } func (x *Module) GetAuthority() string { @@ -484,56 +484,56 @@ func (x *Module) GetAuthority() string { return "" } -var File_gaia_globalfee_module_v1_module_proto protoreflect.FileDescriptor +var File_juno_feemarket_module_v1_module_proto protoreflect.FileDescriptor -var file_gaia_globalfee_module_v1_module_proto_rawDesc = []byte{ - 0x0a, 0x25, 0x67, 0x61, 0x69, 0x61, 0x2f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x66, 0x65, 0x65, +var file_juno_feemarket_module_v1_module_proto_rawDesc = []byte{ + 0x0a, 0x25, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x67, 0x61, 0x69, 0x61, 0x2e, 0x67, 0x6c, - 0x6f, 0x62, 0x61, 0x6c, 0x66, 0x65, 0x65, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x76, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x66, 0x65, + 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x20, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x5f, 0x0a, 0x06, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x1c, 0x0a, - 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 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, 0x37, 0xba, 0xc0, 0x96, 0xda, 0x01, 0x31, 0x0a, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x2f, - 0x6a, 0x75, 0x6e, 0x6f, 0x2f, 0x76, 0x32, 0x38, 0x2f, 0x78, 0x2f, 0x67, 0x6c, 0x6f, 0x62, 0x61, - 0x6c, 0x66, 0x65, 0x65, 0x42, 0xe2, 0x01, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x61, 0x69, - 0x61, 0x2e, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x66, 0x65, 0x65, 0x2e, 0x6d, 0x6f, 0x64, 0x75, + 0x6a, 0x75, 0x6e, 0x6f, 0x2f, 0x76, 0x33, 0x30, 0x2f, 0x78, 0x2f, 0x66, 0x65, 0x65, 0x6d, 0x61, + 0x72, 0x6b, 0x65, 0x74, 0x42, 0xe2, 0x01, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x6a, 0x75, 0x6e, + 0x6f, 0x2e, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x32, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, - 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x61, 0x69, 0x61, 0x2f, 0x67, 0x6c, 0x6f, 0x62, - 0x61, 0x6c, 0x66, 0x65, 0x65, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2f, 0x76, 0x31, 0x3b, - 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x47, 0x47, 0x4d, 0xaa, 0x02, - 0x18, 0x47, 0x61, 0x69, 0x61, 0x2e, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x66, 0x65, 0x65, 0x2e, - 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x18, 0x47, 0x61, 0x69, 0x61, - 0x5c, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x66, 0x65, 0x65, 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, - 0x65, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x24, 0x47, 0x61, 0x69, 0x61, 0x5c, 0x47, 0x6c, 0x6f, 0x62, - 0x61, 0x6c, 0x66, 0x65, 0x65, 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5c, 0x56, 0x31, 0x5c, - 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, 0x47, 0x61, - 0x69, 0x61, 0x3a, 0x3a, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x66, 0x65, 0x65, 0x3a, 0x3a, 0x4d, + 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, 0x66, 0x65, 0x65, 0x6d, + 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2f, 0x76, 0x31, 0x3b, + 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4a, 0x46, 0x4d, 0xaa, 0x02, + 0x18, 0x4a, 0x75, 0x6e, 0x6f, 0x2e, 0x46, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, + 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x18, 0x4a, 0x75, 0x6e, 0x6f, + 0x5c, 0x46, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, + 0x65, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x24, 0x4a, 0x75, 0x6e, 0x6f, 0x5c, 0x46, 0x65, 0x65, 0x6d, + 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5c, 0x56, 0x31, 0x5c, + 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, 0x4a, 0x75, + 0x6e, 0x6f, 0x3a, 0x3a, 0x46, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x3a, 0x3a, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_gaia_globalfee_module_v1_module_proto_rawDescOnce sync.Once - file_gaia_globalfee_module_v1_module_proto_rawDescData = file_gaia_globalfee_module_v1_module_proto_rawDesc + file_juno_feemarket_module_v1_module_proto_rawDescOnce sync.Once + file_juno_feemarket_module_v1_module_proto_rawDescData = file_juno_feemarket_module_v1_module_proto_rawDesc ) -func file_gaia_globalfee_module_v1_module_proto_rawDescGZIP() []byte { - file_gaia_globalfee_module_v1_module_proto_rawDescOnce.Do(func() { - file_gaia_globalfee_module_v1_module_proto_rawDescData = protoimpl.X.CompressGZIP(file_gaia_globalfee_module_v1_module_proto_rawDescData) +func file_juno_feemarket_module_v1_module_proto_rawDescGZIP() []byte { + file_juno_feemarket_module_v1_module_proto_rawDescOnce.Do(func() { + file_juno_feemarket_module_v1_module_proto_rawDescData = protoimpl.X.CompressGZIP(file_juno_feemarket_module_v1_module_proto_rawDescData) }) - return file_gaia_globalfee_module_v1_module_proto_rawDescData + return file_juno_feemarket_module_v1_module_proto_rawDescData } -var file_gaia_globalfee_module_v1_module_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_gaia_globalfee_module_v1_module_proto_goTypes = []interface{}{ - (*Module)(nil), // 0: gaia.globalfee.module.v1.Module +var file_juno_feemarket_module_v1_module_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_juno_feemarket_module_v1_module_proto_goTypes = []interface{}{ + (*Module)(nil), // 0: juno.feemarket.module.v1.Module } -var file_gaia_globalfee_module_v1_module_proto_depIdxs = []int32{ +var file_juno_feemarket_module_v1_module_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for method output_type 0, // [0:0] is the sub-list for method input_type 0, // [0:0] is the sub-list for extension type_name @@ -541,13 +541,13 @@ var file_gaia_globalfee_module_v1_module_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for field type_name } -func init() { file_gaia_globalfee_module_v1_module_proto_init() } -func file_gaia_globalfee_module_v1_module_proto_init() { - if File_gaia_globalfee_module_v1_module_proto != nil { +func init() { file_juno_feemarket_module_v1_module_proto_init() } +func file_juno_feemarket_module_v1_module_proto_init() { + if File_juno_feemarket_module_v1_module_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_gaia_globalfee_module_v1_module_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_juno_feemarket_module_v1_module_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Module); i { case 0: return &v.state @@ -564,18 +564,18 @@ func file_gaia_globalfee_module_v1_module_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_gaia_globalfee_module_v1_module_proto_rawDesc, + RawDescriptor: file_juno_feemarket_module_v1_module_proto_rawDesc, NumEnums: 0, NumMessages: 1, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_gaia_globalfee_module_v1_module_proto_goTypes, - DependencyIndexes: file_gaia_globalfee_module_v1_module_proto_depIdxs, - MessageInfos: file_gaia_globalfee_module_v1_module_proto_msgTypes, + GoTypes: file_juno_feemarket_module_v1_module_proto_goTypes, + DependencyIndexes: file_juno_feemarket_module_v1_module_proto_depIdxs, + MessageInfos: file_juno_feemarket_module_v1_module_proto_msgTypes, }.Build() - File_gaia_globalfee_module_v1_module_proto = out.File - file_gaia_globalfee_module_v1_module_proto_rawDesc = nil - file_gaia_globalfee_module_v1_module_proto_goTypes = nil - file_gaia_globalfee_module_v1_module_proto_depIdxs = nil + File_juno_feemarket_module_v1_module_proto = out.File + file_juno_feemarket_module_v1_module_proto_rawDesc = nil + file_juno_feemarket_module_v1_module_proto_goTypes = nil + file_juno_feemarket_module_v1_module_proto_depIdxs = nil } diff --git a/api/gaia/globalfee/v1beta1/genesis.pulsar.go b/api/juno/feemarket/v1/genesis.pulsar.go similarity index 51% rename from api/gaia/globalfee/v1beta1/genesis.pulsar.go rename to api/juno/feemarket/v1/genesis.pulsar.go index e60b92c0e..384722644 100644 --- a/api/gaia/globalfee/v1beta1/genesis.pulsar.go +++ b/api/juno/feemarket/v1/genesis.pulsar.go @@ -1,10 +1,9 @@ // Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package globalfeev1beta1 +package feemarketv1 import ( - _ "cosmossdk.io/api/amino" - 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" protoreflect "google.golang.org/protobuf/reflect/protoreflect" @@ -18,12 +17,14 @@ import ( var ( md_GenesisState protoreflect.MessageDescriptor fd_GenesisState_params protoreflect.FieldDescriptor + fd_GenesisState_state protoreflect.FieldDescriptor ) func init() { - file_gaia_globalfee_v1beta1_genesis_proto_init() - md_GenesisState = File_gaia_globalfee_v1beta1_genesis_proto.Messages().ByName("GenesisState") + file_juno_feemarket_v1_genesis_proto_init() + md_GenesisState = File_juno_feemarket_v1_genesis_proto.Messages().ByName("GenesisState") fd_GenesisState_params = md_GenesisState.Fields().ByName("params") + fd_GenesisState_state = md_GenesisState.Fields().ByName("state") } var _ protoreflect.Message = (*fastReflection_GenesisState)(nil) @@ -35,7 +36,7 @@ func (x *GenesisState) ProtoReflect() protoreflect.Message { } func (x *GenesisState) slowProtoReflect() protoreflect.Message { - mi := &file_gaia_globalfee_v1beta1_genesis_proto_msgTypes[0] + mi := &file_juno_feemarket_v1_genesis_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -97,6 +98,12 @@ func (x *fastReflection_GenesisState) Range(f func(protoreflect.FieldDescriptor, return } } + if x.State != nil { + value := protoreflect.ValueOfMessage(x.State.ProtoReflect()) + if !f(fd_GenesisState_state, value) { + return + } + } } // Has reports whether a field is populated. @@ -112,13 +119,15 @@ func (x *fastReflection_GenesisState) Range(f func(protoreflect.FieldDescriptor, // a repeated field is populated if it is non-empty. func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "gaia.globalfee.v1beta1.GenesisState.params": + case "juno.feemarket.v1.GenesisState.params": return x.Params != nil + case "juno.feemarket.v1.GenesisState.state": + return x.State != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: gaia.globalfee.v1beta1.GenesisState")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.GenesisState")) } - panic(fmt.Errorf("message gaia.globalfee.v1beta1.GenesisState does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.feemarket.v1.GenesisState does not contain field %s", fd.FullName())) } } @@ -130,13 +139,15 @@ func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_GenesisState) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "gaia.globalfee.v1beta1.GenesisState.params": + case "juno.feemarket.v1.GenesisState.params": x.Params = nil + case "juno.feemarket.v1.GenesisState.state": + x.State = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: gaia.globalfee.v1beta1.GenesisState")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.GenesisState")) } - panic(fmt.Errorf("message gaia.globalfee.v1beta1.GenesisState does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.feemarket.v1.GenesisState does not contain field %s", fd.FullName())) } } @@ -148,14 +159,17 @@ func (x *fastReflection_GenesisState) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "gaia.globalfee.v1beta1.GenesisState.params": + case "juno.feemarket.v1.GenesisState.params": value := x.Params return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "juno.feemarket.v1.GenesisState.state": + value := x.State + return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: gaia.globalfee.v1beta1.GenesisState")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.GenesisState")) } - panic(fmt.Errorf("message gaia.globalfee.v1beta1.GenesisState does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message juno.feemarket.v1.GenesisState does not contain field %s", descriptor.FullName())) } } @@ -171,13 +185,15 @@ func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescripto // 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 "gaia.globalfee.v1beta1.GenesisState.params": + case "juno.feemarket.v1.GenesisState.params": x.Params = value.Message().Interface().(*Params) + case "juno.feemarket.v1.GenesisState.state": + x.State = value.Message().Interface().(*State) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: gaia.globalfee.v1beta1.GenesisState")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.GenesisState")) } - panic(fmt.Errorf("message gaia.globalfee.v1beta1.GenesisState does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.feemarket.v1.GenesisState does not contain field %s", fd.FullName())) } } @@ -193,16 +209,21 @@ func (x *fastReflection_GenesisState) Set(fd protoreflect.FieldDescriptor, value // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "gaia.globalfee.v1beta1.GenesisState.params": + case "juno.feemarket.v1.GenesisState.params": if x.Params == nil { x.Params = new(Params) } return protoreflect.ValueOfMessage(x.Params.ProtoReflect()) + case "juno.feemarket.v1.GenesisState.state": + if x.State == nil { + x.State = new(State) + } + return protoreflect.ValueOfMessage(x.State.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: gaia.globalfee.v1beta1.GenesisState")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.GenesisState")) } - panic(fmt.Errorf("message gaia.globalfee.v1beta1.GenesisState does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.feemarket.v1.GenesisState does not contain field %s", fd.FullName())) } } @@ -211,14 +232,17 @@ func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) p // 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 "gaia.globalfee.v1beta1.GenesisState.params": + case "juno.feemarket.v1.GenesisState.params": m := new(Params) return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "juno.feemarket.v1.GenesisState.state": + m := new(State) + return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: gaia.globalfee.v1beta1.GenesisState")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.GenesisState")) } - panic(fmt.Errorf("message gaia.globalfee.v1beta1.GenesisState does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.feemarket.v1.GenesisState does not contain field %s", fd.FullName())) } } @@ -228,7 +252,7 @@ func (x *fastReflection_GenesisState) NewField(fd protoreflect.FieldDescriptor) func (x *fastReflection_GenesisState) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in gaia.globalfee.v1beta1.GenesisState", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in juno.feemarket.v1.GenesisState", d.FullName())) } panic("unreachable") } @@ -287,6 +311,10 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { l = options.Size(x.Params) n += 1 + l + runtime.Sov(uint64(l)) } + if x.State != nil { + l = options.Size(x.State) + n += 1 + l + runtime.Sov(uint64(l)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -316,6 +344,20 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if x.State != nil { + encoded, err := options.Marshal(x.State) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: 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 { @@ -415,6 +457,42 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { 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 State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return 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.State == nil { + x.State = &State{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.State); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -450,78 +528,79 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { } } -var _ protoreflect.List = (*_Params_1_list)(nil) +var _ protoreflect.List = (*_State_3_list)(nil) -type _Params_1_list struct { - list *[]*v1beta1.DecCoin +type _State_3_list struct { + list *[]uint64 } -func (x *_Params_1_list) Len() int { +func (x *_State_3_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_Params_1_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +func (x *_State_3_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfUint64((*x.list)[i]) } -func (x *_Params_1_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*v1beta1.DecCoin) +func (x *_State_3_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Uint() + concreteValue := valueUnwrapped (*x.list)[i] = concreteValue } -func (x *_Params_1_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*v1beta1.DecCoin) +func (x *_State_3_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Uint() + concreteValue := valueUnwrapped *x.list = append(*x.list, concreteValue) } -func (x *_Params_1_list) AppendMutable() protoreflect.Value { - v := new(v1beta1.DecCoin) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) +func (x *_State_3_list) AppendMutable() protoreflect.Value { + panic(fmt.Errorf("AppendMutable can not be called on message State at list field Window as it is not of Message kind")) } -func (x *_Params_1_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } +func (x *_State_3_list) Truncate(n int) { *x.list = (*x.list)[:n] } -func (x *_Params_1_list) NewElement() protoreflect.Value { - v := new(v1beta1.DecCoin) - return protoreflect.ValueOfMessage(v.ProtoReflect()) +func (x *_State_3_list) NewElement() protoreflect.Value { + v := uint64(0) + return protoreflect.ValueOfUint64(v) } -func (x *_Params_1_list) IsValid() bool { +func (x *_State_3_list) IsValid() bool { return x.list != nil } var ( - md_Params protoreflect.MessageDescriptor - fd_Params_minimum_gas_prices protoreflect.FieldDescriptor + md_State protoreflect.MessageDescriptor + fd_State_base_gas_price protoreflect.FieldDescriptor + fd_State_learning_rate protoreflect.FieldDescriptor + fd_State_window protoreflect.FieldDescriptor + fd_State_index protoreflect.FieldDescriptor ) func init() { - file_gaia_globalfee_v1beta1_genesis_proto_init() - md_Params = File_gaia_globalfee_v1beta1_genesis_proto.Messages().ByName("Params") - fd_Params_minimum_gas_prices = md_Params.Fields().ByName("minimum_gas_prices") + file_juno_feemarket_v1_genesis_proto_init() + md_State = File_juno_feemarket_v1_genesis_proto.Messages().ByName("State") + fd_State_base_gas_price = md_State.Fields().ByName("base_gas_price") + fd_State_learning_rate = md_State.Fields().ByName("learning_rate") + fd_State_window = md_State.Fields().ByName("window") + fd_State_index = md_State.Fields().ByName("index") } -var _ protoreflect.Message = (*fastReflection_Params)(nil) +var _ protoreflect.Message = (*fastReflection_State)(nil) -type fastReflection_Params Params +type fastReflection_State State -func (x *Params) ProtoReflect() protoreflect.Message { - return (*fastReflection_Params)(x) +func (x *State) ProtoReflect() protoreflect.Message { + return (*fastReflection_State)(x) } -func (x *Params) slowProtoReflect() protoreflect.Message { - mi := &file_gaia_globalfee_v1beta1_genesis_proto_msgTypes[1] +func (x *State) slowProtoReflect() protoreflect.Message { + mi := &file_juno_feemarket_v1_genesis_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -532,43 +611,43 @@ func (x *Params) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_Params_messageType fastReflection_Params_messageType -var _ protoreflect.MessageType = fastReflection_Params_messageType{} +var _fastReflection_State_messageType fastReflection_State_messageType +var _ protoreflect.MessageType = fastReflection_State_messageType{} -type fastReflection_Params_messageType struct{} +type fastReflection_State_messageType struct{} -func (x fastReflection_Params_messageType) Zero() protoreflect.Message { - return (*fastReflection_Params)(nil) +func (x fastReflection_State_messageType) Zero() protoreflect.Message { + return (*fastReflection_State)(nil) } -func (x fastReflection_Params_messageType) New() protoreflect.Message { - return new(fastReflection_Params) +func (x fastReflection_State_messageType) New() protoreflect.Message { + return new(fastReflection_State) } -func (x fastReflection_Params_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_Params +func (x fastReflection_State_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_State } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_Params) Descriptor() protoreflect.MessageDescriptor { - return md_Params +func (x *fastReflection_State) Descriptor() protoreflect.MessageDescriptor { + return md_State } // Type returns the message type, which encapsulates both Go and 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 +func (x *fastReflection_State) Type() protoreflect.MessageType { + return _fastReflection_State_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_Params) New() protoreflect.Message { - return new(fastReflection_Params) +func (x *fastReflection_State) New() protoreflect.Message { + return new(fastReflection_State) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_Params) Interface() protoreflect.ProtoMessage { - return (*Params)(x) +func (x *fastReflection_State) Interface() protoreflect.ProtoMessage { + return (*State)(x) } // Range iterates over every populated field in an undefined order, @@ -576,10 +655,28 @@ func (x *fastReflection_Params) Interface() protoreflect.ProtoMessage { // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_Params) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.MinimumGasPrices) != 0 { - value := protoreflect.ValueOfList(&_Params_1_list{list: &x.MinimumGasPrices}) - if !f(fd_Params_minimum_gas_prices, value) { +func (x *fastReflection_State) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.BaseGasPrice != "" { + value := protoreflect.ValueOfString(x.BaseGasPrice) + if !f(fd_State_base_gas_price, value) { + return + } + } + if x.LearningRate != "" { + value := protoreflect.ValueOfString(x.LearningRate) + if !f(fd_State_learning_rate, value) { + return + } + } + if len(x.Window) != 0 { + value := protoreflect.ValueOfList(&_State_3_list{list: &x.Window}) + if !f(fd_State_window, value) { + return + } + } + if x.Index != uint64(0) { + value := protoreflect.ValueOfUint64(x.Index) + if !f(fd_State_index, value) { return } } @@ -596,15 +693,21 @@ func (x *fastReflection_Params) Range(f func(protoreflect.FieldDescriptor, proto // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_Params) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_State) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "gaia.globalfee.v1beta1.Params.minimum_gas_prices": - return len(x.MinimumGasPrices) != 0 + case "juno.feemarket.v1.State.base_gas_price": + return x.BaseGasPrice != "" + case "juno.feemarket.v1.State.learning_rate": + return x.LearningRate != "" + case "juno.feemarket.v1.State.window": + return len(x.Window) != 0 + case "juno.feemarket.v1.State.index": + return x.Index != uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: gaia.globalfee.v1beta1.Params")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.State")) } - panic(fmt.Errorf("message gaia.globalfee.v1beta1.Params does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.feemarket.v1.State does not contain field %s", fd.FullName())) } } @@ -614,15 +717,21 @@ func (x *fastReflection_Params) Has(fd protoreflect.FieldDescriptor) bool { // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Params) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_State) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "gaia.globalfee.v1beta1.Params.minimum_gas_prices": - x.MinimumGasPrices = nil + case "juno.feemarket.v1.State.base_gas_price": + x.BaseGasPrice = "" + case "juno.feemarket.v1.State.learning_rate": + x.LearningRate = "" + case "juno.feemarket.v1.State.window": + x.Window = nil + case "juno.feemarket.v1.State.index": + x.Index = uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: gaia.globalfee.v1beta1.Params")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.State")) } - panic(fmt.Errorf("message gaia.globalfee.v1beta1.Params does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.feemarket.v1.State does not contain field %s", fd.FullName())) } } @@ -632,19 +741,28 @@ func (x *fastReflection_Params) Clear(fd protoreflect.FieldDescriptor) { // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_Params) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_State) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "gaia.globalfee.v1beta1.Params.minimum_gas_prices": - if len(x.MinimumGasPrices) == 0 { - return protoreflect.ValueOfList(&_Params_1_list{}) + case "juno.feemarket.v1.State.base_gas_price": + value := x.BaseGasPrice + return protoreflect.ValueOfString(value) + case "juno.feemarket.v1.State.learning_rate": + value := x.LearningRate + return protoreflect.ValueOfString(value) + case "juno.feemarket.v1.State.window": + if len(x.Window) == 0 { + return protoreflect.ValueOfList(&_State_3_list{}) } - listValue := &_Params_1_list{list: &x.MinimumGasPrices} + listValue := &_State_3_list{list: &x.Window} return protoreflect.ValueOfList(listValue) + case "juno.feemarket.v1.State.index": + value := x.Index + return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: gaia.globalfee.v1beta1.Params")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.State")) } - panic(fmt.Errorf("message gaia.globalfee.v1beta1.Params does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message juno.feemarket.v1.State does not contain field %s", descriptor.FullName())) } } @@ -658,17 +776,23 @@ func (x *fastReflection_Params) Get(descriptor protoreflect.FieldDescriptor) pro // 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) { +func (x *fastReflection_State) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "gaia.globalfee.v1beta1.Params.minimum_gas_prices": + case "juno.feemarket.v1.State.base_gas_price": + x.BaseGasPrice = value.Interface().(string) + case "juno.feemarket.v1.State.learning_rate": + x.LearningRate = value.Interface().(string) + case "juno.feemarket.v1.State.window": lv := value.List() - clv := lv.(*_Params_1_list) - x.MinimumGasPrices = *clv.list + clv := lv.(*_State_3_list) + x.Window = *clv.list + case "juno.feemarket.v1.State.index": + x.Index = value.Uint() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: gaia.globalfee.v1beta1.Params")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.State")) } - panic(fmt.Errorf("message gaia.globalfee.v1beta1.Params does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.feemarket.v1.State does not contain field %s", fd.FullName())) } } @@ -682,45 +806,57 @@ func (x *fastReflection_Params) Set(fd protoreflect.FieldDescriptor, value proto // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Params) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_State) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "gaia.globalfee.v1beta1.Params.minimum_gas_prices": - if x.MinimumGasPrices == nil { - x.MinimumGasPrices = []*v1beta1.DecCoin{} + case "juno.feemarket.v1.State.window": + if x.Window == nil { + x.Window = []uint64{} } - value := &_Params_1_list{list: &x.MinimumGasPrices} + value := &_State_3_list{list: &x.Window} return protoreflect.ValueOfList(value) + case "juno.feemarket.v1.State.base_gas_price": + panic(fmt.Errorf("field base_gas_price of message juno.feemarket.v1.State is not mutable")) + case "juno.feemarket.v1.State.learning_rate": + panic(fmt.Errorf("field learning_rate of message juno.feemarket.v1.State is not mutable")) + case "juno.feemarket.v1.State.index": + panic(fmt.Errorf("field index of message juno.feemarket.v1.State is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: gaia.globalfee.v1beta1.Params")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.State")) } - panic(fmt.Errorf("message gaia.globalfee.v1beta1.Params does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.feemarket.v1.State does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the 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 { +func (x *fastReflection_State) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "gaia.globalfee.v1beta1.Params.minimum_gas_prices": - list := []*v1beta1.DecCoin{} - return protoreflect.ValueOfList(&_Params_1_list{list: &list}) + case "juno.feemarket.v1.State.base_gas_price": + return protoreflect.ValueOfString("") + case "juno.feemarket.v1.State.learning_rate": + return protoreflect.ValueOfString("") + case "juno.feemarket.v1.State.window": + list := []uint64{} + return protoreflect.ValueOfList(&_State_3_list{list: &list}) + case "juno.feemarket.v1.State.index": + return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: gaia.globalfee.v1beta1.Params")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.State")) } - panic(fmt.Errorf("message gaia.globalfee.v1beta1.Params does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.feemarket.v1.State does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the 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 { +func (x *fastReflection_State) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in gaia.globalfee.v1beta1.Params", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in juno.feemarket.v1.State", d.FullName())) } panic("unreachable") } @@ -728,7 +864,7 @@ func (x *fastReflection_Params) WhichOneof(d protoreflect.OneofDescriptor) proto // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_Params) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_State) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -739,7 +875,7 @@ func (x *fastReflection_Params) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Params) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_State) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -751,7 +887,7 @@ func (x *fastReflection_Params) SetUnknown(fields protoreflect.RawFields) { // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_Params) IsValid() bool { +func (x *fastReflection_State) IsValid() bool { return x != nil } @@ -761,9 +897,9 @@ func (x *fastReflection_Params) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_State) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*Params) + x := input.Message.Interface().(*State) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -775,11 +911,23 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { var n int var l int _ = l - if len(x.MinimumGasPrices) > 0 { - for _, e := range x.MinimumGasPrices { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) + l = len(x.BaseGasPrice) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.LearningRate) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if len(x.Window) > 0 { + l = 0 + for _, e := range x.Window { + l += runtime.Sov(uint64(e)) } + n += 1 + runtime.Sov(uint64(l)) + l + } + if x.Index != 0 { + n += 1 + runtime.Sov(uint64(x.Index)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -791,7 +939,7 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*Params) + x := input.Message.Interface().(*State) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -810,21 +958,44 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.MinimumGasPrices) > 0 { - for iNdEx := len(x.MinimumGasPrices) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.MinimumGasPrices[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err + if x.Index != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Index)) + i-- + dAtA[i] = 0x20 + } + if len(x.Window) > 0 { + var pksize2 int + for _, num := range x.Window { + pksize2 += runtime.Sov(uint64(num)) + } + i -= pksize2 + j1 := i + for _, num := range x.Window { + for num >= 1<<7 { + dAtA[j1] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j1++ } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa + dAtA[j1] = uint8(num) + j1++ } + i = runtime.EncodeVarint(dAtA, i, uint64(pksize2)) + i-- + dAtA[i] = 0x1a + } + if len(x.LearningRate) > 0 { + i -= len(x.LearningRate) + copy(dAtA[i:], x.LearningRate) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.LearningRate))) + i-- + dAtA[i] = 0x12 + } + if len(x.BaseGasPrice) > 0 { + i -= len(x.BaseGasPrice) + copy(dAtA[i:], x.BaseGasPrice) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BaseGasPrice))) + i-- + dAtA[i] = 0xa } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -837,7 +1008,7 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*Params) + x := input.Message.Interface().(*State) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -869,17 +1040,17 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Params: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: State: 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) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: State: 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 MinimumGasPrices", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BaseGasPrice", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -889,26 +1060,151 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.MinimumGasPrices = append(x.MinimumGasPrices, &v1beta1.DecCoin{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.MinimumGasPrices[len(x.MinimumGasPrices)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + x.BaseGasPrice = 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 LearningRate", wireType) } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.LearningRate = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 3: + if wireType == 0 { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.Window = append(x.Window, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(x.Window) == 0 { + x.Window = make([]uint64, 0, elementCount) + } + for iNdEx < postIndex { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.Window = append(x.Window, v) + } + } else { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Window", wireType) + } + case 4: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) + } + x.Index = 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.Index |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -948,7 +1244,7 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { // versions: // protoc-gen-go v1.27.0 // protoc (unknown) -// source: gaia/globalfee/v1beta1/genesis.proto +// source: juno/feemarket/v1/genesis.proto const ( // Verify that this generated code is sufficiently up-to-date. @@ -957,20 +1253,24 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// GenesisState - initial state of module +// GenesisState defines the feemarket module's genesis state. type GenesisState struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Params of this module + // Params are the parameters for the feemarket module. These parameters + // can be utilized to implement both the base EIP-1559 fee market and + // and the AIMD EIP-1559 fee market. Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` + // State contains the current state of the AIMD fee market. + State *State `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"` } func (x *GenesisState) Reset() { *x = GenesisState{} if protoimpl.UnsafeEnabled { - mi := &file_gaia_globalfee_v1beta1_genesis_proto_msgTypes[0] + mi := &file_juno_feemarket_v1_genesis_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -984,7 +1284,7 @@ func (*GenesisState) ProtoMessage() {} // Deprecated: Use GenesisState.ProtoReflect.Descriptor instead. func (*GenesisState) Descriptor() ([]byte, []int) { - return file_gaia_globalfee_v1beta1_genesis_proto_rawDescGZIP(), []int{0} + return file_juno_feemarket_v1_genesis_proto_rawDescGZIP(), []int{0} } func (x *GenesisState) GetParams() *Params { @@ -994,111 +1294,152 @@ func (x *GenesisState) GetParams() *Params { return nil } -// Params defines the set of module parameters. -type Params struct { +func (x *GenesisState) GetState() *State { + if x != nil { + return x.State + } + return nil +} + +// State is utilized to track the current state of the fee market. This includes +// the current base fee, learning rate, and block utilization within the +// specified AIMD window. +type State struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Minimum stores the minimum gas price(s) for all TX on the chain. - // When multiple coins are defined then they are accepted alternatively. - // The list must be sorted by denoms asc. No duplicate denoms or zero amount - // values allowed. For more information see - // https://docs.cosmos.network/main/modules/auth#concepts - MinimumGasPrices []*v1beta1.DecCoin `protobuf:"bytes,1,rep,name=minimum_gas_prices,json=minimumGasPrices,proto3" json:"minimum_gas_prices,omitempty"` -} - -func (x *Params) Reset() { - *x = Params{} + // BaseGasPrice is the current base fee. This is denominated in the fee per + // gas unit. + BaseGasPrice string `protobuf:"bytes,1,opt,name=base_gas_price,json=baseGasPrice,proto3" json:"base_gas_price,omitempty"` + // LearningRate is the current learning rate. + LearningRate string `protobuf:"bytes,2,opt,name=learning_rate,json=learningRate,proto3" json:"learning_rate,omitempty"` + // Window contains a list of the last blocks' utilization values. This is used + // to calculate the next base fee. This stores the number of units of gas + // consumed per block. + Window []uint64 `protobuf:"varint,3,rep,packed,name=window,proto3" json:"window,omitempty"` + // Index is the index of the current block in the block utilization window. + Index uint64 `protobuf:"varint,4,opt,name=index,proto3" json:"index,omitempty"` +} + +func (x *State) Reset() { + *x = State{} if protoimpl.UnsafeEnabled { - mi := &file_gaia_globalfee_v1beta1_genesis_proto_msgTypes[1] + mi := &file_juno_feemarket_v1_genesis_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *Params) String() string { +func (x *State) String() string { return protoimpl.X.MessageStringOf(x) } -func (*Params) ProtoMessage() {} +func (*State) ProtoMessage() {} + +// Deprecated: Use State.ProtoReflect.Descriptor instead. +func (*State) Descriptor() ([]byte, []int) { + return file_juno_feemarket_v1_genesis_proto_rawDescGZIP(), []int{1} +} + +func (x *State) GetBaseGasPrice() string { + if x != nil { + return x.BaseGasPrice + } + return "" +} -// Deprecated: Use Params.ProtoReflect.Descriptor instead. -func (*Params) Descriptor() ([]byte, []int) { - return file_gaia_globalfee_v1beta1_genesis_proto_rawDescGZIP(), []int{1} +func (x *State) GetLearningRate() string { + if x != nil { + return x.LearningRate + } + return "" } -func (x *Params) GetMinimumGasPrices() []*v1beta1.DecCoin { +func (x *State) GetWindow() []uint64 { if x != nil { - return x.MinimumGasPrices + return x.Window } return nil } -var File_gaia_globalfee_v1beta1_genesis_proto protoreflect.FileDescriptor - -var file_gaia_globalfee_v1beta1_genesis_proto_rawDesc = []byte{ - 0x0a, 0x24, 0x67, 0x61, 0x69, 0x61, 0x2f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x66, 0x65, 0x65, - 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x67, 0x61, 0x69, 0x61, 0x2e, 0x67, 0x6c, 0x6f, - 0x62, 0x61, 0x6c, 0x66, 0x65, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x11, - 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 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, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, - 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x51, 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, - 0x69, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x41, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, - 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x61, 0x69, 0x61, 0x2e, 0x67, - 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x66, 0x65, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, - 0x2a, 0x01, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x95, 0x01, 0x0a, 0x06, 0x50, - 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x84, 0x01, 0x0a, 0x12, 0x6d, 0x69, 0x6e, 0x69, 0x6d, 0x75, - 0x6d, 0x5f, 0x67, 0x61, 0x73, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x44, 0x65, 0x63, 0x43, 0x6f, 0x69, 0x6e, - 0x42, 0x38, 0xc8, 0xde, 0x1f, 0x00, 0xaa, 0xdf, 0x1f, 0x2b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, - 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x44, 0x65, 0x63, - 0x43, 0x6f, 0x69, 0x6e, 0x73, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x10, 0x6d, 0x69, 0x6e, 0x69, - 0x6d, 0x75, 0x6d, 0x47, 0x61, 0x73, 0x50, 0x72, 0x69, 0x63, 0x65, 0x73, 0x3a, 0x04, 0xe8, 0xa0, - 0x1f, 0x01, 0x42, 0xde, 0x01, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x61, 0x69, 0x61, 0x2e, - 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x66, 0x65, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, - 0x01, 0x5a, 0x38, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, - 0x61, 0x70, 0x69, 0x2f, 0x67, 0x61, 0x69, 0x61, 0x2f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x66, - 0x65, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x67, 0x6c, 0x6f, 0x62, 0x61, - 0x6c, 0x66, 0x65, 0x65, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x47, 0x47, - 0x58, 0xaa, 0x02, 0x16, 0x47, 0x61, 0x69, 0x61, 0x2e, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x66, - 0x65, 0x65, 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x16, 0x47, 0x61, 0x69, - 0x61, 0x5c, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x66, 0x65, 0x65, 0x5c, 0x56, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0xe2, 0x02, 0x22, 0x47, 0x61, 0x69, 0x61, 0x5c, 0x47, 0x6c, 0x6f, 0x62, 0x61, - 0x6c, 0x66, 0x65, 0x65, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, - 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x18, 0x47, 0x61, 0x69, 0x61, 0x3a, - 0x3a, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x66, 0x65, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +func (x *State) GetIndex() uint64 { + if x != nil { + return x.Index + } + return 0 +} + +var File_juno_feemarket_v1_genesis_proto protoreflect.FileDescriptor + +var file_juno_feemarket_v1_genesis_proto_rawDesc = []byte{ + 0x0a, 0x1f, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, + 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x12, 0x11, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, + 0x74, 0x2e, 0x76, 0x31, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x1e, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2f, + 0x76, 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 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, 0x7d, 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, + 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x37, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x66, 0x65, 0x65, + 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, + 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x34, + 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, + 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x76, + 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x05, 0x73, + 0x74, 0x61, 0x74, 0x65, 0x22, 0xe6, 0x01, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x57, + 0x0a, 0x0e, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x67, 0x61, 0x73, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x31, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x1b, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, + 0x68, 0x2e, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x44, 0x65, 0x63, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x44, 0x65, 0x63, 0x52, 0x0c, 0x62, 0x61, 0x73, 0x65, 0x47, + 0x61, 0x73, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x56, 0x0a, 0x0d, 0x6c, 0x65, 0x61, 0x72, 0x6e, + 0x69, 0x6e, 0x67, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x31, + 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x1b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, + 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, + 0x44, 0x65, 0x63, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x44, 0x65, + 0x63, 0x52, 0x0c, 0x6c, 0x65, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x52, 0x61, 0x74, 0x65, 0x12, + 0x16, 0x0a, 0x06, 0x77, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x18, 0x03, 0x20, 0x03, 0x28, 0x04, 0x52, + 0x06, 0x77, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x42, 0xbb, 0x01, + 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x66, 0x65, 0x65, 0x6d, 0x61, + 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, + 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, + 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, 0x66, + 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2f, 0x76, 0x31, 0x3b, 0x66, 0x65, 0x65, 0x6d, + 0x61, 0x72, 0x6b, 0x65, 0x74, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4a, 0x46, 0x58, 0xaa, 0x02, 0x11, + 0x4a, 0x75, 0x6e, 0x6f, 0x2e, 0x46, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x56, + 0x31, 0xca, 0x02, 0x11, 0x4a, 0x75, 0x6e, 0x6f, 0x5c, 0x46, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, + 0x65, 0x74, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1d, 0x4a, 0x75, 0x6e, 0x6f, 0x5c, 0x46, 0x65, 0x65, + 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, 0x4a, 0x75, 0x6e, 0x6f, 0x3a, 0x3a, 0x46, 0x65, + 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, } var ( - file_gaia_globalfee_v1beta1_genesis_proto_rawDescOnce sync.Once - file_gaia_globalfee_v1beta1_genesis_proto_rawDescData = file_gaia_globalfee_v1beta1_genesis_proto_rawDesc + file_juno_feemarket_v1_genesis_proto_rawDescOnce sync.Once + file_juno_feemarket_v1_genesis_proto_rawDescData = file_juno_feemarket_v1_genesis_proto_rawDesc ) -func file_gaia_globalfee_v1beta1_genesis_proto_rawDescGZIP() []byte { - file_gaia_globalfee_v1beta1_genesis_proto_rawDescOnce.Do(func() { - file_gaia_globalfee_v1beta1_genesis_proto_rawDescData = protoimpl.X.CompressGZIP(file_gaia_globalfee_v1beta1_genesis_proto_rawDescData) +func file_juno_feemarket_v1_genesis_proto_rawDescGZIP() []byte { + file_juno_feemarket_v1_genesis_proto_rawDescOnce.Do(func() { + file_juno_feemarket_v1_genesis_proto_rawDescData = protoimpl.X.CompressGZIP(file_juno_feemarket_v1_genesis_proto_rawDescData) }) - return file_gaia_globalfee_v1beta1_genesis_proto_rawDescData + return file_juno_feemarket_v1_genesis_proto_rawDescData } -var file_gaia_globalfee_v1beta1_genesis_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_gaia_globalfee_v1beta1_genesis_proto_goTypes = []interface{}{ - (*GenesisState)(nil), // 0: gaia.globalfee.v1beta1.GenesisState - (*Params)(nil), // 1: gaia.globalfee.v1beta1.Params - (*v1beta1.DecCoin)(nil), // 2: cosmos.base.v1beta1.DecCoin +var file_juno_feemarket_v1_genesis_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_juno_feemarket_v1_genesis_proto_goTypes = []interface{}{ + (*GenesisState)(nil), // 0: juno.feemarket.v1.GenesisState + (*State)(nil), // 1: juno.feemarket.v1.State + (*Params)(nil), // 2: juno.feemarket.v1.Params } -var file_gaia_globalfee_v1beta1_genesis_proto_depIdxs = []int32{ - 1, // 0: gaia.globalfee.v1beta1.GenesisState.params:type_name -> gaia.globalfee.v1beta1.Params - 2, // 1: gaia.globalfee.v1beta1.Params.minimum_gas_prices:type_name -> cosmos.base.v1beta1.DecCoin +var file_juno_feemarket_v1_genesis_proto_depIdxs = []int32{ + 2, // 0: juno.feemarket.v1.GenesisState.params:type_name -> juno.feemarket.v1.Params + 1, // 1: juno.feemarket.v1.GenesisState.state:type_name -> juno.feemarket.v1.State 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 @@ -1106,13 +1447,14 @@ var file_gaia_globalfee_v1beta1_genesis_proto_depIdxs = []int32{ 0, // [0:2] is the sub-list for field type_name } -func init() { file_gaia_globalfee_v1beta1_genesis_proto_init() } -func file_gaia_globalfee_v1beta1_genesis_proto_init() { - if File_gaia_globalfee_v1beta1_genesis_proto != nil { +func init() { file_juno_feemarket_v1_genesis_proto_init() } +func file_juno_feemarket_v1_genesis_proto_init() { + if File_juno_feemarket_v1_genesis_proto != nil { return } + file_juno_feemarket_v1_params_proto_init() if !protoimpl.UnsafeEnabled { - file_gaia_globalfee_v1beta1_genesis_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_juno_feemarket_v1_genesis_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GenesisState); i { case 0: return &v.state @@ -1124,8 +1466,8 @@ func file_gaia_globalfee_v1beta1_genesis_proto_init() { return nil } } - file_gaia_globalfee_v1beta1_genesis_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Params); i { + file_juno_feemarket_v1_genesis_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*State); i { case 0: return &v.state case 1: @@ -1141,18 +1483,18 @@ func file_gaia_globalfee_v1beta1_genesis_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_gaia_globalfee_v1beta1_genesis_proto_rawDesc, + RawDescriptor: file_juno_feemarket_v1_genesis_proto_rawDesc, NumEnums: 0, NumMessages: 2, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_gaia_globalfee_v1beta1_genesis_proto_goTypes, - DependencyIndexes: file_gaia_globalfee_v1beta1_genesis_proto_depIdxs, - MessageInfos: file_gaia_globalfee_v1beta1_genesis_proto_msgTypes, + GoTypes: file_juno_feemarket_v1_genesis_proto_goTypes, + DependencyIndexes: file_juno_feemarket_v1_genesis_proto_depIdxs, + MessageInfos: file_juno_feemarket_v1_genesis_proto_msgTypes, }.Build() - File_gaia_globalfee_v1beta1_genesis_proto = out.File - file_gaia_globalfee_v1beta1_genesis_proto_rawDesc = nil - file_gaia_globalfee_v1beta1_genesis_proto_goTypes = nil - file_gaia_globalfee_v1beta1_genesis_proto_depIdxs = nil + File_juno_feemarket_v1_genesis_proto = out.File + file_juno_feemarket_v1_genesis_proto_rawDesc = nil + file_juno_feemarket_v1_genesis_proto_goTypes = nil + file_juno_feemarket_v1_genesis_proto_depIdxs = nil } diff --git a/api/juno/feemarket/v1/params.pulsar.go b/api/juno/feemarket/v1/params.pulsar.go new file mode 100644 index 000000000..7b7b271c9 --- /dev/null +++ b/api/juno/feemarket/v1/params.pulsar.go @@ -0,0 +1,1388 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package feemarketv1 + +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_Params protoreflect.MessageDescriptor + fd_Params_alpha protoreflect.FieldDescriptor + fd_Params_beta protoreflect.FieldDescriptor + fd_Params_gamma protoreflect.FieldDescriptor + fd_Params_delta protoreflect.FieldDescriptor + fd_Params_min_base_gas_price protoreflect.FieldDescriptor + fd_Params_min_learning_rate protoreflect.FieldDescriptor + fd_Params_max_learning_rate protoreflect.FieldDescriptor + fd_Params_max_block_utilization protoreflect.FieldDescriptor + fd_Params_window protoreflect.FieldDescriptor + fd_Params_fee_denom protoreflect.FieldDescriptor + fd_Params_enabled protoreflect.FieldDescriptor + fd_Params_distribute_fees protoreflect.FieldDescriptor +) + +func init() { + file_juno_feemarket_v1_params_proto_init() + md_Params = File_juno_feemarket_v1_params_proto.Messages().ByName("Params") + fd_Params_alpha = md_Params.Fields().ByName("alpha") + fd_Params_beta = md_Params.Fields().ByName("beta") + fd_Params_gamma = md_Params.Fields().ByName("gamma") + fd_Params_delta = md_Params.Fields().ByName("delta") + fd_Params_min_base_gas_price = md_Params.Fields().ByName("min_base_gas_price") + fd_Params_min_learning_rate = md_Params.Fields().ByName("min_learning_rate") + fd_Params_max_learning_rate = md_Params.Fields().ByName("max_learning_rate") + fd_Params_max_block_utilization = md_Params.Fields().ByName("max_block_utilization") + fd_Params_window = md_Params.Fields().ByName("window") + fd_Params_fee_denom = md_Params.Fields().ByName("fee_denom") + fd_Params_enabled = md_Params.Fields().ByName("enabled") + fd_Params_distribute_fees = md_Params.Fields().ByName("distribute_fees") +} + +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_juno_feemarket_v1_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.Alpha != "" { + value := protoreflect.ValueOfString(x.Alpha) + if !f(fd_Params_alpha, value) { + return + } + } + if x.Beta != "" { + value := protoreflect.ValueOfString(x.Beta) + if !f(fd_Params_beta, value) { + return + } + } + if x.Gamma != "" { + value := protoreflect.ValueOfString(x.Gamma) + if !f(fd_Params_gamma, value) { + return + } + } + if x.Delta != "" { + value := protoreflect.ValueOfString(x.Delta) + if !f(fd_Params_delta, value) { + return + } + } + if x.MinBaseGasPrice != "" { + value := protoreflect.ValueOfString(x.MinBaseGasPrice) + if !f(fd_Params_min_base_gas_price, value) { + return + } + } + if x.MinLearningRate != "" { + value := protoreflect.ValueOfString(x.MinLearningRate) + if !f(fd_Params_min_learning_rate, value) { + return + } + } + if x.MaxLearningRate != "" { + value := protoreflect.ValueOfString(x.MaxLearningRate) + if !f(fd_Params_max_learning_rate, value) { + return + } + } + if x.MaxBlockUtilization != uint64(0) { + value := protoreflect.ValueOfUint64(x.MaxBlockUtilization) + if !f(fd_Params_max_block_utilization, value) { + return + } + } + if x.Window != uint64(0) { + value := protoreflect.ValueOfUint64(x.Window) + if !f(fd_Params_window, value) { + return + } + } + if x.FeeDenom != "" { + value := protoreflect.ValueOfString(x.FeeDenom) + if !f(fd_Params_fee_denom, value) { + return + } + } + if x.Enabled != false { + value := protoreflect.ValueOfBool(x.Enabled) + if !f(fd_Params_enabled, value) { + return + } + } + if x.DistributeFees != false { + value := protoreflect.ValueOfBool(x.DistributeFees) + if !f(fd_Params_distribute_fees, 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 "juno.feemarket.v1.Params.alpha": + return x.Alpha != "" + case "juno.feemarket.v1.Params.beta": + return x.Beta != "" + case "juno.feemarket.v1.Params.gamma": + return x.Gamma != "" + case "juno.feemarket.v1.Params.delta": + return x.Delta != "" + case "juno.feemarket.v1.Params.min_base_gas_price": + return x.MinBaseGasPrice != "" + case "juno.feemarket.v1.Params.min_learning_rate": + return x.MinLearningRate != "" + case "juno.feemarket.v1.Params.max_learning_rate": + return x.MaxLearningRate != "" + case "juno.feemarket.v1.Params.max_block_utilization": + return x.MaxBlockUtilization != uint64(0) + case "juno.feemarket.v1.Params.window": + return x.Window != uint64(0) + case "juno.feemarket.v1.Params.fee_denom": + return x.FeeDenom != "" + case "juno.feemarket.v1.Params.enabled": + return x.Enabled != false + case "juno.feemarket.v1.Params.distribute_fees": + return x.DistributeFees != false + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.Params")) + } + panic(fmt.Errorf("message juno.feemarket.v1.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 "juno.feemarket.v1.Params.alpha": + x.Alpha = "" + case "juno.feemarket.v1.Params.beta": + x.Beta = "" + case "juno.feemarket.v1.Params.gamma": + x.Gamma = "" + case "juno.feemarket.v1.Params.delta": + x.Delta = "" + case "juno.feemarket.v1.Params.min_base_gas_price": + x.MinBaseGasPrice = "" + case "juno.feemarket.v1.Params.min_learning_rate": + x.MinLearningRate = "" + case "juno.feemarket.v1.Params.max_learning_rate": + x.MaxLearningRate = "" + case "juno.feemarket.v1.Params.max_block_utilization": + x.MaxBlockUtilization = uint64(0) + case "juno.feemarket.v1.Params.window": + x.Window = uint64(0) + case "juno.feemarket.v1.Params.fee_denom": + x.FeeDenom = "" + case "juno.feemarket.v1.Params.enabled": + x.Enabled = false + case "juno.feemarket.v1.Params.distribute_fees": + x.DistributeFees = false + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.Params")) + } + panic(fmt.Errorf("message juno.feemarket.v1.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 "juno.feemarket.v1.Params.alpha": + value := x.Alpha + return protoreflect.ValueOfString(value) + case "juno.feemarket.v1.Params.beta": + value := x.Beta + return protoreflect.ValueOfString(value) + case "juno.feemarket.v1.Params.gamma": + value := x.Gamma + return protoreflect.ValueOfString(value) + case "juno.feemarket.v1.Params.delta": + value := x.Delta + return protoreflect.ValueOfString(value) + case "juno.feemarket.v1.Params.min_base_gas_price": + value := x.MinBaseGasPrice + return protoreflect.ValueOfString(value) + case "juno.feemarket.v1.Params.min_learning_rate": + value := x.MinLearningRate + return protoreflect.ValueOfString(value) + case "juno.feemarket.v1.Params.max_learning_rate": + value := x.MaxLearningRate + return protoreflect.ValueOfString(value) + case "juno.feemarket.v1.Params.max_block_utilization": + value := x.MaxBlockUtilization + return protoreflect.ValueOfUint64(value) + case "juno.feemarket.v1.Params.window": + value := x.Window + return protoreflect.ValueOfUint64(value) + case "juno.feemarket.v1.Params.fee_denom": + value := x.FeeDenom + return protoreflect.ValueOfString(value) + case "juno.feemarket.v1.Params.enabled": + value := x.Enabled + return protoreflect.ValueOfBool(value) + case "juno.feemarket.v1.Params.distribute_fees": + value := x.DistributeFees + return protoreflect.ValueOfBool(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.Params")) + } + panic(fmt.Errorf("message juno.feemarket.v1.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 "juno.feemarket.v1.Params.alpha": + x.Alpha = value.Interface().(string) + case "juno.feemarket.v1.Params.beta": + x.Beta = value.Interface().(string) + case "juno.feemarket.v1.Params.gamma": + x.Gamma = value.Interface().(string) + case "juno.feemarket.v1.Params.delta": + x.Delta = value.Interface().(string) + case "juno.feemarket.v1.Params.min_base_gas_price": + x.MinBaseGasPrice = value.Interface().(string) + case "juno.feemarket.v1.Params.min_learning_rate": + x.MinLearningRate = value.Interface().(string) + case "juno.feemarket.v1.Params.max_learning_rate": + x.MaxLearningRate = value.Interface().(string) + case "juno.feemarket.v1.Params.max_block_utilization": + x.MaxBlockUtilization = value.Uint() + case "juno.feemarket.v1.Params.window": + x.Window = value.Uint() + case "juno.feemarket.v1.Params.fee_denom": + x.FeeDenom = value.Interface().(string) + case "juno.feemarket.v1.Params.enabled": + x.Enabled = value.Bool() + case "juno.feemarket.v1.Params.distribute_fees": + x.DistributeFees = value.Bool() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.Params")) + } + panic(fmt.Errorf("message juno.feemarket.v1.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 "juno.feemarket.v1.Params.alpha": + panic(fmt.Errorf("field alpha of message juno.feemarket.v1.Params is not mutable")) + case "juno.feemarket.v1.Params.beta": + panic(fmt.Errorf("field beta of message juno.feemarket.v1.Params is not mutable")) + case "juno.feemarket.v1.Params.gamma": + panic(fmt.Errorf("field gamma of message juno.feemarket.v1.Params is not mutable")) + case "juno.feemarket.v1.Params.delta": + panic(fmt.Errorf("field delta of message juno.feemarket.v1.Params is not mutable")) + case "juno.feemarket.v1.Params.min_base_gas_price": + panic(fmt.Errorf("field min_base_gas_price of message juno.feemarket.v1.Params is not mutable")) + case "juno.feemarket.v1.Params.min_learning_rate": + panic(fmt.Errorf("field min_learning_rate of message juno.feemarket.v1.Params is not mutable")) + case "juno.feemarket.v1.Params.max_learning_rate": + panic(fmt.Errorf("field max_learning_rate of message juno.feemarket.v1.Params is not mutable")) + case "juno.feemarket.v1.Params.max_block_utilization": + panic(fmt.Errorf("field max_block_utilization of message juno.feemarket.v1.Params is not mutable")) + case "juno.feemarket.v1.Params.window": + panic(fmt.Errorf("field window of message juno.feemarket.v1.Params is not mutable")) + case "juno.feemarket.v1.Params.fee_denom": + panic(fmt.Errorf("field fee_denom of message juno.feemarket.v1.Params is not mutable")) + case "juno.feemarket.v1.Params.enabled": + panic(fmt.Errorf("field enabled of message juno.feemarket.v1.Params is not mutable")) + case "juno.feemarket.v1.Params.distribute_fees": + panic(fmt.Errorf("field distribute_fees of message juno.feemarket.v1.Params is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.Params")) + } + panic(fmt.Errorf("message juno.feemarket.v1.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 "juno.feemarket.v1.Params.alpha": + return protoreflect.ValueOfString("") + case "juno.feemarket.v1.Params.beta": + return protoreflect.ValueOfString("") + case "juno.feemarket.v1.Params.gamma": + return protoreflect.ValueOfString("") + case "juno.feemarket.v1.Params.delta": + return protoreflect.ValueOfString("") + case "juno.feemarket.v1.Params.min_base_gas_price": + return protoreflect.ValueOfString("") + case "juno.feemarket.v1.Params.min_learning_rate": + return protoreflect.ValueOfString("") + case "juno.feemarket.v1.Params.max_learning_rate": + return protoreflect.ValueOfString("") + case "juno.feemarket.v1.Params.max_block_utilization": + return protoreflect.ValueOfUint64(uint64(0)) + case "juno.feemarket.v1.Params.window": + return protoreflect.ValueOfUint64(uint64(0)) + case "juno.feemarket.v1.Params.fee_denom": + return protoreflect.ValueOfString("") + case "juno.feemarket.v1.Params.enabled": + return protoreflect.ValueOfBool(false) + case "juno.feemarket.v1.Params.distribute_fees": + return protoreflect.ValueOfBool(false) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.Params")) + } + panic(fmt.Errorf("message juno.feemarket.v1.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 juno.feemarket.v1.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 + l = len(x.Alpha) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Beta) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Gamma) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Delta) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.MinBaseGasPrice) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.MinLearningRate) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.MaxLearningRate) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.MaxBlockUtilization != 0 { + n += 1 + runtime.Sov(uint64(x.MaxBlockUtilization)) + } + if x.Window != 0 { + n += 1 + runtime.Sov(uint64(x.Window)) + } + l = len(x.FeeDenom) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Enabled { + n += 2 + } + if x.DistributeFees { + n += 2 + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*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.DistributeFees { + i-- + if x.DistributeFees { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x60 + } + if x.Enabled { + i-- + if x.Enabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x58 + } + if len(x.FeeDenom) > 0 { + i -= len(x.FeeDenom) + copy(dAtA[i:], x.FeeDenom) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.FeeDenom))) + i-- + dAtA[i] = 0x52 + } + if x.Window != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Window)) + i-- + dAtA[i] = 0x48 + } + if x.MaxBlockUtilization != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.MaxBlockUtilization)) + i-- + dAtA[i] = 0x40 + } + if len(x.MaxLearningRate) > 0 { + i -= len(x.MaxLearningRate) + copy(dAtA[i:], x.MaxLearningRate) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.MaxLearningRate))) + i-- + dAtA[i] = 0x3a + } + if len(x.MinLearningRate) > 0 { + i -= len(x.MinLearningRate) + copy(dAtA[i:], x.MinLearningRate) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.MinLearningRate))) + i-- + dAtA[i] = 0x32 + } + if len(x.MinBaseGasPrice) > 0 { + i -= len(x.MinBaseGasPrice) + copy(dAtA[i:], x.MinBaseGasPrice) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.MinBaseGasPrice))) + i-- + dAtA[i] = 0x2a + } + if len(x.Delta) > 0 { + i -= len(x.Delta) + copy(dAtA[i:], x.Delta) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Delta))) + i-- + dAtA[i] = 0x22 + } + if len(x.Gamma) > 0 { + i -= len(x.Gamma) + copy(dAtA[i:], x.Gamma) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Gamma))) + i-- + dAtA[i] = 0x1a + } + if len(x.Beta) > 0 { + i -= len(x.Beta) + copy(dAtA[i:], x.Beta) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Beta))) + i-- + dAtA[i] = 0x12 + } + if len(x.Alpha) > 0 { + i -= len(x.Alpha) + copy(dAtA[i:], x.Alpha) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Alpha))) + 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().(*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 != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Alpha", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Alpha = 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 Beta", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Beta = 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 Gamma", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Gamma = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Delta", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Delta = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MinBaseGasPrice", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.MinBaseGasPrice = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MinLearningRate", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.MinLearningRate = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MaxLearningRate", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.MaxLearningRate = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MaxBlockUtilization", wireType) + } + x.MaxBlockUtilization = 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.MaxBlockUtilization |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 9: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Window", wireType) + } + x.Window = 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.Window |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 10: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field FeeDenom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.FeeDenom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 11: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.Enabled = bool(v != 0) + case 12: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DistributeFees", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.DistributeFees = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: juno/feemarket/v1/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 contains the required set of parameters for the EIP1559 fee market +// plugin implementation. +type Params struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Alpha is the amount we additively increase the learning rate + // when it is above or below the target +/- threshold. + // + // Must be > 0. + Alpha string `protobuf:"bytes,1,opt,name=alpha,proto3" json:"alpha,omitempty"` + // Beta is the amount we multiplicatively decrease the learning rate + // when it is within the target +/- threshold. + // + // Must be [0, 1]. + Beta string `protobuf:"bytes,2,opt,name=beta,proto3" json:"beta,omitempty"` + // Gamma is the threshold for the learning rate. If the learning rate is + // above or below the target +/- threshold, we additively increase the + // learning rate by Alpha. Otherwise, we multiplicatively decrease the + // learning rate by Beta. + // + // Must be [0, 0.5]. + Gamma string `protobuf:"bytes,3,opt,name=gamma,proto3" json:"gamma,omitempty"` + // Delta is the amount we additively increase/decrease the gas price when the + // net block utilization difference in the window is above/below the target + // utilization. + Delta string `protobuf:"bytes,4,opt,name=delta,proto3" json:"delta,omitempty"` + // MinBaseGasPrice determines the initial gas price of the module and the + // global minimum for the network. + MinBaseGasPrice string `protobuf:"bytes,5,opt,name=min_base_gas_price,json=minBaseGasPrice,proto3" json:"min_base_gas_price,omitempty"` + // MinLearningRate is the lower bound for the learning rate. + MinLearningRate string `protobuf:"bytes,6,opt,name=min_learning_rate,json=minLearningRate,proto3" json:"min_learning_rate,omitempty"` + // MaxLearningRate is the upper bound for the learning rate. + MaxLearningRate string `protobuf:"bytes,7,opt,name=max_learning_rate,json=maxLearningRate,proto3" json:"max_learning_rate,omitempty"` + // MaxBlockUtilization is the maximum block utilization. + MaxBlockUtilization uint64 `protobuf:"varint,8,opt,name=max_block_utilization,json=maxBlockUtilization,proto3" json:"max_block_utilization,omitempty"` + // Window defines the window size for calculating an adaptive learning rate + // over a moving window of blocks. + Window uint64 `protobuf:"varint,9,opt,name=window,proto3" json:"window,omitempty"` + // FeeDenom is the denom that will be used for all fee payments. + FeeDenom string `protobuf:"bytes,10,opt,name=fee_denom,json=feeDenom,proto3" json:"fee_denom,omitempty"` + // Enabled is a boolean that determines whether the EIP1559 fee market is + // enabled. + Enabled bool `protobuf:"varint,11,opt,name=enabled,proto3" json:"enabled,omitempty"` + // DistributeFees is a boolean that determines whether the fees are burned or + // distributed to all stakers. + DistributeFees bool `protobuf:"varint,12,opt,name=distribute_fees,json=distributeFees,proto3" json:"distribute_fees,omitempty"` +} + +func (x *Params) Reset() { + *x = Params{} + if protoimpl.UnsafeEnabled { + mi := &file_juno_feemarket_v1_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_juno_feemarket_v1_params_proto_rawDescGZIP(), []int{0} +} + +func (x *Params) GetAlpha() string { + if x != nil { + return x.Alpha + } + return "" +} + +func (x *Params) GetBeta() string { + if x != nil { + return x.Beta + } + return "" +} + +func (x *Params) GetGamma() string { + if x != nil { + return x.Gamma + } + return "" +} + +func (x *Params) GetDelta() string { + if x != nil { + return x.Delta + } + return "" +} + +func (x *Params) GetMinBaseGasPrice() string { + if x != nil { + return x.MinBaseGasPrice + } + return "" +} + +func (x *Params) GetMinLearningRate() string { + if x != nil { + return x.MinLearningRate + } + return "" +} + +func (x *Params) GetMaxLearningRate() string { + if x != nil { + return x.MaxLearningRate + } + return "" +} + +func (x *Params) GetMaxBlockUtilization() uint64 { + if x != nil { + return x.MaxBlockUtilization + } + return 0 +} + +func (x *Params) GetWindow() uint64 { + if x != nil { + return x.Window + } + return 0 +} + +func (x *Params) GetFeeDenom() string { + if x != nil { + return x.FeeDenom + } + return "" +} + +func (x *Params) GetEnabled() bool { + if x != nil { + return x.Enabled + } + return false +} + +func (x *Params) GetDistributeFees() bool { + if x != nil { + return x.DistributeFees + } + return false +} + +var File_juno_feemarket_v1_params_proto protoreflect.FileDescriptor + +var file_juno_feemarket_v1_params_proto_rawDesc = []byte{ + 0x0a, 0x1e, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, + 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x12, 0x11, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, + 0x2e, 0x76, 0x31, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, + 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf4, 0x05, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, + 0x47, 0x0a, 0x05, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x31, + 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x1b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, + 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, + 0x44, 0x65, 0x63, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x44, 0x65, + 0x63, 0x52, 0x05, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x12, 0x45, 0x0a, 0x04, 0x62, 0x65, 0x74, 0x61, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x31, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x1b, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, + 0x68, 0x2e, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x44, 0x65, 0x63, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x44, 0x65, 0x63, 0x52, 0x04, 0x62, 0x65, 0x74, 0x61, 0x12, + 0x47, 0x0a, 0x05, 0x67, 0x61, 0x6d, 0x6d, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x31, + 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x1b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, + 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, + 0x44, 0x65, 0x63, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x44, 0x65, + 0x63, 0x52, 0x05, 0x67, 0x61, 0x6d, 0x6d, 0x61, 0x12, 0x47, 0x0a, 0x05, 0x64, 0x65, 0x6c, 0x74, + 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x31, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, + 0x1b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, + 0x74, 0x68, 0x2e, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x44, 0x65, 0x63, 0xd2, 0xb4, 0x2d, 0x0a, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x44, 0x65, 0x63, 0x52, 0x05, 0x64, 0x65, 0x6c, 0x74, + 0x61, 0x12, 0x5e, 0x0a, 0x12, 0x6d, 0x69, 0x6e, 0x5f, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x67, 0x61, + 0x73, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x31, 0xc8, + 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x1b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, + 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x44, + 0x65, 0x63, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x44, 0x65, 0x63, + 0x52, 0x0f, 0x6d, 0x69, 0x6e, 0x42, 0x61, 0x73, 0x65, 0x47, 0x61, 0x73, 0x50, 0x72, 0x69, 0x63, + 0x65, 0x12, 0x5d, 0x0a, 0x11, 0x6d, 0x69, 0x6e, 0x5f, 0x6c, 0x65, 0x61, 0x72, 0x6e, 0x69, 0x6e, + 0x67, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x42, 0x31, 0xc8, 0xde, + 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x1b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, + 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x44, 0x65, + 0x63, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x44, 0x65, 0x63, 0x52, + 0x0f, 0x6d, 0x69, 0x6e, 0x4c, 0x65, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x52, 0x61, 0x74, 0x65, + 0x12, 0x5d, 0x0a, 0x11, 0x6d, 0x61, 0x78, 0x5f, 0x6c, 0x65, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, + 0x5f, 0x72, 0x61, 0x74, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x42, 0x31, 0xc8, 0xde, 0x1f, + 0x00, 0xda, 0xde, 0x1f, 0x1b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, + 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x44, 0x65, 0x63, + 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x44, 0x65, 0x63, 0x52, 0x0f, + 0x6d, 0x61, 0x78, 0x4c, 0x65, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x52, 0x61, 0x74, 0x65, 0x12, + 0x32, 0x0a, 0x15, 0x6d, 0x61, 0x78, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x75, 0x74, 0x69, + 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, 0x52, 0x13, + 0x6d, 0x61, 0x78, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x77, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x18, 0x09, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x06, 0x77, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x12, 0x1b, 0x0a, 0x09, 0x66, + 0x65, 0x65, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x66, 0x65, 0x65, 0x44, 0x65, 0x6e, 0x6f, 0x6d, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, + 0x6c, 0x65, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, + 0x65, 0x64, 0x12, 0x27, 0x0a, 0x0f, 0x64, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x5f, 0x66, 0x65, 0x65, 0x73, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x64, 0x69, 0x73, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x46, 0x65, 0x65, 0x73, 0x42, 0xba, 0x01, 0x0a, 0x15, + 0x63, 0x6f, 0x6d, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, + 0x65, 0x74, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x50, 0x72, 0x6f, + 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, + 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, 0x66, 0x65, 0x65, 0x6d, + 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2f, 0x76, 0x31, 0x3b, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, + 0x65, 0x74, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4a, 0x46, 0x58, 0xaa, 0x02, 0x11, 0x4a, 0x75, 0x6e, + 0x6f, 0x2e, 0x46, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x56, 0x31, 0xca, 0x02, + 0x11, 0x4a, 0x75, 0x6e, 0x6f, 0x5c, 0x46, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5c, + 0x56, 0x31, 0xe2, 0x02, 0x1d, 0x4a, 0x75, 0x6e, 0x6f, 0x5c, 0x46, 0x65, 0x65, 0x6d, 0x61, 0x72, + 0x6b, 0x65, 0x74, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0xea, 0x02, 0x13, 0x4a, 0x75, 0x6e, 0x6f, 0x3a, 0x3a, 0x46, 0x65, 0x65, 0x6d, 0x61, + 0x72, 0x6b, 0x65, 0x74, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_juno_feemarket_v1_params_proto_rawDescOnce sync.Once + file_juno_feemarket_v1_params_proto_rawDescData = file_juno_feemarket_v1_params_proto_rawDesc +) + +func file_juno_feemarket_v1_params_proto_rawDescGZIP() []byte { + file_juno_feemarket_v1_params_proto_rawDescOnce.Do(func() { + file_juno_feemarket_v1_params_proto_rawDescData = protoimpl.X.CompressGZIP(file_juno_feemarket_v1_params_proto_rawDescData) + }) + return file_juno_feemarket_v1_params_proto_rawDescData +} + +var file_juno_feemarket_v1_params_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_juno_feemarket_v1_params_proto_goTypes = []interface{}{ + (*Params)(nil), // 0: juno.feemarket.v1.Params +} +var file_juno_feemarket_v1_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_juno_feemarket_v1_params_proto_init() } +func file_juno_feemarket_v1_params_proto_init() { + if File_juno_feemarket_v1_params_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_juno_feemarket_v1_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_juno_feemarket_v1_params_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_juno_feemarket_v1_params_proto_goTypes, + DependencyIndexes: file_juno_feemarket_v1_params_proto_depIdxs, + MessageInfos: file_juno_feemarket_v1_params_proto_msgTypes, + }.Build() + File_juno_feemarket_v1_params_proto = out.File + file_juno_feemarket_v1_params_proto_rawDesc = nil + file_juno_feemarket_v1_params_proto_goTypes = nil + file_juno_feemarket_v1_params_proto_depIdxs = nil +} diff --git a/api/juno/feemarket/v1/query.pulsar.go b/api/juno/feemarket/v1/query.pulsar.go new file mode 100644 index 000000000..ab83c3600 --- /dev/null +++ b/api/juno/feemarket/v1/query.pulsar.go @@ -0,0 +1,3843 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package feemarketv1 + +import ( + _ "cosmossdk.io/api/amino" + 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_ParamsRequest protoreflect.MessageDescriptor +) + +func init() { + file_juno_feemarket_v1_query_proto_init() + md_ParamsRequest = File_juno_feemarket_v1_query_proto.Messages().ByName("ParamsRequest") +} + +var _ protoreflect.Message = (*fastReflection_ParamsRequest)(nil) + +type fastReflection_ParamsRequest ParamsRequest + +func (x *ParamsRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_ParamsRequest)(x) +} + +func (x *ParamsRequest) slowProtoReflect() protoreflect.Message { + mi := &file_juno_feemarket_v1_query_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_ParamsRequest_messageType fastReflection_ParamsRequest_messageType +var _ protoreflect.MessageType = fastReflection_ParamsRequest_messageType{} + +type fastReflection_ParamsRequest_messageType struct{} + +func (x fastReflection_ParamsRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_ParamsRequest)(nil) +} +func (x fastReflection_ParamsRequest_messageType) New() protoreflect.Message { + return new(fastReflection_ParamsRequest) +} +func (x fastReflection_ParamsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_ParamsRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_ParamsRequest) Descriptor() protoreflect.MessageDescriptor { + return md_ParamsRequest +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_ParamsRequest) Type() protoreflect.MessageType { + return _fastReflection_ParamsRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_ParamsRequest) New() protoreflect.Message { + return new(fastReflection_ParamsRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_ParamsRequest) Interface() protoreflect.ProtoMessage { + return (*ParamsRequest)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_ParamsRequest) 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_ParamsRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.ParamsRequest")) + } + panic(fmt.Errorf("message juno.feemarket.v1.ParamsRequest does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_ParamsRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.ParamsRequest")) + } + panic(fmt.Errorf("message juno.feemarket.v1.ParamsRequest does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_ParamsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.ParamsRequest")) + } + panic(fmt.Errorf("message juno.feemarket.v1.ParamsRequest does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_ParamsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.ParamsRequest")) + } + panic(fmt.Errorf("message juno.feemarket.v1.ParamsRequest does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_ParamsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.ParamsRequest")) + } + panic(fmt.Errorf("message juno.feemarket.v1.ParamsRequest does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_ParamsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.ParamsRequest")) + } + panic(fmt.Errorf("message juno.feemarket.v1.ParamsRequest does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_ParamsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in juno.feemarket.v1.ParamsRequest", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_ParamsRequest) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_ParamsRequest) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_ParamsRequest) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_ParamsRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*ParamsRequest) + 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().(*ParamsRequest) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]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().(*ParamsRequest) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ParamsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ParamsRequest: 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_ParamsResponse protoreflect.MessageDescriptor + fd_ParamsResponse_params protoreflect.FieldDescriptor +) + +func init() { + file_juno_feemarket_v1_query_proto_init() + md_ParamsResponse = File_juno_feemarket_v1_query_proto.Messages().ByName("ParamsResponse") + fd_ParamsResponse_params = md_ParamsResponse.Fields().ByName("params") +} + +var _ protoreflect.Message = (*fastReflection_ParamsResponse)(nil) + +type fastReflection_ParamsResponse ParamsResponse + +func (x *ParamsResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_ParamsResponse)(x) +} + +func (x *ParamsResponse) slowProtoReflect() protoreflect.Message { + mi := &file_juno_feemarket_v1_query_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_ParamsResponse_messageType fastReflection_ParamsResponse_messageType +var _ protoreflect.MessageType = fastReflection_ParamsResponse_messageType{} + +type fastReflection_ParamsResponse_messageType struct{} + +func (x fastReflection_ParamsResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_ParamsResponse)(nil) +} +func (x fastReflection_ParamsResponse_messageType) New() protoreflect.Message { + return new(fastReflection_ParamsResponse) +} +func (x fastReflection_ParamsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_ParamsResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_ParamsResponse) Descriptor() protoreflect.MessageDescriptor { + return md_ParamsResponse +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_ParamsResponse) Type() protoreflect.MessageType { + return _fastReflection_ParamsResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_ParamsResponse) New() protoreflect.Message { + return new(fastReflection_ParamsResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_ParamsResponse) Interface() protoreflect.ProtoMessage { + return (*ParamsResponse)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_ParamsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Params != nil { + value := protoreflect.ValueOfMessage(x.Params.ProtoReflect()) + if !f(fd_ParamsResponse_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_ParamsResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "juno.feemarket.v1.ParamsResponse.params": + return x.Params != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.ParamsResponse")) + } + panic(fmt.Errorf("message juno.feemarket.v1.ParamsResponse does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_ParamsResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "juno.feemarket.v1.ParamsResponse.params": + x.Params = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.ParamsResponse")) + } + panic(fmt.Errorf("message juno.feemarket.v1.ParamsResponse does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_ParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "juno.feemarket.v1.ParamsResponse.params": + value := x.Params + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.ParamsResponse")) + } + panic(fmt.Errorf("message juno.feemarket.v1.ParamsResponse does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_ParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "juno.feemarket.v1.ParamsResponse.params": + x.Params = value.Message().Interface().(*Params) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.ParamsResponse")) + } + panic(fmt.Errorf("message juno.feemarket.v1.ParamsResponse does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_ParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "juno.feemarket.v1.ParamsResponse.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: juno.feemarket.v1.ParamsResponse")) + } + panic(fmt.Errorf("message juno.feemarket.v1.ParamsResponse does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_ParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "juno.feemarket.v1.ParamsResponse.params": + m := new(Params) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.ParamsResponse")) + } + panic(fmt.Errorf("message juno.feemarket.v1.ParamsResponse does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_ParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in juno.feemarket.v1.ParamsResponse", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_ParamsResponse) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_ParamsResponse) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_ParamsResponse) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_ParamsResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*ParamsResponse) + 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().(*ParamsResponse) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]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().(*ParamsResponse) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ParamsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ParamsResponse: 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_StateRequest protoreflect.MessageDescriptor +) + +func init() { + file_juno_feemarket_v1_query_proto_init() + md_StateRequest = File_juno_feemarket_v1_query_proto.Messages().ByName("StateRequest") +} + +var _ protoreflect.Message = (*fastReflection_StateRequest)(nil) + +type fastReflection_StateRequest StateRequest + +func (x *StateRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_StateRequest)(x) +} + +func (x *StateRequest) slowProtoReflect() protoreflect.Message { + mi := &file_juno_feemarket_v1_query_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_StateRequest_messageType fastReflection_StateRequest_messageType +var _ protoreflect.MessageType = fastReflection_StateRequest_messageType{} + +type fastReflection_StateRequest_messageType struct{} + +func (x fastReflection_StateRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_StateRequest)(nil) +} +func (x fastReflection_StateRequest_messageType) New() protoreflect.Message { + return new(fastReflection_StateRequest) +} +func (x fastReflection_StateRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_StateRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_StateRequest) Descriptor() protoreflect.MessageDescriptor { + return md_StateRequest +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_StateRequest) Type() protoreflect.MessageType { + return _fastReflection_StateRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_StateRequest) New() protoreflect.Message { + return new(fastReflection_StateRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_StateRequest) Interface() protoreflect.ProtoMessage { + return (*StateRequest)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_StateRequest) 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_StateRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.StateRequest")) + } + panic(fmt.Errorf("message juno.feemarket.v1.StateRequest does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_StateRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.StateRequest")) + } + panic(fmt.Errorf("message juno.feemarket.v1.StateRequest does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_StateRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.StateRequest")) + } + panic(fmt.Errorf("message juno.feemarket.v1.StateRequest does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_StateRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.StateRequest")) + } + panic(fmt.Errorf("message juno.feemarket.v1.StateRequest does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_StateRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.StateRequest")) + } + panic(fmt.Errorf("message juno.feemarket.v1.StateRequest does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_StateRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.StateRequest")) + } + panic(fmt.Errorf("message juno.feemarket.v1.StateRequest does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_StateRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in juno.feemarket.v1.StateRequest", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_StateRequest) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_StateRequest) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_StateRequest) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_StateRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*StateRequest) + 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().(*StateRequest) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]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().(*StateRequest) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: StateRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: StateRequest: 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_StateResponse protoreflect.MessageDescriptor + fd_StateResponse_state protoreflect.FieldDescriptor +) + +func init() { + file_juno_feemarket_v1_query_proto_init() + md_StateResponse = File_juno_feemarket_v1_query_proto.Messages().ByName("StateResponse") + fd_StateResponse_state = md_StateResponse.Fields().ByName("state") +} + +var _ protoreflect.Message = (*fastReflection_StateResponse)(nil) + +type fastReflection_StateResponse StateResponse + +func (x *StateResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_StateResponse)(x) +} + +func (x *StateResponse) slowProtoReflect() protoreflect.Message { + mi := &file_juno_feemarket_v1_query_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_StateResponse_messageType fastReflection_StateResponse_messageType +var _ protoreflect.MessageType = fastReflection_StateResponse_messageType{} + +type fastReflection_StateResponse_messageType struct{} + +func (x fastReflection_StateResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_StateResponse)(nil) +} +func (x fastReflection_StateResponse_messageType) New() protoreflect.Message { + return new(fastReflection_StateResponse) +} +func (x fastReflection_StateResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_StateResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_StateResponse) Descriptor() protoreflect.MessageDescriptor { + return md_StateResponse +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_StateResponse) Type() protoreflect.MessageType { + return _fastReflection_StateResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_StateResponse) New() protoreflect.Message { + return new(fastReflection_StateResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_StateResponse) Interface() protoreflect.ProtoMessage { + return (*StateResponse)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_StateResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.State != nil { + value := protoreflect.ValueOfMessage(x.State.ProtoReflect()) + if !f(fd_StateResponse_state, 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_StateResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "juno.feemarket.v1.StateResponse.state": + return x.State != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.StateResponse")) + } + panic(fmt.Errorf("message juno.feemarket.v1.StateResponse does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_StateResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "juno.feemarket.v1.StateResponse.state": + x.State = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.StateResponse")) + } + panic(fmt.Errorf("message juno.feemarket.v1.StateResponse does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_StateResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "juno.feemarket.v1.StateResponse.state": + value := x.State + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.StateResponse")) + } + panic(fmt.Errorf("message juno.feemarket.v1.StateResponse does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_StateResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "juno.feemarket.v1.StateResponse.state": + x.State = value.Message().Interface().(*State) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.StateResponse")) + } + panic(fmt.Errorf("message juno.feemarket.v1.StateResponse does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_StateResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "juno.feemarket.v1.StateResponse.state": + if x.State == nil { + x.State = new(State) + } + return protoreflect.ValueOfMessage(x.State.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.StateResponse")) + } + panic(fmt.Errorf("message juno.feemarket.v1.StateResponse does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_StateResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "juno.feemarket.v1.StateResponse.state": + m := new(State) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.StateResponse")) + } + panic(fmt.Errorf("message juno.feemarket.v1.StateResponse does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_StateResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in juno.feemarket.v1.StateResponse", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_StateResponse) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_StateResponse) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_StateResponse) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_StateResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*StateResponse) + 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.State != nil { + l = options.Size(x.State) + 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().(*StateResponse) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]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.State != nil { + encoded, err := options.Marshal(x.State) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: 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().(*StateResponse) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: StateResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: StateResponse: 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 State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return 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.State == nil { + x.State = &State{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.State); 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_GasPriceRequest protoreflect.MessageDescriptor + fd_GasPriceRequest_denom protoreflect.FieldDescriptor +) + +func init() { + file_juno_feemarket_v1_query_proto_init() + md_GasPriceRequest = File_juno_feemarket_v1_query_proto.Messages().ByName("GasPriceRequest") + fd_GasPriceRequest_denom = md_GasPriceRequest.Fields().ByName("denom") +} + +var _ protoreflect.Message = (*fastReflection_GasPriceRequest)(nil) + +type fastReflection_GasPriceRequest GasPriceRequest + +func (x *GasPriceRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_GasPriceRequest)(x) +} + +func (x *GasPriceRequest) slowProtoReflect() protoreflect.Message { + mi := &file_juno_feemarket_v1_query_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_GasPriceRequest_messageType fastReflection_GasPriceRequest_messageType +var _ protoreflect.MessageType = fastReflection_GasPriceRequest_messageType{} + +type fastReflection_GasPriceRequest_messageType struct{} + +func (x fastReflection_GasPriceRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_GasPriceRequest)(nil) +} +func (x fastReflection_GasPriceRequest_messageType) New() protoreflect.Message { + return new(fastReflection_GasPriceRequest) +} +func (x fastReflection_GasPriceRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_GasPriceRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_GasPriceRequest) Descriptor() protoreflect.MessageDescriptor { + return md_GasPriceRequest +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_GasPriceRequest) Type() protoreflect.MessageType { + return _fastReflection_GasPriceRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_GasPriceRequest) New() protoreflect.Message { + return new(fastReflection_GasPriceRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_GasPriceRequest) Interface() protoreflect.ProtoMessage { + return (*GasPriceRequest)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_GasPriceRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Denom != "" { + value := protoreflect.ValueOfString(x.Denom) + if !f(fd_GasPriceRequest_denom, 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_GasPriceRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "juno.feemarket.v1.GasPriceRequest.denom": + return x.Denom != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.GasPriceRequest")) + } + panic(fmt.Errorf("message juno.feemarket.v1.GasPriceRequest does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GasPriceRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "juno.feemarket.v1.GasPriceRequest.denom": + x.Denom = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.GasPriceRequest")) + } + panic(fmt.Errorf("message juno.feemarket.v1.GasPriceRequest does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_GasPriceRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "juno.feemarket.v1.GasPriceRequest.denom": + value := x.Denom + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.GasPriceRequest")) + } + panic(fmt.Errorf("message juno.feemarket.v1.GasPriceRequest does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GasPriceRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "juno.feemarket.v1.GasPriceRequest.denom": + x.Denom = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.GasPriceRequest")) + } + panic(fmt.Errorf("message juno.feemarket.v1.GasPriceRequest does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GasPriceRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "juno.feemarket.v1.GasPriceRequest.denom": + panic(fmt.Errorf("field denom of message juno.feemarket.v1.GasPriceRequest is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.GasPriceRequest")) + } + panic(fmt.Errorf("message juno.feemarket.v1.GasPriceRequest does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_GasPriceRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "juno.feemarket.v1.GasPriceRequest.denom": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.GasPriceRequest")) + } + panic(fmt.Errorf("message juno.feemarket.v1.GasPriceRequest does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_GasPriceRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in juno.feemarket.v1.GasPriceRequest", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_GasPriceRequest) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GasPriceRequest) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_GasPriceRequest) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_GasPriceRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*GasPriceRequest) + 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.Denom) + 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().(*GasPriceRequest) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]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.Denom) > 0 { + i -= len(x.Denom) + copy(dAtA[i:], x.Denom) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Denom))) + 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().(*GasPriceRequest) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GasPriceRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GasPriceRequest: 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 Denom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Denom = 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_GasPriceResponse protoreflect.MessageDescriptor + fd_GasPriceResponse_price protoreflect.FieldDescriptor +) + +func init() { + file_juno_feemarket_v1_query_proto_init() + md_GasPriceResponse = File_juno_feemarket_v1_query_proto.Messages().ByName("GasPriceResponse") + fd_GasPriceResponse_price = md_GasPriceResponse.Fields().ByName("price") +} + +var _ protoreflect.Message = (*fastReflection_GasPriceResponse)(nil) + +type fastReflection_GasPriceResponse GasPriceResponse + +func (x *GasPriceResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_GasPriceResponse)(x) +} + +func (x *GasPriceResponse) slowProtoReflect() protoreflect.Message { + mi := &file_juno_feemarket_v1_query_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_GasPriceResponse_messageType fastReflection_GasPriceResponse_messageType +var _ protoreflect.MessageType = fastReflection_GasPriceResponse_messageType{} + +type fastReflection_GasPriceResponse_messageType struct{} + +func (x fastReflection_GasPriceResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_GasPriceResponse)(nil) +} +func (x fastReflection_GasPriceResponse_messageType) New() protoreflect.Message { + return new(fastReflection_GasPriceResponse) +} +func (x fastReflection_GasPriceResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_GasPriceResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_GasPriceResponse) Descriptor() protoreflect.MessageDescriptor { + return md_GasPriceResponse +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_GasPriceResponse) Type() protoreflect.MessageType { + return _fastReflection_GasPriceResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_GasPriceResponse) New() protoreflect.Message { + return new(fastReflection_GasPriceResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_GasPriceResponse) Interface() protoreflect.ProtoMessage { + return (*GasPriceResponse)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_GasPriceResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Price != nil { + value := protoreflect.ValueOfMessage(x.Price.ProtoReflect()) + if !f(fd_GasPriceResponse_price, 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_GasPriceResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "juno.feemarket.v1.GasPriceResponse.price": + return x.Price != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.GasPriceResponse")) + } + panic(fmt.Errorf("message juno.feemarket.v1.GasPriceResponse does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GasPriceResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "juno.feemarket.v1.GasPriceResponse.price": + x.Price = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.GasPriceResponse")) + } + panic(fmt.Errorf("message juno.feemarket.v1.GasPriceResponse does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_GasPriceResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "juno.feemarket.v1.GasPriceResponse.price": + value := x.Price + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.GasPriceResponse")) + } + panic(fmt.Errorf("message juno.feemarket.v1.GasPriceResponse does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GasPriceResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "juno.feemarket.v1.GasPriceResponse.price": + x.Price = value.Message().Interface().(*v1beta1.DecCoin) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.GasPriceResponse")) + } + panic(fmt.Errorf("message juno.feemarket.v1.GasPriceResponse does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GasPriceResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "juno.feemarket.v1.GasPriceResponse.price": + if x.Price == nil { + x.Price = new(v1beta1.DecCoin) + } + return protoreflect.ValueOfMessage(x.Price.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.GasPriceResponse")) + } + panic(fmt.Errorf("message juno.feemarket.v1.GasPriceResponse does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_GasPriceResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "juno.feemarket.v1.GasPriceResponse.price": + m := new(v1beta1.DecCoin) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.GasPriceResponse")) + } + panic(fmt.Errorf("message juno.feemarket.v1.GasPriceResponse does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_GasPriceResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in juno.feemarket.v1.GasPriceResponse", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_GasPriceResponse) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GasPriceResponse) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_GasPriceResponse) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_GasPriceResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*GasPriceResponse) + 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.Price != nil { + l = options.Size(x.Price) + 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().(*GasPriceResponse) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]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.Price != nil { + encoded, err := options.Marshal(x.Price) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: 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().(*GasPriceResponse) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GasPriceResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GasPriceResponse: 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 Price", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return 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.Price == nil { + x.Price = &v1beta1.DecCoin{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Price); 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_GasPricesRequest protoreflect.MessageDescriptor +) + +func init() { + file_juno_feemarket_v1_query_proto_init() + md_GasPricesRequest = File_juno_feemarket_v1_query_proto.Messages().ByName("GasPricesRequest") +} + +var _ protoreflect.Message = (*fastReflection_GasPricesRequest)(nil) + +type fastReflection_GasPricesRequest GasPricesRequest + +func (x *GasPricesRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_GasPricesRequest)(x) +} + +func (x *GasPricesRequest) slowProtoReflect() protoreflect.Message { + mi := &file_juno_feemarket_v1_query_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_GasPricesRequest_messageType fastReflection_GasPricesRequest_messageType +var _ protoreflect.MessageType = fastReflection_GasPricesRequest_messageType{} + +type fastReflection_GasPricesRequest_messageType struct{} + +func (x fastReflection_GasPricesRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_GasPricesRequest)(nil) +} +func (x fastReflection_GasPricesRequest_messageType) New() protoreflect.Message { + return new(fastReflection_GasPricesRequest) +} +func (x fastReflection_GasPricesRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_GasPricesRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_GasPricesRequest) Descriptor() protoreflect.MessageDescriptor { + return md_GasPricesRequest +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_GasPricesRequest) Type() protoreflect.MessageType { + return _fastReflection_GasPricesRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_GasPricesRequest) New() protoreflect.Message { + return new(fastReflection_GasPricesRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_GasPricesRequest) Interface() protoreflect.ProtoMessage { + return (*GasPricesRequest)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_GasPricesRequest) 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_GasPricesRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.GasPricesRequest")) + } + panic(fmt.Errorf("message juno.feemarket.v1.GasPricesRequest does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GasPricesRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.GasPricesRequest")) + } + panic(fmt.Errorf("message juno.feemarket.v1.GasPricesRequest does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_GasPricesRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.GasPricesRequest")) + } + panic(fmt.Errorf("message juno.feemarket.v1.GasPricesRequest does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GasPricesRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.GasPricesRequest")) + } + panic(fmt.Errorf("message juno.feemarket.v1.GasPricesRequest does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GasPricesRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.GasPricesRequest")) + } + panic(fmt.Errorf("message juno.feemarket.v1.GasPricesRequest does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_GasPricesRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.GasPricesRequest")) + } + panic(fmt.Errorf("message juno.feemarket.v1.GasPricesRequest does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_GasPricesRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in juno.feemarket.v1.GasPricesRequest", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_GasPricesRequest) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GasPricesRequest) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_GasPricesRequest) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_GasPricesRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*GasPricesRequest) + 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().(*GasPricesRequest) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]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().(*GasPricesRequest) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GasPricesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GasPricesRequest: 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 = (*_GasPricesResponse_1_list)(nil) + +type _GasPricesResponse_1_list struct { + list *[]*v1beta1.DecCoin +} + +func (x *_GasPricesResponse_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GasPricesResponse_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GasPricesResponse_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*v1beta1.DecCoin) + (*x.list)[i] = concreteValue +} + +func (x *_GasPricesResponse_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*v1beta1.DecCoin) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GasPricesResponse_1_list) AppendMutable() protoreflect.Value { + v := new(v1beta1.DecCoin) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GasPricesResponse_1_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GasPricesResponse_1_list) NewElement() protoreflect.Value { + v := new(v1beta1.DecCoin) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GasPricesResponse_1_list) IsValid() bool { + return x.list != nil +} + +var ( + md_GasPricesResponse protoreflect.MessageDescriptor + fd_GasPricesResponse_prices protoreflect.FieldDescriptor +) + +func init() { + file_juno_feemarket_v1_query_proto_init() + md_GasPricesResponse = File_juno_feemarket_v1_query_proto.Messages().ByName("GasPricesResponse") + fd_GasPricesResponse_prices = md_GasPricesResponse.Fields().ByName("prices") +} + +var _ protoreflect.Message = (*fastReflection_GasPricesResponse)(nil) + +type fastReflection_GasPricesResponse GasPricesResponse + +func (x *GasPricesResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_GasPricesResponse)(x) +} + +func (x *GasPricesResponse) slowProtoReflect() protoreflect.Message { + mi := &file_juno_feemarket_v1_query_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_GasPricesResponse_messageType fastReflection_GasPricesResponse_messageType +var _ protoreflect.MessageType = fastReflection_GasPricesResponse_messageType{} + +type fastReflection_GasPricesResponse_messageType struct{} + +func (x fastReflection_GasPricesResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_GasPricesResponse)(nil) +} +func (x fastReflection_GasPricesResponse_messageType) New() protoreflect.Message { + return new(fastReflection_GasPricesResponse) +} +func (x fastReflection_GasPricesResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_GasPricesResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_GasPricesResponse) Descriptor() protoreflect.MessageDescriptor { + return md_GasPricesResponse +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_GasPricesResponse) Type() protoreflect.MessageType { + return _fastReflection_GasPricesResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_GasPricesResponse) New() protoreflect.Message { + return new(fastReflection_GasPricesResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_GasPricesResponse) Interface() protoreflect.ProtoMessage { + return (*GasPricesResponse)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_GasPricesResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Prices) != 0 { + value := protoreflect.ValueOfList(&_GasPricesResponse_1_list{list: &x.Prices}) + if !f(fd_GasPricesResponse_prices, 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_GasPricesResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "juno.feemarket.v1.GasPricesResponse.prices": + return len(x.Prices) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.GasPricesResponse")) + } + panic(fmt.Errorf("message juno.feemarket.v1.GasPricesResponse does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GasPricesResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "juno.feemarket.v1.GasPricesResponse.prices": + x.Prices = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.GasPricesResponse")) + } + panic(fmt.Errorf("message juno.feemarket.v1.GasPricesResponse does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_GasPricesResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "juno.feemarket.v1.GasPricesResponse.prices": + if len(x.Prices) == 0 { + return protoreflect.ValueOfList(&_GasPricesResponse_1_list{}) + } + listValue := &_GasPricesResponse_1_list{list: &x.Prices} + return protoreflect.ValueOfList(listValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.GasPricesResponse")) + } + panic(fmt.Errorf("message juno.feemarket.v1.GasPricesResponse does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GasPricesResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "juno.feemarket.v1.GasPricesResponse.prices": + lv := value.List() + clv := lv.(*_GasPricesResponse_1_list) + x.Prices = *clv.list + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.GasPricesResponse")) + } + panic(fmt.Errorf("message juno.feemarket.v1.GasPricesResponse does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GasPricesResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "juno.feemarket.v1.GasPricesResponse.prices": + if x.Prices == nil { + x.Prices = []*v1beta1.DecCoin{} + } + value := &_GasPricesResponse_1_list{list: &x.Prices} + return protoreflect.ValueOfList(value) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.GasPricesResponse")) + } + panic(fmt.Errorf("message juno.feemarket.v1.GasPricesResponse does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_GasPricesResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "juno.feemarket.v1.GasPricesResponse.prices": + list := []*v1beta1.DecCoin{} + return protoreflect.ValueOfList(&_GasPricesResponse_1_list{list: &list}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.GasPricesResponse")) + } + panic(fmt.Errorf("message juno.feemarket.v1.GasPricesResponse does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_GasPricesResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in juno.feemarket.v1.GasPricesResponse", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_GasPricesResponse) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GasPricesResponse) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_GasPricesResponse) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_GasPricesResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*GasPricesResponse) + 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.Prices) > 0 { + for _, e := range x.Prices { + 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().(*GasPricesResponse) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]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.Prices) > 0 { + for iNdEx := len(x.Prices) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Prices[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().(*GasPricesResponse) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GasPricesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GasPricesResponse: 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 Prices", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Prices = append(x.Prices, &v1beta1.DecCoin{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Prices[len(x.Prices)-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: juno/feemarket/v1/query.proto + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// ParamsRequest is the request type for the Query/Params RPC method. +type ParamsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *ParamsRequest) Reset() { + *x = ParamsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_juno_feemarket_v1_query_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ParamsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ParamsRequest) ProtoMessage() {} + +// Deprecated: Use ParamsRequest.ProtoReflect.Descriptor instead. +func (*ParamsRequest) Descriptor() ([]byte, []int) { + return file_juno_feemarket_v1_query_proto_rawDescGZIP(), []int{0} +} + +// ParamsResponse is the response type for the Query/Params RPC method. +type ParamsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` +} + +func (x *ParamsResponse) Reset() { + *x = ParamsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_juno_feemarket_v1_query_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ParamsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ParamsResponse) ProtoMessage() {} + +// Deprecated: Use ParamsResponse.ProtoReflect.Descriptor instead. +func (*ParamsResponse) Descriptor() ([]byte, []int) { + return file_juno_feemarket_v1_query_proto_rawDescGZIP(), []int{1} +} + +func (x *ParamsResponse) GetParams() *Params { + if x != nil { + return x.Params + } + return nil +} + +// StateRequest is the request type for the Query/State RPC method. +type StateRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *StateRequest) Reset() { + *x = StateRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_juno_feemarket_v1_query_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StateRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StateRequest) ProtoMessage() {} + +// Deprecated: Use StateRequest.ProtoReflect.Descriptor instead. +func (*StateRequest) Descriptor() ([]byte, []int) { + return file_juno_feemarket_v1_query_proto_rawDescGZIP(), []int{2} +} + +// StateResponse is the response type for the Query/State RPC method. +type StateResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + State *State `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"` +} + +func (x *StateResponse) Reset() { + *x = StateResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_juno_feemarket_v1_query_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StateResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StateResponse) ProtoMessage() {} + +// Deprecated: Use StateResponse.ProtoReflect.Descriptor instead. +func (*StateResponse) Descriptor() ([]byte, []int) { + return file_juno_feemarket_v1_query_proto_rawDescGZIP(), []int{3} +} + +func (x *StateResponse) GetState() *State { + if x != nil { + return x.State + } + return nil +} + +// GasPriceRequest is the request type for the Query/GasPrice RPC method. +type GasPriceRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // denom we are querying gas price in + Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` +} + +func (x *GasPriceRequest) Reset() { + *x = GasPriceRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_juno_feemarket_v1_query_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GasPriceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GasPriceRequest) ProtoMessage() {} + +// Deprecated: Use GasPriceRequest.ProtoReflect.Descriptor instead. +func (*GasPriceRequest) Descriptor() ([]byte, []int) { + return file_juno_feemarket_v1_query_proto_rawDescGZIP(), []int{4} +} + +func (x *GasPriceRequest) GetDenom() string { + if x != nil { + return x.Denom + } + return "" +} + +// GasPriceResponse is the response type for the Query/GasPrice RPC method. +// Returns a gas price in specified denom. +type GasPriceResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Price *v1beta1.DecCoin `protobuf:"bytes,1,opt,name=price,proto3" json:"price,omitempty"` +} + +func (x *GasPriceResponse) Reset() { + *x = GasPriceResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_juno_feemarket_v1_query_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GasPriceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GasPriceResponse) ProtoMessage() {} + +// Deprecated: Use GasPriceResponse.ProtoReflect.Descriptor instead. +func (*GasPriceResponse) Descriptor() ([]byte, []int) { + return file_juno_feemarket_v1_query_proto_rawDescGZIP(), []int{5} +} + +func (x *GasPriceResponse) GetPrice() *v1beta1.DecCoin { + if x != nil { + return x.Price + } + return nil +} + +// GasPriceRequest is the request type for the Query/GasPrices RPC method. +type GasPricesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *GasPricesRequest) Reset() { + *x = GasPricesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_juno_feemarket_v1_query_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GasPricesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GasPricesRequest) ProtoMessage() {} + +// Deprecated: Use GasPricesRequest.ProtoReflect.Descriptor instead. +func (*GasPricesRequest) Descriptor() ([]byte, []int) { + return file_juno_feemarket_v1_query_proto_rawDescGZIP(), []int{6} +} + +// GasPricesResponse is the response type for the Query/GasPrices RPC method. +// Returns a gas price in all available denoms. +type GasPricesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Prices []*v1beta1.DecCoin `protobuf:"bytes,1,rep,name=prices,proto3" json:"prices,omitempty"` +} + +func (x *GasPricesResponse) Reset() { + *x = GasPricesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_juno_feemarket_v1_query_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GasPricesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GasPricesResponse) ProtoMessage() {} + +// Deprecated: Use GasPricesResponse.ProtoReflect.Descriptor instead. +func (*GasPricesResponse) Descriptor() ([]byte, []int) { + return file_juno_feemarket_v1_query_proto_rawDescGZIP(), []int{7} +} + +func (x *GasPricesResponse) GetPrices() []*v1beta1.DecCoin { + if x != nil { + return x.Prices + } + return nil +} + +var File_juno_feemarket_v1_query_proto protoreflect.FileDescriptor + +var file_juno_feemarket_v1_query_proto_rawDesc = []byte{ + 0x0a, 0x1d, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, + 0x2f, 0x76, 0x31, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x11, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, + 0x76, 0x31, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 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, 0x1f, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, 0x66, 0x65, 0x65, 0x6d, + 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, 0x66, 0x65, 0x65, + 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 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, 0x22, 0x0f, 0x0a, 0x0d, 0x50, 0x61, + 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x49, 0x0a, 0x0e, 0x50, + 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, + 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, + 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x76, + 0x31, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, + 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x0e, 0x0a, 0x0c, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x45, 0x0a, 0x0d, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x66, 0x65, + 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, + 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x27, 0x0a, + 0x0f, 0x47, 0x61, 0x73, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x14, 0x0a, 0x05, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x05, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x22, 0x51, 0x0a, 0x10, 0x47, 0x61, 0x73, 0x50, 0x72, 0x69, + 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x05, 0x70, 0x72, + 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x44, 0x65, 0x63, 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, + 0x2a, 0x01, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x22, 0x12, 0x0a, 0x10, 0x47, 0x61, 0x73, + 0x50, 0x72, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x83, 0x01, + 0x0a, 0x11, 0x47, 0x61, 0x73, 0x50, 0x72, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x6e, 0x0a, 0x06, 0x70, 0x72, 0x69, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, + 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x44, 0x65, 0x63, 0x43, 0x6f, 0x69, + 0x6e, 0x42, 0x38, 0xc8, 0xde, 0x1f, 0x00, 0xaa, 0xdf, 0x1f, 0x2b, 0x67, 0x69, 0x74, 0x68, 0x75, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x44, 0x65, + 0x63, 0x43, 0x6f, 0x69, 0x6e, 0x73, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x70, 0x72, 0x69, + 0x63, 0x65, 0x73, 0x32, 0xea, 0x03, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x70, 0x0a, + 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x20, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x66, + 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x61, + 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, + 0x2e, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, + 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x21, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x1b, 0x12, 0x19, 0x2f, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, 0x66, 0x65, 0x65, 0x6d, + 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, + 0x6c, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x1f, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, + 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, + 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, + 0x2e, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, + 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x20, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x1a, 0x12, 0x18, 0x2f, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, 0x66, 0x65, 0x65, 0x6d, 0x61, + 0x72, 0x6b, 0x65, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x81, 0x01, + 0x0a, 0x08, 0x47, 0x61, 0x73, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x22, 0x2e, 0x6a, 0x75, 0x6e, + 0x6f, 0x2e, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x47, + 0x61, 0x73, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, + 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, + 0x76, 0x31, 0x2e, 0x47, 0x61, 0x73, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x2c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x26, 0x12, 0x24, 0x2f, 0x6a, 0x75, + 0x6e, 0x6f, 0x2f, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2f, 0x76, 0x31, 0x2f, + 0x67, 0x61, 0x73, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x2f, 0x7b, 0x64, 0x65, 0x6e, 0x6f, 0x6d, + 0x7d, 0x12, 0x7d, 0x0a, 0x09, 0x47, 0x61, 0x73, 0x50, 0x72, 0x69, 0x63, 0x65, 0x73, 0x12, 0x23, + 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, + 0x76, 0x31, 0x2e, 0x47, 0x61, 0x73, 0x50, 0x72, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x66, 0x65, 0x65, 0x6d, 0x61, + 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x61, 0x73, 0x50, 0x72, 0x69, 0x63, 0x65, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x25, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x1f, 0x12, 0x1d, 0x2f, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, + 0x65, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x61, 0x73, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x73, + 0x42, 0xb9, 0x01, 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x66, 0x65, + 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, + 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2f, 0x76, 0x31, 0x3b, 0x66, 0x65, 0x65, + 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4a, 0x46, 0x58, 0xaa, 0x02, + 0x11, 0x4a, 0x75, 0x6e, 0x6f, 0x2e, 0x46, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, + 0x56, 0x31, 0xca, 0x02, 0x11, 0x4a, 0x75, 0x6e, 0x6f, 0x5c, 0x46, 0x65, 0x65, 0x6d, 0x61, 0x72, + 0x6b, 0x65, 0x74, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1d, 0x4a, 0x75, 0x6e, 0x6f, 0x5c, 0x46, 0x65, + 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, 0x4a, 0x75, 0x6e, 0x6f, 0x3a, 0x3a, 0x46, + 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_juno_feemarket_v1_query_proto_rawDescOnce sync.Once + file_juno_feemarket_v1_query_proto_rawDescData = file_juno_feemarket_v1_query_proto_rawDesc +) + +func file_juno_feemarket_v1_query_proto_rawDescGZIP() []byte { + file_juno_feemarket_v1_query_proto_rawDescOnce.Do(func() { + file_juno_feemarket_v1_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_juno_feemarket_v1_query_proto_rawDescData) + }) + return file_juno_feemarket_v1_query_proto_rawDescData +} + +var file_juno_feemarket_v1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 8) +var file_juno_feemarket_v1_query_proto_goTypes = []interface{}{ + (*ParamsRequest)(nil), // 0: juno.feemarket.v1.ParamsRequest + (*ParamsResponse)(nil), // 1: juno.feemarket.v1.ParamsResponse + (*StateRequest)(nil), // 2: juno.feemarket.v1.StateRequest + (*StateResponse)(nil), // 3: juno.feemarket.v1.StateResponse + (*GasPriceRequest)(nil), // 4: juno.feemarket.v1.GasPriceRequest + (*GasPriceResponse)(nil), // 5: juno.feemarket.v1.GasPriceResponse + (*GasPricesRequest)(nil), // 6: juno.feemarket.v1.GasPricesRequest + (*GasPricesResponse)(nil), // 7: juno.feemarket.v1.GasPricesResponse + (*Params)(nil), // 8: juno.feemarket.v1.Params + (*State)(nil), // 9: juno.feemarket.v1.State + (*v1beta1.DecCoin)(nil), // 10: cosmos.base.v1beta1.DecCoin +} +var file_juno_feemarket_v1_query_proto_depIdxs = []int32{ + 8, // 0: juno.feemarket.v1.ParamsResponse.params:type_name -> juno.feemarket.v1.Params + 9, // 1: juno.feemarket.v1.StateResponse.state:type_name -> juno.feemarket.v1.State + 10, // 2: juno.feemarket.v1.GasPriceResponse.price:type_name -> cosmos.base.v1beta1.DecCoin + 10, // 3: juno.feemarket.v1.GasPricesResponse.prices:type_name -> cosmos.base.v1beta1.DecCoin + 0, // 4: juno.feemarket.v1.Query.Params:input_type -> juno.feemarket.v1.ParamsRequest + 2, // 5: juno.feemarket.v1.Query.State:input_type -> juno.feemarket.v1.StateRequest + 4, // 6: juno.feemarket.v1.Query.GasPrice:input_type -> juno.feemarket.v1.GasPriceRequest + 6, // 7: juno.feemarket.v1.Query.GasPrices:input_type -> juno.feemarket.v1.GasPricesRequest + 1, // 8: juno.feemarket.v1.Query.Params:output_type -> juno.feemarket.v1.ParamsResponse + 3, // 9: juno.feemarket.v1.Query.State:output_type -> juno.feemarket.v1.StateResponse + 5, // 10: juno.feemarket.v1.Query.GasPrice:output_type -> juno.feemarket.v1.GasPriceResponse + 7, // 11: juno.feemarket.v1.Query.GasPrices:output_type -> juno.feemarket.v1.GasPricesResponse + 8, // [8:12] is the sub-list for method output_type + 4, // [4:8] 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_juno_feemarket_v1_query_proto_init() } +func file_juno_feemarket_v1_query_proto_init() { + if File_juno_feemarket_v1_query_proto != nil { + return + } + file_juno_feemarket_v1_genesis_proto_init() + file_juno_feemarket_v1_params_proto_init() + if !protoimpl.UnsafeEnabled { + file_juno_feemarket_v1_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ParamsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_juno_feemarket_v1_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ParamsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_juno_feemarket_v1_query_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StateRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_juno_feemarket_v1_query_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StateResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_juno_feemarket_v1_query_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GasPriceRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_juno_feemarket_v1_query_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GasPriceResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_juno_feemarket_v1_query_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GasPricesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_juno_feemarket_v1_query_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GasPricesResponse); 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_juno_feemarket_v1_query_proto_rawDesc, + NumEnums: 0, + NumMessages: 8, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_juno_feemarket_v1_query_proto_goTypes, + DependencyIndexes: file_juno_feemarket_v1_query_proto_depIdxs, + MessageInfos: file_juno_feemarket_v1_query_proto_msgTypes, + }.Build() + File_juno_feemarket_v1_query_proto = out.File + file_juno_feemarket_v1_query_proto_rawDesc = nil + file_juno_feemarket_v1_query_proto_goTypes = nil + file_juno_feemarket_v1_query_proto_depIdxs = nil +} diff --git a/api/juno/feemarket/v1/query_grpc.pb.go b/api/juno/feemarket/v1/query_grpc.pb.go new file mode 100644 index 000000000..0c2971807 --- /dev/null +++ b/api/juno/feemarket/v1/query_grpc.pb.go @@ -0,0 +1,251 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.5.1 +// - protoc (unknown) +// source: juno/feemarket/v1/query.proto + +package feemarketv1 + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + Query_Params_FullMethodName = "/juno.feemarket.v1.Query/Params" + Query_State_FullMethodName = "/juno.feemarket.v1.Query/State" + Query_GasPrice_FullMethodName = "/juno.feemarket.v1.Query/GasPrice" + Query_GasPrices_FullMethodName = "/juno.feemarket.v1.Query/GasPrices" +) + +// QueryClient is the client API for Query service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// Query Service for the feemarket module. +type QueryClient interface { + // Params returns the current feemarket module parameters. + Params(ctx context.Context, in *ParamsRequest, opts ...grpc.CallOption) (*ParamsResponse, error) + // State returns the current feemarket module state. + State(ctx context.Context, in *StateRequest, opts ...grpc.CallOption) (*StateResponse, error) + // GasPrice returns the current feemarket module gas price + // for specified denom. + GasPrice(ctx context.Context, in *GasPriceRequest, opts ...grpc.CallOption) (*GasPriceResponse, error) + // GasPrices returns the current feemarket module list of gas prices + // in all available denoms. + GasPrices(ctx context.Context, in *GasPricesRequest, opts ...grpc.CallOption) (*GasPricesResponse, error) +} + +type queryClient struct { + cc grpc.ClientConnInterface +} + +func NewQueryClient(cc grpc.ClientConnInterface) QueryClient { + return &queryClient{cc} +} + +func (c *queryClient) Params(ctx context.Context, in *ParamsRequest, opts ...grpc.CallOption) (*ParamsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ParamsResponse) + err := c.cc.Invoke(ctx, Query_Params_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) State(ctx context.Context, in *StateRequest, opts ...grpc.CallOption) (*StateResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(StateResponse) + err := c.cc.Invoke(ctx, Query_State_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) GasPrice(ctx context.Context, in *GasPriceRequest, opts ...grpc.CallOption) (*GasPriceResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(GasPriceResponse) + err := c.cc.Invoke(ctx, Query_GasPrice_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) GasPrices(ctx context.Context, in *GasPricesRequest, opts ...grpc.CallOption) (*GasPricesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(GasPricesResponse) + err := c.cc.Invoke(ctx, Query_GasPrices_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// QueryServer is the server API for Query service. +// All implementations must embed UnimplementedQueryServer +// for forward compatibility. +// +// Query Service for the feemarket module. +type QueryServer interface { + // Params returns the current feemarket module parameters. + Params(context.Context, *ParamsRequest) (*ParamsResponse, error) + // State returns the current feemarket module state. + State(context.Context, *StateRequest) (*StateResponse, error) + // GasPrice returns the current feemarket module gas price + // for specified denom. + GasPrice(context.Context, *GasPriceRequest) (*GasPriceResponse, error) + // GasPrices returns the current feemarket module list of gas prices + // in all available denoms. + GasPrices(context.Context, *GasPricesRequest) (*GasPricesResponse, error) + mustEmbedUnimplementedQueryServer() +} + +// UnimplementedQueryServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedQueryServer struct{} + +func (UnimplementedQueryServer) Params(context.Context, *ParamsRequest) (*ParamsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") +} +func (UnimplementedQueryServer) State(context.Context, *StateRequest) (*StateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method State not implemented") +} +func (UnimplementedQueryServer) GasPrice(context.Context, *GasPriceRequest) (*GasPriceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GasPrice not implemented") +} +func (UnimplementedQueryServer) GasPrices(context.Context, *GasPricesRequest) (*GasPricesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GasPrices not implemented") +} +func (UnimplementedQueryServer) mustEmbedUnimplementedQueryServer() {} +func (UnimplementedQueryServer) testEmbeddedByValue() {} + +// UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to QueryServer will +// result in compilation errors. +type UnsafeQueryServer interface { + mustEmbedUnimplementedQueryServer() +} + +func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer) { + // If the following call pancis, it indicates UnimplementedQueryServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&Query_ServiceDesc, srv) +} + +func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ParamsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Params(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_Params_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Params(ctx, req.(*ParamsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_State_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(StateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).State(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_State_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).State(ctx, req.(*StateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_GasPrice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GasPriceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).GasPrice(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_GasPrice_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).GasPrice(ctx, req.(*GasPriceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_GasPrices_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GasPricesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).GasPrices(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_GasPrices_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).GasPrices(ctx, req.(*GasPricesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// Query_ServiceDesc is the grpc.ServiceDesc for Query service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var Query_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "juno.feemarket.v1.Query", + HandlerType: (*QueryServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Params", + Handler: _Query_Params_Handler, + }, + { + MethodName: "State", + Handler: _Query_State_Handler, + }, + { + MethodName: "GasPrice", + Handler: _Query_GasPrice_Handler, + }, + { + MethodName: "GasPrices", + Handler: _Query_GasPrices_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "juno/feemarket/v1/query.proto", +} diff --git a/api/gaia/globalfee/v1beta1/tx.pulsar.go b/api/juno/feemarket/v1/tx.pulsar.go similarity index 74% rename from api/gaia/globalfee/v1beta1/tx.pulsar.go rename to api/juno/feemarket/v1/tx.pulsar.go index c13773e78..5d68f37f2 100644 --- a/api/gaia/globalfee/v1beta1/tx.pulsar.go +++ b/api/juno/feemarket/v1/tx.pulsar.go @@ -1,8 +1,7 @@ // Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package globalfeev1beta1 +package feemarketv1 import ( - _ "cosmossdk.io/api/amino" _ "cosmossdk.io/api/cosmos/msg/v1" fmt "fmt" _ "github.com/cosmos/cosmos-proto" @@ -18,15 +17,15 @@ import ( var ( md_MsgUpdateParams protoreflect.MessageDescriptor - fd_MsgUpdateParams_authority protoreflect.FieldDescriptor fd_MsgUpdateParams_params protoreflect.FieldDescriptor + fd_MsgUpdateParams_authority protoreflect.FieldDescriptor ) func init() { - file_gaia_globalfee_v1beta1_tx_proto_init() - md_MsgUpdateParams = File_gaia_globalfee_v1beta1_tx_proto.Messages().ByName("MsgUpdateParams") - fd_MsgUpdateParams_authority = md_MsgUpdateParams.Fields().ByName("authority") + file_juno_feemarket_v1_tx_proto_init() + md_MsgUpdateParams = File_juno_feemarket_v1_tx_proto.Messages().ByName("MsgUpdateParams") fd_MsgUpdateParams_params = md_MsgUpdateParams.Fields().ByName("params") + fd_MsgUpdateParams_authority = md_MsgUpdateParams.Fields().ByName("authority") } var _ protoreflect.Message = (*fastReflection_MsgUpdateParams)(nil) @@ -38,7 +37,7 @@ func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message { } func (x *MsgUpdateParams) slowProtoReflect() protoreflect.Message { - mi := &file_gaia_globalfee_v1beta1_tx_proto_msgTypes[0] + mi := &file_juno_feemarket_v1_tx_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -94,18 +93,18 @@ func (x *fastReflection_MsgUpdateParams) Interface() protoreflect.ProtoMessage { // 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 } } + if x.Authority != "" { + value := protoreflect.ValueOfString(x.Authority) + if !f(fd_MsgUpdateParams_authority, value) { + return + } + } } // Has reports whether a field is populated. @@ -121,15 +120,15 @@ func (x *fastReflection_MsgUpdateParams) Range(f func(protoreflect.FieldDescript // a repeated field is populated if it is non-empty. func (x *fastReflection_MsgUpdateParams) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "gaia.globalfee.v1beta1.MsgUpdateParams.authority": - return x.Authority != "" - case "gaia.globalfee.v1beta1.MsgUpdateParams.params": + case "juno.feemarket.v1.MsgUpdateParams.params": return x.Params != nil + case "juno.feemarket.v1.MsgUpdateParams.authority": + return x.Authority != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: gaia.globalfee.v1beta1.MsgUpdateParams")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.MsgUpdateParams")) } - panic(fmt.Errorf("message gaia.globalfee.v1beta1.MsgUpdateParams does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.feemarket.v1.MsgUpdateParams does not contain field %s", fd.FullName())) } } @@ -141,15 +140,15 @@ func (x *fastReflection_MsgUpdateParams) Has(fd protoreflect.FieldDescriptor) bo // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgUpdateParams) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "gaia.globalfee.v1beta1.MsgUpdateParams.authority": - x.Authority = "" - case "gaia.globalfee.v1beta1.MsgUpdateParams.params": + case "juno.feemarket.v1.MsgUpdateParams.params": x.Params = nil + case "juno.feemarket.v1.MsgUpdateParams.authority": + x.Authority = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: gaia.globalfee.v1beta1.MsgUpdateParams")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.MsgUpdateParams")) } - panic(fmt.Errorf("message gaia.globalfee.v1beta1.MsgUpdateParams does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.feemarket.v1.MsgUpdateParams does not contain field %s", fd.FullName())) } } @@ -161,17 +160,17 @@ func (x *fastReflection_MsgUpdateParams) Clear(fd protoreflect.FieldDescriptor) // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_MsgUpdateParams) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "gaia.globalfee.v1beta1.MsgUpdateParams.authority": - value := x.Authority - return protoreflect.ValueOfString(value) - case "gaia.globalfee.v1beta1.MsgUpdateParams.params": + case "juno.feemarket.v1.MsgUpdateParams.params": value := x.Params return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "juno.feemarket.v1.MsgUpdateParams.authority": + value := x.Authority + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: gaia.globalfee.v1beta1.MsgUpdateParams")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.MsgUpdateParams")) } - panic(fmt.Errorf("message gaia.globalfee.v1beta1.MsgUpdateParams does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message juno.feemarket.v1.MsgUpdateParams does not contain field %s", descriptor.FullName())) } } @@ -187,15 +186,15 @@ func (x *fastReflection_MsgUpdateParams) Get(descriptor protoreflect.FieldDescri // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgUpdateParams) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "gaia.globalfee.v1beta1.MsgUpdateParams.authority": - x.Authority = value.Interface().(string) - case "gaia.globalfee.v1beta1.MsgUpdateParams.params": + case "juno.feemarket.v1.MsgUpdateParams.params": x.Params = value.Message().Interface().(*Params) + case "juno.feemarket.v1.MsgUpdateParams.authority": + x.Authority = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: gaia.globalfee.v1beta1.MsgUpdateParams")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.MsgUpdateParams")) } - panic(fmt.Errorf("message gaia.globalfee.v1beta1.MsgUpdateParams does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.feemarket.v1.MsgUpdateParams does not contain field %s", fd.FullName())) } } @@ -211,18 +210,18 @@ func (x *fastReflection_MsgUpdateParams) Set(fd protoreflect.FieldDescriptor, va // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgUpdateParams) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "gaia.globalfee.v1beta1.MsgUpdateParams.params": + case "juno.feemarket.v1.MsgUpdateParams.params": if x.Params == nil { x.Params = new(Params) } return protoreflect.ValueOfMessage(x.Params.ProtoReflect()) - case "gaia.globalfee.v1beta1.MsgUpdateParams.authority": - panic(fmt.Errorf("field authority of message gaia.globalfee.v1beta1.MsgUpdateParams is not mutable")) + case "juno.feemarket.v1.MsgUpdateParams.authority": + panic(fmt.Errorf("field authority of message juno.feemarket.v1.MsgUpdateParams is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: gaia.globalfee.v1beta1.MsgUpdateParams")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.MsgUpdateParams")) } - panic(fmt.Errorf("message gaia.globalfee.v1beta1.MsgUpdateParams does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.feemarket.v1.MsgUpdateParams does not contain field %s", fd.FullName())) } } @@ -231,16 +230,16 @@ func (x *fastReflection_MsgUpdateParams) Mutable(fd protoreflect.FieldDescriptor // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_MsgUpdateParams) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "gaia.globalfee.v1beta1.MsgUpdateParams.authority": - return protoreflect.ValueOfString("") - case "gaia.globalfee.v1beta1.MsgUpdateParams.params": + case "juno.feemarket.v1.MsgUpdateParams.params": m := new(Params) return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "juno.feemarket.v1.MsgUpdateParams.authority": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: gaia.globalfee.v1beta1.MsgUpdateParams")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.MsgUpdateParams")) } - panic(fmt.Errorf("message gaia.globalfee.v1beta1.MsgUpdateParams does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.feemarket.v1.MsgUpdateParams does not contain field %s", fd.FullName())) } } @@ -250,7 +249,7 @@ func (x *fastReflection_MsgUpdateParams) NewField(fd protoreflect.FieldDescripto func (x *fastReflection_MsgUpdateParams) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in gaia.globalfee.v1beta1.MsgUpdateParams", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in juno.feemarket.v1.MsgUpdateParams", d.FullName())) } panic("unreachable") } @@ -305,14 +304,14 @@ func (x *fastReflection_MsgUpdateParams) ProtoMethods() *protoiface.Methods { 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)) } + l = len(x.Authority) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -342,6 +341,13 @@ func (x *fastReflection_MsgUpdateParams) ProtoMethods() *protoiface.Methods { 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] = 0x12 + } if x.Params != nil { encoded, err := options.Marshal(x.Params) if err != nil { @@ -354,13 +360,6 @@ func (x *fastReflection_MsgUpdateParams) ProtoMethods() *protoiface.Methods { 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 { @@ -414,9 +413,9 @@ func (x *fastReflection_MsgUpdateParams) ProtoMethods() *protoiface.Methods { switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -426,29 +425,33 @@ func (x *fastReflection_MsgUpdateParams) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Authority = string(dAtA[iNdEx:postIndex]) + if x.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 Params", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -458,27 +461,23 @@ func (x *fastReflection_MsgUpdateParams) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.Params == nil { - x.Params = &Params{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } + x.Authority = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -520,8 +519,8 @@ var ( ) func init() { - file_gaia_globalfee_v1beta1_tx_proto_init() - md_MsgUpdateParamsResponse = File_gaia_globalfee_v1beta1_tx_proto.Messages().ByName("MsgUpdateParamsResponse") + file_juno_feemarket_v1_tx_proto_init() + md_MsgUpdateParamsResponse = File_juno_feemarket_v1_tx_proto.Messages().ByName("MsgUpdateParamsResponse") } var _ protoreflect.Message = (*fastReflection_MsgUpdateParamsResponse)(nil) @@ -533,7 +532,7 @@ func (x *MsgUpdateParamsResponse) ProtoReflect() protoreflect.Message { } func (x *MsgUpdateParamsResponse) slowProtoReflect() protoreflect.Message { - mi := &file_gaia_globalfee_v1beta1_tx_proto_msgTypes[1] + mi := &file_juno_feemarket_v1_tx_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -606,9 +605,9 @@ func (x *fastReflection_MsgUpdateParamsResponse) Has(fd protoreflect.FieldDescri switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: gaia.globalfee.v1beta1.MsgUpdateParamsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.MsgUpdateParamsResponse")) } - panic(fmt.Errorf("message gaia.globalfee.v1beta1.MsgUpdateParamsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.feemarket.v1.MsgUpdateParamsResponse does not contain field %s", fd.FullName())) } } @@ -622,9 +621,9 @@ func (x *fastReflection_MsgUpdateParamsResponse) Clear(fd protoreflect.FieldDesc switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: gaia.globalfee.v1beta1.MsgUpdateParamsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.MsgUpdateParamsResponse")) } - panic(fmt.Errorf("message gaia.globalfee.v1beta1.MsgUpdateParamsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.feemarket.v1.MsgUpdateParamsResponse does not contain field %s", fd.FullName())) } } @@ -638,9 +637,9 @@ func (x *fastReflection_MsgUpdateParamsResponse) Get(descriptor protoreflect.Fie switch descriptor.FullName() { default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: gaia.globalfee.v1beta1.MsgUpdateParamsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.MsgUpdateParamsResponse")) } - panic(fmt.Errorf("message gaia.globalfee.v1beta1.MsgUpdateParamsResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message juno.feemarket.v1.MsgUpdateParamsResponse does not contain field %s", descriptor.FullName())) } } @@ -658,9 +657,9 @@ func (x *fastReflection_MsgUpdateParamsResponse) Set(fd protoreflect.FieldDescri switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: gaia.globalfee.v1beta1.MsgUpdateParamsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.MsgUpdateParamsResponse")) } - panic(fmt.Errorf("message gaia.globalfee.v1beta1.MsgUpdateParamsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.feemarket.v1.MsgUpdateParamsResponse does not contain field %s", fd.FullName())) } } @@ -678,9 +677,9 @@ func (x *fastReflection_MsgUpdateParamsResponse) Mutable(fd protoreflect.FieldDe switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: gaia.globalfee.v1beta1.MsgUpdateParamsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.MsgUpdateParamsResponse")) } - panic(fmt.Errorf("message gaia.globalfee.v1beta1.MsgUpdateParamsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.feemarket.v1.MsgUpdateParamsResponse does not contain field %s", fd.FullName())) } } @@ -691,9 +690,9 @@ func (x *fastReflection_MsgUpdateParamsResponse) NewField(fd protoreflect.FieldD switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: gaia.globalfee.v1beta1.MsgUpdateParamsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.feemarket.v1.MsgUpdateParamsResponse")) } - panic(fmt.Errorf("message gaia.globalfee.v1beta1.MsgUpdateParamsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message juno.feemarket.v1.MsgUpdateParamsResponse does not contain field %s", fd.FullName())) } } @@ -703,7 +702,7 @@ func (x *fastReflection_MsgUpdateParamsResponse) NewField(fd protoreflect.FieldD func (x *fastReflection_MsgUpdateParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in gaia.globalfee.v1beta1.MsgUpdateParamsResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in juno.feemarket.v1.MsgUpdateParamsResponse", d.FullName())) } panic("unreachable") } @@ -875,7 +874,7 @@ func (x *fastReflection_MsgUpdateParamsResponse) ProtoMethods() *protoiface.Meth // versions: // protoc-gen-go v1.27.0 // protoc (unknown) -// source: gaia/globalfee/v1beta1/tx.proto +// source: juno/feemarket/v1/tx.proto const ( // Verify that this generated code is sufficiently up-to-date. @@ -884,24 +883,24 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// MsgUpdateParams is the Msg/UpdateParams request type. +// MsgUpdateParams defines the Msg/UpdateParams request type. It contains the +// new parameters for the feemarket module. type MsgUpdateParams struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // authority is the address of the governance account. - Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` - // params defines the x/mint parameters to update. - // - // NOTE: All parameters must be supplied. - Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"` + // Params defines the new parameters for the feemarket module. + Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` + // Authority defines the authority that is updating the feemarket module + // parameters. + Authority string `protobuf:"bytes,2,opt,name=authority,proto3" json:"authority,omitempty"` } func (x *MsgUpdateParams) Reset() { *x = MsgUpdateParams{} if protoimpl.UnsafeEnabled { - mi := &file_gaia_globalfee_v1beta1_tx_proto_msgTypes[0] + mi := &file_juno_feemarket_v1_tx_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -915,25 +914,24 @@ func (*MsgUpdateParams) ProtoMessage() {} // Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead. func (*MsgUpdateParams) Descriptor() ([]byte, []int) { - return file_gaia_globalfee_v1beta1_tx_proto_rawDescGZIP(), []int{0} + return file_juno_feemarket_v1_tx_proto_rawDescGZIP(), []int{0} } -func (x *MsgUpdateParams) GetAuthority() string { +func (x *MsgUpdateParams) GetParams() *Params { if x != nil { - return x.Authority + return x.Params } - return "" + return nil } -func (x *MsgUpdateParams) GetParams() *Params { +func (x *MsgUpdateParams) GetAuthority() string { if x != nil { - return x.Params + return x.Authority } - return nil + return "" } -// MsgUpdateParamsResponse defines the response structure for executing a -// MsgUpdateParams message. +// MsgUpdateParamsResponse defines the Msg/UpdateParams response type. type MsgUpdateParamsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -943,7 +941,7 @@ type MsgUpdateParamsResponse struct { func (x *MsgUpdateParamsResponse) Reset() { *x = MsgUpdateParamsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_gaia_globalfee_v1beta1_tx_proto_msgTypes[1] + mi := &file_juno_feemarket_v1_tx_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -957,84 +955,76 @@ func (*MsgUpdateParamsResponse) ProtoMessage() {} // Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead. func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) { - return file_gaia_globalfee_v1beta1_tx_proto_rawDescGZIP(), []int{1} + return file_juno_feemarket_v1_tx_proto_rawDescGZIP(), []int{1} } -var File_gaia_globalfee_v1beta1_tx_proto protoreflect.FileDescriptor - -var file_gaia_globalfee_v1beta1_tx_proto_rawDesc = []byte{ - 0x0a, 0x1f, 0x67, 0x61, 0x69, 0x61, 0x2f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x66, 0x65, 0x65, - 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x12, 0x16, 0x67, 0x61, 0x69, 0x61, 0x2e, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x66, 0x65, - 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 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, 0x24, 0x67, 0x61, 0x69, 0x61, 0x2f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x66, 0x65, 0x65, - 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 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, 0xc9, 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, 0x41, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, - 0x6d, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x61, 0x69, 0x61, 0x2e, - 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x66, 0x65, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, - 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x3a, 0x3b, 0x88, 0xa0, 0x1f, - 0x00, 0xe8, 0xa0, 0x1f, 0x00, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, - 0x69, 0x74, 0x79, 0x8a, 0xe7, 0xb0, 0x2a, 0x20, 0x67, 0x61, 0x69, 0x61, 0x2f, 0x78, 0x2f, 0x67, - 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x66, 0x65, 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, 0x32, 0x76, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x68, 0x0a, 0x0c, 0x55, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x27, 0x2e, 0x67, 0x61, 0x69, - 0x61, 0x2e, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x66, 0x65, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, - 0x61, 0x6d, 0x73, 0x1a, 0x2f, 0x2e, 0x67, 0x61, 0x69, 0x61, 0x2e, 0x67, 0x6c, 0x6f, 0x62, 0x61, - 0x6c, 0x66, 0x65, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a, 0x01, 0x42, 0xd9, 0x01, 0x0a, 0x1a, - 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x61, 0x69, 0x61, 0x2e, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x66, - 0x65, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, - 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x38, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, - 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x61, 0x69, 0x61, 0x2f, 0x67, 0x6c, 0x6f, - 0x62, 0x61, 0x6c, 0x66, 0x65, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x67, - 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x66, 0x65, 0x65, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, - 0x02, 0x03, 0x47, 0x47, 0x58, 0xaa, 0x02, 0x16, 0x47, 0x61, 0x69, 0x61, 0x2e, 0x47, 0x6c, 0x6f, - 0x62, 0x61, 0x6c, 0x66, 0x65, 0x65, 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, - 0x16, 0x47, 0x61, 0x69, 0x61, 0x5c, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x66, 0x65, 0x65, 0x5c, - 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xe2, 0x02, 0x22, 0x47, 0x61, 0x69, 0x61, 0x5c, 0x47, - 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x66, 0x65, 0x65, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x18, 0x47, - 0x61, 0x69, 0x61, 0x3a, 0x3a, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x66, 0x65, 0x65, 0x3a, 0x3a, - 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +var File_juno_feemarket_v1_tx_proto protoreflect.FileDescriptor + +var file_juno_feemarket_v1_tx_proto_rawDesc = []byte{ + 0x0a, 0x1a, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, + 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x11, 0x6a, 0x75, + 0x6e, 0x6f, 0x2e, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x1a, + 0x17, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x6d, 0x73, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x6d, + 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 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, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, + 0x6b, 0x65, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 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, 0x92, 0x01, 0x0a, 0x0f, 0x4d, 0x73, + 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x37, 0x0a, + 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, + 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x76, + 0x31, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, + 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x36, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, + 0x69, 0x74, 0x79, 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, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x3a, 0x0e, + 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 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, 0x6c, 0x0a, 0x03, 0x4d, 0x73, 0x67, + 0x12, 0x5e, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, + 0x12, 0x22, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, + 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, + 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x2a, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x66, 0x65, 0x65, 0x6d, + 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a, 0x01, 0x42, 0xb6, 0x01, 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x2e, + 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x76, + 0x31, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2e, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6a, + 0x75, 0x6e, 0x6f, 0x2f, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2f, 0x76, 0x31, + 0x3b, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4a, + 0x46, 0x58, 0xaa, 0x02, 0x11, 0x4a, 0x75, 0x6e, 0x6f, 0x2e, 0x46, 0x65, 0x65, 0x6d, 0x61, 0x72, + 0x6b, 0x65, 0x74, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x11, 0x4a, 0x75, 0x6e, 0x6f, 0x5c, 0x46, 0x65, + 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1d, 0x4a, 0x75, 0x6e, + 0x6f, 0x5c, 0x46, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5c, 0x56, 0x31, 0x5c, 0x47, + 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, 0x4a, 0x75, 0x6e, + 0x6f, 0x3a, 0x3a, 0x46, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x3a, 0x3a, 0x56, 0x31, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_gaia_globalfee_v1beta1_tx_proto_rawDescOnce sync.Once - file_gaia_globalfee_v1beta1_tx_proto_rawDescData = file_gaia_globalfee_v1beta1_tx_proto_rawDesc + file_juno_feemarket_v1_tx_proto_rawDescOnce sync.Once + file_juno_feemarket_v1_tx_proto_rawDescData = file_juno_feemarket_v1_tx_proto_rawDesc ) -func file_gaia_globalfee_v1beta1_tx_proto_rawDescGZIP() []byte { - file_gaia_globalfee_v1beta1_tx_proto_rawDescOnce.Do(func() { - file_gaia_globalfee_v1beta1_tx_proto_rawDescData = protoimpl.X.CompressGZIP(file_gaia_globalfee_v1beta1_tx_proto_rawDescData) +func file_juno_feemarket_v1_tx_proto_rawDescGZIP() []byte { + file_juno_feemarket_v1_tx_proto_rawDescOnce.Do(func() { + file_juno_feemarket_v1_tx_proto_rawDescData = protoimpl.X.CompressGZIP(file_juno_feemarket_v1_tx_proto_rawDescData) }) - return file_gaia_globalfee_v1beta1_tx_proto_rawDescData + return file_juno_feemarket_v1_tx_proto_rawDescData } -var file_gaia_globalfee_v1beta1_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_gaia_globalfee_v1beta1_tx_proto_goTypes = []interface{}{ - (*MsgUpdateParams)(nil), // 0: gaia.globalfee.v1beta1.MsgUpdateParams - (*MsgUpdateParamsResponse)(nil), // 1: gaia.globalfee.v1beta1.MsgUpdateParamsResponse - (*Params)(nil), // 2: gaia.globalfee.v1beta1.Params +var file_juno_feemarket_v1_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_juno_feemarket_v1_tx_proto_goTypes = []interface{}{ + (*MsgUpdateParams)(nil), // 0: juno.feemarket.v1.MsgUpdateParams + (*MsgUpdateParamsResponse)(nil), // 1: juno.feemarket.v1.MsgUpdateParamsResponse + (*Params)(nil), // 2: juno.feemarket.v1.Params } -var file_gaia_globalfee_v1beta1_tx_proto_depIdxs = []int32{ - 2, // 0: gaia.globalfee.v1beta1.MsgUpdateParams.params:type_name -> gaia.globalfee.v1beta1.Params - 0, // 1: gaia.globalfee.v1beta1.Msg.UpdateParams:input_type -> gaia.globalfee.v1beta1.MsgUpdateParams - 1, // 2: gaia.globalfee.v1beta1.Msg.UpdateParams:output_type -> gaia.globalfee.v1beta1.MsgUpdateParamsResponse +var file_juno_feemarket_v1_tx_proto_depIdxs = []int32{ + 2, // 0: juno.feemarket.v1.MsgUpdateParams.params:type_name -> juno.feemarket.v1.Params + 0, // 1: juno.feemarket.v1.Msg.UpdateParams:input_type -> juno.feemarket.v1.MsgUpdateParams + 1, // 2: juno.feemarket.v1.Msg.UpdateParams:output_type -> juno.feemarket.v1.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 @@ -1042,14 +1032,14 @@ var file_gaia_globalfee_v1beta1_tx_proto_depIdxs = []int32{ 0, // [0:1] is the sub-list for field type_name } -func init() { file_gaia_globalfee_v1beta1_tx_proto_init() } -func file_gaia_globalfee_v1beta1_tx_proto_init() { - if File_gaia_globalfee_v1beta1_tx_proto != nil { +func init() { file_juno_feemarket_v1_tx_proto_init() } +func file_juno_feemarket_v1_tx_proto_init() { + if File_juno_feemarket_v1_tx_proto != nil { return } - file_gaia_globalfee_v1beta1_genesis_proto_init() + file_juno_feemarket_v1_params_proto_init() if !protoimpl.UnsafeEnabled { - file_gaia_globalfee_v1beta1_tx_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_juno_feemarket_v1_tx_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgUpdateParams); i { case 0: return &v.state @@ -1061,7 +1051,7 @@ func file_gaia_globalfee_v1beta1_tx_proto_init() { return nil } } - file_gaia_globalfee_v1beta1_tx_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_juno_feemarket_v1_tx_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgUpdateParamsResponse); i { case 0: return &v.state @@ -1078,18 +1068,18 @@ func file_gaia_globalfee_v1beta1_tx_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_gaia_globalfee_v1beta1_tx_proto_rawDesc, + RawDescriptor: file_juno_feemarket_v1_tx_proto_rawDesc, NumEnums: 0, NumMessages: 2, NumExtensions: 0, NumServices: 1, }, - GoTypes: file_gaia_globalfee_v1beta1_tx_proto_goTypes, - DependencyIndexes: file_gaia_globalfee_v1beta1_tx_proto_depIdxs, - MessageInfos: file_gaia_globalfee_v1beta1_tx_proto_msgTypes, + GoTypes: file_juno_feemarket_v1_tx_proto_goTypes, + DependencyIndexes: file_juno_feemarket_v1_tx_proto_depIdxs, + MessageInfos: file_juno_feemarket_v1_tx_proto_msgTypes, }.Build() - File_gaia_globalfee_v1beta1_tx_proto = out.File - file_gaia_globalfee_v1beta1_tx_proto_rawDesc = nil - file_gaia_globalfee_v1beta1_tx_proto_goTypes = nil - file_gaia_globalfee_v1beta1_tx_proto_depIdxs = nil + File_juno_feemarket_v1_tx_proto = out.File + file_juno_feemarket_v1_tx_proto_rawDesc = nil + file_juno_feemarket_v1_tx_proto_goTypes = nil + file_juno_feemarket_v1_tx_proto_depIdxs = nil } diff --git a/api/gaia/globalfee/v1beta1/tx_grpc.pb.go b/api/juno/feemarket/v1/tx_grpc.pb.go similarity index 86% rename from api/gaia/globalfee/v1beta1/tx_grpc.pb.go rename to api/juno/feemarket/v1/tx_grpc.pb.go index 17bb14780..8dac06bc9 100644 --- a/api/gaia/globalfee/v1beta1/tx_grpc.pb.go +++ b/api/juno/feemarket/v1/tx_grpc.pb.go @@ -2,9 +2,9 @@ // versions: // - protoc-gen-go-grpc v1.5.1 // - protoc (unknown) -// source: gaia/globalfee/v1beta1/tx.proto +// source: juno/feemarket/v1/tx.proto -package globalfeev1beta1 +package feemarketv1 import ( context "context" @@ -19,17 +19,17 @@ import ( const _ = grpc.SupportPackageIsVersion9 const ( - Msg_UpdateParams_FullMethodName = "/gaia.globalfee.v1beta1.Msg/UpdateParams" + Msg_UpdateParams_FullMethodName = "/juno.feemarket.v1.Msg/UpdateParams" ) // MsgClient is the client API for Msg service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. // -// Msg defines the x/globalfee Msg service. +// Message service defines the types of messages supported by the feemarket +// module. type MsgClient interface { - // UpdateParams defines a governance operation for updating the x/mint module - // parameters. The authority is hard-coded to the x/gov module account. + // Params defines a method for updating the feemarket module parameters. UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) } @@ -55,10 +55,10 @@ func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts // All implementations must embed UnimplementedMsgServer // for forward compatibility. // -// Msg defines the x/globalfee Msg service. +// Message service defines the types of messages supported by the feemarket +// module. type MsgServer interface { - // UpdateParams defines a governance operation for updating the x/mint module - // parameters. The authority is hard-coded to the x/gov module account. + // Params defines a method for updating the feemarket module parameters. UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) mustEmbedUnimplementedMsgServer() } @@ -116,7 +116,7 @@ func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(in // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var Msg_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "gaia.globalfee.v1beta1.Msg", + ServiceName: "juno.feemarket.v1.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{ { @@ -125,5 +125,5 @@ var Msg_ServiceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "gaia/globalfee/v1beta1/tx.proto", + Metadata: "juno/feemarket/v1/tx.proto", } diff --git a/api/juno/feepay/module/v1/module.pulsar.go b/api/juno/feepay/module/v1/module.pulsar.go index 1f11c3200..6c8e8f419 100644 --- a/api/juno/feepay/module/v1/module.pulsar.go +++ b/api/juno/feepay/module/v1/module.pulsar.go @@ -315,7 +315,7 @@ func (x *fastReflection_Module) ProtoMethods() *protoiface.Methods { copy(dAtA[i:], x.Authority) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) i-- - dAtA[i] = 0x12 + dAtA[i] = 0xa } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -366,7 +366,7 @@ func (x *fastReflection_Module) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Module: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 2: + case 1: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) } @@ -454,7 +454,7 @@ type Module struct { // authority defines the custom module authority. If not set, defaults to the // governance module. - Authority string `protobuf:"bytes,2,opt,name=authority,proto3" json:"authority,omitempty"` + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` } func (x *Module) Reset() { @@ -492,27 +492,27 @@ var file_juno_feepay_module_v1_module_proto_rawDesc = []byte{ 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x66, 0x65, 0x65, 0x70, 0x61, 0x79, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x20, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, - 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x5d, 0x0a, + 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x5c, 0x0a, 0x06, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, - 0x72, 0x69, 0x74, 0x79, 0x18, 0x02, 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, + 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, + 0x6f, 0x72, 0x69, 0x74, 0x79, 0x3a, 0x34, 0xba, 0xc0, 0x96, 0xda, 0x01, 0x2e, 0x0a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x2f, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, 0x76, - 0x32, 0x38, 0x2f, 0x78, 0x2f, 0x66, 0x65, 0x65, 0x73, 0x70, 0x61, 0x79, 0x42, 0xd0, 0x01, 0x0a, - 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x66, 0x65, 0x65, 0x70, 0x61, 0x79, - 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x4d, 0x6f, 0x64, 0x75, - 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6a, 0x75, 0x6e, 0x6f, - 0x2f, 0x66, 0x65, 0x65, 0x70, 0x61, 0x79, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2f, 0x76, - 0x31, 0x3b, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4a, 0x46, 0x4d, - 0xaa, 0x02, 0x15, 0x4a, 0x75, 0x6e, 0x6f, 0x2e, 0x46, 0x65, 0x65, 0x70, 0x61, 0x79, 0x2e, 0x4d, - 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x15, 0x4a, 0x75, 0x6e, 0x6f, 0x5c, - 0x46, 0x65, 0x65, 0x70, 0x61, 0x79, 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5c, 0x56, 0x31, - 0xe2, 0x02, 0x21, 0x4a, 0x75, 0x6e, 0x6f, 0x5c, 0x46, 0x65, 0x65, 0x70, 0x61, 0x79, 0x5c, 0x4d, - 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x18, 0x4a, 0x75, 0x6e, 0x6f, 0x3a, 0x3a, 0x46, 0x65, 0x65, - 0x70, 0x61, 0x79, 0x3a, 0x3a, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x33, 0x30, 0x2f, 0x78, 0x2f, 0x66, 0x65, 0x65, 0x70, 0x61, 0x79, 0x42, 0xd0, 0x01, 0x0a, 0x19, + 0x63, 0x6f, 0x6d, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x66, 0x65, 0x65, 0x70, 0x61, 0x79, 0x2e, + 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x4d, 0x6f, 0x64, 0x75, 0x6c, + 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, + 0x66, 0x65, 0x65, 0x70, 0x61, 0x79, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2f, 0x76, 0x31, + 0x3b, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4a, 0x46, 0x4d, 0xaa, + 0x02, 0x15, 0x4a, 0x75, 0x6e, 0x6f, 0x2e, 0x46, 0x65, 0x65, 0x70, 0x61, 0x79, 0x2e, 0x4d, 0x6f, + 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x15, 0x4a, 0x75, 0x6e, 0x6f, 0x5c, 0x46, + 0x65, 0x65, 0x70, 0x61, 0x79, 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5c, 0x56, 0x31, 0xe2, + 0x02, 0x21, 0x4a, 0x75, 0x6e, 0x6f, 0x5c, 0x46, 0x65, 0x65, 0x70, 0x61, 0x79, 0x5c, 0x4d, 0x6f, + 0x64, 0x75, 0x6c, 0x65, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0xea, 0x02, 0x18, 0x4a, 0x75, 0x6e, 0x6f, 0x3a, 0x3a, 0x46, 0x65, 0x65, 0x70, + 0x61, 0x79, 0x3a, 0x3a, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/api/juno/feepay/v1/tx.pulsar.go b/api/juno/feepay/v1/tx.pulsar.go index e45dc4325..8831b064d 100644 --- a/api/juno/feepay/v1/tx.pulsar.go +++ b/api/juno/feepay/v1/tx.pulsar.go @@ -4945,37 +4945,30 @@ var file_juno_feepay_v1_tx_proto_rawDesc = []byte{ 0xb0, 0x2a, 0x1d, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, 0x78, 0x2f, 0x66, 0x65, 0x65, 0x70, 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, 0x32, 0xfc, 0x05, 0x0a, 0x03, - 0x4d, 0x73, 0x67, 0x12, 0x9b, 0x01, 0x0a, 0x16, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, - 0x46, 0x65, 0x65, 0x50, 0x61, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x12, 0x29, - 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x66, 0x65, 0x65, 0x70, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x2e, - 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x46, 0x65, 0x65, 0x50, 0x61, - 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x1a, 0x31, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, - 0x2e, 0x66, 0x65, 0x65, 0x70, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, + 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xdc, 0x04, 0x0a, 0x03, + 0x4d, 0x73, 0x67, 0x12, 0x76, 0x0a, 0x16, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x46, + 0x65, 0x65, 0x50, 0x61, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x12, 0x29, 0x2e, + 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x66, 0x65, 0x65, 0x70, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, + 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x46, 0x65, 0x65, 0x50, 0x61, 0x79, + 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x1a, 0x31, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, + 0x66, 0x65, 0x65, 0x70, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x65, 0x72, 0x46, 0x65, 0x65, 0x50, 0x61, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x72, + 0x61, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7c, 0x0a, 0x18, 0x55, + 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x46, 0x65, 0x65, 0x50, 0x61, 0x79, 0x43, + 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x12, 0x2b, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x66, + 0x65, 0x65, 0x70, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x46, 0x65, 0x65, 0x50, 0x61, 0x79, 0x43, 0x6f, 0x6e, 0x74, - 0x72, 0x61, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x23, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x1d, 0x22, 0x1b, 0x2f, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, 0x66, 0x65, 0x65, 0x70, - 0x61, 0x79, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x78, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, - 0x72, 0x12, 0xa3, 0x01, 0x0a, 0x18, 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, - 0x46, 0x65, 0x65, 0x50, 0x61, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x12, 0x2b, - 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x66, 0x65, 0x65, 0x70, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x2e, - 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x46, 0x65, 0x65, - 0x50, 0x61, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x1a, 0x33, 0x2e, 0x6a, 0x75, - 0x6e, 0x6f, 0x2e, 0x66, 0x65, 0x65, 0x70, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, - 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x46, 0x65, 0x65, 0x50, 0x61, 0x79, - 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x25, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x22, 0x1d, 0x2f, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, - 0x66, 0x65, 0x65, 0x70, 0x61, 0x79, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x78, 0x2f, 0x75, 0x6e, 0x72, - 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x12, 0x8b, 0x01, 0x0a, 0x12, 0x46, 0x75, 0x6e, 0x64, - 0x46, 0x65, 0x65, 0x50, 0x61, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x12, 0x25, - 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x66, 0x65, 0x65, 0x70, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x2e, - 0x4d, 0x73, 0x67, 0x46, 0x75, 0x6e, 0x64, 0x46, 0x65, 0x65, 0x50, 0x61, 0x79, 0x43, 0x6f, 0x6e, - 0x74, 0x72, 0x61, 0x63, 0x74, 0x1a, 0x2d, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x66, 0x65, 0x65, - 0x70, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x46, 0x75, 0x6e, 0x64, 0x46, 0x65, - 0x65, 0x50, 0x61, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x22, 0x17, 0x2f, 0x6a, - 0x75, 0x6e, 0x6f, 0x2f, 0x66, 0x65, 0x65, 0x70, 0x61, 0x79, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x78, - 0x2f, 0x66, 0x75, 0x6e, 0x64, 0x12, 0xc1, 0x01, 0x0a, 0x1f, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x72, 0x61, 0x63, 0x74, 0x1a, 0x33, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x66, 0x65, 0x65, 0x70, + 0x61, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x65, 0x72, 0x46, 0x65, 0x65, 0x50, 0x61, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, + 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6a, 0x0a, 0x12, 0x46, 0x75, 0x6e, + 0x64, 0x46, 0x65, 0x65, 0x50, 0x61, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x12, + 0x25, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x66, 0x65, 0x65, 0x70, 0x61, 0x79, 0x2e, 0x76, 0x31, + 0x2e, 0x4d, 0x73, 0x67, 0x46, 0x75, 0x6e, 0x64, 0x46, 0x65, 0x65, 0x50, 0x61, 0x79, 0x43, 0x6f, + 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x1a, 0x2d, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x66, 0x65, + 0x65, 0x70, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x46, 0x75, 0x6e, 0x64, 0x46, + 0x65, 0x65, 0x50, 0x61, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x91, 0x01, 0x0a, 0x1f, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x46, 0x65, 0x65, 0x50, 0x61, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x32, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x66, 0x65, 0x65, 0x70, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, @@ -4984,10 +4977,7 @@ var file_juno_feepay_v1_tx_proto_rawDesc = []byte{ 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x66, 0x65, 0x65, 0x70, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x46, 0x65, 0x65, 0x50, 0x61, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x4c, 0x69, 0x6d, 0x69, - 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x28, 0x22, 0x26, 0x2f, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, 0x66, 0x65, 0x65, 0x70, 0x61, 0x79, 0x2f, - 0x76, 0x31, 0x2f, 0x74, 0x78, 0x2f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x77, 0x61, 0x6c, - 0x6c, 0x65, 0x74, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x58, 0x0a, 0x0c, 0x55, 0x70, 0x64, + 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x58, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x1f, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x66, 0x65, 0x65, 0x70, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x27, 0x2e, 0x6a, 0x75, 0x6e, diff --git a/api/juno/feeshare/module/v1/module.pulsar.go b/api/juno/feeshare/module/v1/module.pulsar.go index 475a736b9..243ce8b1c 100644 --- a/api/juno/feeshare/module/v1/module.pulsar.go +++ b/api/juno/feeshare/module/v1/module.pulsar.go @@ -315,7 +315,7 @@ func (x *fastReflection_Module) ProtoMethods() *protoiface.Methods { copy(dAtA[i:], x.Authority) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) i-- - dAtA[i] = 0x12 + dAtA[i] = 0xa } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -366,7 +366,7 @@ func (x *fastReflection_Module) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Module: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 2: + case 1: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) } @@ -454,7 +454,7 @@ type Module struct { // authority defines the custom module authority. If not set, defaults to the // governance module. - Authority string `protobuf:"bytes,2,opt,name=authority,proto3" json:"authority,omitempty"` + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` } func (x *Module) Reset() { @@ -494,11 +494,11 @@ var file_juno_feeshare_module_v1_module_proto_rawDesc = []byte{ 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, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 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, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x2f, 0x6a, 0x75, - 0x6e, 0x6f, 0x2f, 0x76, 0x32, 0x38, 0x2f, 0x78, 0x2f, 0x66, 0x65, 0x65, 0x73, 0x68, 0x61, 0x72, + 0x6e, 0x6f, 0x2f, 0x76, 0x33, 0x30, 0x2f, 0x78, 0x2f, 0x66, 0x65, 0x65, 0x73, 0x68, 0x61, 0x72, 0x65, 0x42, 0xdc, 0x01, 0x0a, 0x1b, 0x63, 0x6f, 0x6d, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x66, 0x65, 0x65, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, diff --git a/api/juno/feeshare/v1/tx.pulsar.go b/api/juno/feeshare/v1/tx.pulsar.go index 5a4cce497..89f6c002c 100644 --- a/api/juno/feeshare/v1/tx.pulsar.go +++ b/api/juno/feeshare/v1/tx.pulsar.go @@ -3939,53 +3939,44 @@ var file_juno_feeshare_v1_tx_proto_rawDesc = []byte{ 0x2f, 0x78, 0x2f, 0x66, 0x65, 0x65, 0x73, 0x68, 0x61, 0x72, 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, 0x32, 0xab, 0x04, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x98, - 0x01, 0x0a, 0x10, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x46, 0x65, 0x65, 0x53, 0x68, - 0x61, 0x72, 0x65, 0x12, 0x25, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x66, 0x65, 0x65, 0x73, 0x68, - 0x61, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, - 0x65, 0x72, 0x46, 0x65, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x1a, 0x2d, 0x2e, 0x6a, 0x75, 0x6e, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0x9c, 0x03, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x68, + 0x0a, 0x10, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x46, 0x65, 0x65, 0x53, 0x68, 0x61, + 0x72, 0x65, 0x12, 0x25, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x66, 0x65, 0x65, 0x73, 0x68, 0x61, + 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, + 0x72, 0x46, 0x65, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x1a, 0x2d, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, + 0x2e, 0x66, 0x65, 0x65, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, + 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x46, 0x65, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x62, 0x0a, 0x0e, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x46, 0x65, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x23, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x66, 0x65, 0x65, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, - 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x46, 0x65, 0x65, 0x53, 0x68, 0x61, 0x72, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x28, 0x22, 0x26, 0x2f, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, 0x66, 0x65, 0x65, 0x73, 0x68, 0x61, 0x72, - 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x78, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, - 0x5f, 0x46, 0x65, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x90, 0x01, 0x0a, 0x0e, 0x55, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x46, 0x65, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x23, 0x2e, 0x6a, - 0x75, 0x6e, 0x6f, 0x2e, 0x66, 0x65, 0x65, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, - 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x46, 0x65, 0x65, 0x53, 0x68, 0x61, 0x72, - 0x65, 0x1a, 0x2b, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x66, 0x65, 0x65, 0x73, 0x68, 0x61, 0x72, - 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x46, 0x65, - 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2c, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x26, 0x22, 0x24, 0x2f, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, 0x66, 0x65, - 0x65, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x78, 0x2f, 0x75, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x5f, 0x46, 0x65, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x90, 0x01, 0x0a, - 0x0e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x46, 0x65, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, - 0x23, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x66, 0x65, 0x65, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, - 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x46, 0x65, 0x65, 0x53, - 0x68, 0x61, 0x72, 0x65, 0x1a, 0x2b, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x66, 0x65, 0x65, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x6e, 0x63, 0x65, - 0x6c, 0x46, 0x65, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x2c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x26, 0x22, 0x24, 0x2f, 0x6a, 0x75, 0x6e, 0x6f, - 0x2f, 0x66, 0x65, 0x65, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x78, 0x2f, - 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x5f, 0x46, 0x65, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, - 0x5c, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, - 0x21, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x66, 0x65, 0x65, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, - 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, - 0x6d, 0x73, 0x1a, 0x29, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x66, 0x65, 0x65, 0x73, 0x68, 0x61, - 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, - 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x05, 0x80, - 0xe7, 0xb0, 0x2a, 0x01, 0x42, 0xaf, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x6a, 0x75, 0x6e, - 0x6f, 0x2e, 0x66, 0x65, 0x65, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x07, 0x54, - 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2c, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, - 0x66, 0x65, 0x65, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x66, 0x65, 0x65, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4a, 0x46, 0x58, 0xaa, 0x02, 0x10, 0x4a, - 0x75, 0x6e, 0x6f, 0x2e, 0x46, 0x65, 0x65, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x56, 0x31, 0xca, - 0x02, 0x10, 0x4a, 0x75, 0x6e, 0x6f, 0x5c, 0x46, 0x65, 0x65, 0x73, 0x68, 0x61, 0x72, 0x65, 0x5c, - 0x56, 0x31, 0xe2, 0x02, 0x1c, 0x4a, 0x75, 0x6e, 0x6f, 0x5c, 0x46, 0x65, 0x65, 0x73, 0x68, 0x61, - 0x72, 0x65, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0xea, 0x02, 0x12, 0x4a, 0x75, 0x6e, 0x6f, 0x3a, 0x3a, 0x46, 0x65, 0x65, 0x73, 0x68, 0x61, - 0x72, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x46, 0x65, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x1a, + 0x2b, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x66, 0x65, 0x65, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, + 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x46, 0x65, 0x65, 0x53, + 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x62, 0x0a, 0x0e, + 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x46, 0x65, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x23, + 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x66, 0x65, 0x65, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x76, + 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x46, 0x65, 0x65, 0x53, 0x68, + 0x61, 0x72, 0x65, 0x1a, 0x2b, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x66, 0x65, 0x65, 0x73, 0x68, + 0x61, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, + 0x46, 0x65, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x5c, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, + 0x12, 0x21, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x66, 0x65, 0x65, 0x73, 0x68, 0x61, 0x72, 0x65, + 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, + 0x61, 0x6d, 0x73, 0x1a, 0x29, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x66, 0x65, 0x65, 0x73, 0x68, + 0x61, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x05, + 0x80, 0xe7, 0xb0, 0x2a, 0x01, 0x42, 0xaf, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x6a, 0x75, + 0x6e, 0x6f, 0x2e, 0x66, 0x65, 0x65, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x07, + 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2c, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6a, 0x75, 0x6e, 0x6f, + 0x2f, 0x66, 0x65, 0x65, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x66, 0x65, 0x65, + 0x73, 0x68, 0x61, 0x72, 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4a, 0x46, 0x58, 0xaa, 0x02, 0x10, + 0x4a, 0x75, 0x6e, 0x6f, 0x2e, 0x46, 0x65, 0x65, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x56, 0x31, + 0xca, 0x02, 0x10, 0x4a, 0x75, 0x6e, 0x6f, 0x5c, 0x46, 0x65, 0x65, 0x73, 0x68, 0x61, 0x72, 0x65, + 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1c, 0x4a, 0x75, 0x6e, 0x6f, 0x5c, 0x46, 0x65, 0x65, 0x73, 0x68, + 0x61, 0x72, 0x65, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0xea, 0x02, 0x12, 0x4a, 0x75, 0x6e, 0x6f, 0x3a, 0x3a, 0x46, 0x65, 0x65, 0x73, 0x68, + 0x61, 0x72, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/api/juno/mint/module/v1/module.pulsar.go b/api/juno/mint/module/v1/module.pulsar.go index 31d49c2bb..db229b551 100644 --- a/api/juno/mint/module/v1/module.pulsar.go +++ b/api/juno/mint/module/v1/module.pulsar.go @@ -572,7 +572,7 @@ var file_juno_mint_module_v1_module_proto_rawDesc = []byte{ 0x02, 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, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x43, 0x6f, 0x6e, 0x74, 0x72, - 0x61, 0x63, 0x74, 0x73, 0x2f, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, 0x76, 0x32, 0x38, 0x2f, 0x78, 0x2f, + 0x61, 0x63, 0x74, 0x73, 0x2f, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, 0x76, 0x33, 0x30, 0x2f, 0x78, 0x2f, 0x6d, 0x69, 0x6e, 0x74, 0x42, 0xc4, 0x01, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, diff --git a/api/juno/stream/module/v1/module.pulsar.go b/api/juno/stream/module/v1/module.pulsar.go new file mode 100644 index 000000000..fecaf86e7 --- /dev/null +++ b/api/juno/stream/module/v1/module.pulsar.go @@ -0,0 +1,579 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package modulev1 + +import ( + _ "cosmossdk.io/api/cosmos/app/v1alpha1" + fmt "fmt" + runtime "github.com/cosmos/cosmos-proto/runtime" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoiface "google.golang.org/protobuf/runtime/protoiface" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + io "io" + reflect "reflect" + sync "sync" +) + +var ( + md_Module protoreflect.MessageDescriptor + fd_Module_authority protoreflect.FieldDescriptor +) + +func init() { + file_juno_stream_module_v1_module_proto_init() + md_Module = File_juno_stream_module_v1_module_proto.Messages().ByName("Module") + fd_Module_authority = md_Module.Fields().ByName("authority") +} + +var _ protoreflect.Message = (*fastReflection_Module)(nil) + +type fastReflection_Module Module + +func (x *Module) ProtoReflect() protoreflect.Message { + return (*fastReflection_Module)(x) +} + +func (x *Module) slowProtoReflect() protoreflect.Message { + mi := &file_juno_stream_module_v1_module_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_Module_messageType fastReflection_Module_messageType +var _ protoreflect.MessageType = fastReflection_Module_messageType{} + +type fastReflection_Module_messageType struct{} + +func (x fastReflection_Module_messageType) Zero() protoreflect.Message { + return (*fastReflection_Module)(nil) +} +func (x fastReflection_Module_messageType) New() protoreflect.Message { + return new(fastReflection_Module) +} +func (x fastReflection_Module_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_Module +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_Module) Descriptor() protoreflect.MessageDescriptor { + return md_Module +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_Module) Type() protoreflect.MessageType { + return _fastReflection_Module_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_Module) New() protoreflect.Message { + return new(fastReflection_Module) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_Module) Interface() protoreflect.ProtoMessage { + return (*Module)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_Module) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Authority != "" { + value := protoreflect.ValueOfString(x.Authority) + if !f(fd_Module_authority, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_Module) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "juno.stream.module.v1.Module.authority": + return x.Authority != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.stream.module.v1.Module")) + } + panic(fmt.Errorf("message juno.stream.module.v1.Module does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Module) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "juno.stream.module.v1.Module.authority": + x.Authority = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.stream.module.v1.Module")) + } + panic(fmt.Errorf("message juno.stream.module.v1.Module does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_Module) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "juno.stream.module.v1.Module.authority": + value := x.Authority + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.stream.module.v1.Module")) + } + panic(fmt.Errorf("message juno.stream.module.v1.Module does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Module) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "juno.stream.module.v1.Module.authority": + x.Authority = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.stream.module.v1.Module")) + } + panic(fmt.Errorf("message juno.stream.module.v1.Module does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Module) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "juno.stream.module.v1.Module.authority": + panic(fmt.Errorf("field authority of message juno.stream.module.v1.Module is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.stream.module.v1.Module")) + } + panic(fmt.Errorf("message juno.stream.module.v1.Module does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_Module) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "juno.stream.module.v1.Module.authority": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.stream.module.v1.Module")) + } + panic(fmt.Errorf("message juno.stream.module.v1.Module does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_Module) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in juno.stream.module.v1.Module", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_Module) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Module) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_Module) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_Module) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*Module) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.Authority) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*Module) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.Authority) > 0 { + i -= len(x.Authority) + copy(dAtA[i:], x.Authority) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*Module) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Module: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Module: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Authority = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: juno/stream/module/v1/module.proto + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Module is the config object of the stream 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_juno_stream_module_v1_module_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Module) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Module) ProtoMessage() {} + +// Deprecated: Use Module.ProtoReflect.Descriptor instead. +func (*Module) Descriptor() ([]byte, []int) { + return file_juno_stream_module_v1_module_proto_rawDescGZIP(), []int{0} +} + +func (x *Module) GetAuthority() string { + if x != nil { + return x.Authority + } + return "" +} + +var File_juno_stream_module_v1_module_proto protoreflect.FileDescriptor + +var file_juno_stream_module_v1_module_proto_rawDesc = []byte{ + 0x0a, 0x22, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2f, 0x6d, 0x6f, + 0x64, 0x75, 0x6c, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, + 0x6d, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x20, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x5c, 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, 0x34, 0xba, 0xc0, 0x96, 0xda, 0x01, 0x2e, 0x0a, 0x2c, 0x67, + 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x2f, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, 0x76, + 0x33, 0x30, 0x2f, 0x78, 0x2f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x42, 0xd0, 0x01, 0x0a, 0x19, + 0x63, 0x6f, 0x6d, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, + 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x4d, 0x6f, 0x64, 0x75, 0x6c, + 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, + 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2f, 0x76, 0x31, + 0x3b, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4a, 0x53, 0x4d, 0xaa, + 0x02, 0x15, 0x4a, 0x75, 0x6e, 0x6f, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x4d, 0x6f, + 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x15, 0x4a, 0x75, 0x6e, 0x6f, 0x5c, 0x53, + 0x74, 0x72, 0x65, 0x61, 0x6d, 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5c, 0x56, 0x31, 0xe2, + 0x02, 0x21, 0x4a, 0x75, 0x6e, 0x6f, 0x5c, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x5c, 0x4d, 0x6f, + 0x64, 0x75, 0x6c, 0x65, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0xea, 0x02, 0x18, 0x4a, 0x75, 0x6e, 0x6f, 0x3a, 0x3a, 0x53, 0x74, 0x72, 0x65, + 0x61, 0x6d, 0x3a, 0x3a, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_juno_stream_module_v1_module_proto_rawDescOnce sync.Once + file_juno_stream_module_v1_module_proto_rawDescData = file_juno_stream_module_v1_module_proto_rawDesc +) + +func file_juno_stream_module_v1_module_proto_rawDescGZIP() []byte { + file_juno_stream_module_v1_module_proto_rawDescOnce.Do(func() { + file_juno_stream_module_v1_module_proto_rawDescData = protoimpl.X.CompressGZIP(file_juno_stream_module_v1_module_proto_rawDescData) + }) + return file_juno_stream_module_v1_module_proto_rawDescData +} + +var file_juno_stream_module_v1_module_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_juno_stream_module_v1_module_proto_goTypes = []interface{}{ + (*Module)(nil), // 0: juno.stream.module.v1.Module +} +var file_juno_stream_module_v1_module_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_juno_stream_module_v1_module_proto_init() } +func file_juno_stream_module_v1_module_proto_init() { + if File_juno_stream_module_v1_module_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_juno_stream_module_v1_module_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Module); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_juno_stream_module_v1_module_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_juno_stream_module_v1_module_proto_goTypes, + DependencyIndexes: file_juno_stream_module_v1_module_proto_depIdxs, + MessageInfos: file_juno_stream_module_v1_module_proto_msgTypes, + }.Build() + File_juno_stream_module_v1_module_proto = out.File + file_juno_stream_module_v1_module_proto_rawDesc = nil + file_juno_stream_module_v1_module_proto_goTypes = nil + file_juno_stream_module_v1_module_proto_depIdxs = nil +} diff --git a/api/juno/stream/v1/query.pulsar.go b/api/juno/stream/v1/query.pulsar.go new file mode 100644 index 000000000..b042e2e0f --- /dev/null +++ b/api/juno/stream/v1/query.pulsar.go @@ -0,0 +1,1469 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package streamv1 + +import ( + fmt "fmt" + runtime "github.com/cosmos/cosmos-proto/runtime" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoiface "google.golang.org/protobuf/runtime/protoiface" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + anypb "google.golang.org/protobuf/types/known/anypb" + io "io" + reflect "reflect" + sort "sort" + sync "sync" +) + +var _ protoreflect.Map = (*_StreamDynamicRequest_3_map)(nil) + +type _StreamDynamicRequest_3_map struct { + m *map[string]string +} + +func (x *_StreamDynamicRequest_3_map) Len() int { + if x.m == nil { + return 0 + } + return len(*x.m) +} + +func (x *_StreamDynamicRequest_3_map) Range(f func(protoreflect.MapKey, protoreflect.Value) bool) { + if x.m == nil { + return + } + for k, v := range *x.m { + mapKey := (protoreflect.MapKey)(protoreflect.ValueOfString(k)) + mapValue := protoreflect.ValueOfString(v) + if !f(mapKey, mapValue) { + break + } + } +} + +func (x *_StreamDynamicRequest_3_map) Has(key protoreflect.MapKey) bool { + if x.m == nil { + return false + } + keyUnwrapped := key.String() + concreteValue := keyUnwrapped + _, ok := (*x.m)[concreteValue] + return ok +} + +func (x *_StreamDynamicRequest_3_map) Clear(key protoreflect.MapKey) { + if x.m == nil { + return + } + keyUnwrapped := key.String() + concreteKey := keyUnwrapped + delete(*x.m, concreteKey) +} + +func (x *_StreamDynamicRequest_3_map) Get(key protoreflect.MapKey) protoreflect.Value { + if x.m == nil { + return protoreflect.Value{} + } + keyUnwrapped := key.String() + concreteKey := keyUnwrapped + v, ok := (*x.m)[concreteKey] + if !ok { + return protoreflect.Value{} + } + return protoreflect.ValueOfString(v) +} + +func (x *_StreamDynamicRequest_3_map) Set(key protoreflect.MapKey, value protoreflect.Value) { + if !key.IsValid() || !value.IsValid() { + panic("invalid key or value provided") + } + keyUnwrapped := key.String() + concreteKey := keyUnwrapped + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + (*x.m)[concreteKey] = concreteValue +} + +func (x *_StreamDynamicRequest_3_map) Mutable(key protoreflect.MapKey) protoreflect.Value { + panic("should not call Mutable on protoreflect.Map whose value is not of type protoreflect.Message") +} + +func (x *_StreamDynamicRequest_3_map) NewValue() protoreflect.Value { + v := "" + return protoreflect.ValueOfString(v) +} + +func (x *_StreamDynamicRequest_3_map) IsValid() bool { + return x.m != nil +} + +var ( + md_StreamDynamicRequest protoreflect.MessageDescriptor + fd_StreamDynamicRequest_module protoreflect.FieldDescriptor + fd_StreamDynamicRequest_method protoreflect.FieldDescriptor + fd_StreamDynamicRequest_params protoreflect.FieldDescriptor +) + +func init() { + file_juno_stream_v1_query_proto_init() + md_StreamDynamicRequest = File_juno_stream_v1_query_proto.Messages().ByName("StreamDynamicRequest") + fd_StreamDynamicRequest_module = md_StreamDynamicRequest.Fields().ByName("module") + fd_StreamDynamicRequest_method = md_StreamDynamicRequest.Fields().ByName("method") + fd_StreamDynamicRequest_params = md_StreamDynamicRequest.Fields().ByName("params") +} + +var _ protoreflect.Message = (*fastReflection_StreamDynamicRequest)(nil) + +type fastReflection_StreamDynamicRequest StreamDynamicRequest + +func (x *StreamDynamicRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_StreamDynamicRequest)(x) +} + +func (x *StreamDynamicRequest) slowProtoReflect() protoreflect.Message { + mi := &file_juno_stream_v1_query_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_StreamDynamicRequest_messageType fastReflection_StreamDynamicRequest_messageType +var _ protoreflect.MessageType = fastReflection_StreamDynamicRequest_messageType{} + +type fastReflection_StreamDynamicRequest_messageType struct{} + +func (x fastReflection_StreamDynamicRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_StreamDynamicRequest)(nil) +} +func (x fastReflection_StreamDynamicRequest_messageType) New() protoreflect.Message { + return new(fastReflection_StreamDynamicRequest) +} +func (x fastReflection_StreamDynamicRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_StreamDynamicRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_StreamDynamicRequest) Descriptor() protoreflect.MessageDescriptor { + return md_StreamDynamicRequest +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_StreamDynamicRequest) Type() protoreflect.MessageType { + return _fastReflection_StreamDynamicRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_StreamDynamicRequest) New() protoreflect.Message { + return new(fastReflection_StreamDynamicRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_StreamDynamicRequest) Interface() protoreflect.ProtoMessage { + return (*StreamDynamicRequest)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_StreamDynamicRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Module != "" { + value := protoreflect.ValueOfString(x.Module) + if !f(fd_StreamDynamicRequest_module, value) { + return + } + } + if x.Method != "" { + value := protoreflect.ValueOfString(x.Method) + if !f(fd_StreamDynamicRequest_method, value) { + return + } + } + if len(x.Params) != 0 { + value := protoreflect.ValueOfMap(&_StreamDynamicRequest_3_map{m: &x.Params}) + if !f(fd_StreamDynamicRequest_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_StreamDynamicRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "juno.stream.v1.StreamDynamicRequest.module": + return x.Module != "" + case "juno.stream.v1.StreamDynamicRequest.method": + return x.Method != "" + case "juno.stream.v1.StreamDynamicRequest.params": + return len(x.Params) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.stream.v1.StreamDynamicRequest")) + } + panic(fmt.Errorf("message juno.stream.v1.StreamDynamicRequest does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_StreamDynamicRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "juno.stream.v1.StreamDynamicRequest.module": + x.Module = "" + case "juno.stream.v1.StreamDynamicRequest.method": + x.Method = "" + case "juno.stream.v1.StreamDynamicRequest.params": + x.Params = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.stream.v1.StreamDynamicRequest")) + } + panic(fmt.Errorf("message juno.stream.v1.StreamDynamicRequest does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_StreamDynamicRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "juno.stream.v1.StreamDynamicRequest.module": + value := x.Module + return protoreflect.ValueOfString(value) + case "juno.stream.v1.StreamDynamicRequest.method": + value := x.Method + return protoreflect.ValueOfString(value) + case "juno.stream.v1.StreamDynamicRequest.params": + if len(x.Params) == 0 { + return protoreflect.ValueOfMap(&_StreamDynamicRequest_3_map{}) + } + mapValue := &_StreamDynamicRequest_3_map{m: &x.Params} + return protoreflect.ValueOfMap(mapValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.stream.v1.StreamDynamicRequest")) + } + panic(fmt.Errorf("message juno.stream.v1.StreamDynamicRequest does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_StreamDynamicRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "juno.stream.v1.StreamDynamicRequest.module": + x.Module = value.Interface().(string) + case "juno.stream.v1.StreamDynamicRequest.method": + x.Method = value.Interface().(string) + case "juno.stream.v1.StreamDynamicRequest.params": + mv := value.Map() + cmv := mv.(*_StreamDynamicRequest_3_map) + x.Params = *cmv.m + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.stream.v1.StreamDynamicRequest")) + } + panic(fmt.Errorf("message juno.stream.v1.StreamDynamicRequest does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_StreamDynamicRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "juno.stream.v1.StreamDynamicRequest.params": + if x.Params == nil { + x.Params = make(map[string]string) + } + value := &_StreamDynamicRequest_3_map{m: &x.Params} + return protoreflect.ValueOfMap(value) + case "juno.stream.v1.StreamDynamicRequest.module": + panic(fmt.Errorf("field module of message juno.stream.v1.StreamDynamicRequest is not mutable")) + case "juno.stream.v1.StreamDynamicRequest.method": + panic(fmt.Errorf("field method of message juno.stream.v1.StreamDynamicRequest is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.stream.v1.StreamDynamicRequest")) + } + panic(fmt.Errorf("message juno.stream.v1.StreamDynamicRequest does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_StreamDynamicRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "juno.stream.v1.StreamDynamicRequest.module": + return protoreflect.ValueOfString("") + case "juno.stream.v1.StreamDynamicRequest.method": + return protoreflect.ValueOfString("") + case "juno.stream.v1.StreamDynamicRequest.params": + m := make(map[string]string) + return protoreflect.ValueOfMap(&_StreamDynamicRequest_3_map{m: &m}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.stream.v1.StreamDynamicRequest")) + } + panic(fmt.Errorf("message juno.stream.v1.StreamDynamicRequest does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_StreamDynamicRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in juno.stream.v1.StreamDynamicRequest", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_StreamDynamicRequest) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_StreamDynamicRequest) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_StreamDynamicRequest) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_StreamDynamicRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*StreamDynamicRequest) + 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.Module) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Method) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if len(x.Params) > 0 { + SiZeMaP := func(k string, v string) { + mapEntrySize := 1 + len(k) + runtime.Sov(uint64(len(k))) + 1 + len(v) + runtime.Sov(uint64(len(v))) + n += mapEntrySize + 1 + runtime.Sov(uint64(mapEntrySize)) + } + if options.Deterministic { + sortme := make([]string, 0, len(x.Params)) + for k := range x.Params { + sortme = append(sortme, k) + } + sort.Strings(sortme) + for _, k := range sortme { + v := x.Params[k] + SiZeMaP(k, v) + } + } else { + for k, v := range x.Params { + SiZeMaP(k, v) + } + } + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*StreamDynamicRequest) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]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.Params) > 0 { + MaRsHaLmAp := func(k string, v string) (protoiface.MarshalOutput, error) { + baseI := i + i -= len(v) + copy(dAtA[i:], v) + i = runtime.EncodeVarint(dAtA, i, uint64(len(v))) + i-- + dAtA[i] = 0x12 + i -= len(k) + copy(dAtA[i:], k) + i = runtime.EncodeVarint(dAtA, i, uint64(len(k))) + i-- + dAtA[i] = 0xa + i = runtime.EncodeVarint(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x1a + return protoiface.MarshalOutput{}, nil + } + if options.Deterministic { + keysForParams := make([]string, 0, len(x.Params)) + for k := range x.Params { + keysForParams = append(keysForParams, string(k)) + } + sort.Slice(keysForParams, func(i, j int) bool { + return keysForParams[i] < keysForParams[j] + }) + for iNdEx := len(keysForParams) - 1; iNdEx >= 0; iNdEx-- { + v := x.Params[string(keysForParams[iNdEx])] + out, err := MaRsHaLmAp(keysForParams[iNdEx], v) + if err != nil { + return out, err + } + } + } else { + for k := range x.Params { + v := x.Params[k] + out, err := MaRsHaLmAp(k, v) + if err != nil { + return out, err + } + } + } + } + if len(x.Method) > 0 { + i -= len(x.Method) + copy(dAtA[i:], x.Method) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Method))) + i-- + dAtA[i] = 0x12 + } + if len(x.Module) > 0 { + i -= len(x.Module) + copy(dAtA[i:], x.Module) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Module))) + 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().(*StreamDynamicRequest) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: StreamDynamicRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: StreamDynamicRequest: 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 Module", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Module = 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 Method", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Method = 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 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 = make(map[string]string) + } + var mapkey string + var mapvalue string + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postStringIndexmapkey > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var stringLenmapvalue uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapvalue |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapvalue := int(stringLenmapvalue) + if intStringLenmapvalue < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postStringIndexmapvalue > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) + iNdEx = postStringIndexmapvalue + } else { + iNdEx = entryPreIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + x.Params[mapkey] = mapvalue + 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_StreamDynamicResponse protoreflect.MessageDescriptor + fd_StreamDynamicResponse_result protoreflect.FieldDescriptor +) + +func init() { + file_juno_stream_v1_query_proto_init() + md_StreamDynamicResponse = File_juno_stream_v1_query_proto.Messages().ByName("StreamDynamicResponse") + fd_StreamDynamicResponse_result = md_StreamDynamicResponse.Fields().ByName("result") +} + +var _ protoreflect.Message = (*fastReflection_StreamDynamicResponse)(nil) + +type fastReflection_StreamDynamicResponse StreamDynamicResponse + +func (x *StreamDynamicResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_StreamDynamicResponse)(x) +} + +func (x *StreamDynamicResponse) slowProtoReflect() protoreflect.Message { + mi := &file_juno_stream_v1_query_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_StreamDynamicResponse_messageType fastReflection_StreamDynamicResponse_messageType +var _ protoreflect.MessageType = fastReflection_StreamDynamicResponse_messageType{} + +type fastReflection_StreamDynamicResponse_messageType struct{} + +func (x fastReflection_StreamDynamicResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_StreamDynamicResponse)(nil) +} +func (x fastReflection_StreamDynamicResponse_messageType) New() protoreflect.Message { + return new(fastReflection_StreamDynamicResponse) +} +func (x fastReflection_StreamDynamicResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_StreamDynamicResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_StreamDynamicResponse) Descriptor() protoreflect.MessageDescriptor { + return md_StreamDynamicResponse +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_StreamDynamicResponse) Type() protoreflect.MessageType { + return _fastReflection_StreamDynamicResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_StreamDynamicResponse) New() protoreflect.Message { + return new(fastReflection_StreamDynamicResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_StreamDynamicResponse) Interface() protoreflect.ProtoMessage { + return (*StreamDynamicResponse)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_StreamDynamicResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Result != nil { + value := protoreflect.ValueOfMessage(x.Result.ProtoReflect()) + if !f(fd_StreamDynamicResponse_result, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_StreamDynamicResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "juno.stream.v1.StreamDynamicResponse.result": + return x.Result != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.stream.v1.StreamDynamicResponse")) + } + panic(fmt.Errorf("message juno.stream.v1.StreamDynamicResponse does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_StreamDynamicResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "juno.stream.v1.StreamDynamicResponse.result": + x.Result = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.stream.v1.StreamDynamicResponse")) + } + panic(fmt.Errorf("message juno.stream.v1.StreamDynamicResponse does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_StreamDynamicResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "juno.stream.v1.StreamDynamicResponse.result": + value := x.Result + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.stream.v1.StreamDynamicResponse")) + } + panic(fmt.Errorf("message juno.stream.v1.StreamDynamicResponse does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_StreamDynamicResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "juno.stream.v1.StreamDynamicResponse.result": + x.Result = value.Message().Interface().(*anypb.Any) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.stream.v1.StreamDynamicResponse")) + } + panic(fmt.Errorf("message juno.stream.v1.StreamDynamicResponse does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_StreamDynamicResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "juno.stream.v1.StreamDynamicResponse.result": + if x.Result == nil { + x.Result = new(anypb.Any) + } + return protoreflect.ValueOfMessage(x.Result.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.stream.v1.StreamDynamicResponse")) + } + panic(fmt.Errorf("message juno.stream.v1.StreamDynamicResponse does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_StreamDynamicResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "juno.stream.v1.StreamDynamicResponse.result": + m := new(anypb.Any) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: juno.stream.v1.StreamDynamicResponse")) + } + panic(fmt.Errorf("message juno.stream.v1.StreamDynamicResponse does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_StreamDynamicResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in juno.stream.v1.StreamDynamicResponse", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_StreamDynamicResponse) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_StreamDynamicResponse) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_StreamDynamicResponse) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_StreamDynamicResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*StreamDynamicResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.Result != nil { + l = options.Size(x.Result) + 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().(*StreamDynamicResponse) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.Result != nil { + encoded, err := options.Marshal(x.Result) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: 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().(*StreamDynamicResponse) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: StreamDynamicResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: StreamDynamicResponse: 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 Result", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return 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.Result == nil { + x.Result = &anypb.Any{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Result); 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: juno/stream/v1/query.proto + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// StreamDynamicRequest describes a dynamic stream subscription targeting a registered stream definition +type StreamDynamicRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // module identifies the module that owns the target stream definition (e.g. bank, staking) + Module string `protobuf:"bytes,1,opt,name=module,proto3" json:"module,omitempty"` + // stream identifies the stream name within the module (e.g. balance, delegations) + Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"` + // Params contains the respective unary query parameters provided to the original module query + Params map[string]string `protobuf:"bytes,3,rep,name=params,proto3" json:"params,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *StreamDynamicRequest) Reset() { + *x = StreamDynamicRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_juno_stream_v1_query_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StreamDynamicRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StreamDynamicRequest) ProtoMessage() {} + +// Deprecated: Use StreamDynamicRequest.ProtoReflect.Descriptor instead. +func (*StreamDynamicRequest) Descriptor() ([]byte, []int) { + return file_juno_stream_v1_query_proto_rawDescGZIP(), []int{0} +} + +func (x *StreamDynamicRequest) GetModule() string { + if x != nil { + return x.Module + } + return "" +} + +func (x *StreamDynamicRequest) GetMethod() string { + if x != nil { + return x.Method + } + return "" +} + +func (x *StreamDynamicRequest) GetParams() map[string]string { + if x != nil { + return x.Params + } + return nil +} + +// StreamDynamicResponse returns the streamed data in its native protobuf representation. +type StreamDynamicResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // result carries the latest query response as an opaque protobuf Any. + Result *anypb.Any `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` +} + +func (x *StreamDynamicResponse) Reset() { + *x = StreamDynamicResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_juno_stream_v1_query_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StreamDynamicResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StreamDynamicResponse) ProtoMessage() {} + +// Deprecated: Use StreamDynamicResponse.ProtoReflect.Descriptor instead. +func (*StreamDynamicResponse) Descriptor() ([]byte, []int) { + return file_juno_stream_v1_query_proto_rawDescGZIP(), []int{1} +} + +func (x *StreamDynamicResponse) GetResult() *anypb.Any { + if x != nil { + return x.Result + } + return nil +} + +var File_juno_stream_v1_query_proto protoreflect.FileDescriptor + +var file_juno_stream_v1_query_proto_rawDesc = []byte{ + 0x0a, 0x1a, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2f, 0x76, 0x31, + 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x6a, 0x75, + 0x6e, 0x6f, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x1a, 0x19, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, + 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xcb, 0x01, 0x0a, 0x14, 0x53, 0x74, 0x72, 0x65, + 0x61, 0x6d, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x06, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, + 0x6f, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, + 0x12, 0x48, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x30, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x76, + 0x31, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x39, 0x0a, 0x0b, 0x50, 0x61, + 0x72, 0x61, 0x6d, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x45, 0x0a, 0x15, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x44, + 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2c, + 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x32, 0x60, 0x0a, 0x05, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x57, 0x0a, 0x06, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, + 0x24, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x76, 0x31, + 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x73, 0x74, 0x72, + 0x65, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x44, 0x79, 0x6e, + 0x61, 0x6d, 0x69, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x42, 0xa4, + 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x6a, 0x75, 0x6e, 0x6f, 0x2e, 0x73, 0x74, 0x72, 0x65, + 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, + 0x6f, 0x50, 0x01, 0x5a, 0x28, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, + 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6a, 0x75, 0x6e, 0x6f, 0x2f, 0x73, 0x74, 0x72, 0x65, 0x61, + 0x6d, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x76, 0x31, 0xa2, 0x02, 0x03, + 0x4a, 0x53, 0x58, 0xaa, 0x02, 0x0e, 0x4a, 0x75, 0x6e, 0x6f, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, + 0x6d, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0e, 0x4a, 0x75, 0x6e, 0x6f, 0x5c, 0x53, 0x74, 0x72, 0x65, + 0x61, 0x6d, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1a, 0x4a, 0x75, 0x6e, 0x6f, 0x5c, 0x53, 0x74, 0x72, + 0x65, 0x61, 0x6d, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0xea, 0x02, 0x10, 0x4a, 0x75, 0x6e, 0x6f, 0x3a, 0x3a, 0x53, 0x74, 0x72, 0x65, 0x61, + 0x6d, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_juno_stream_v1_query_proto_rawDescOnce sync.Once + file_juno_stream_v1_query_proto_rawDescData = file_juno_stream_v1_query_proto_rawDesc +) + +func file_juno_stream_v1_query_proto_rawDescGZIP() []byte { + file_juno_stream_v1_query_proto_rawDescOnce.Do(func() { + file_juno_stream_v1_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_juno_stream_v1_query_proto_rawDescData) + }) + return file_juno_stream_v1_query_proto_rawDescData +} + +var file_juno_stream_v1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_juno_stream_v1_query_proto_goTypes = []interface{}{ + (*StreamDynamicRequest)(nil), // 0: juno.stream.v1.StreamDynamicRequest + (*StreamDynamicResponse)(nil), // 1: juno.stream.v1.StreamDynamicResponse + nil, // 2: juno.stream.v1.StreamDynamicRequest.ParamsEntry + (*anypb.Any)(nil), // 3: google.protobuf.Any +} +var file_juno_stream_v1_query_proto_depIdxs = []int32{ + 2, // 0: juno.stream.v1.StreamDynamicRequest.params:type_name -> juno.stream.v1.StreamDynamicRequest.ParamsEntry + 3, // 1: juno.stream.v1.StreamDynamicResponse.result:type_name -> google.protobuf.Any + 0, // 2: juno.stream.v1.Query.Stream:input_type -> juno.stream.v1.StreamDynamicRequest + 1, // 3: juno.stream.v1.Query.Stream:output_type -> juno.stream.v1.StreamDynamicResponse + 3, // [3:4] is the sub-list for method output_type + 2, // [2:3] 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_juno_stream_v1_query_proto_init() } +func file_juno_stream_v1_query_proto_init() { + if File_juno_stream_v1_query_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_juno_stream_v1_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StreamDynamicRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_juno_stream_v1_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StreamDynamicResponse); 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_juno_stream_v1_query_proto_rawDesc, + NumEnums: 0, + NumMessages: 3, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_juno_stream_v1_query_proto_goTypes, + DependencyIndexes: file_juno_stream_v1_query_proto_depIdxs, + MessageInfos: file_juno_stream_v1_query_proto_msgTypes, + }.Build() + File_juno_stream_v1_query_proto = out.File + file_juno_stream_v1_query_proto_rawDesc = nil + file_juno_stream_v1_query_proto_goTypes = nil + file_juno_stream_v1_query_proto_depIdxs = nil +} diff --git a/api/gaia/globalfee/v1beta1/query_grpc.pb.go b/api/juno/stream/v1/query_grpc.pb.go similarity index 53% rename from api/gaia/globalfee/v1beta1/query_grpc.pb.go rename to api/juno/stream/v1/query_grpc.pb.go index 2838850f5..9a4a6a8fc 100644 --- a/api/gaia/globalfee/v1beta1/query_grpc.pb.go +++ b/api/juno/stream/v1/query_grpc.pb.go @@ -2,9 +2,9 @@ // versions: // - protoc-gen-go-grpc v1.5.1 // - protoc (unknown) -// source: gaia/globalfee/v1beta1/query.proto +// source: juno/stream/v1/query.proto -package globalfeev1beta1 +package streamv1 import ( context "context" @@ -19,17 +19,17 @@ import ( const _ = grpc.SupportPackageIsVersion9 const ( - Query_MinimumGasPrices_FullMethodName = "/gaia.globalfee.v1beta1.Query/MinimumGasPrices" + Query_Stream_FullMethodName = "/juno.stream.v1.Query/Stream" ) // QueryClient is the client API for Query service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. // -// Query defines the gRPC querier service. +// Query defines the gRPC querier service for the stream module type QueryClient interface { - // MinimumGasPrices queries the minimum gas prices. - MinimumGasPrices(ctx context.Context, in *QueryMinimumGasPricesRequest, opts ...grpc.CallOption) (*QueryMinimumGasPricesResponse, error) + // Stream is a dynamic streaming endpoint to add streaming support to any registered grpc unary query + Stream(ctx context.Context, in *StreamDynamicRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[StreamDynamicResponse], error) } type queryClient struct { @@ -40,24 +40,33 @@ func NewQueryClient(cc grpc.ClientConnInterface) QueryClient { return &queryClient{cc} } -func (c *queryClient) MinimumGasPrices(ctx context.Context, in *QueryMinimumGasPricesRequest, opts ...grpc.CallOption) (*QueryMinimumGasPricesResponse, error) { +func (c *queryClient) Stream(ctx context.Context, in *StreamDynamicRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[StreamDynamicResponse], error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(QueryMinimumGasPricesResponse) - err := c.cc.Invoke(ctx, Query_MinimumGasPrices_FullMethodName, in, out, cOpts...) + stream, err := c.cc.NewStream(ctx, &Query_ServiceDesc.Streams[0], Query_Stream_FullMethodName, cOpts...) if err != nil { return nil, err } - return out, nil + x := &grpc.GenericClientStream[StreamDynamicRequest, StreamDynamicResponse]{ClientStream: stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil } +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type Query_StreamClient = grpc.ServerStreamingClient[StreamDynamicResponse] + // QueryServer is the server API for Query service. // All implementations must embed UnimplementedQueryServer // for forward compatibility. // -// Query defines the gRPC querier service. +// Query defines the gRPC querier service for the stream module type QueryServer interface { - // MinimumGasPrices queries the minimum gas prices. - MinimumGasPrices(context.Context, *QueryMinimumGasPricesRequest) (*QueryMinimumGasPricesResponse, error) + // Stream is a dynamic streaming endpoint to add streaming support to any registered grpc unary query + Stream(*StreamDynamicRequest, grpc.ServerStreamingServer[StreamDynamicResponse]) error mustEmbedUnimplementedQueryServer() } @@ -68,8 +77,8 @@ type QueryServer interface { // pointer dereference when methods are called. type UnimplementedQueryServer struct{} -func (UnimplementedQueryServer) MinimumGasPrices(context.Context, *QueryMinimumGasPricesRequest) (*QueryMinimumGasPricesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method MinimumGasPrices not implemented") +func (UnimplementedQueryServer) Stream(*StreamDynamicRequest, grpc.ServerStreamingServer[StreamDynamicResponse]) error { + return status.Errorf(codes.Unimplemented, "method Stream not implemented") } func (UnimplementedQueryServer) mustEmbedUnimplementedQueryServer() {} func (UnimplementedQueryServer) testEmbeddedByValue() {} @@ -92,36 +101,30 @@ func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer) { s.RegisterService(&Query_ServiceDesc, srv) } -func _Query_MinimumGasPrices_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryMinimumGasPricesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).MinimumGasPrices(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_MinimumGasPrices_FullMethodName, +func _Query_Stream_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(StreamDynamicRequest) + if err := stream.RecvMsg(m); err != nil { + return err } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).MinimumGasPrices(ctx, req.(*QueryMinimumGasPricesRequest)) - } - return interceptor(ctx, in, info, handler) + return srv.(QueryServer).Stream(m, &grpc.GenericServerStream[StreamDynamicRequest, StreamDynamicResponse]{ServerStream: stream}) } +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type Query_StreamServer = grpc.ServerStreamingServer[StreamDynamicResponse] + // Query_ServiceDesc is the grpc.ServiceDesc for Query service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var Query_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "gaia.globalfee.v1beta1.Query", + ServiceName: "juno.stream.v1.Query", HandlerType: (*QueryServer)(nil), - Methods: []grpc.MethodDesc{ + Methods: []grpc.MethodDesc{}, + Streams: []grpc.StreamDesc{ { - MethodName: "MinimumGasPrices", - Handler: _Query_MinimumGasPrices_Handler, + StreamName: "Stream", + Handler: _Query_Stream_Handler, + ServerStreams: true, }, }, - Streams: []grpc.StreamDesc{}, - Metadata: "gaia/globalfee/v1beta1/query.proto", + Metadata: "juno/stream/v1/query.proto", } diff --git a/api/osmosis/tokenfactory/module/v1/module.pulsar.go b/api/osmosis/tokenfactory/module/v1/module.pulsar.go index 40943df9c..5b1ac4ef4 100644 --- a/api/osmosis/tokenfactory/module/v1/module.pulsar.go +++ b/api/osmosis/tokenfactory/module/v1/module.pulsar.go @@ -499,7 +499,7 @@ var file_osmosis_tokenfactory_module_v1_module_proto_rawDesc = []byte{ 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x3a, 0x3a, 0xba, 0xc0, 0x96, 0xda, 0x01, 0x34, 0x0a, 0x32, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x2f, 0x6a, 0x75, 0x6e, 0x6f, - 0x2f, 0x76, 0x32, 0x38, 0x2f, 0x78, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x66, 0x61, 0x63, 0x74, + 0x2f, 0x76, 0x33, 0x30, 0x2f, 0x78, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x86, 0x02, 0x0a, 0x22, 0x63, 0x6f, 0x6d, 0x2e, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x69, 0x73, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x4d, 0x6f, 0x64, 0x75, diff --git a/app/ante.go b/app/ante/ante.go similarity index 58% rename from app/ante.go rename to app/ante/ante.go index 69dcfad05..9b480cb54 100644 --- a/app/ante.go +++ b/app/ante/ante.go @@ -1,8 +1,6 @@ -package app +package ante import ( - "errors" - wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper" wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" @@ -11,24 +9,23 @@ import ( corestoretypes "cosmossdk.io/core/store" errorsmod "cosmossdk.io/errors" + feegrantkeeper "cosmossdk.io/x/feegrant/keeper" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/cosmos/cosmos-sdk/x/auth/ante" + authkeeper "github.com/cosmos/cosmos-sdk/x/auth/keeper" bankkeeper "github.com/cosmos/cosmos-sdk/x/bank/keeper" stakingkeeper "github.com/cosmos/cosmos-sdk/x/staking/keeper" - decorators "github.com/CosmosContracts/juno/v29/app/decorators" - feepayante "github.com/CosmosContracts/juno/v29/x/feepay/ante" - feepaykeeper "github.com/CosmosContracts/juno/v29/x/feepay/keeper" - feeshareante "github.com/CosmosContracts/juno/v29/x/feeshare/ante" - feesharekeeper "github.com/CosmosContracts/juno/v29/x/feeshare/keeper" - globalfeeante "github.com/CosmosContracts/juno/v29/x/globalfee/ante" - globalfeekeeper "github.com/CosmosContracts/juno/v29/x/globalfee/keeper" + decorators "github.com/CosmosContracts/juno/v30/app/ante/decorators" + feemarketkeeper "github.com/CosmosContracts/juno/v30/x/feemarket/keeper" + feepaykeeper "github.com/CosmosContracts/juno/v30/x/feepay/keeper" + feeshareante "github.com/CosmosContracts/juno/v30/x/feeshare/ante" + feesharekeeper "github.com/CosmosContracts/juno/v30/x/feeshare/keeper" ) -// Lower back to 1 mil after https://github.com/cosmos/relayer/issues/1255 -const maxBypassMinFeeMsgGasUsage = 2_000_000 +// TODO: readd maxBypassMinFeeMsgGasUsage, gone because of Globalfee removal // HandlerOptions extends the SDK's AnteHandler options by requiring the IBC // channel keeper and a BankKeeper with an added method for fee sharing. @@ -36,9 +33,11 @@ type HandlerOptions struct { ante.HandlerOptions // cosmos sdk - StakingKeeper stakingkeeper.Keeper - BondDenom string - BankKeeper bankkeeper.Keeper + AccountKeeper authkeeper.AccountKeeper + BankKeeper bankkeeper.Keeper + StakingKeeper stakingkeeper.Keeper + FeegrantKeeper feegrantkeeper.Keeper + BondDenom string // ibc IBCKeeper *ibckeeper.Keeper @@ -48,10 +47,10 @@ type HandlerOptions struct { NodeConfig *wasmtypes.NodeConfig WasmKeeper *wasmkeeper.Keeper - // fee modules - FeePayKeeper feepaykeeper.Keeper - FeeShareKeeper feesharekeeper.Keeper - GlobalFeeKeeper globalfeekeeper.Keeper + // fees + FeemarketKeeper feemarketkeeper.Keeper + FeepayKeeper feepaykeeper.Keeper + FeeshareKeeper feesharekeeper.Keeper BypassMinFeeMsgTypes []string } @@ -59,9 +58,6 @@ type HandlerOptions struct { // numbers, checks signatures & account numbers, and deducts fees from the first // signer. func NewAnteHandler(options HandlerOptions) (sdk.AnteHandler, error) { - if options.AccountKeeper == nil { - return nil, errorsmod.Wrap(sdkerrors.ErrLogic, "account keeper is required for ante builder") - } if options.BankKeeper == nil { return nil, errorsmod.Wrap(sdkerrors.ErrLogic, "bank keeper is required for ante builder") } @@ -69,26 +65,16 @@ func NewAnteHandler(options HandlerOptions) (sdk.AnteHandler, error) { return nil, errorsmod.Wrap(sdkerrors.ErrLogic, "sign mode handler is required for ante builder") } if options.NodeConfig == nil { - return nil, errors.New("wasm config is required for ante builder") + return nil, errorsmod.Wrap(sdkerrors.ErrLogic, "wasm config is required for ante builder") } if options.TXCounterStoreService == nil { - return nil, errors.New("wasm store service is required for ante builder") + return nil, errorsmod.Wrap(sdkerrors.ErrLogic, "wasm store service is required for ante builder") } sigGasConsumer := options.SigGasConsumer if sigGasConsumer == nil { sigGasConsumer = ante.DefaultSigVerificationGasConsumer } - // Flag for determining if the tx is a FeePay transaction. This flag - // is used to communicate between the FeePay decorator and the GlobalFee decorator. - isFeePayTx := false - - // Define FeePay and Global Fee decorators. These decorators are called in different orders based on the type of - // transaction. The FeePay decorator is called first for FeePay transactions, and the GlobalFee decorator is called - // first for all other transactions. See the FeeRouteDecorator for more details. - fpd := feepayante.NewDeductFeeDecorator(options.FeePayKeeper, options.GlobalFeeKeeper, options.AccountKeeper, options.BankKeeper, options.FeegrantKeeper, options.BondDenom, &isFeePayTx) - gfd := globalfeeante.NewFeeDecorator(options.BypassMinFeeMsgTypes, options.GlobalFeeKeeper, options.StakingKeeper, maxBypassMinFeeMsgGasUsage, &isFeePayTx) - anteDecorators := []sdk.AnteDecorator{ // outermost AnteDecorator. SetUpContext must be called first ante.NewSetUpContextDecorator(), @@ -100,7 +86,7 @@ func NewAnteHandler(options HandlerOptions) (sdk.AnteHandler, error) { wasmkeeper.NewTxContractsDecorator(), // custom decorators - decorators.MsgFilterDecorator{}, + MsgFilterDecorator{}, decorators.NewChangeRateDecorator(&options.StakingKeeper), // cosmos sdk @@ -110,11 +96,24 @@ func NewAnteHandler(options HandlerOptions) (sdk.AnteHandler, error) { ante.NewValidateMemoDecorator(options.AccountKeeper), ante.NewConsumeGasForTxSizeDecorator(options.AccountKeeper), - // juno custom modules - // Fee route decorator calls FeePay and Global Fee decorators in different orders - // depending on the type of incoming tx. - feepayante.NewFeeRouteDecorator(options.FeePayKeeper, &fpd, &gfd, &isFeePayTx), - feeshareante.NewFeeSharePayoutDecorator(options.BankKeeper, options.FeeShareKeeper), + // DeductFeeDecorator handles the fee deduction logic. + // It includes correct fee routing for fee pay transactions + // every actual fee transfer will be handled by the Feemarket Post Handler + decorators.NewDeductFeeDecorator( + options.FeepayKeeper, + options.FeemarketKeeper, + options.AccountKeeper, + options.BankKeeper, + options.FeegrantKeeper, + options.BondDenom, + ante.NewDeductFeeDecorator( + options.AccountKeeper, + options.BankKeeper, + options.FeegrantKeeper, + options.TxFeeChecker, + ), + ), + feeshareante.NewFeeSharePayoutDecorator(options.BankKeeper, options.FeeshareKeeper), // signatures // SetPubKeyDecorator must be called before all signature verification decorators diff --git a/app/decorators/change_rate_decorator.go b/app/ante/decorators/change_rate.go similarity index 83% rename from app/decorators/change_rate_decorator.go rename to app/ante/decorators/change_rate.go index 82f0ed633..da89ab3d0 100644 --- a/app/decorators/change_rate_decorator.go +++ b/app/ante/decorators/change_rate.go @@ -1,12 +1,11 @@ package decorators import ( - "errors" - "fmt" - + errorsmod "cosmossdk.io/errors" sdkmath "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/cosmos/cosmos-sdk/x/authz" stakingkeeper "github.com/cosmos/cosmos-sdk/x/staking/keeper" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" @@ -23,7 +22,7 @@ type MsgChangeRateDecorator struct { maxCommissionChangeRate sdkmath.LegacyDec } -// Create new Change Rate Decorator +// NewChangeRateDecorator creates a new Change Rate Decorator func NewChangeRateDecorator(sk *stakingkeeper.Keeper) MsgChangeRateDecorator { rate, err := sdkmath.LegacyNewDecFromStr(MaxChangeRate) if err != nil { @@ -36,7 +35,7 @@ func NewChangeRateDecorator(sk *stakingkeeper.Keeper) MsgChangeRateDecorator { } } -// The AnteHandle checks for transactions that exceed the max change rate of 5% on the +// AnteHandle checks for transactions that exceed the max change rate of 5% on the // creation of a validator. func (mcr MsgChangeRateDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (sdk.Context, error) { err := mcr.hasInvalidCommissionRateMsgs(ctx, tx.GetMsgs()) @@ -66,7 +65,7 @@ func (mcr MsgChangeRateDecorator) hasInvalidCommissionRateMsgs(ctx sdk.Context, // Check for create validator messages if msg, ok := msg.(*stakingtypes.MsgCreateValidator); ok && mcr.isInvalidCreateMessage(msg) { - return fmt.Errorf("max change rate must not exceed %f%%", mcr.maxCommissionChangeRate) + return errorsmod.Wrapf(sdkerrors.ErrInvalidRequest, "max change rate must not exceed %s%%", mcr.maxCommissionChangeRate.String()) } // Check for edit validator messages @@ -95,7 +94,7 @@ func (mcr MsgChangeRateDecorator) isInvalidEditMessage(ctx sdk.Context, msg *sta bech32Addr, err := sdk.ValAddressFromBech32(msg.ValidatorAddress) if err != nil { - return errors.New("invalid validator address") + return errorsmod.Wrap(sdkerrors.ErrInvalidAddress, "invalid validator address") } // Get validator info, if exists @@ -106,7 +105,7 @@ func (mcr MsgChangeRateDecorator) isInvalidEditMessage(ctx sdk.Context, msg *sta // Check if new commission rate is out of bounds of the max change rate if msg.CommissionRate.LT(valInfo.Commission.Rate.Sub(mcr.maxCommissionChangeRate)) || msg.CommissionRate.GT(valInfo.Commission.Rate.Add(mcr.maxCommissionChangeRate)) { - return fmt.Errorf("commission rate cannot change by more than %f%%", mcr.maxCommissionChangeRate) + return errorsmod.Wrapf(sdkerrors.ErrInvalidRequest, "commission rate cannot change by more than %s%%", mcr.maxCommissionChangeRate.String()) } return nil diff --git a/app/decorators/change_rate_decorator_test.go b/app/ante/decorators/change_rate_test.go similarity index 98% rename from app/decorators/change_rate_decorator_test.go rename to app/ante/decorators/change_rate_test.go index 824a92449..102da7294 100644 --- a/app/decorators/change_rate_decorator_test.go +++ b/app/ante/decorators/change_rate_test.go @@ -16,8 +16,8 @@ import ( stakingkeeper "github.com/cosmos/cosmos-sdk/x/staking/keeper" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" - decorators "github.com/CosmosContracts/juno/v29/app/decorators" - "github.com/CosmosContracts/juno/v29/testutil" + decorators "github.com/CosmosContracts/juno/v30/app/ante/decorators" + "github.com/CosmosContracts/juno/v30/testutil" ) // Define an empty ante handle diff --git a/app/ante/decorators/handle_fees.go b/app/ante/decorators/handle_fees.go new file mode 100644 index 000000000..9f54148a9 --- /dev/null +++ b/app/ante/decorators/handle_fees.go @@ -0,0 +1,402 @@ +package decorators + +import ( + "bytes" + "math" + + wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" + + errorsmod "cosmossdk.io/errors" + sdkmath "cosmossdk.io/math" + feegrantkeeper "cosmossdk.io/x/feegrant/keeper" + + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + authkeeper "github.com/cosmos/cosmos-sdk/x/auth/keeper" + authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" + bankkeeper "github.com/cosmos/cosmos-sdk/x/bank/keeper" + + feemarketkeeper "github.com/CosmosContracts/juno/v30/x/feemarket/keeper" + feemarkettypes "github.com/CosmosContracts/juno/v30/x/feemarket/types" + feepayhelpers "github.com/CosmosContracts/juno/v30/x/feepay/helpers" + feepaykeeper "github.com/CosmosContracts/juno/v30/x/feepay/keeper" + feepaytypes "github.com/CosmosContracts/juno/v30/x/feepay/types" +) + +const ( + // gasPricePrecision is the amount of digit precision to scale the gas prices to. + gasPricePrecision = 6 +) + +type DeductFeeDecorator struct { + feemarketkeeper feemarketkeeper.Keeper + + innerDecorator InnerDeductFeeDecorator + fallbackDecorator sdk.AnteDecorator +} + +func NewDeductFeeDecorator(fpk feepaykeeper.Keeper, fmk feemarketkeeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, fgk feegrantkeeper.Keeper, bondDenom string, fallbackDecorator sdk.AnteDecorator) DeductFeeDecorator { + return DeductFeeDecorator{ + feemarketkeeper: fmk, + innerDecorator: newInnerDeductFeeDecorator( + fpk, fmk, ak, bk, fgk, bondDenom, + ), + fallbackDecorator: fallbackDecorator, + } +} + +// InnerDeductFeeDecorator deducts fees from the first signer of the tx +// If the first signer does not have the funds to pay for the fees, return with InsufficientFunds error +// Call next AnteHandler if fees successfully deducted +// CONTRACT: Tx must implement FeeTx interface to use DeductFeeDecorator +// +// Additionally, the Deduct Fee ante is a fork of the SDK's DeductFeeDecorator. This decorator looks for single +// message transactions with no provided fee. If they correspond to a registered FeePay Contract, the FeePay +// module will cover the cost of the fee (if the balance permits). +type InnerDeductFeeDecorator struct { + feepayKeeper feepaykeeper.Keeper + feemarketKeeper feemarketkeeper.Keeper + accountKeeper authkeeper.AccountKeeper + bankKeeper bankkeeper.Keeper + feegrantKeeper feegrantkeeper.Keeper + bondDenom string +} + +func newInnerDeductFeeDecorator(fpk feepaykeeper.Keeper, fmk feemarketkeeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, fgk feegrantkeeper.Keeper, bondDenom string) InnerDeductFeeDecorator { + return InnerDeductFeeDecorator{ + feepayKeeper: fpk, + feemarketKeeper: fmk, + accountKeeper: ak, + bankKeeper: bk, + feegrantKeeper: fgk, + bondDenom: bondDenom, + } +} + +// AnteHandle calls the feemarket antehandler if the keeper is enabled. If disabled, the fallback +// fee antehandler is fallen back to. +func (dfd DeductFeeDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (newCtx sdk.Context, err error) { + params, err := dfd.feemarketkeeper.GetParams(ctx) + if err != nil { + return ctx, err + } + if params.Enabled { + return dfd.innerDecorator.anteHandle(ctx, tx, simulate, next) + } + if dfd.fallbackDecorator != nil { + return dfd.fallbackDecorator.AnteHandle(ctx, tx, simulate, next) + } + + return next(ctx, tx, simulate) +} + +func (dfd InnerDeductFeeDecorator) HandleFees(ctx sdk.Context, feeTx sdk.FeeTx, fee sdk.Coin, isValidFeepayTx bool) error { + if addr := dfd.accountKeeper.GetModuleAddress(authtypes.FeeCollectorName); addr == nil { + return errorsmod.Wrapf(sdkerrors.ErrInvalidRequest, "fee collector module account (%s) has not been set", authtypes.FeeCollectorName) + } + + feePayer := feeTx.FeePayer() + feeGranter := feeTx.FeeGranter() + deductFeesFrom := feePayer + + // if feegranter set deduct fee from feegranter account. + // this works with only when x/feegrant is enabled and the fee granter allows the fee payer to cover their fees. + if feeGranter != nil { + feeGranterAddr := sdk.AccAddress(feeGranter) + feePayerAddr := sdk.AccAddress(feePayer) + if !bytes.Equal(feeGranterAddr, feePayerAddr) { + err := dfd.feegrantKeeper.UseGrantedFees(ctx, feeGranterAddr, feePayerAddr, sdk.NewCoins(fee), feeTx.GetMsgs()) + if err != nil { + return errorsmod.Wrapf(err, "%s does not allow to pay fees for %s", feeGranterAddr, feePayerAddr) + } + } + + deductFeesFrom = feeGranter + } + + deductFeesFromAddr := sdk.AccAddress(deductFeesFrom) + + deductFeesFromAcc := dfd.accountKeeper.GetAccount(ctx, deductFeesFromAddr) + if deductFeesFromAcc == nil { + return sdkerrors.ErrUnknownAddress.Wrapf("fee payer address: %s does not exist", deductFeesFromAddr) + } + + // Define errors per route + var feePayErr error + var sdkErr error + + // First try to handle FeePay transactions, if error, try the feemarket route. + // If not a FeePay transaction, default to the feemarket route. + if isValidFeepayTx { + feePayErr = dfd.handleZeroFees(ctx, deductFeesFromAcc, feeTx) + if feePayErr != nil { + sdkErr = dfd.escrow(ctx, deductFeesFromAcc, sdk.NewCoins(fee)) + } + } else if !fee.IsZero() { + // Std sdk route + sdkErr = dfd.escrow(ctx, deductFeesFromAcc, sdk.NewCoins(fee)) + } + + // If no fee pay error exists, the tx processed successfully. If + // a sdk error is present, return all errors. + if sdkErr != nil { + if feePayErr != nil { + return errorsmod.Wrapf(feepaytypes.ErrDeductFees, "error deducting fees; fee pay error: %s, sdk error: %s", feePayErr, sdkErr) + } + return sdkErr + } + + events := sdk.Events{ + sdk.NewEvent( + sdk.EventTypeTx, + sdk.NewAttribute(sdk.AttributeKeyFee, fee.String()), + sdk.NewAttribute(sdk.AttributeKeyFeePayer, deductFeesFromAcc.GetAddress().String()), + ), + } + ctx.EventManager().EmitEvents(events) + + return nil +} + +func (dfd InnerDeductFeeDecorator) anteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (sdk.Context, error) { + // GenTx consume no fee + if ctx.BlockHeight() == 0 { + return next(ctx, tx, simulate) + } + + feeTx, ok := tx.(sdk.FeeTx) + if !ok { + return ctx, errorsmod.Wrap(sdkerrors.ErrTxDecode, "Tx must be a FeeTx") + } + + isValidFeepayTx := feepayhelpers.IsValidFeePayTransaction(ctx, dfd.feepayKeeper, feeTx) + + if !simulate && ctx.BlockHeight() > 0 && feeTx.GetGas() == 0 { + return ctx, errorsmod.Wrap(sdkerrors.ErrInvalidGasLimit, "must provide positive gas") + } + + feeCoins := feeTx.GetFee() + + if !isValidFeepayTx { + if len(feeCoins) == 0 && !simulate { + return ctx, errorsmod.Wrapf(feemarkettypes.ErrNoFeeCoins, "got length %d", len(feeCoins)) + } + } + + if len(feeCoins) > 1 { + return ctx, errorsmod.Wrapf(feemarkettypes.ErrTooManyFeeCoins, "got length %d", len(feeCoins)) + } + + payCoin := sdk.NewCoin(dfd.bondDenom, sdkmath.ZeroInt()) + if !simulate { + payCoin = feeCoins[0] + } + + gas := feeTx.GetGas() + feeGasPrice, err := dfd.feemarketKeeper.GetCurrentGasPrice(ctx, payCoin.GetDenom()) + if err != nil { + return ctx, errorsmod.Wrapf(err, "unable to get min gas price for denom %s", payCoin.GetDenom()) + } + + ctx.Logger().Debug("fee deduct ante handle", + "current gas price", feeGasPrice, + "fee", feeCoins, + "gas limit", gas, + ) + + ctx = ctx.WithMinGasPrices(sdk.NewDecCoins(feeGasPrice)) + + if !simulate { + _, _, checkErr := CheckTxFee(ctx, feeGasPrice, payCoin, int64(gas), true) + if checkErr != nil { + return ctx, errorsmod.Wrapf(checkErr, "error checking fee") + } + } + + // handle the entire tx fee process + err = dfd.HandleFees(ctx, feeTx, payCoin, isValidFeepayTx) + if err != nil { + return ctx, errorsmod.Wrapf(err, "error escrowing funds") + } + + // handle tx priority + var priority int64 + bondDenomGasPrice, err := dfd.feemarketKeeper.GetCurrentGasPrice(ctx, dfd.bondDenom) + if err != nil { + return ctx, errorsmod.Wrapf(err, "error getting current gas price") + } + priorityFee, err := dfd.resolveTxPriorityCoins(ctx, payCoin, dfd.bondDenom) + if err != nil { + return ctx, errorsmod.Wrapf(err, "error resolving fee priority") + } + if !simulate { + priority = GetTxPriority(priorityFee, int64(gas), bondDenomGasPrice) + } + ctx = ctx.WithPriority(priority) + + return next(ctx, tx, simulate) +} + +// Handle zero fee transactions for x/feepay module +func (dfd InnerDeductFeeDecorator) handleZeroFees(ctx sdk.Context, deductFeesFromAcc sdk.AccountI, tx sdk.FeeTx) error { + msg := tx.GetMsgs()[0] + cw := msg.(*wasmtypes.MsgExecuteContract) + + // Get the fee pay contract + feepayContract, err := dfd.feepayKeeper.GetContract(ctx, cw.GetContract()) + if err != nil { + return errorsmod.Wrapf(err, "error getting contract %s", cw.GetContract()) + } + + // Get the fee price in the chain denom + fmMinGasPriceBondDenom, err := dfd.feemarketKeeper.GetCurrentGasPrice(ctx, dfd.bondDenom) + if err != nil { + return errorsmod.Wrapf(err, "error getting feemarket params") + } + feePrice := sdk.DecCoin{} + if fmMinGasPriceBondDenom.Denom == dfd.bondDenom { + feePrice = fmMinGasPriceBondDenom + } + + if feePrice == (sdk.DecCoin{}) { + return errorsmod.Wrapf(sdkerrors.ErrInvalidCoins, "fee price not found for denom %s in feemarket keeper", dfd.bondDenom) + } + + gas := sdkmath.LegacyNewDec(int64(tx.GetGas())) + requiredFee := feePrice.Amount.Mul(gas).Ceil().RoundInt() + + // Check if wallet exceeded usage limit on contract + accBech32 := deductFeesFromAcc.GetAddress().String() + if dfd.feepayKeeper.HasWalletExceededUsageLimit(ctx, feepayContract, accBech32) { + return errorsmod.Wrapf(feepaytypes.ErrWalletExceededUsageLimit, "wallet has exceeded usage limit (%d)", feepayContract.WalletLimit) + } + + // Check if the contract has enough funds to cover the fee + if !dfd.feepayKeeper.CanContractCoverFee(feepayContract, requiredFee.Uint64()) { + return errorsmod.Wrapf(feepaytypes.ErrContractNotEnoughFunds, "contract has insufficient funds; expected: %d, got: %d", requiredFee.Uint64(), feepayContract.Balance) + } + + // Create an array of coins, storing the required fee + payment := sdk.NewCoins(sdk.NewCoin(feePrice.Denom, requiredFee)) + + // Cover the fees of the transaction, send from FeePay Module to FeeCollector Module + if err := dfd.bankKeeper.SendCoinsFromModuleToModule(ctx, feepaytypes.ModuleName, feemarkettypes.FeeCollectorName, payment); err != nil { + return errorsmod.Wrapf(sdkerrors.ErrInsufficientFunds, "error transferring funds from FeePay to FeeCollector; %s", err) + } + + // Deduct the fee from the contract balance + dfd.feepayKeeper.SetContractBalance(ctx, feepayContract, feepayContract.Balance-requiredFee.Uint64()) + + // Increment wallet usage + if err := dfd.feepayKeeper.IncrementContractUses(ctx, feepayContract, accBech32, 1); err != nil { + return errorsmod.Wrapf(err, "error incrementing contract uses") + } + + return nil +} + +// resolveTxPriorityCoins converts the coins to the proper denom used for tx prioritization calculation. +func (dfd InnerDeductFeeDecorator) resolveTxPriorityCoins(ctx sdk.Context, fee sdk.Coin, baseDenom string) (sdk.Coin, error) { + if fee.Denom == baseDenom { + return fee, nil + } + + feeDec := sdk.NewDecCoinFromCoin(fee) + convertedDec, err := dfd.feemarketKeeper.ResolveToDenom(ctx, feeDec, baseDenom) + if err != nil { + return sdk.Coin{}, err + } + + // truncate down + return sdk.NewCoin(baseDenom, convertedDec.Amount.TruncateInt()), nil +} + +// escrow deducts coins to the escrow. +func (dfd InnerDeductFeeDecorator) escrow(ctx sdk.Context, acc sdk.AccountI, coins sdk.Coins) error { + targetModuleAcc := feemarkettypes.FeeCollectorName + err := dfd.bankKeeper.SendCoinsFromAccountToModule(ctx, acc.GetAddress(), targetModuleAcc, coins) + if err != nil { + return err + } + + return nil +} + +// CheckTxFee implements the logic for the fee market to check if a Tx has provided sufficient +// fees given the current state of the fee market. Returns an error if insufficient fees. +func CheckTxFee(ctx sdk.Context, gasPrice sdk.DecCoin, feeCoin sdk.Coin, feeGas int64, isAnte bool) (payCoin sdk.Coin, tip sdk.Coin, err error) { + payCoin = feeCoin + + // Ensure that the provided fees meet the minimum + if !gasPrice.IsZero() { + var ( + requiredFee sdk.Coin + consumedFee sdk.Coin + ) + + // Determine the required fees by multiplying each required minimum gas + // price by the gas, where fee = ceil(minGasPrice * gas). + gasConsumed := int64(ctx.GasMeter().GasConsumed()) + gcDec := sdkmath.LegacyNewDec(gasConsumed) + glDec := sdkmath.LegacyNewDec(feeGas) + + consumedFeeAmount := gasPrice.Amount.Mul(gcDec) + limitFee := gasPrice.Amount.Mul(glDec) + + consumedFee = sdk.NewCoin(gasPrice.Denom, consumedFeeAmount.Ceil().RoundInt()) + requiredFee = sdk.NewCoin(gasPrice.Denom, limitFee.Ceil().RoundInt()) + + if !payCoin.IsGTE(requiredFee) { + return sdk.Coin{}, sdk.Coin{}, sdkerrors.ErrInsufficientFee.Wrapf( + "got: %s required: %s, minGasPrice: %s, gas: %d", + payCoin, + requiredFee, + gasPrice, + gasConsumed, + ) + } + + if isAnte { + tip = payCoin.Sub(requiredFee) + payCoin = requiredFee + } else { + tip = payCoin.Sub(consumedFee) + payCoin = consumedFee + } + } + + return payCoin, tip, nil +} + +// GetTxPriority returns a naive tx priority based on the amount of gas price provided in a transaction. +// +// The fee amount is divided by the gasLimit to calculate "Effective Gas Price". +// This value is then normalized and scaled into an integer, so it can be used as a priority. +// +// effectiveGasPrice = feeAmount / gas limit (denominated in fee per gas) +// normalizedGasPrice = effectiveGasPrice / currentGasPrice (floor is 1. The minimum effective gas price can ever be is current gas price) +// scaledGasPrice = normalizedGasPrice * 10 ^ gasPricePrecision (amount of decimal places in the normalized gas price to consider when converting to int64). +func GetTxPriority(fee sdk.Coin, gasLimit int64, currentGasPrice sdk.DecCoin) int64 { + // protections from dividing by 0 + if gasLimit == 0 { + return 0 + } + + // if the gas price is 0, just use a raw amount + if currentGasPrice.IsZero() { + return fee.Amount.Int64() + } + + effectiveGasPrice := fee.Amount.ToLegacyDec().QuoInt64(gasLimit) + normalizedGasPrice := effectiveGasPrice.Quo(currentGasPrice.Amount) + scaledGasPrice := normalizedGasPrice.MulInt64(int64(math.Pow10(gasPricePrecision))) + + // overflow panic protection + if scaledGasPrice.GTE(sdkmath.LegacyNewDec(math.MaxInt64)) { + return math.MaxInt64 + } else if scaledGasPrice.LTE(sdkmath.LegacyOneDec()) { + return 0 + } + + return scaledGasPrice.TruncateInt64() +} diff --git a/app/decorators/msg_filter.go b/app/ante/msg_filter.go similarity index 80% rename from app/decorators/msg_filter.go rename to app/ante/msg_filter.go index 3511f0c1d..3a54b697e 100644 --- a/app/decorators/msg_filter.go +++ b/app/ante/msg_filter.go @@ -1,11 +1,12 @@ -package decorators +package ante import ( - "fmt" - ibcchanneltypes "github.com/cosmos/ibc-go/v8/modules/core/04-channel/types" + errorsmod "cosmossdk.io/errors" + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" ) // MsgFilterDecorator defines an AnteHandler decorator for the v9 upgrade that @@ -18,7 +19,7 @@ type MsgFilterDecorator struct{} func (MsgFilterDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (newCtx sdk.Context, err error) { if hasInvalidMsgs(tx.GetMsgs()) { currHeight := ctx.BlockHeight() - return ctx, fmt.Errorf("tx contains unsupported message types at height %d", currHeight) + return ctx, errorsmod.Wrapf(sdkerrors.ErrInvalidRequest, "tx contains unsupported message types at height %d", currHeight) } return next(ctx, tx, simulate) diff --git a/app/app.go b/app/app.go index 4a4321fb4..4ca294477 100644 --- a/app/app.go +++ b/app/app.go @@ -4,16 +4,14 @@ import ( "encoding/json" "fmt" "io" - "io/fs" - "net/http" "os" "strconv" "strings" + "time" wasm "github.com/CosmWasm/wasmd/x/wasm" wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper" wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" - "github.com/spf13/cast" abci "github.com/cometbft/cometbft/abci/types" tmjson "github.com/cometbft/cometbft/libs/json" @@ -31,6 +29,7 @@ import ( "cosmossdk.io/client/v2/autocli" "cosmossdk.io/core/appmodule" "cosmossdk.io/log" + storetypes "cosmossdk.io/store/types" "cosmossdk.io/x/tx/signing" upgradetypes "cosmossdk.io/x/upgrade/types" @@ -55,24 +54,20 @@ import ( "github.com/cosmos/cosmos-sdk/version" "github.com/cosmos/cosmos-sdk/x/auth/ante" authcodec "github.com/cosmos/cosmos-sdk/x/auth/codec" - "github.com/cosmos/cosmos-sdk/x/auth/posthandler" authtx "github.com/cosmos/cosmos-sdk/x/auth/tx" authtxconfig "github.com/cosmos/cosmos-sdk/x/auth/tx/config" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - "github.com/cosmos/cosmos-sdk/x/crisis" "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" - govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" - paramsclient "github.com/cosmos/cosmos-sdk/x/params/client" - paramstypes "github.com/cosmos/cosmos-sdk/x/params/types" - - "github.com/CosmosContracts/juno/v29/app/keepers" - upgrades "github.com/CosmosContracts/juno/v29/app/upgrades" - v28 "github.com/CosmosContracts/juno/v29/app/upgrades/v28" - v29 "github.com/CosmosContracts/juno/v29/app/upgrades/v29" - "github.com/CosmosContracts/juno/v29/docs" + + junoante "github.com/CosmosContracts/juno/v30/app/ante" + endpoints "github.com/CosmosContracts/juno/v30/app/endpoints" + wsendpoints "github.com/CosmosContracts/juno/v30/app/endpoints/websocket" + "github.com/CosmosContracts/juno/v30/app/keepers" + upgrades "github.com/CosmosContracts/juno/v30/app/upgrades" + v30 "github.com/CosmosContracts/juno/v30/app/upgrades/v30" + feemarkettypes "github.com/CosmosContracts/juno/v30/x/feemarket/types" + streamtypes "github.com/CosmosContracts/juno/v30/x/stream/types" ) const ( @@ -92,8 +87,7 @@ var ( EnableSpecificProposals = "" Upgrades = []upgrades.Upgrade{ - v28.Upgrade, - v29.Upgrade, + v30.Upgrade, } _ runtime.AppI = (*App)(nil) @@ -152,7 +146,6 @@ func New( appCodec := codec.NewProtoCodec(interfaceRegistry) legacyAmino := codec.NewLegacyAmino() txConfig := authtx.NewTxConfig(appCodec, authtx.DefaultSignModes) - skipGenesisInvariants := cast.ToBool(appOpts.Get(crisis.FlagSkipGenesisInvariants)) std.RegisterLegacyAminoCodec(legacyAmino) std.RegisterInterfaces(interfaceRegistry) @@ -169,6 +162,7 @@ func New( appCodec: appCodec, txConfig: txConfig, interfaceRegistry: interfaceRegistry, + homePath: homePath, } app.homePath = homePath @@ -183,12 +177,6 @@ func New( app.homePath, ) - // load state streaming if enabled - if err := app.RegisterStreamingServices(appOpts, app.AppKeepers.GetKVStoreKeys()); err != nil { - panic(err) - } - - // optional: enable sign mode textual by overwriting the default tx config (after setting the bank keeper) // nolint:gocritic enabledSignModes := append(authtx.DefaultSignModes, signingtypes.SignMode_SIGN_MODE_TEXTUAL) txConfigOpts := authtx.ConfigOptions{ @@ -211,34 +199,27 @@ func New( } app.configurator = module.NewConfigurator(appCodec, app.MsgServiceRouter(), app.GRPCQueryRouter()) - app.ModuleManager = module.NewManager(appModules(app, txConfig, appCodec, skipGenesisInvariants)...) - + app.ModuleManager = module.NewManager(appModules(app, txConfig, appCodec)...) app.BasicModuleManager = module.NewBasicManagerFromManager( app.ModuleManager, map[string]module.AppModuleBasic{ genutiltypes.ModuleName: genutil.NewAppModuleBasic(genutiltypes.DefaultMessageValidator), - govtypes.ModuleName: gov.NewAppModuleBasic( - []govclient.ProposalHandler{ - paramsclient.ProposalHandler, - }, - ), }, ) app.BasicModuleManager.RegisterLegacyAminoCodec(legacyAmino) app.BasicModuleManager.RegisterInterfaces(interfaceRegistry) - err = app.ModuleManager.RegisterServices(app.configurator) if err != nil { panic(err) } app.ModuleManager.SetOrderPreBlockers( upgradetypes.ModuleName, + authtypes.ModuleName, ) app.ModuleManager.SetOrderBeginBlockers(orderBeginBlockers()...) app.ModuleManager.SetOrderEndBlockers(orderEndBlockers()...) app.ModuleManager.SetOrderInitGenesis(orderInitBlockers()...) app.ModuleManager.SetOrderExportGenesis(orderInitBlockers()...) - app.ModuleManager.RegisterInvariants(app.AppKeepers.CrisisKeeper) autocliv1.RegisterQueryServer(app.GRPCQueryRouter(), runtimeservices.NewAutoCLIQueryService(app.ModuleManager.Modules)) @@ -250,26 +231,41 @@ func New( // initialize stores app.MountKVStores(app.AppKeepers.GetKVStoreKeys()) - app.MountTransientStores(app.AppKeepers.GetTransientStoreKeys()) app.MountMemoryStores(app.AppKeepers.GetMemoryStoreKeys()) + // setup streaming support + app.AppKeepers.StreamKeeper.StartDispatcher() + streamListener := streamtypes.NewStreamingListener( + app.AppKeepers.StreamKeeper.Dispatcher().Intake(), + app.Logger().With("module", "stream listener"), + // app.AppKeepers.StreamKeeper.ModuleCodecs(), + ) + keys := app.AppKeepers.GetKVStoreKeys() + storeKeys := make([]storetypes.StoreKey, 0, len(keys)) + for _, key := range keys { + if key != nil { + storeKeys = append(storeKeys, key) + } + } + app.BaseApp.CommitMultiStore().AddListeners(storeKeys) + app.SetStreamingManager(storetypes.StreamingManager{ + ABCIListeners: []storetypes.ABCIListener{streamListener}, + StopNodeOnErr: false, + }) + nodeConfig, err := wasm.ReadNodeConfig(appOpts) if err != nil { panic("error while reading wasm config: " + err.Error()) } - - anteHandler, err := NewAnteHandler( - HandlerOptions{ + anteHandler, err := junoante.NewAnteHandler( + junoante.HandlerOptions{ HandlerOptions: ante.HandlerOptions{ - AccountKeeper: app.AppKeepers.AccountKeeper, - BankKeeper: app.AppKeepers.BankKeeper, FeegrantKeeper: app.AppKeepers.FeeGrantKeeper, SignModeHandler: app.txConfig.SignModeHandler(), SigGasConsumer: ante.DefaultSigVerificationGasConsumer, }, StakingKeeper: *app.AppKeepers.StakingKeeper, BondDenom: app.GetChainBondDenom(), - BankKeeper: app.AppKeepers.BankKeeper, IBCKeeper: app.AppKeepers.IBCKeeper, @@ -277,18 +273,37 @@ func New( NodeConfig: &nodeConfig, WasmKeeper: &app.AppKeepers.WasmKeeper, - FeePayKeeper: app.AppKeepers.FeePayKeeper, - FeeShareKeeper: app.AppKeepers.FeeShareKeeper, + BankKeeper: app.AppKeepers.BankKeeper, + AccountKeeper: app.AppKeepers.AccountKeeper, + + FeepayKeeper: app.AppKeepers.FeePayKeeper, + FeeshareKeeper: app.AppKeepers.FeeShareKeeper, + FeemarketKeeper: *app.AppKeepers.FeeMarketKeeper, BypassMinFeeMsgTypes: GetDefaultBypassFeeMessages(), - GlobalFeeKeeper: app.AppKeepers.GlobalFeeKeeper, }, ) if err != nil { panic(err) } + postHandlerOptions := PostHandlerOptions{ + AccountKeeper: app.AppKeepers.AccountKeeper, + BankKeeper: app.AppKeepers.BankKeeper, + FeeMarketKeeper: *app.AppKeepers.FeeMarketKeeper, + } + postHandler, err := NewPostHandler(postHandlerOptions) + if err != nil { + panic(err) + } + + // TODO: IMPORTANT!!! Create real denom resolver, this one uses the same amount + // token amount for every denom. 1ujuno != 1uatom in price. + // Resolve to denom should be based on the price of the denom in an oracle module + // or temporarily use a hardcoded token price ratio from ujuno to x token + app.AppKeepers.FeeMarketKeeper.SetDenomResolver(&feemarkettypes.TestDenomResolver{}) + app.SetAnteHandler(anteHandler) - app.setPostHandler() + app.SetPostHandler(postHandler) // initialize BaseApp app.SetInitChainer(app.InitChainer) @@ -345,15 +360,6 @@ func New( app.AppKeepers.CapabilityKeeper.Seal() } - // create the simulation manager and define the order of the modules for deterministic simulations - // - // no override for simulation for now, but we can add it in the future if needed - app.sm = module.NewSimulationManagerFromAppModules( - app.ModuleManager.Modules, - make(map[string]module.AppModuleSimulation, 0), - ) - app.sm.RegisterStoreDecoders() - return app } @@ -401,17 +407,6 @@ func (app *App) DefaultGenesis() map[string]json.RawMessage { return app.BasicModuleManager.DefaultGenesis(app.appCodec) } -func (app *App) setPostHandler() { - postHandler, err := posthandler.NewPostHandler( - posthandler.HandlerOptions{}, - ) - if err != nil { - panic(err) - } - - app.SetPostHandler(postHandler) -} - // Name returns the name of the App func (app *App) Name() string { return app.BaseApp.Name() @@ -485,35 +480,24 @@ func (app *App) InterfaceRegistry() types.InterfaceRegistry { return app.interfaceRegistry } -// InterfaceRegistry returns Juno's TxConfig +// TxConfig returns Juno's TxConfig func (app *App) TxConfig() client.TxConfig { return app.txConfig } -// GetSubspace returns a param subspace for a given module name. -// -// NOTE: Still used in ibc-go, wait for them to remove params usage before removing this. -func (app *App) GetSubspace(moduleName string) paramstypes.Subspace { - subspace, _ := app.AppKeepers.ParamsKeeper.GetSubspace(moduleName) - return subspace -} - -func (*App) RegisterSwaggerUI(apiSvr *api.Server) error { - staticSubDir, err := fs.Sub(docs.Docs, "static") - if err != nil { - return err - } - - staticServer := http.FileServer(http.FS(staticSubDir)) - apiSvr.Router.PathPrefix("/swagger/").Handler(http.StripPrefix("/swagger/", staticServer)) - - return nil -} - // RegisterAPIRoutes registers all application module routes with the provided // API server. func (app *App) RegisterAPIRoutes(apiSvr *api.Server, _ config.APIConfig) { clientCtx := apiSvr.ClientCtx + + // Register Scalar UI to
:/scalar + // Needs to be before registering the grpc-gateway routes + // so its not registered after a '*' wildcard route is set + // which for some reason overrides the scalar route. + if err := endpoints.RegisterScalarUI(apiSvr); err != nil { + panic(err) + } + // Register new tx routes from grpc-gateway. authtx.RegisterGRPCGatewayRoutes(clientCtx, apiSvr.GRPCGatewayRouter) @@ -526,8 +510,8 @@ func (app *App) RegisterAPIRoutes(apiSvr *api.Server, _ config.APIConfig) { // Register grpc-gateway routes for all modules. app.BasicModuleManager.RegisterGRPCGatewayRoutes(clientCtx, apiSvr.GRPCGatewayRouter) - // Register Swagger UI to
:/swagger - if err := app.RegisterSwaggerUI(apiSvr); err != nil { + // Register WebSocket routes for the stream module + if err := wsendpoints.RegisterRoutes(apiSvr, app.AppKeepers.StreamKeeper, app.homePath); err != nil { panic(err) } } @@ -535,6 +519,9 @@ func (app *App) RegisterAPIRoutes(apiSvr *api.Server, _ config.APIConfig) { // RegisterTxService implements the Application.RegisterTxService method. func (app *App) RegisterTxService(clientCtx client.Context) { authtx.RegisterTxService(app.GRPCQueryRouter(), clientCtx, app.Simulate, app.interfaceRegistry) + if err := app.AppKeepers.StreamKeeper.MethodRegistry().Refresh(app.BaseApp); err != nil { + panic(err) + } } // RegisterTendermintService implements the Application.RegisterTendermintService method. @@ -552,6 +539,38 @@ func (app *App) RegisterNodeService(clientCtx client.Context, cfg config.Config) nodeservice.RegisterNodeService(clientCtx, app.GRPCQueryRouter(), cfg) } +// SimulationManager implements the SimulationApp interface +func (app *App) SimulationManager() *module.SimulationManager { + return app.sm +} + +func (app *App) GetChainBondDenom() string { + d := "ujuno" + if strings.HasPrefix(app.ChainID(), "uni-") { + d = "ujunox" + } + return d +} + +// Close stops the stream dispatcher and performs cleanup and then shuts down the node +func (app *App) Close() error { + // Stop the stream dispatcher with timeout + done := make(chan struct{}) + go func() { + app.AppKeepers.StreamKeeper.StopDispatcher() + close(done) + }() + + select { + case <-done: + app.Logger().Info("Stream dispatcher stopped successfully") + case <-time.After(5 * time.Second): + app.Logger().Error("timeout waiting for stream dispatcher to stop") + } + + return app.BaseApp.Close() +} + // configure store loader that checks if version == upgradeHeight and applies store upgrades func (app *App) setupUpgradeStoreLoaders() { upgradeInfo, err := app.AppKeepers.UpgradeKeeper.ReadUpgradeInfoFromDisk() @@ -585,16 +604,3 @@ func (app *App) setupUpgradeHandlers() { ) } } - -// SimulationManager implements the SimulationApp interface -func (app *App) SimulationManager() *module.SimulationManager { - return app.sm -} - -func (app *App) GetChainBondDenom() string { - d := "ujuno" - if strings.HasPrefix(app.ChainID(), "uni-") { - d = "ujunox" - } - return d -} diff --git a/app/endpoints/openapi.yaml b/app/endpoints/openapi.yaml new file mode 100644 index 000000000..6c5a49af1 --- /dev/null +++ b/app/endpoints/openapi.yaml @@ -0,0 +1,10973 @@ +# Generated with protoc-gen-openapi +# https://github.com/google/gnostic/tree/master/cmd/protoc-gen-openapi +openapi: 3.0.3 +info: + title: Juno REST API + version: v30.0.0 + description: Query provides defines the gRPC querier service +paths: + /async-icq/v1/params: + get: + description: Params queries all parameters of the ICQ module. + operationId: ibc_ICQ_params + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryParamsResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: ICQ Params + tags: + - IBC + /cosmos/auth/v1beta1/account_info/{address}: + get: + description: AccountInfo queries account info which is common to all account types. + operationId: auth_account_info + parameters: + - name: address + in: path + description: address is the account address string. + required: true + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryAccountInfoResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Account Info + tags: + - Auth + /cosmos/auth/v1beta1/accounts: + get: + description: |- + Accounts returns all the existing accounts. + + When called from another module, this query might consume a high amount of + gas if the pagination field is incorrectly set. + operationId: auth_accounts + parameters: + - name: pagination.key + in: query + 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. + schema: + type: string + format: bytes + - name: pagination.offset + in: query + 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. + schema: + type: string + - name: pagination.limit + in: query + 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. + schema: + type: string + - name: pagination.countTotal + in: query + 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. + schema: + type: boolean + - name: pagination.reverse + in: query + description: reverse is set to true if results are to be returned in the descending order. + schema: + type: boolean + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryAccountsResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Accounts + tags: + - Auth + /cosmos/auth/v1beta1/accounts/{address}: + get: + description: Account returns account details based on address. + operationId: auth_account + parameters: + - name: address + in: path + description: address defines the address to query for. + required: true + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryAccountResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Account + tags: + - Auth + /cosmos/auth/v1beta1/address_by_id/{id}: + get: + description: AccountAddressByID returns account address based on account number. + operationId: auth_address + parameters: + - name: id + in: path + description: |- + Deprecated, use account_id instead + + 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. + required: true + schema: + type: string + - name: accountId + in: query + description: account_id is the account number of the address to be queried. + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryAccountAddressByIDResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Address + tags: + - Auth + /cosmos/auth/v1beta1/bech32: + get: + description: Bech32Prefix queries bech32Prefix + operationId: auth_bech32_prefix + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/Bech32PrefixResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Bech32 Prefix + tags: + - Auth + /cosmos/auth/v1beta1/bech32/{addressBytes}: + get: + description: AddressBytesToString converts Account Address bytes to string + operationId: auth_address_from_bytes + parameters: + - name: addressBytes + in: path + required: true + schema: + type: string + format: bytes + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/AddressBytesToStringResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Address From Bytes + tags: + - Auth + /cosmos/auth/v1beta1/bech32/{addressString}: + get: + description: AddressStringToBytes converts Address string to bytes + operationId: auth_address_from_string + parameters: + - name: addressString + in: path + required: true + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/AddressStringToBytesResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Address From String + tags: + - Auth + /cosmos/auth/v1beta1/module_accounts: + get: + description: ModuleAccounts returns all the existing module accounts. + operationId: auth_module_accounts + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryModuleAccountsResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Module Accounts + tags: + - Auth + /cosmos/auth/v1beta1/module_accounts/{name}: + get: + description: ModuleAccountByName returns the module account info by module name + operationId: auth_module_account + parameters: + - name: name + in: path + required: true + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryModuleAccountByNameResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Module Account + tags: + - Auth + /cosmos/auth/v1beta1/params: + get: + description: Params queries all parameters. + operationId: auth_params + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryParamsResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Params + tags: + - Auth + /cosmos/authz/v1beta1/grants: + get: + description: Returns list of `Authorization`, granted to the grantee by the granter. + operationId: authz_grants + parameters: + - name: granter + in: query + schema: + type: string + - name: grantee + in: query + schema: + type: string + - name: msgTypeUrl + in: query + description: Optional, msg_type_url, when set, will query only grants matching given msg type. + schema: + type: string + - name: pagination.key + in: query + 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. + schema: + type: string + format: bytes + - name: pagination.offset + in: query + 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. + schema: + type: string + - name: pagination.limit + in: query + 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. + schema: + type: string + - name: pagination.countTotal + in: query + 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. + schema: + type: boolean + - name: pagination.reverse + in: query + description: reverse is set to true if results are to be returned in the descending order. + schema: + type: boolean + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryGrantsResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Grants + tags: + - Authz + /cosmos/authz/v1beta1/grants/grantee/{grantee}: + get: + description: GranteeGrants returns a list of `GrantAuthorization` by grantee. + operationId: authz_grantee + parameters: + - name: grantee + in: path + required: true + schema: + type: string + - name: pagination.key + in: query + 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. + schema: + type: string + format: bytes + - name: pagination.offset + in: query + 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. + schema: + type: string + - name: pagination.limit + in: query + 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. + schema: + type: string + - name: pagination.countTotal + in: query + 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. + schema: + type: boolean + - name: pagination.reverse + in: query + description: reverse is set to true if results are to be returned in the descending order. + schema: + type: boolean + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryGranteeGrantsResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Grantee + tags: + - Authz + /cosmos/authz/v1beta1/grants/granter/{granter}: + get: + description: GranterGrants returns list of `GrantAuthorization`, granted by granter. + operationId: authz_granter + parameters: + - name: granter + in: path + required: true + schema: + type: string + - name: pagination.key + in: query + 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. + schema: + type: string + format: bytes + - name: pagination.offset + in: query + 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. + schema: + type: string + - name: pagination.limit + in: query + 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. + schema: + type: string + - name: pagination.countTotal + in: query + 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. + schema: + type: boolean + - name: pagination.reverse + in: query + description: reverse is set to true if results are to be returned in the descending order. + schema: + type: boolean + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryGranterGrantsResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Granter + tags: + - Authz + /cosmos/bank/v1beta1/balances/{address}: + get: + description: |- + AllBalances queries the balance of all coins for a single account. + + When called from another module, this query might consume a high amount of + gas if the pagination field is incorrectly set. + operationId: bank_balances + parameters: + - name: address + in: path + description: address is the address to query balances for. + required: true + schema: + type: string + - name: pagination.key + in: query + 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. + schema: + type: string + format: bytes + - name: pagination.offset + in: query + 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. + schema: + type: string + - name: pagination.limit + in: query + 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. + schema: + type: string + - name: pagination.countTotal + in: query + 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. + schema: + type: boolean + - name: pagination.reverse + in: query + description: reverse is set to true if results are to be returned in the descending order. + schema: + type: boolean + - name: resolveDenom + in: query + description: resolve_denom is the flag to resolve the denom into a human-readable form from the metadata. + schema: + type: boolean + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryAllBalancesResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Balances + tags: + - Bank + /cosmos/bank/v1beta1/balances/{address}/by_denom: + get: + description: Balance queries the balance of a single coin for a single account. + operationId: bank_by_denom + parameters: + - name: address + in: path + description: address is the address to query balances for. + required: true + schema: + type: string + - name: denom + in: query + description: denom is the coin denom to query balances for. + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryBalanceResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: By Denom + tags: + - Bank + /cosmos/bank/v1beta1/denom_owners/{denom}: + get: + description: |- + DenomOwners queries for all account addresses that own a particular token + denomination. + + When called from another module, this query might consume a high amount of + gas if the pagination field is incorrectly set. + operationId: bank_denom_owners + parameters: + - name: pagination.key + in: query + 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. + schema: + type: string + format: bytes + - name: pagination.offset + in: query + 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. + schema: + type: string + - name: pagination.limit + in: query + 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. + schema: + type: string + - name: pagination.countTotal + in: query + 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. + schema: + type: boolean + - name: pagination.reverse + in: query + description: reverse is set to true if results are to be returned in the descending order. + schema: + type: boolean + - name: denom + in: path + required: true + schema: + type: string + description: Query owners for a given token denom. + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryDenomOwnersResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Denom Owners + tags: + - Bank + /cosmos/bank/v1beta1/denom_owners_by_query: + get: + description: |- + DenomOwnersByQuery queries for all account addresses that own a particular token + denomination. + operationId: bank_denom_owners_by_query + parameters: + - name: denom + in: query + description: denom defines the coin denomination to query all account holders for. + schema: + type: string + - name: pagination.key + in: query + 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. + schema: + type: string + format: bytes + - name: pagination.offset + in: query + 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. + schema: + type: string + - name: pagination.limit + in: query + 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. + schema: + type: string + - name: pagination.countTotal + in: query + 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. + schema: + type: boolean + - name: pagination.reverse + in: query + description: reverse is set to true if results are to be returned in the descending order. + schema: + type: boolean + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryDenomOwnersByQueryResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Denom Owners By Query + tags: + - Bank + /cosmos/bank/v1beta1/denoms_metadata: + get: + description: |- + DenomsMetadata queries the client metadata for all registered coin + denominations. + operationId: bank_denoms_metadata + parameters: + - name: pagination.key + in: query + 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. + schema: + type: string + format: bytes + - name: pagination.offset + in: query + 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. + schema: + type: string + - name: pagination.limit + in: query + 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. + schema: + type: string + - name: pagination.countTotal + in: query + 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. + schema: + type: boolean + - name: pagination.reverse + in: query + description: reverse is set to true if results are to be returned in the descending order. + schema: + type: boolean + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryDenomsMetadataResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Denoms Metadata + tags: + - Bank + /cosmos/bank/v1beta1/denoms_metadata/{denom}: + get: + description: DenomMetadata queries the client metadata of a given coin denomination. + operationId: bank_denom_metadata + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryDenomMetadataResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + parameters: + - name: denom + in: path + required: true + schema: + type: string + description: Query metadata for a given token denom. + summary: Denom Metadata + tags: + - Bank + /cosmos/bank/v1beta1/denoms_metadata_by_query_string: + get: + description: DenomMetadataByQueryString queries the client metadata of a given coin denomination. + operationId: bank_denoms_metadata_by_query_string + parameters: + - name: denom + in: query + description: denom is the coin denom to query the metadata for. + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryDenomMetadataByQueryStringResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Denoms Metadata By Query String + tags: + - Bank + /cosmos/bank/v1beta1/params: + get: + description: Params queries the parameters of x/bank module. + operationId: bank_params + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryParamsResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Params + tags: + - Bank + /cosmos/bank/v1beta1/send_enabled: + get: + description: |- + SendEnabled queries for SendEnabled entries. + + This query only returns denominations that have specific SendEnabled settings. + Any denomination that does not have a specific setting will use the default + params.default_send_enabled, and will not be returned by this query. + operationId: bank_send_enabled + parameters: + - name: denoms + in: query + description: denoms is the specific denoms you want look up. Leave empty to get all entries. + schema: + type: array + items: + type: string + - name: pagination.key + in: query + 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. + schema: + type: string + format: bytes + - name: pagination.offset + in: query + 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. + schema: + type: string + - name: pagination.limit + in: query + 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. + schema: + type: string + - name: pagination.countTotal + in: query + 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. + schema: + type: boolean + - name: pagination.reverse + in: query + description: reverse is set to true if results are to be returned in the descending order. + schema: + type: boolean + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QuerySendEnabledResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Send Enabled + tags: + - Bank + /cosmos/bank/v1beta1/spendable_balances/{address}: + get: + description: |- + SpendableBalances queries the spendable balance of all coins for a single + account. + + When called from another module, this query might consume a high amount of + gas if the pagination field is incorrectly set. + operationId: bank_spendable_balances + parameters: + - name: address + in: path + description: address is the address to query spendable balances for. + required: true + schema: + type: string + - name: pagination.key + in: query + 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. + schema: + type: string + format: bytes + - name: pagination.offset + in: query + 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. + schema: + type: string + - name: pagination.limit + in: query + 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. + schema: + type: string + - name: pagination.countTotal + in: query + 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. + schema: + type: boolean + - name: pagination.reverse + in: query + description: reverse is set to true if results are to be returned in the descending order. + schema: + type: boolean + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QuerySpendableBalancesResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Spendable Balances + tags: + - Bank + /cosmos/bank/v1beta1/spendable_balances/{address}/by_denom: + get: + description: |- + SpendableBalanceByDenom queries the spendable balance of a single denom for + a single account. + + When called from another module, this query might consume a high amount of + gas if the pagination field is incorrectly set. + operationId: bank_spendable_balances_by_denom + parameters: + - name: address + in: path + description: address is the address to query balances for. + required: true + schema: + type: string + - name: denom + in: query + description: denom is the coin denom to query balances for. + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QuerySpendableBalanceByDenomResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Spendable Balances By Denom + tags: + - Bank + /cosmos/bank/v1beta1/supply: + get: + description: |- + TotalSupply queries the total supply of all coins. + + When called from another module, this query might consume a high amount of + gas if the pagination field is incorrectly set. + operationId: bank_supply + parameters: + - name: pagination.key + in: query + 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. + schema: + type: string + format: bytes + - name: pagination.offset + in: query + 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. + schema: + type: string + - name: pagination.limit + in: query + 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. + schema: + type: string + - name: pagination.countTotal + in: query + 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. + schema: + type: boolean + - name: pagination.reverse + in: query + description: reverse is set to true if results are to be returned in the descending order. + schema: + type: boolean + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryTotalSupplyResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Supply + tags: + - Bank + /cosmos/bank/v1beta1/supply/by_denom: + get: + description: |- + SupplyOf queries the supply of a single coin. + + When called from another module, this query might consume a high amount of + gas if the pagination field is incorrectly set. + operationId: bank_supply_by_denom + parameters: + - name: denom + in: query + description: denom is the coin denom to query balances for. + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QuerySupplyOfResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Supply By Denom + tags: + - Bank + /cosmos/base/node/v1beta1/config: + get: + description: Config queries for the operator configuration. + operationId: base_config + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/ConfigResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Config + tags: + - Base + /cosmos/base/node/v1beta1/status: + get: + description: Status queries for the node status. + operationId: base_status + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/StatusResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Status + tags: + - Base + /cosmos/base/tendermint/v1beta1/abci_query: + get: + description: |- + 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. + operationId: base_ABCI_query + parameters: + - name: data + in: query + schema: + type: string + format: bytes + - name: path + in: query + schema: + type: string + - name: height + in: query + schema: + type: string + - name: prove + in: query + schema: + type: boolean + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/ABCIQueryResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: ABCI Query + tags: + - Base + /cosmos/base/tendermint/v1beta1/blocks/latest: + get: + description: GetLatestBlock returns the latest block. + operationId: base_latest_block + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GetLatestBlockResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Latest Block + tags: + - Base + /cosmos/base/tendermint/v1beta1/blocks/{height}: + get: + description: GetBlockByHeight queries block for given height. + operationId: base_block + parameters: + - name: height + in: path + required: true + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GetBlockByHeightResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Block + tags: + - Base + /cosmos/base/tendermint/v1beta1/node_info: + get: + description: GetNodeInfo queries the current node info. + operationId: base_node_info + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GetNodeInfoResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Node Info + tags: + - Base + /cosmos/base/tendermint/v1beta1/syncing: + get: + description: GetSyncing queries node syncing. + operationId: base_syncing + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GetSyncingResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Syncing + tags: + - Base + /cosmos/base/tendermint/v1beta1/validatorsets/latest: + get: + description: GetLatestValidatorSet queries latest validator-set. + operationId: base_current_validators + parameters: + - name: pagination.key + in: query + 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. + schema: + type: string + format: bytes + - name: pagination.offset + in: query + 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. + schema: + type: string + - name: pagination.limit + in: query + 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. + schema: + type: string + - name: pagination.countTotal + in: query + 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. + schema: + type: boolean + - name: pagination.reverse + in: query + description: reverse is set to true if results are to be returned in the descending order. + schema: + type: boolean + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GetLatestValidatorSetResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Current Validators + tags: + - Base + /cosmos/base/tendermint/v1beta1/validatorsets/{height}: + get: + description: GetValidatorSetByHeight queries validator-set at a given height. + operationId: base_validators_at_height + parameters: + - name: height + in: path + required: true + schema: + type: string + - name: pagination.key + in: query + 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. + schema: + type: string + format: bytes + - name: pagination.offset + in: query + 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. + schema: + type: string + - name: pagination.limit + in: query + 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. + schema: + type: string + - name: pagination.countTotal + in: query + 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. + schema: + type: boolean + - name: pagination.reverse + in: query + description: reverse is set to true if results are to be returned in the descending order. + schema: + type: boolean + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GetValidatorSetByHeightResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Validators At Height + tags: + - Base + /cosmos/consensus/v1/params: + get: + description: Params queries the parameters of x/consensus module. + operationId: consensus_params + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryParamsResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Params + tags: + - Consensus + /cosmos/distribution/v1beta1/community_pool: + get: + description: |- + CommunityPool queries the community pool coins. + + WARNING: This query will fail if an external community pool is used. + operationId: distribution_community_pool + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryCommunityPoolResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Community Pool + tags: + - Distribution + /cosmos/distribution/v1beta1/delegators/{delegatorAddress}/rewards: + get: + description: |- + DelegationTotalRewards queries the total rewards accrued by each + validator. + operationId: distribution_rewards + parameters: + - name: delegatorAddress + in: path + description: delegator_address defines the delegator address to query for. + required: true + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryDelegationTotalRewardsResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Rewards + tags: + - Distribution + /cosmos/distribution/v1beta1/delegators/{delegatorAddress}/rewards/{validatorAddress}: + get: + description: DelegationRewards queries the total rewards accrued by a delegation. + operationId: distribution_rewards_by_validator + parameters: + - name: delegatorAddress + in: path + description: delegator_address defines the delegator address to query for. + required: true + schema: + type: string + - name: validatorAddress + in: path + description: validator_address defines the validator address to query for. + required: true + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryDelegationRewardsResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Rewards By Validator + tags: + - Distribution + /cosmos/distribution/v1beta1/delegators/{delegatorAddress}/validators: + get: + description: DelegatorValidators queries the validators of a delegator. + operationId: distribution_validators + parameters: + - name: delegatorAddress + in: path + description: delegator_address defines the delegator address to query for. + required: true + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryDelegatorValidatorsResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Validators + tags: + - Distribution + /cosmos/distribution/v1beta1/delegators/{delegatorAddress}/withdraw_address: + get: + description: DelegatorWithdrawAddress queries withdraw address of a delegator. + operationId: distribution_withdraw_address + parameters: + - name: delegatorAddress + in: path + description: delegator_address defines the delegator address to query for. + required: true + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryDelegatorWithdrawAddressResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Withdraw Address + tags: + - Distribution + /cosmos/distribution/v1beta1/params: + get: + description: Params queries params of the distribution module. + operationId: distribution_params + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryParamsResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Params + tags: + - Distribution + /cosmos/distribution/v1beta1/validators/{validatorAddress}: + get: + description: ValidatorDistributionInfo queries validator commission and self-delegation rewards for validator + operationId: distribution_validator_rewards + parameters: + - name: validatorAddress + in: path + description: validator_address defines the validator address to query for. + required: true + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryValidatorDistributionInfoResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Validator Rewards + tags: + - Distribution + /cosmos/distribution/v1beta1/validators/{validatorAddress}/commission: + get: + description: ValidatorCommission queries accumulated commission for a validator. + operationId: distribution_commission + parameters: + - name: validatorAddress + in: path + description: validator_address defines the validator address to query for. + required: true + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryValidatorCommissionResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Commission + tags: + - Distribution + /cosmos/distribution/v1beta1/validators/{validatorAddress}/outstanding_rewards: + get: + description: ValidatorOutstandingRewards queries rewards of a validator address. + operationId: distribution_outstanding_rewards + parameters: + - name: validatorAddress + in: path + description: validator_address defines the validator address to query for. + required: true + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryValidatorOutstandingRewardsResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Outstanding Rewards + tags: + - Distribution + /cosmos/distribution/v1beta1/validators/{validatorAddress}/slashes: + get: + description: ValidatorSlashes queries slash events of a validator. + operationId: distribution_slashes + parameters: + - name: validatorAddress + in: path + description: validator_address defines the validator address to query for. + required: true + schema: + type: string + - name: startingHeight + in: query + description: starting_height defines the optional starting height to query the slashes. + schema: + type: string + - name: endingHeight + in: query + description: starting_height defines the optional ending height to query the slashes. + schema: + type: string + - name: pagination.key + in: query + 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. + schema: + type: string + format: bytes + - name: pagination.offset + in: query + 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. + schema: + type: string + - name: pagination.limit + in: query + 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. + schema: + type: string + - name: pagination.countTotal + in: query + 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. + schema: + type: boolean + - name: pagination.reverse + in: query + description: reverse is set to true if results are to be returned in the descending order. + schema: + type: boolean + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryValidatorSlashesResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Slashes + tags: + - Distribution + /cosmos/evidence/v1beta1/evidence: + get: + description: AllEvidence queries all evidence. + operationId: evidence_evidences + parameters: + - name: pagination.key + in: query + 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. + schema: + type: string + format: bytes + - name: pagination.offset + in: query + 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. + schema: + type: string + - name: pagination.limit + in: query + 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. + schema: + type: string + - name: pagination.countTotal + in: query + 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. + schema: + type: boolean + - name: pagination.reverse + in: query + description: reverse is set to true if results are to be returned in the descending order. + schema: + type: boolean + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryAllEvidenceResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Evidences + tags: + - Evidence + /cosmos/evidence/v1beta1/evidence/{hash}: + get: + description: Evidence queries evidence based on evidence hash. + operationId: evidence_evidence + parameters: + - name: hash + in: path + description: hash defines the evidence hash of the requested evidence. + required: true + schema: + type: string + - name: evidenceHash + in: query + description: |- + evidence_hash defines the hash of the requested evidence. + Deprecated: Use hash, a HEX encoded string, instead. + schema: + type: string + format: bytes + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryEvidenceResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Evidence + tags: + - Evidence + /cosmos/feegrant/v1beta1/allowance/{granter}/{grantee}: + get: + description: Allowance returns granted allwance to the grantee by the granter. + operationId: feegrant_allowance + parameters: + - name: granter + in: path + description: granter is the address of the user granting an allowance of their funds. + required: true + schema: + type: string + - name: grantee + in: path + description: grantee is the address of the user being granted an allowance of another user's funds. + required: true + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryAllowanceResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Allowance + tags: + - Feegrant + /cosmos/feegrant/v1beta1/allowances/{grantee}: + get: + description: Allowances returns all the grants for the given grantee address. + operationId: feegrant_allowances + parameters: + - name: grantee + in: path + required: true + schema: + type: string + - name: pagination.key + in: query + 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. + schema: + type: string + format: bytes + - name: pagination.offset + in: query + 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. + schema: + type: string + - name: pagination.limit + in: query + 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. + schema: + type: string + - name: pagination.countTotal + in: query + 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. + schema: + type: boolean + - name: pagination.reverse + in: query + description: reverse is set to true if results are to be returned in the descending order. + schema: + type: boolean + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryAllowancesResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Allowances + tags: + - Feegrant + /cosmos/feegrant/v1beta1/issued/{granter}: + get: + description: AllowancesByGranter returns all the grants given by an address + operationId: feegrant_issued + parameters: + - name: granter + in: path + required: true + schema: + type: string + - name: pagination.key + in: query + 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. + schema: + type: string + format: bytes + - name: pagination.offset + in: query + 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. + schema: + type: string + - name: pagination.limit + in: query + 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. + schema: + type: string + - name: pagination.countTotal + in: query + 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. + schema: + type: boolean + - name: pagination.reverse + in: query + description: reverse is set to true if results are to be returned in the descending order. + schema: + type: boolean + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryAllowancesByGranterResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Issued + tags: + - Feegrant + /cosmos/gov/v1/constitution: + get: + description: Constitution queries the chain's constitution. + operationId: gov_constitution + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryConstitutionResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Constitution + tags: + - Gov + /cosmos/gov/v1/params/{paramsType}: + get: + description: Params queries all parameters of the gov module. + operationId: gov_params + parameters: + - name: paramsType + in: path + description: |- + params_type defines which parameters to query for, can be one of "voting", + "tallying" or "deposit". + required: true + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryParamsResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Params + tags: + - Gov + /cosmos/gov/v1/proposals: + get: + description: Proposals queries all proposals based on given status. + operationId: gov_proposals + parameters: + - name: proposalStatus + in: query + description: proposal_status defines the status of the proposals. + schema: + type: integer + format: enum + - name: voter + in: query + description: voter defines the voter address for the proposals. + schema: + type: string + - name: depositor + in: query + description: depositor defines the deposit addresses from the proposals. + schema: + type: string + - name: pagination.key + in: query + 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. + schema: + type: string + format: bytes + - name: pagination.offset + in: query + 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. + schema: + type: string + - name: pagination.limit + in: query + 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. + schema: + type: string + - name: pagination.countTotal + in: query + 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. + schema: + type: boolean + - name: pagination.reverse + in: query + description: reverse is set to true if results are to be returned in the descending order. + schema: + type: boolean + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryProposalsResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Proposals + tags: + - Gov + /cosmos/gov/v1/proposals/{proposalId}: + get: + description: Proposal queries proposal details based on ProposalID. + operationId: gov_proposal + parameters: + - name: proposalId + in: path + description: proposal_id defines the unique id of the proposal. + required: true + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryProposalResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Proposal + tags: + - Gov + /cosmos/gov/v1/proposals/{proposalId}/deposits: + get: + description: Deposits queries all deposits of a single proposal. + operationId: gov_deposits + parameters: + - name: proposalId + in: path + description: proposal_id defines the unique id of the proposal. + required: true + schema: + type: string + - name: pagination.key + in: query + 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. + schema: + type: string + format: bytes + - name: pagination.offset + in: query + 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. + schema: + type: string + - name: pagination.limit + in: query + 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. + schema: + type: string + - name: pagination.countTotal + in: query + 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. + schema: + type: boolean + - name: pagination.reverse + in: query + description: reverse is set to true if results are to be returned in the descending order. + schema: + type: boolean + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryDepositsResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Deposits + tags: + - Gov + /cosmos/gov/v1/proposals/{proposalId}/deposits/{depositor}: + get: + description: Deposit queries single deposit information based on proposalID, depositAddr. + operationId: gov_proposal_deposit_by_depositor + parameters: + - name: proposalId + in: path + description: proposal_id defines the unique id of the proposal. + required: true + schema: + type: string + - name: depositor + in: path + description: depositor defines the deposit addresses from the proposals. + required: true + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryDepositResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Proposal Deposit By Depositor + tags: + - Gov + /cosmos/gov/v1/proposals/{proposalId}/tally: + get: + description: TallyResult queries the tally of a proposal vote. + operationId: gov_tally + parameters: + - name: proposalId + in: path + description: proposal_id defines the unique id of the proposal. + required: true + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryTallyResultResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Tally + tags: + - Gov + /cosmos/gov/v1/proposals/{proposalId}/votes: + get: + description: Votes queries votes of a given proposal. + operationId: gov_votes + parameters: + - name: proposalId + in: path + description: proposal_id defines the unique id of the proposal. + required: true + schema: + type: string + - name: pagination.key + in: query + 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. + schema: + type: string + format: bytes + - name: pagination.offset + in: query + 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. + schema: + type: string + - name: pagination.limit + in: query + 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. + schema: + type: string + - name: pagination.countTotal + in: query + 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. + schema: + type: boolean + - name: pagination.reverse + in: query + description: reverse is set to true if results are to be returned in the descending order. + schema: + type: boolean + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryVotesResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Votes + tags: + - Gov + /cosmos/gov/v1/proposals/{proposalId}/votes/{voter}: + get: + description: Vote queries voted information based on proposalID, voterAddr. + operationId: gov_vote_by_voter + parameters: + - name: proposalId + in: path + description: proposal_id defines the unique id of the proposal. + required: true + schema: + type: string + - name: voter + in: path + description: voter defines the voter address for the proposals. + required: true + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryVoteResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Vote By Voter + tags: + - Gov + /cosmos/gov/v1beta1/params/{paramsType}: + get: + description: Params queries all parameters of the gov module. + operationId: gov_v1beta1_params + parameters: + - name: paramsType + in: path + description: |- + params_type defines which parameters to query for, can be one of "voting", + "tallying" or "deposit". + required: true + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryParamsResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: V1beta1 Params + tags: + - Gov + /cosmos/gov/v1beta1/proposals: + get: + description: Proposals queries all proposals based on given status. + operationId: gov_v1beta1_proposals + parameters: + - name: proposalStatus + in: query + description: proposal_status defines the status of the proposals. + schema: + type: integer + format: enum + - name: voter + in: query + description: voter defines the voter address for the proposals. + schema: + type: string + - name: depositor + in: query + description: depositor defines the deposit addresses from the proposals. + schema: + type: string + - name: pagination.key + in: query + 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. + schema: + type: string + format: bytes + - name: pagination.offset + in: query + 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. + schema: + type: string + - name: pagination.limit + in: query + 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. + schema: + type: string + - name: pagination.countTotal + in: query + 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. + schema: + type: boolean + - name: pagination.reverse + in: query + description: reverse is set to true if results are to be returned in the descending order. + schema: + type: boolean + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryProposalsResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: V1beta1 Proposals + tags: + - Gov + /cosmos/gov/v1beta1/proposals/{proposalId}: + get: + description: Proposal queries proposal details based on ProposalID. + operationId: gov_v1beta1_proposal + parameters: + - name: proposalId + in: path + description: proposal_id defines the unique id of the proposal. + required: true + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryProposalResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: V1beta1 Proposal + tags: + - Gov + /cosmos/gov/v1beta1/proposals/{proposalId}/deposits: + get: + description: Deposits queries all deposits of a single proposal. + operationId: gov_v1beta1_proposal_deposits + parameters: + - name: proposalId + in: path + description: proposal_id defines the unique id of the proposal. + required: true + schema: + type: string + - name: pagination.key + in: query + 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. + schema: + type: string + format: bytes + - name: pagination.offset + in: query + 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. + schema: + type: string + - name: pagination.limit + in: query + 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. + schema: + type: string + - name: pagination.countTotal + in: query + 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. + schema: + type: boolean + - name: pagination.reverse + in: query + description: reverse is set to true if results are to be returned in the descending order. + schema: + type: boolean + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryDepositsResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: V1beta1 Proposal Deposits + tags: + - Gov + /cosmos/gov/v1beta1/proposals/{proposalId}/deposits/{depositor}: + get: + description: Deposit queries single deposit information based on proposalID, depositor address. + operationId: gov_v1beta1_proposal_deposit_by_depositor + parameters: + - name: proposalId + in: path + description: proposal_id defines the unique id of the proposal. + required: true + schema: + type: string + - name: depositor + in: path + description: depositor defines the deposit addresses from the proposals. + required: true + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryDepositResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: V1beta1 Proposal Deposit By Depositor + tags: + - Gov + /cosmos/gov/v1beta1/proposals/{proposalId}/tally: + get: + description: TallyResult queries the tally of a proposal vote. + operationId: gov_v1beta1_proposal_tally + parameters: + - name: proposalId + in: path + description: proposal_id defines the unique id of the proposal. + required: true + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryTallyResultResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: V1beta1 Proposal Tally + tags: + - Gov + /cosmos/gov/v1beta1/proposals/{proposalId}/votes: + get: + description: Votes queries votes of a given proposal. + operationId: gov_v1beta1_votes + parameters: + - name: proposalId + in: path + description: proposal_id defines the unique id of the proposal. + required: true + schema: + type: string + - name: pagination.key + in: query + 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. + schema: + type: string + format: bytes + - name: pagination.offset + in: query + 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. + schema: + type: string + - name: pagination.limit + in: query + 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. + schema: + type: string + - name: pagination.countTotal + in: query + 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. + schema: + type: boolean + - name: pagination.reverse + in: query + description: reverse is set to true if results are to be returned in the descending order. + schema: + type: boolean + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryVotesResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: V1beta1 Votes + tags: + - Gov + /cosmos/gov/v1beta1/proposals/{proposalId}/votes/{voter}: + get: + description: Vote queries voted information based on proposalID, voterAddr. + operationId: gov_v1beta1_vote_by_voter + parameters: + - name: proposalId + in: path + description: proposal_id defines the unique id of the proposal. + required: true + schema: + type: string + - name: voter + in: path + description: voter defines the voter address for the proposals. + required: true + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryVoteResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: V1beta1 Vote By Voter + tags: + - Gov + /cosmos/mint/v1beta1/annual_provisions: + get: + description: AnnualProvisions current minting annual provisions value. + operationId: mint_annual_provisions + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryAnnualProvisionsResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Annual Provisions + tags: + - Mint + /cosmos/mint/v1beta1/inflation: + get: + description: Inflation returns the current minting inflation value. + operationId: mint_inflation + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryInflationResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Inflation + tags: + - Mint + /cosmos/mint/v1beta1/params: + get: + description: Params returns the total set of minting parameters. + operationId: mint_params + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryParamsResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Params + tags: + - Mint + /cosmos/mint/v1beta1/target_supply: + get: + description: TargetSupply current target supply for this phase value. + operationId: mint_target_supply + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryTargetSupplyResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Target Supply + tags: + - Mint + /cosmos/slashing/v1beta1/params: + get: + description: Params queries the parameters of slashing module + operationId: slashing_params + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryParamsResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Params + tags: + - Slashing + /cosmos/slashing/v1beta1/signing_infos: + get: + description: SigningInfos queries signing info of all validators + operationId: slashing_signing_infos + parameters: + - name: pagination.key + in: query + 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. + schema: + type: string + format: bytes + - name: pagination.offset + in: query + 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. + schema: + type: string + - name: pagination.limit + in: query + 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. + schema: + type: string + - name: pagination.countTotal + in: query + 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. + schema: + type: boolean + - name: pagination.reverse + in: query + description: reverse is set to true if results are to be returned in the descending order. + schema: + type: boolean + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QuerySigningInfosResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Signing Infos + tags: + - Slashing + /cosmos/slashing/v1beta1/signing_infos/{consAddress}: + get: + description: SigningInfo queries the signing info of given cons address + operationId: slashing_signing_info + parameters: + - name: consAddress + in: path + description: cons_address is the address to query signing info of + required: true + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QuerySigningInfoResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Signing Info + tags: + - Slashing + /cosmos/staking/v1beta1/delegations/{delegatorAddr}: + get: + description: |- + DelegatorDelegations queries all delegations of a given delegator address. + + When called from another module, this query might consume a high amount of + gas if the pagination field is incorrectly set. + operationId: staking_delegations + parameters: + - name: delegatorAddr + in: path + description: delegator_addr defines the delegator address to query for. + required: true + schema: + type: string + - name: pagination.key + in: query + 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. + schema: + type: string + format: bytes + - name: pagination.offset + in: query + 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. + schema: + type: string + - name: pagination.limit + in: query + 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. + schema: + type: string + - name: pagination.countTotal + in: query + 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. + schema: + type: boolean + - name: pagination.reverse + in: query + description: reverse is set to true if results are to be returned in the descending order. + schema: + type: boolean + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryDelegatorDelegationsResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Delegations + tags: + - Staking + /cosmos/staking/v1beta1/delegators/{delegatorAddr}/redelegations: + get: + description: |- + Redelegations queries redelegations of given address. + + When called from another module, this query might consume a high amount of + gas if the pagination field is incorrectly set. + operationId: staking_redelegations + parameters: + - name: delegatorAddr + in: path + description: delegator_addr defines the delegator address to query for. + required: true + schema: + type: string + - name: srcValidatorAddr + in: query + description: src_validator_addr defines the validator address to redelegate from. + schema: + type: string + - name: dstValidatorAddr + in: query + description: dst_validator_addr defines the validator address to redelegate to. + schema: + type: string + - name: pagination.key + in: query + 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. + schema: + type: string + format: bytes + - name: pagination.offset + in: query + 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. + schema: + type: string + - name: pagination.limit + in: query + 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. + schema: + type: string + - name: pagination.countTotal + in: query + 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. + schema: + type: boolean + - name: pagination.reverse + in: query + description: reverse is set to true if results are to be returned in the descending order. + schema: + type: boolean + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryRedelegationsResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Redelegations + tags: + - Staking + /cosmos/staking/v1beta1/delegators/{delegatorAddr}/unbonding_delegations: + get: + description: |- + DelegatorUnbondingDelegations queries all unbonding delegations of a given + delegator address. + + When called from another module, this query might consume a high amount of + gas if the pagination field is incorrectly set. + operationId: staking_unbonding_delegations + parameters: + - name: delegatorAddr + in: path + description: delegator_addr defines the delegator address to query for. + required: true + schema: + type: string + - name: pagination.key + in: query + 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. + schema: + type: string + format: bytes + - name: pagination.offset + in: query + 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. + schema: + type: string + - name: pagination.limit + in: query + 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. + schema: + type: string + - name: pagination.countTotal + in: query + 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. + schema: + type: boolean + - name: pagination.reverse + in: query + description: reverse is set to true if results are to be returned in the descending order. + schema: + type: boolean + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryDelegatorUnbondingDelegationsResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Unbonding Delegations + tags: + - Staking + /cosmos/staking/v1beta1/delegators/{delegatorAddr}/validators: + get: + description: |- + DelegatorValidators queries all validators info for given delegator + address. + + When called from another module, this query might consume a high amount of + gas if the pagination field is incorrectly set. + operationId: staking_validators + parameters: + - name: delegatorAddr + in: path + description: delegator_addr defines the delegator address to query for. + required: true + schema: + type: string + - name: pagination.key + in: query + 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. + schema: + type: string + format: bytes + - name: pagination.offset + in: query + 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. + schema: + type: string + - name: pagination.limit + in: query + 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. + schema: + type: string + - name: pagination.countTotal + in: query + 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. + schema: + type: boolean + - name: pagination.reverse + in: query + description: reverse is set to true if results are to be returned in the descending order. + schema: + type: boolean + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryDelegatorValidatorsResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Validators + tags: + - Staking + /cosmos/staking/v1beta1/delegators/{delegatorAddr}/validators/{validatorAddr}: + get: + description: |- + DelegatorValidator queries validator info for given delegator validator + pair. + operationId: staking_validator_by_delegator + parameters: + - name: delegatorAddr + in: path + description: delegator_addr defines the delegator address to query for. + required: true + schema: + type: string + - name: validatorAddr + in: path + description: validator_addr defines the validator address to query for. + required: true + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryDelegatorValidatorResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Validator By Delegator + tags: + - Staking + /cosmos/staking/v1beta1/historical_info/{height}: + get: + description: HistoricalInfo queries the historical info for given height. + operationId: staking_historical_info + parameters: + - name: height + in: path + description: height defines at which height to query the historical info. + required: true + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryHistoricalInfoResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Historical Info + tags: + - Staking + /cosmos/staking/v1beta1/params: + get: + description: Parameters queries the staking parameters. + operationId: staking_params + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryParamsResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Params + tags: + - Staking + /cosmos/staking/v1beta1/pool: + get: + description: Pool queries the pool info. + operationId: staking_pool + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryPoolResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Pool + tags: + - Staking + /cosmos/staking/v1beta1/validators: + get: + description: |- + Validators queries all validators that match the given status. + + When called from another module, this query might consume a high amount of + gas if the pagination field is incorrectly set. + operationId: staking_validators + parameters: + - name: status + in: query + description: status enables to query for validators matching a given status. + schema: + type: string + - name: pagination.key + in: query + 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. + schema: + type: string + format: bytes + - name: pagination.offset + in: query + 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. + schema: + type: string + - name: pagination.limit + in: query + 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. + schema: + type: string + - name: pagination.countTotal + in: query + 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. + schema: + type: boolean + - name: pagination.reverse + in: query + description: reverse is set to true if results are to be returned in the descending order. + schema: + type: boolean + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryValidatorsResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Validators + tags: + - Staking + /cosmos/staking/v1beta1/validators/{validatorAddr}: + get: + description: Validator queries validator info for given validator address. + operationId: staking_validator + parameters: + - name: validatorAddr + in: path + description: validator_addr defines the validator address to query for. + required: true + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryValidatorResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Validator + tags: + - Staking + /cosmos/staking/v1beta1/validators/{validatorAddr}/delegations: + get: + description: |- + ValidatorDelegations queries delegate info for given validator. + + When called from another module, this query might consume a high amount of + gas if the pagination field is incorrectly set. + operationId: staking_delegations + parameters: + - name: validatorAddr + in: path + description: validator_addr defines the validator address to query for. + required: true + schema: + type: string + - name: pagination.key + in: query + 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. + schema: + type: string + format: bytes + - name: pagination.offset + in: query + 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. + schema: + type: string + - name: pagination.limit + in: query + 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. + schema: + type: string + - name: pagination.countTotal + in: query + 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. + schema: + type: boolean + - name: pagination.reverse + in: query + description: reverse is set to true if results are to be returned in the descending order. + schema: + type: boolean + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryValidatorDelegationsResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Delegations + tags: + - Staking + /cosmos/staking/v1beta1/validators/{validatorAddr}/delegations/{delegatorAddr}: + get: + description: Delegation queries delegate info for given validator delegator pair. + operationId: staking_validator_delegation_by_delegator + parameters: + - name: validatorAddr + in: path + description: validator_addr defines the validator address to query for. + required: true + schema: + type: string + - name: delegatorAddr + in: path + description: delegator_addr defines the delegator address to query for. + required: true + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryDelegationResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Validator Delegation By Delegator + tags: + - Staking + /cosmos/staking/v1beta1/validators/{validatorAddr}/delegations/{delegatorAddr}/unbonding_delegation: + get: + description: |- + UnbondingDelegation queries unbonding info for given validator delegator + pair. + operationId: staking_unbonding_delegation + parameters: + - name: validatorAddr + in: path + description: validator_addr defines the validator address to query for. + required: true + schema: + type: string + - name: delegatorAddr + in: path + description: delegator_addr defines the delegator address to query for. + required: true + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryUnbondingDelegationResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Unbonding Delegation + tags: + - Staking + /cosmos/staking/v1beta1/validators/{validatorAddr}/unbonding_delegations: + get: + description: |- + ValidatorUnbondingDelegations queries unbonding delegations of a validator. + + When called from another module, this query might consume a high amount of + gas if the pagination field is incorrectly set. + operationId: staking_validator_unbonding_delegations + parameters: + - name: validatorAddr + in: path + description: validator_addr defines the validator address to query for. + required: true + schema: + type: string + - name: pagination.key + in: query + 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. + schema: + type: string + format: bytes + - name: pagination.offset + in: query + 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. + schema: + type: string + - name: pagination.limit + in: query + 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. + schema: + type: string + - name: pagination.countTotal + in: query + 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. + schema: + type: boolean + - name: pagination.reverse + in: query + description: reverse is set to true if results are to be returned in the descending order. + schema: + type: boolean + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryValidatorUnbondingDelegationsResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Validator Unbonding Delegations + tags: + - Staking + /cosmos/tx/v1beta1/decode: + post: + description: TxDecode decodes the transaction. + operationId: tx_decode + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/TxDecodeRequest' + required: true + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/TxDecodeResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Decode + tags: + - Tx + /cosmos/tx/v1beta1/decode/amino: + post: + description: TxDecodeAmino decodes an Amino transaction from encoded bytes to JSON. + operationId: tx_amino + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/TxDecodeAminoRequest' + required: true + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/TxDecodeAminoResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Amino + tags: + - Tx + /cosmos/tx/v1beta1/encode: + post: + description: TxEncode encodes the transaction. + operationId: tx_encode + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/TxEncodeRequest' + required: true + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/TxEncodeResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Encode + tags: + - Tx + /cosmos/tx/v1beta1/encode/amino: + post: + description: TxEncodeAmino encodes an Amino transaction from JSON to encoded bytes. + operationId: tx_amino + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/TxEncodeAminoRequest' + required: true + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/TxEncodeAminoResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Amino + tags: + - Tx + /cosmos/tx/v1beta1/simulate: + post: + description: Simulate simulates executing a transaction for estimating gas usage. + operationId: tx_simulate + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/SimulateRequest' + required: true + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/SimulateResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Simulate + tags: + - Tx + /cosmos/tx/v1beta1/txs: + get: + description: GetTxsEvent fetches txs by event. + operationId: tx_txs + parameters: + - name: events + in: query + description: |- + events is the list of transaction event type. + Deprecated post v0.47.x: use query instead, which should contain a valid + events query. + schema: + type: array + items: + type: string + - name: pagination.key + in: query + 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. + schema: + type: string + format: bytes + - name: pagination.offset + in: query + 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. + schema: + type: string + - name: pagination.limit + in: query + 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. + schema: + type: string + - name: pagination.countTotal + in: query + 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. + schema: + type: boolean + - name: pagination.reverse + in: query + description: reverse is set to true if results are to be returned in the descending order. + schema: + type: boolean + - name: orderBy + in: query + schema: + type: integer + format: enum + - name: page + in: query + description: |- + page is the page number to query, starts at 1. If not provided, will + default to first page. + schema: + type: string + - name: limit + in: query + 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. + schema: + type: string + - name: query + in: query + description: |- + query defines the transaction event query that is proxied to Tendermint's + TxSearch RPC method. The query must be valid. + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GetTxsEventResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Txs + tags: + - Tx + post: + description: BroadcastTx broadcast transaction. + operationId: tx_txs + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/BroadcastTxRequest' + required: true + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/BroadcastTxResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Txs + tags: + - Tx + /cosmos/tx/v1beta1/txs/block/{height}: + get: + description: GetBlockWithTxs fetches a block with decoded txs. + operationId: tx_get_txs_by_block_height + parameters: + - name: height + in: path + description: height is the height of the block to query. + required: true + schema: + type: string + - name: pagination.key + in: query + 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. + schema: + type: string + format: bytes + - name: pagination.offset + in: query + 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. + schema: + type: string + - name: pagination.limit + in: query + 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. + schema: + type: string + - name: pagination.countTotal + in: query + 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. + schema: + type: boolean + - name: pagination.reverse + in: query + description: reverse is set to true if results are to be returned in the descending order. + schema: + type: boolean + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GetBlockWithTxsResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Get Txs By Block Height + tags: + - Tx + /cosmos/tx/v1beta1/txs/{hash}: + get: + description: GetTx fetches a tx by hash. + operationId: tx_get_tx_by_hash + parameters: + - name: hash + in: path + description: hash is the tx hash to query, encoded as a hex string. + required: true + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GetTxResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Get Tx By Hash + tags: + - Tx + /cosmos/upgrade/v1beta1/applied_plan/{name}: + get: + description: AppliedPlan queries a previously applied upgrade plan by its name. + operationId: upgrade_applied_plan + parameters: + - name: name + in: path + description: name is the name of the applied plan to query for. + required: true + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryAppliedPlanResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Applied Plan + tags: + - Upgrade + /cosmos/upgrade/v1beta1/authority: + get: + description: Returns the account with authority to conduct upgrades + operationId: upgrade_authority + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryAuthorityResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Authority + tags: + - Upgrade + /cosmos/upgrade/v1beta1/current_plan: + get: + description: CurrentPlan queries the current upgrade plan. + operationId: upgrade_current_plan + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryCurrentPlanResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Current Plan + tags: + - Upgrade + /cosmos/upgrade/v1beta1/module_versions: + get: + description: ModuleVersions queries the list of module versions from state. + operationId: upgrade_module_versions + parameters: + - name: moduleName + in: query + 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 + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryModuleVersionsResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Module Versions + tags: + - Upgrade + /cosmos/upgrade/v1beta1/upgraded_consensus_state/{lastHeight}: + get: + description: |- + 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: upgrade_upgraded_consensus_state + parameters: + - name: lastHeight + in: path + description: |- + last height of the current chain must be sent in request + as this is the height under which next consensus state is stored + required: true + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryUpgradedConsensusStateResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Upgraded Consensus State + tags: + - Upgrade + /cosmwasm/wasm/v1/code: + get: + description: Codes gets the metadata for all stored wasm codes + operationId: wasm_code + parameters: + - name: pagination.key + in: query + 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. + schema: + type: string + format: bytes + - name: pagination.offset + in: query + 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. + schema: + type: string + - name: pagination.limit + in: query + 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. + schema: + type: string + - name: pagination.countTotal + in: query + 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. + schema: + type: boolean + - name: pagination.reverse + in: query + description: |- + reverse is set to true if results are to be returned in the descending order. + + Since: cosmos-sdk 0.43 + schema: + type: boolean + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryCodesResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Code + tags: + - CosmWasm + /cosmwasm/wasm/v1/code-info/{codeId}: + get: + description: CodeInfo gets the metadata for a single wasm code + operationId: wasm_code_info + parameters: + - name: codeId + in: path + required: true + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryCodeInfoResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Code Info + tags: + - CosmWasm + /cosmwasm/wasm/v1/code/{codeId}: + get: + description: Code gets the binary code and metadata for a single wasm code + operationId: wasm_code + parameters: + - name: codeId + in: path + required: true + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryCodeResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Code + tags: + - CosmWasm + /cosmwasm/wasm/v1/code/{codeId}/contracts: + get: + description: ContractsByCode lists all smart contracts for a code id + operationId: wasm_contracts + parameters: + - name: codeId + in: path + required: true + schema: + type: string + - name: pagination.key + in: query + 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. + schema: + type: string + format: bytes + - name: pagination.offset + in: query + 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. + schema: + type: string + - name: pagination.limit + in: query + 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. + schema: + type: string + - name: pagination.countTotal + in: query + 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. + schema: + type: boolean + - name: pagination.reverse + in: query + description: |- + reverse is set to true if results are to be returned in the descending order. + + Since: cosmos-sdk 0.43 + schema: + type: boolean + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryContractsByCodeResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Contracts + tags: + - CosmWasm + /cosmwasm/wasm/v1/codes/params: + get: + description: Params gets the module params + operationId: wasm_params + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryParamsResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Params + tags: + - CosmWasm + /cosmwasm/wasm/v1/codes/pinned: + get: + description: PinnedCodes gets the pinned code ids + operationId: wasm_pinned + parameters: + - name: pagination.key + in: query + 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. + schema: + type: string + format: bytes + - name: pagination.offset + in: query + 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. + schema: + type: string + - name: pagination.limit + in: query + 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. + schema: + type: string + - name: pagination.countTotal + in: query + 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. + schema: + type: boolean + - name: pagination.reverse + in: query + description: |- + reverse is set to true if results are to be returned in the descending order. + + Since: cosmos-sdk 0.43 + schema: + type: boolean + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryPinnedCodesResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Pinned + tags: + - CosmWasm + /cosmwasm/wasm/v1/contract/build_address: + get: + description: BuildAddress builds a contract address + operationId: wasm_build_address + parameters: + - name: codeHash + in: query + description: CodeHash is the hash of the code + schema: + type: string + - name: creatorAddress + in: query + description: CreatorAddress is the address of the contract instantiator + schema: + type: string + - name: salt + in: query + description: Salt is a hex encoded salt + schema: + type: string + - name: initArgs + in: query + description: |- + InitArgs are optional json encoded init args to be used in contract address + building if provided + schema: + type: string + format: bytes + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryBuildAddressResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Build Address + tags: + - CosmWasm + /cosmwasm/wasm/v1/contract/{address}: + get: + description: ContractInfo gets the contract meta data + operationId: wasm_contract + parameters: + - name: address + in: path + description: address is the address of the contract to query + required: true + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryContractInfoResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Contract + tags: + - CosmWasm + /cosmwasm/wasm/v1/contract/{address}/history: + get: + description: ContractHistory gets the contract code history + operationId: wasm_history + parameters: + - name: address + in: path + description: address is the address of the contract to query + required: true + schema: + type: string + - name: pagination.key + in: query + 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. + schema: + type: string + format: bytes + - name: pagination.offset + in: query + 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. + schema: + type: string + - name: pagination.limit + in: query + 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. + schema: + type: string + - name: pagination.countTotal + in: query + 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. + schema: + type: boolean + - name: pagination.reverse + in: query + description: |- + reverse is set to true if results are to be returned in the descending order. + + Since: cosmos-sdk 0.43 + schema: + type: boolean + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryContractHistoryResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: History + tags: + - CosmWasm + /cosmwasm/wasm/v1/contract/{address}/raw/{queryData}: + get: + description: RawContractState gets single key from the raw store data of a contract + operationId: wasm_raw + parameters: + - name: address + in: path + description: address is the address of the contract + required: true + schema: + type: string + - name: queryData + in: path + required: true + schema: + type: string + format: bytes + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryRawContractStateResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Raw + tags: + - CosmWasm + /cosmwasm/wasm/v1/contract/{address}/smart/{queryData}: + get: + description: SmartContractState get smart query result from the contract + operationId: wasm_smart + parameters: + - name: address + in: path + description: address is the address of the contract + required: true + schema: + type: string + - name: queryData + in: path + description: QueryData contains the query data passed to the contract + required: true + schema: + type: string + format: bytes + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QuerySmartContractStateResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Smart + tags: + - CosmWasm + /cosmwasm/wasm/v1/contract/{address}/state: + get: + description: AllContractState gets all raw store data for a single contract + operationId: wasm_state + parameters: + - name: address + in: path + description: address is the address of the contract + required: true + schema: + type: string + - name: pagination.key + in: query + 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. + schema: + type: string + format: bytes + - name: pagination.offset + in: query + 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. + schema: + type: string + - name: pagination.limit + in: query + 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. + schema: + type: string + - name: pagination.countTotal + in: query + 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. + schema: + type: boolean + - name: pagination.reverse + in: query + description: |- + reverse is set to true if results are to be returned in the descending order. + + Since: cosmos-sdk 0.43 + schema: + type: boolean + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryAllContractStateResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: State + tags: + - CosmWasm + /cosmwasm/wasm/v1/contracts/creator/{creatorAddress}: + get: + description: ContractsByCreator gets the contracts by creator + operationId: wasm_creator + parameters: + - name: creatorAddress + in: path + description: CreatorAddress is the address of contract creator + required: true + schema: + type: string + - name: pagination.key + in: query + 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. + schema: + type: string + format: bytes + - name: pagination.offset + in: query + 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. + schema: + type: string + - name: pagination.limit + in: query + 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. + schema: + type: string + - name: pagination.countTotal + in: query + 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. + schema: + type: boolean + - name: pagination.reverse + in: query + description: |- + reverse is set to true if results are to be returned in the descending order. + + Since: cosmos-sdk 0.43 + schema: + type: boolean + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryContractsByCreatorResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Creator + tags: + - CosmWasm + /cosmwasm/wasm/v1/wasm-limits-config: + get: + description: |- + WasmLimitsConfig gets the configured limits for static validation of Wasm + files, encoded in JSON. + operationId: wasm_limits_config + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryWasmLimitsConfigResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Limits Config + tags: + - CosmWasm + /ibc/apps/interchain_accounts/controller/v1/owners/{owner}/connections/{connectionId}: + get: + description: InterchainAccount returns the interchain account address for a given owner address on a given connection + operationId: ibc_interchain_account + parameters: + - name: owner + in: path + required: true + schema: + type: string + - name: connectionId + in: path + required: true + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryInterchainAccountResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Interchain Account + tags: + - IBC + /ibc/apps/interchain_accounts/controller/v1/params: + get: + description: Params queries all parameters of the ICA controller submodule. + operationId: ibc_ICA_controller_params + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryParamsResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: ICA Controller Params + tags: + - IBC + /ibc/apps/interchain_accounts/host/v1/params: + get: + description: Params queries all parameters of the ICA host submodule. + operationId: ibc_ICA_host_params + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryParamsResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: ICA Host Params + tags: + - IBC + /ibc/apps/transfer/v1/channels/{channelId}/ports/{portId}/escrow_address: + get: + description: EscrowAddress returns the escrow address for a particular port and channel id. + operationId: ibc_escrow_address + parameters: + - name: channelId + in: path + description: unique channel identifier + required: true + schema: + type: string + - name: portId + in: path + description: unique port identifier + required: true + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryEscrowAddressResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Escrow Address + tags: + - IBC + /ibc/apps/transfer/v1/denom_hashes/{trace}: + get: + description: DenomHash queries a denomination hash information. + operationId: ibc_denom_hash + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryDenomHashResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + parameters: + - name: trace + in: path + required: true + schema: + type: string + description: Denomination trace ([port_id]/[channel_id])+/[denom]) + summary: Denom Hash + tags: + - IBC + /ibc/apps/transfer/v1/denom_traces: + get: + description: DenomTraces queries all denomination traces. + operationId: ibc_denom_traces + parameters: + - name: pagination.key + in: query + 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. + schema: + type: string + format: bytes + - name: pagination.offset + in: query + 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. + schema: + type: string + - name: pagination.limit + in: query + 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. + schema: + type: string + - name: pagination.countTotal + in: query + 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. + schema: + type: boolean + - name: pagination.reverse + in: query + description: |- + reverse is set to true if results are to be returned in the descending order. + + Since: cosmos-sdk 0.43 + schema: + type: boolean + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryDenomTracesResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Denom Traces + tags: + - IBC + /ibc/apps/transfer/v1/denom_traces/{hash}: + get: + description: DenomTrace queries a denomination trace information. + operationId: ibc_denom_trace + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryDenomTraceResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + parameters: + - name: hash + in: path + required: true + schema: + type: string + description: Hash (hex) or fully-qualified denomination trace identifier. + summary: Denom Trace + tags: + - IBC + /ibc/apps/transfer/v1/denoms/{denom}/total_escrow: + get: + description: TotalEscrowForDenom returns the total amount of tokens in escrow based on the denom. + operationId: ibc_denom_escrow + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryTotalEscrowForDenomResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + parameters: + - name: denom + in: path + required: true + schema: + type: string + description: Total escrow amount for the denomination. + summary: Denom Escrow + tags: + - IBC + /ibc/apps/transfer/v1/params: + get: + description: Params queries all parameters of the ibc-transfer module. + operationId: ibc_transfer_params + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryParamsResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Transfer Params + tags: + - IBC + /ibc/core/channel/v1/channels: + get: + description: Channels queries all the IBC channels of a chain. + operationId: ibc_channels + parameters: + - name: pagination.key + in: query + 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. + schema: + type: string + format: bytes + - name: pagination.offset + in: query + 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. + schema: + type: string + - name: pagination.limit + in: query + 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. + schema: + type: string + - name: pagination.countTotal + in: query + 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. + schema: + type: boolean + - name: pagination.reverse + in: query + description: |- + reverse is set to true if results are to be returned in the descending order. + + Since: cosmos-sdk 0.43 + schema: + type: boolean + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryChannelsResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Channels + tags: + - IBC + /ibc/core/channel/v1/channels/{channelId}/ports/{portId}: + get: + description: Channel queries an IBC Channel. + operationId: ibc_channel + parameters: + - name: channelId + in: path + description: channel unique identifier + required: true + schema: + type: string + - name: portId + in: path + description: port unique identifier + required: true + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryChannelResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Channel + tags: + - IBC + /ibc/core/channel/v1/channels/{channelId}/ports/{portId}/client_state: + get: + description: |- + ChannelClientState queries for the client state for the channel associated + with the provided channel identifiers. + operationId: ibc_client_state + parameters: + - name: channelId + in: path + description: channel unique identifier + required: true + schema: + type: string + - name: portId + in: path + description: port unique identifier + required: true + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryChannelClientStateResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Client State + tags: + - IBC + /ibc/core/channel/v1/channels/{channelId}/ports/{portId}/consensus_state/revision/{revisionNumber}/height/{revisionHeight}: + get: + description: |- + ChannelConsensusState queries for the consensus state for the channel + associated with the provided channel identifiers. + operationId: ibc_channel_consensus_state + parameters: + - name: channelId + in: path + description: channel unique identifier + required: true + schema: + type: string + - name: portId + in: path + description: port unique identifier + required: true + schema: + type: string + - name: revisionNumber + in: path + description: revision number of the consensus state + required: true + schema: + type: string + - name: revisionHeight + in: path + description: revision height of the consensus state + required: true + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryChannelConsensusStateResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Channel Consensus State + tags: + - IBC + /ibc/core/channel/v1/channels/{channelId}/ports/{portId}/next_sequence: + get: + description: NextSequenceReceive returns the next receive sequence for a given channel. + operationId: ibc_next_sequence + parameters: + - name: channelId + in: path + description: channel unique identifier + required: true + schema: + type: string + - name: portId + in: path + description: port unique identifier + required: true + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryNextSequenceReceiveResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Next Sequence + tags: + - IBC + /ibc/core/channel/v1/channels/{channelId}/ports/{portId}/next_sequence_send: + get: + description: NextSequenceSend returns the next send sequence for a given channel. + operationId: ibc_next_sequence_send + parameters: + - name: channelId + in: path + description: channel unique identifier + required: true + schema: + type: string + - name: portId + in: path + description: port unique identifier + required: true + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryNextSequenceSendResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Next Sequence Send + tags: + - IBC + /ibc/core/channel/v1/channels/{channelId}/ports/{portId}/packet_acknowledgements: + get: + description: |- + PacketAcknowledgements returns all the packet acknowledgements associated + with a channel. + operationId: ibc_packet_acks + parameters: + - name: channelId + in: path + description: channel unique identifier + required: true + schema: + type: string + - name: portId + in: path + description: port unique identifier + required: true + schema: + type: string + - name: pagination.key + in: query + 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. + schema: + type: string + format: bytes + - name: pagination.offset + in: query + 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. + schema: + type: string + - name: pagination.limit + in: query + 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. + schema: + type: string + - name: pagination.countTotal + in: query + 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. + schema: + type: boolean + - name: pagination.reverse + in: query + description: |- + reverse is set to true if results are to be returned in the descending order. + + Since: cosmos-sdk 0.43 + schema: + type: boolean + - name: packetCommitmentSequences + in: query + description: list of packet sequences + schema: + type: array + items: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryPacketAcknowledgementsResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Packet Acks + tags: + - IBC + /ibc/core/channel/v1/channels/{channelId}/ports/{portId}/packet_acks/{sequence}: + get: + description: PacketAcknowledgement queries a stored packet acknowledgement hash. + operationId: ibc_packet_ack + parameters: + - name: channelId + in: path + description: channel unique identifier + required: true + schema: + type: string + - name: portId + in: path + description: port unique identifier + required: true + schema: + type: string + - name: sequence + in: path + description: packet sequence + required: true + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryPacketAcknowledgementResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Packet Ack + tags: + - IBC + /ibc/core/channel/v1/channels/{channelId}/ports/{portId}/packet_commitments: + get: + description: |- + PacketCommitments returns all the packet commitments hashes associated + with a channel. + operationId: ibc_packet_commitments + parameters: + - name: channelId + in: path + description: channel unique identifier + required: true + schema: + type: string + - name: portId + in: path + description: port unique identifier + required: true + schema: + type: string + - name: pagination.key + in: query + 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. + schema: + type: string + format: bytes + - name: pagination.offset + in: query + 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. + schema: + type: string + - name: pagination.limit + in: query + 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. + schema: + type: string + - name: pagination.countTotal + in: query + 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. + schema: + type: boolean + - name: pagination.reverse + in: query + description: |- + reverse is set to true if results are to be returned in the descending order. + + Since: cosmos-sdk 0.43 + schema: + type: boolean + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryPacketCommitmentsResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Packet Commitments + tags: + - IBC + /ibc/core/channel/v1/channels/{channelId}/ports/{portId}/packet_commitments/{packetAckSequences}/unreceived_acks: + get: + description: |- + UnreceivedAcks returns all the unreceived IBC acknowledgements associated + with a channel and sequences. + operationId: ibc_unreceived_acks + parameters: + - name: channelId + in: path + description: channel unique identifier + required: true + schema: + type: string + - name: portId + in: path + description: port unique identifier + required: true + schema: + type: string + - name: packetAckSequences + in: path + description: list of acknowledgement sequences + required: true + schema: + type: array + items: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryUnreceivedAcksResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Unreceived Acks + tags: + - IBC + /ibc/core/channel/v1/channels/{channelId}/ports/{portId}/packet_commitments/{packetCommitmentSequences}/unreceived_packets: + get: + description: |- + UnreceivedPackets returns all the unreceived IBC packets associated with a + channel and sequences. + operationId: ibc_unreceived_packets + parameters: + - name: channelId + in: path + description: channel unique identifier + required: true + schema: + type: string + - name: portId + in: path + description: port unique identifier + required: true + schema: + type: string + - name: packetCommitmentSequences + in: path + description: list of packet sequences + required: true + schema: + type: array + items: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryUnreceivedPacketsResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Unreceived Packets + tags: + - IBC + /ibc/core/channel/v1/channels/{channelId}/ports/{portId}/packet_commitments/{sequence}: + get: + description: PacketCommitment queries a stored packet commitment hash. + operationId: ibc_packet_commitments + parameters: + - name: channelId + in: path + description: channel unique identifier + required: true + schema: + type: string + - name: portId + in: path + description: port unique identifier + required: true + schema: + type: string + - name: sequence + in: path + description: packet sequence + required: true + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryPacketCommitmentResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Packet Commitments + tags: + - IBC + /ibc/core/channel/v1/channels/{channelId}/ports/{portId}/packet_receipts/{sequence}: + get: + description: |- + PacketReceipt queries if a given packet sequence has been received on the + queried chain + operationId: ibc_packet_receipts + parameters: + - name: channelId + in: path + description: channel unique identifier + required: true + schema: + type: string + - name: portId + in: path + description: port unique identifier + required: true + schema: + type: string + - name: sequence + in: path + description: packet sequence + required: true + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryPacketReceiptResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Packet Receipts + tags: + - IBC + /ibc/core/channel/v1/channels/{channelId}/ports/{portId}/upgrade: + get: + description: Upgrade returns the upgrade for a given port and channel id. + operationId: ibc_upgrade + parameters: + - name: channelId + in: path + required: true + schema: + type: string + - name: portId + in: path + required: true + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryUpgradeResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Upgrade + tags: + - IBC + /ibc/core/channel/v1/channels/{channelId}/ports/{portId}/upgrade_error: + get: + description: UpgradeError returns the error receipt if the upgrade handshake failed. + operationId: ibc_upgrade_error + parameters: + - name: channelId + in: path + required: true + schema: + type: string + - name: portId + in: path + required: true + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryUpgradeErrorResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Upgrade Error + tags: + - IBC + /ibc/core/channel/v1/connections/{connection}/channels: + get: + description: |- + ConnectionChannels queries all the channels associated with a connection + end. + operationId: ibc_connection_channels + parameters: + - name: connection + in: path + description: connection unique identifier + required: true + schema: + type: string + - name: pagination.key + in: query + 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. + schema: + type: string + format: bytes + - name: pagination.offset + in: query + 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. + schema: + type: string + - name: pagination.limit + in: query + 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. + schema: + type: string + - name: pagination.countTotal + in: query + 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. + schema: + type: boolean + - name: pagination.reverse + in: query + description: |- + reverse is set to true if results are to be returned in the descending order. + + Since: cosmos-sdk 0.43 + schema: + type: boolean + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryConnectionChannelsResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Connection Channels + tags: + - IBC + /ibc/core/channel/v1/params: + get: + description: ChannelParams queries all parameters of the ibc channel submodule. + operationId: ibc_channel_params + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryChannelParamsResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Channel Params + tags: + - IBC + /ibc/core/client/v1/client_states: + get: + description: ClientStates queries all the IBC light clients of a chain. + operationId: ibc_client_states + parameters: + - name: pagination.key + in: query + 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. + schema: + type: string + format: bytes + - name: pagination.offset + in: query + 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. + schema: + type: string + - name: pagination.limit + in: query + 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. + schema: + type: string + - name: pagination.countTotal + in: query + 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. + schema: + type: boolean + - name: pagination.reverse + in: query + description: |- + reverse is set to true if results are to be returned in the descending order. + + Since: cosmos-sdk 0.43 + schema: + type: boolean + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryClientStatesResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Client States + tags: + - IBC + /ibc/core/client/v1/client_states/{clientId}: + get: + description: ClientState queries an IBC light client. + operationId: ibc_client_state + parameters: + - name: clientId + in: path + description: client state unique identifier + required: true + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryClientStateResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Client State + tags: + - IBC + /ibc/core/client/v1/client_status/{clientId}: + get: + description: Status queries the status of an IBC client. + operationId: ibc_client_status + parameters: + - name: clientId + in: path + description: client unique identifier + required: true + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryClientStatusResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Client Status + tags: + - IBC + /ibc/core/client/v1/consensus_states/{clientId}: + get: + description: |- + ConsensusStates queries all the consensus state associated with a given + client. + operationId: ibc_consensus_states + parameters: + - name: clientId + in: path + description: client identifier + required: true + schema: + type: string + - name: pagination.key + in: query + 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. + schema: + type: string + format: bytes + - name: pagination.offset + in: query + 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. + schema: + type: string + - name: pagination.limit + in: query + 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. + schema: + type: string + - name: pagination.countTotal + in: query + 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. + schema: + type: boolean + - name: pagination.reverse + in: query + description: |- + reverse is set to true if results are to be returned in the descending order. + + Since: cosmos-sdk 0.43 + schema: + type: boolean + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryConsensusStatesResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Consensus States + tags: + - IBC + /ibc/core/client/v1/consensus_states/{clientId}/heights: + get: + description: ConsensusStateHeights queries the height of every consensus states associated with a given client. + operationId: ibc_consensus_state_heights + parameters: + - name: clientId + in: path + description: client identifier + required: true + schema: + type: string + - name: pagination.key + in: query + 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. + schema: + type: string + format: bytes + - name: pagination.offset + in: query + 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. + schema: + type: string + - name: pagination.limit + in: query + 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. + schema: + type: string + - name: pagination.countTotal + in: query + 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. + schema: + type: boolean + - name: pagination.reverse + in: query + description: |- + reverse is set to true if results are to be returned in the descending order. + + Since: cosmos-sdk 0.43 + schema: + type: boolean + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryConsensusStateHeightsResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Consensus State Heights + tags: + - IBC + /ibc/core/client/v1/consensus_states/{clientId}/revision/{revisionNumber}/height/{revisionHeight}: + get: + description: |- + ConsensusState queries a consensus state associated with a client state at + a given height. + operationId: ibc_height + parameters: + - name: clientId + in: path + description: client identifier + required: true + schema: + type: string + - name: revisionNumber + in: path + description: consensus state revision number + required: true + schema: + type: string + - name: revisionHeight + in: path + description: consensus state revision height + required: true + schema: + type: string + - name: latestHeight + in: query + description: |- + latest_height overrrides the height field and queries the latest stored + ConsensusState + schema: + type: boolean + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryConsensusStateResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Height + tags: + - IBC + /ibc/core/client/v1/params: + get: + description: ClientParams queries all parameters of the ibc client submodule. + operationId: ibc_client_params + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryClientParamsResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Client Params + tags: + - IBC + /ibc/core/client/v1/upgraded_client_states: + get: + description: UpgradedClientState queries an Upgraded IBC light client. + operationId: ibc_upgraded_client_states + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryUpgradedClientStateResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Upgraded Client States + tags: + - IBC + /ibc/core/client/v1/upgraded_consensus_states: + get: + description: UpgradedConsensusState queries an Upgraded IBC consensus state. + operationId: ibc_upgraded_consensus_states + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryUpgradedConsensusStateResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Upgraded Consensus States + tags: + - IBC + /ibc/core/client/v1/verify_membership: + post: + description: VerifyMembership queries an IBC light client for proof verification of a value at a given key path. + operationId: ibc_verify_membership + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/QueryVerifyMembershipRequest' + required: true + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryVerifyMembershipResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Verify Membership + tags: + - IBC + /ibc/core/connection/v1/client_connections/{clientId}: + get: + description: |- + ClientConnections queries the connection paths associated with a client + state. + operationId: ibc_client_connections + parameters: + - name: clientId + in: path + description: client identifier associated with a connection + required: true + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryClientConnectionsResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Client Connections + tags: + - IBC + /ibc/core/connection/v1/connections: + get: + description: Connections queries all the IBC connections of a chain. + operationId: ibc_connections + parameters: + - name: pagination.key + in: query + 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. + schema: + type: string + format: bytes + - name: pagination.offset + in: query + 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. + schema: + type: string + - name: pagination.limit + in: query + 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. + schema: + type: string + - name: pagination.countTotal + in: query + 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. + schema: + type: boolean + - name: pagination.reverse + in: query + description: |- + reverse is set to true if results are to be returned in the descending order. + + Since: cosmos-sdk 0.43 + schema: + type: boolean + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryConnectionsResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Connections + tags: + - IBC + /ibc/core/connection/v1/connections/{connectionId}: + get: + description: Connection queries an IBC connection end. + operationId: ibc_connection + parameters: + - name: connectionId + in: path + description: connection unique identifier + required: true + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryConnectionResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Connection + tags: + - IBC + /ibc/core/connection/v1/connections/{connectionId}/client_state: + get: + description: |- + ConnectionClientState queries the client state associated with the + connection. + operationId: ibc_connection_client_state + parameters: + - name: connectionId + in: path + description: connection identifier + required: true + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryConnectionClientStateResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Connection Client State + tags: + - IBC + /ibc/core/connection/v1/connections/{connectionId}/consensus_state/revision/{revisionNumber}/height/{revisionHeight}: + get: + description: |- + ConnectionConsensusState queries the consensus state associated with the + connection. + operationId: ibc_connection_consensus_state + parameters: + - name: connectionId + in: path + description: connection identifier + required: true + schema: + type: string + - name: revisionNumber + in: path + required: true + schema: + type: string + - name: revisionHeight + in: path + required: true + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryConnectionConsensusStateResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Connection Consensus State + tags: + - IBC + /ibc/core/connection/v1/params: + get: + description: ConnectionParams queries all parameters of the ibc connection submodule. + operationId: ibc_connection_params + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryConnectionParamsResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Connection Params + tags: + - IBC + /juno/clock/v1/contracts: + get: + description: ClockContracts + operationId: clock_contracts + parameters: + - name: pagination.key + in: query + 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. + schema: + type: string + format: bytes + - name: pagination.offset + in: query + 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. + schema: + type: string + - name: pagination.limit + in: query + 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. + schema: + type: string + - name: pagination.countTotal + in: query + 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. + schema: + type: boolean + - name: pagination.reverse + in: query + description: reverse is set to true if results are to be returned in the descending order. + schema: + type: boolean + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryClockContractsResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Contracts + tags: + - Clock + /juno/clock/v1/contracts/{contractAddress}: + get: + description: ClockContract + operationId: clock_contract + parameters: + - name: contractAddress + in: path + description: contract_address is the address of the contract to query. + required: true + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryClockContractResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Contract + tags: + - Clock + /juno/clock/v1/params: + get: + description: Params + operationId: clock_params + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryParamsResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Params + tags: + - Clock + /juno/cwhooks/v2/contracts/{module}: + get: + description: Contracts gets all contracts for a module + operationId: cwhooks_contracts + parameters: + - name: module + in: path + description: The module key the contracts are registered for + required: true + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryContractsResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Contracts + tags: + - Hooks + /juno/cwhooks/v2/contracts/{module}/{contractAddress}: + get: + description: ContractInfo gets a contract info for a module and contract address + operationId: cwhooks_{module} + parameters: + - name: module + in: path + description: The module key the contract is registered for + required: true + schema: + type: string + - name: contractAddress + in: path + description: The contract address to get info for + required: true + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryContractInfoResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: '{module}' + tags: + - Hooks + /juno/cwhooks/v2/params: + get: + description: Params gets all module params + operationId: cwhooks_params + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryParamsResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Params + tags: + - Hooks + /juno/drip/v1/params: + get: + description: Params retrieves the Drip module params + operationId: drip_params + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryParamsResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Params + tags: + - Drip + /juno/feemarket/v1/gas_price/{denom}: + get: + description: |- + GasPrice returns the current feemarket module gas price + for specified denom. + operationId: feemarket_gas_price + parameters: + - name: denom + in: path + description: denom we are querying gas price in + required: true + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GasPriceResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Gas Price + tags: + - Feemarket + /juno/feemarket/v1/gas_prices: + get: + description: |- + GasPrices returns the current feemarket module list of gas prices + in all available denoms. + operationId: feemarket_gas_prices + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GasPricesResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Gas Prices + tags: + - Feemarket + /juno/feemarket/v1/params: + get: + description: Params returns the current feemarket module parameters. + operationId: feemarket_params + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/ParamsResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Params + tags: + - Feemarket + /juno/feemarket/v1/state: + get: + description: State returns the current feemarket module state. + operationId: feemarket_state + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/StateResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: State + tags: + - Feemarket + /juno/feepay/v1/all_contracts: + get: + description: Retrieve all fee pay contracts + operationId: feepay_all_contracts + parameters: + - name: pagination.key + in: query + 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. + schema: + type: string + format: bytes + - name: pagination.offset + in: query + 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. + schema: + type: string + - name: pagination.limit + in: query + 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. + schema: + type: string + - name: pagination.countTotal + in: query + 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. + schema: + type: boolean + - name: pagination.reverse + in: query + description: reverse is set to true if results are to be returned in the descending order. + schema: + type: boolean + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryFeePayContractsResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: All Contracts + tags: + - Feepay + /juno/feepay/v1/contract/{contractAddress}: + get: + description: FeePayContract queries a single fee pay contract by address + operationId: feepay_contract + parameters: + - name: contractAddress + in: path + description: contract_address defines the address of the fee pay contract + required: true + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryFeePayContractResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Contract + tags: + - Feepay + /juno/feepay/v1/contract/{contractAddress}/eligible/{walletAddress}: + get: + description: Query if sender is eligible for fee pay contract interaction + operationId: feepay_eligible + parameters: + - name: contractAddress + in: path + description: The contract address. + required: true + schema: + type: string + - name: walletAddress + in: path + description: The wallet address. + required: true + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryFeePayWalletIsEligibleResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Eligible + tags: + - Feepay + /juno/feepay/v1/contract/{contractAddress}/uses/{walletAddress}: + get: + description: Retrieve the number of uses on a fee pay contract by wallet + operationId: feepay_uses + parameters: + - name: contractAddress + in: path + description: The contract address. + required: true + schema: + type: string + - name: walletAddress + in: path + description: The wallet address. + required: true + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryFeePayContractUsesResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Uses + tags: + - Feepay + /juno/feepay/v1/params: + get: + description: Params retrieves the FeePay module params + operationId: feepay_params + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryParamsResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Params + tags: + - Feepay + /juno/feeshare/v1/fee_shares: + get: + description: FeeShares retrieves all registered FeeShares + operationId: feeshare_fee_shares + parameters: + - name: pagination.key + in: query + 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. + schema: + type: string + format: bytes + - name: pagination.offset + in: query + 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. + schema: + type: string + - name: pagination.limit + in: query + 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. + schema: + type: string + - name: pagination.countTotal + in: query + 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. + schema: + type: boolean + - name: pagination.reverse + in: query + description: reverse is set to true if results are to be returned in the descending order. + schema: + type: boolean + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryFeeSharesResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Fee Shares + tags: + - Feeshare + /juno/feeshare/v1/fee_shares/{contractAddress}: + get: + description: FeeShare retrieves a registered FeeShare for a given contract address + operationId: feeshare_fee_shares + parameters: + - name: contractAddress + in: path + description: contract_address of a registered contract in bech32 format + required: true + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryFeeShareResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Fee Shares + tags: + - Feeshare + /juno/feeshare/v1/fee_shares/{deployerAddress}: + get: + description: |- + DeployerFeeShares retrieves all FeeShares that a given deployer has + registered + operationId: feeshare_fee_shares + parameters: + - name: deployerAddress + in: path + description: deployer_address in bech32 format + required: true + schema: + type: string + - name: pagination.key + in: query + 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. + schema: + type: string + format: bytes + - name: pagination.offset + in: query + 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. + schema: + type: string + - name: pagination.limit + in: query + 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. + schema: + type: string + - name: pagination.countTotal + in: query + 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. + schema: + type: boolean + - name: pagination.reverse + in: query + description: reverse is set to true if results are to be returned in the descending order. + schema: + type: boolean + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryDeployerFeeSharesResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Fee Shares + tags: + - Feeshare + /juno/feeshare/v1/fee_shares/{withdrawerAddress}: + get: + description: |- + WithdrawerFeeShares retrieves all FeeShares with a given withdrawer + address + operationId: feeshare_fee_shares + parameters: + - name: withdrawerAddress + in: path + description: withdrawer_address in bech32 format + required: true + schema: + type: string + - name: pagination.key + in: query + 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. + schema: + type: string + format: bytes + - name: pagination.offset + in: query + 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. + schema: + type: string + - name: pagination.limit + in: query + 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. + schema: + type: string + - name: pagination.countTotal + in: query + 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. + schema: + type: boolean + - name: pagination.reverse + in: query + description: reverse is set to true if results are to be returned in the descending order. + schema: + type: boolean + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryWithdrawerFeeSharesResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Fee Shares + tags: + - Feeshare + /juno/feeshare/v1/params: + get: + description: Params retrieves the FeeShare module params + operationId: feeshare_params + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryParamsResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Params + tags: + - Feeshare + /osmosis/tokenfactory/v1beta1/denoms/{denom}/authority_metadata: + get: + description: |- + DenomAuthorityMetadata defines a gRPC query method for fetching + DenomAuthorityMetadata for a particular denom. + operationId: tokenfactory_authority_metadata + parameters: + - name: denom + in: path + required: true + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryDenomAuthorityMetadataResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Authority Metadata + tags: + - Tokenfactory + /osmosis/tokenfactory/v1beta1/denoms_from_creator/{creator}: + get: + description: |- + DenomsFromCreator defines a gRPC query method for fetching all + denominations created by a specific admin/creator. + operationId: tokenfactory_denoms_from_creator + parameters: + - name: creator + in: path + required: true + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryDenomsFromCreatorResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Denoms From Creator + tags: + - Tokenfactory + /osmosis/tokenfactory/v1beta1/params: + get: + description: |- + Params defines a gRPC query method that returns the tokenfactory module's + parameters. + operationId: tokenfactory_params + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/QueryParamsResponse' + default: + description: Default error response + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + summary: Params + tags: + - Tokenfactory +components: + schemas: + ABCIMessageLog: + type: object + properties: + msgIndex: + type: integer + format: uint32 + log: + type: string + events: + type: array + items: + $ref: '#/components/schemas/StringEvent' + 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. + ABCIQueryResponse: + type: object + properties: + code: + type: integer + format: uint32 + log: + type: string + info: + type: string + index: + type: string + key: + type: string + format: bytes + value: + type: string + format: bytes + proofOps: + $ref: '#/components/schemas/ProofOps' + height: + type: string + 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. + AbsoluteTxPosition: + type: object + properties: + blockHeight: + type: string + description: BlockHeight is the block the contract was created at + txIndex: + type: string + description: |- + TxIndex is a monotonic counter within the block (actual transaction index, + or gas consumed) + description: |- + AbsoluteTxPosition is a unique transaction position that allows for global + ordering of transactions. + AccessConfig: + type: object + properties: + permission: + type: integer + format: enum + addresses: + type: array + items: + type: string + description: AccessConfig access control type. + AddressBytesToStringResponse: + type: object + properties: + addressString: + type: string + description: AddressBytesToStringResponse is the response type for AddressString rpc method. + AddressStringToBytesResponse: + type: object + properties: + addressBytes: + type: string + format: bytes + description: AddressStringToBytesResponse is the response type for AddressBytes rpc method. + Attribute: + 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. + AuthInfo: + type: object + properties: + signerInfos: + type: array + items: + $ref: '#/components/schemas/SignerInfo' + description: |- + signer_infos defines the signing modes for the required signers. The number + and order of elements must match the required signers from TxBody's + messages. The first element is the primary signer and the one which pays + the fee. + fee: + allOf: + - $ref: '#/components/schemas/Fee' + description: |- + Fee is the fee and gas limit for the transaction. The first signer is the + primary signer and the one which pays the fee. The fee can be calculated + based on the cost of evaluating the body and doing signature verification + of the signers. This can be estimated via simulation. + tip: + allOf: + - $ref: '#/components/schemas/Tip' + description: |- + Tip is the optional tip used for transactions fees paid in another denom. + + This field is ignored if the chain didn't enable tips, i.e. didn't add the + `TipDecorator` in its posthandler. + description: |- + AuthInfo describes the fee and signer modes that are used to sign a + transaction. + BaseAccount: + type: object + properties: + address: + type: string + pubKey: + $ref: '#/components/schemas/GoogleProtobufAny' + accountNumber: + type: string + sequence: + type: string + description: |- + BaseAccount defines a base account type. It contains all the necessary fields + for basic account functionality. Any custom account type should extend this + type for additional functionality (e.g. vesting). + Bech32PrefixResponse: + type: object + properties: + bech32Prefix: + type: string + description: Bech32PrefixResponse is the response type for Bech32Prefix rpc method. + Block: + type: object + properties: + header: + $ref: '#/components/schemas/Header' + data: + $ref: '#/components/schemas/Data' + evidence: + $ref: '#/components/schemas/EvidenceList' + lastCommit: + $ref: '#/components/schemas/Commit' + BlockID: + type: object + properties: + hash: + type: string + format: bytes + partSetHeader: + $ref: '#/components/schemas/PartSetHeader' + description: BlockID + BroadcastTxRequest: + type: object + properties: + txBytes: + type: string + description: tx_bytes is the raw transaction. + format: bytes + mode: + type: integer + format: enum + description: |- + BroadcastTxRequest is the request type for the Service.BroadcastTxRequest + RPC method. + BroadcastTxResponse: + type: object + properties: + txResponse: + allOf: + - $ref: '#/components/schemas/TxResponse' + description: tx_response is the queried TxResponses. + description: |- + BroadcastTxResponse is the response type for the + Service.BroadcastTx method. + Channel: + type: object + properties: + state: + type: integer + description: current state of the channel end + format: enum + ordering: + type: integer + description: whether the channel is ordered or unordered + format: enum + counterparty: + allOf: + - $ref: '#/components/schemas/Counterparty' + description: counterparty channel end + connectionHops: + type: array + items: + type: string + description: |- + list of connection identifiers, in order, along which packets sent on + this channel will travel + version: + type: string + description: opaque channel version, which is agreed upon during the handshake + upgradeSequence: + type: string + description: |- + upgrade sequence indicates the latest upgrade attempt performed by this channel + the value of 0 indicates the channel has never been upgraded + 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. + ClockContract: + type: object + properties: + contractAddress: + type: string + description: The address of the contract. + isJailed: + type: boolean + description: The jail status of the contract. + description: |- + This object is used to store the contract address and the + jail status of the contract. + CodeInfoResponse: + type: object + properties: + codeId: + type: string + creator: + type: string + dataHash: + type: string + format: bytes + instantiatePermission: + $ref: '#/components/schemas/AccessConfig' + description: CodeInfoResponse contains code meta data from CodeInfo + Coin: + 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. + Commit: + type: object + properties: + height: + type: string + round: + type: integer + format: int32 + blockId: + $ref: '#/components/schemas/BlockID' + signatures: + type: array + items: + $ref: '#/components/schemas/CommitSig' + description: Commit contains the evidence that a block was committed by a set of validators. + CommitSig: + type: object + properties: + blockIdFlag: + type: integer + format: enum + validatorAddress: + type: string + format: bytes + timestamp: + type: string + format: date-time + signature: + type: string + format: bytes + description: CommitSig is a part of the Vote included in a Commit. + CompactBitArray: + type: object + properties: + extraBitsStored: + type: integer + format: uint32 + elems: + type: string + format: bytes + description: |- + CompactBitArray is an implementation of a space efficient bit array. + This is used to ensure that the encoded data takes up a minimal amount of + space after proto encoding. + This is not thread safe, and is not intended for concurrent usage. + ConfigResponse: + type: object + properties: + minimumGasPrice: + type: string + pruningKeepRecent: + type: string + pruningInterval: + type: string + haltHeight: + type: string + description: ConfigResponse defines the response structure for the Config gRPC query. + ConnectionEnd: + type: object + properties: + clientId: + type: string + description: client associated with this connection. + versions: + type: array + items: + $ref: '#/components/schemas/Version' + description: |- + IBC version which can be utilised to determine encodings or protocols for + channels or packets utilising this connection. + state: + type: integer + description: current state of the connection end. + format: enum + counterparty: + allOf: + - $ref: '#/components/schemas/Counterparty' + description: counterparty chain associated with this connection. + delayPeriod: + type: string + 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. + Consensus: + type: object + properties: + block: + type: string + app: + type: string + 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. + ConsensusStateWithHeight: + type: object + properties: + height: + allOf: + - $ref: '#/components/schemas/Height' + description: consensus state height + consensusState: + allOf: + - $ref: '#/components/schemas/GoogleProtobufAny' + description: consensus state + description: |- + ConsensusStateWithHeight defines a consensus state with an additional height + field. + ContractCodeHistoryEntry: + type: object + properties: + operation: + type: integer + format: enum + codeId: + type: string + description: CodeID is the reference to the stored WASM code + updated: + allOf: + - $ref: '#/components/schemas/AbsoluteTxPosition' + description: Updated Tx position when the operation was executed. + msg: + type: string + format: bytes + description: ContractCodeHistoryEntry metadata to a contract. + ContractInfo: + type: object + properties: + contractAddress: + type: string + failureCounter: + type: integer + format: uint32 + latestError: + type: string + codeId: + type: string + description: CodeID is the reference to the stored Wasm code + creator: + type: string + description: Creator address who initially instantiated the contract + admin: + type: string + description: Admin is an optional address that can execute migrations + label: + type: string + description: Label is optional metadata to be stored with a contract instance. + created: + allOf: + - $ref: '#/components/schemas/AbsoluteTxPosition' + description: Created Tx position when the contract was instantiated. + ibcPortId: + type: string + extension: + allOf: + - $ref: '#/components/schemas/GoogleProtobufAny' + description: |- + Extension is an extension point to store custom metadata within the + persistence model. + description: ContractInfo stores a WASM contract instance + Counterparty: + type: object + properties: + portId: + type: string + description: port on the counterparty chain which owns the other end of the channel. + channelId: + type: string + description: channel end on the counterparty chain + description: Counterparty defines a channel end counterparty + Data: + type: object + properties: + txs: + type: array + items: + type: string + format: bytes + 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. + description: Data contains the set of transactions included in the block + DecCoin: + 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. + DefaultNodeInfo: + type: object + properties: + protocolVersion: + $ref: '#/components/schemas/ProtocolVersion' + defaultNodeId: + type: string + listenAddr: + type: string + network: + type: string + version: + type: string + channels: + type: string + format: bytes + moniker: + type: string + other: + $ref: '#/components/schemas/DefaultNodeInfoOther' + DefaultNodeInfoOther: + type: object + properties: + txIndex: + type: string + rpcAddress: + type: string + Delegation: + type: object + properties: + delegatorAddress: + type: string + description: delegator_address is the encoded address of the delegator. + validatorAddress: + type: string + description: validator_address is the 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. + DelegationDelegatorReward: + type: object + properties: + validatorAddress: + type: string + reward: + type: array + items: + $ref: '#/components/schemas/DecCoin' + description: |- + DelegationDelegatorReward represents the properties + of a delegator's delegation reward. + DelegationResponse: + type: object + properties: + delegation: + $ref: '#/components/schemas/Delegation' + balance: + $ref: '#/components/schemas/Coin' + description: |- + DelegationResponse is equivalent to Delegation except that it contains a + balance in addition to shares which is more suitable for client responses. + DenomAuthorityMetadata: + type: object + properties: + admin: + type: string + description: Can be empty for no admin, or a valid bech32 address + description: |- + DenomAuthorityMetadata specifies metadata for addresses that have specific + capabilities over a token factory denom. Right now there is only one Admin + permission, but is planned to be extended to the future. + DenomOwner: + type: object + properties: + address: + type: string + description: address defines the address that owns a particular denomination. + balance: + allOf: + - $ref: '#/components/schemas/Coin' + description: balance is the balance of the denominated coin for an account. + description: |- + DenomOwner defines structure representing an account that owns or holds a + particular denominated token. It contains the account address and account + balance of the denominated token. + DenomTrace: + type: object + properties: + path: + type: string + description: |- + path defines the chain of port/channel identifiers used for tracing the + source of the fungible token. + baseDenom: + 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. + Deposit: + type: object + properties: + proposalId: + type: string + 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: + $ref: '#/components/schemas/Coin' + description: amount to be deposited by depositor. + description: |- + Deposit defines an amount deposited by an account address to an active + proposal. + DuplicateVoteEvidence: + type: object + properties: + voteA: + $ref: '#/components/schemas/Vote' + voteB: + $ref: '#/components/schemas/Vote' + totalVotingPower: + type: string + validatorPower: + type: string + timestamp: + type: string + format: date-time + description: DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes. + ErrorReceipt: + type: object + properties: + sequence: + type: string + description: the channel upgrade sequence + message: + type: string + description: the error message detailing the cause of failure + description: |- + ErrorReceipt defines a type which encapsulates the upgrade sequence and error associated with the + upgrade handshake failure. When a channel upgrade handshake is aborted both chains are expected to increment to the + next sequence. + Event: + type: object + properties: + type: + type: string + attributes: + type: array + items: + $ref: '#/components/schemas/EventAttribute' + description: |- + Event allows application developers to attach additional information to + ResponseFinalizeBlock and ResponseCheckTx. + Later, transactions may be queried using these events. + EventAttribute: + type: object + properties: + key: + type: string + value: + type: string + index: + type: boolean + description: EventAttribute is a single key-value pair, associated with an event. + Evidence: + type: object + properties: + duplicateVoteEvidence: + $ref: '#/components/schemas/DuplicateVoteEvidence' + lightClientAttackEvidence: + $ref: '#/components/schemas/LightClientAttackEvidence' + EvidenceList: + type: object + properties: + evidence: + type: array + items: + $ref: '#/components/schemas/Evidence' + Fee: + type: object + properties: + amount: + type: array + items: + $ref: '#/components/schemas/Coin' + description: amount is the amount of coins to be paid as a fee + gasLimit: + type: string + description: |- + gas_limit is the maximum gas that can be used in transaction processing + before an out of gas error occurs + payer: + type: string + description: |- + if unset, the first signer is responsible for paying the fees. If set, the + specified account must pay the fees. the payer must be a tx signer (and + thus have signed this field in AuthInfo). setting this field does *not* + change the ordering of required signers for the transaction. + granter: + type: string + description: |- + if set, the fee payer (either the first signer or the value of the payer + field) requests that a fee grant be used to pay fees instead of the fee + payer's own balance. If an appropriate fee grant does not exist or the + chain does not support fee grants, this will fail + description: |- + Fee includes the amount of coins paid in fees and the maximum + gas to be used by the transaction. The ratio yields an effective "gasprice", + which must be above some miminum to be accepted into the mempool. + FeePayContract: + type: object + properties: + contractAddress: + type: string + description: The address of the contract. + balance: + type: string + description: The ledger balance of the contract. + walletLimit: + type: string + description: The number of times a wallet may interact with the contract. + description: |- + This defines the address, balance, and wallet limit + of a fee pay contract. + FeeShare: + type: object + properties: + contractAddress: + type: string + description: |- + contract_address is the bech32 address of a registered contract in string + form + deployerAddress: + type: string + description: |- + deployer_address is the bech32 address of message sender. It must be the + same as the contracts admin address. + withdrawerAddress: + type: string + description: |- + withdrawer_address is the bech32 address of account receiving the + transaction fees. + description: |- + FeeShare defines an instance that organizes fee distribution conditions for + the owner of a given smart contract + GasInfo: + type: object + properties: + gasWanted: + type: string + description: GasWanted is the maximum units of work we allow this tx to perform. + gasUsed: + type: string + description: GasUsed is the amount of gas actually consumed. + description: GasInfo defines tx execution gas context. + GasPriceResponse: + type: object + properties: + price: + $ref: '#/components/schemas/DecCoin' + description: |- + GasPriceResponse is the response type for the Query/GasPrice RPC method. + Returns a gas price in specified denom. + GasPricesResponse: + type: object + properties: + prices: + type: array + items: + $ref: '#/components/schemas/DecCoin' + description: |- + GasPricesResponse is the response type for the Query/GasPrices RPC method. + Returns a gas price in all available denoms. + GetBlockByHeightResponse: + type: object + properties: + blockId: + $ref: '#/components/schemas/BlockID' + block: + allOf: + - $ref: '#/components/schemas/Block' + description: 'Deprecated: please use `sdk_block` instead' + sdkBlock: + $ref: '#/components/schemas/Block' + description: GetBlockByHeightResponse is the response type for the Query/GetBlockByHeight RPC method. + GetBlockWithTxsResponse: + type: object + properties: + txs: + type: array + items: + $ref: '#/components/schemas/Tx' + description: txs are the transactions in the block. + blockId: + $ref: '#/components/schemas/BlockID' + block: + $ref: '#/components/schemas/Block' + pagination: + allOf: + - $ref: '#/components/schemas/PageResponse' + description: pagination defines a pagination for the response. + description: |- + GetBlockWithTxsResponse is the response type for the Service.GetBlockWithTxs + method. + GetLatestBlockResponse: + type: object + properties: + blockId: + $ref: '#/components/schemas/BlockID' + block: + allOf: + - $ref: '#/components/schemas/Block' + description: 'Deprecated: please use `sdk_block` instead' + sdkBlock: + $ref: '#/components/schemas/Block' + description: GetLatestBlockResponse is the response type for the Query/GetLatestBlock RPC method. + GetLatestValidatorSetResponse: + type: object + properties: + blockHeight: + type: string + validators: + type: array + items: + $ref: '#/components/schemas/Validator' + pagination: + allOf: + - $ref: '#/components/schemas/PageResponse' + description: pagination defines an pagination for the response. + description: GetLatestValidatorSetResponse is the response type for the Query/GetValidatorSetByHeight RPC method. + GetNodeInfoResponse: + type: object + properties: + defaultNodeInfo: + $ref: '#/components/schemas/DefaultNodeInfo' + applicationVersion: + $ref: '#/components/schemas/VersionInfo' + description: GetNodeInfoResponse is the response type for the Query/GetNodeInfo RPC method. + GetSyncingResponse: + type: object + properties: + syncing: + type: boolean + description: GetSyncingResponse is the response type for the Query/GetSyncing RPC method. + GetTxResponse: + type: object + properties: + tx: + allOf: + - $ref: '#/components/schemas/Tx' + description: tx is the queried transaction. + txResponse: + allOf: + - $ref: '#/components/schemas/TxResponse' + description: tx_response is the queried TxResponses. + description: GetTxResponse is the response type for the Service.GetTx method. + GetTxsEventResponse: + type: object + properties: + txs: + type: array + items: + $ref: '#/components/schemas/Tx' + description: txs is the list of queried transactions. + txResponses: + type: array + items: + $ref: '#/components/schemas/TxResponse' + description: tx_responses is the list of queried TxResponses. + pagination: + allOf: + - $ref: '#/components/schemas/PageResponse' + description: |- + pagination defines a pagination for the response. + Deprecated post v0.46.x: use total instead. + total: + type: string + description: total is total number of results available + description: |- + GetTxsEventResponse is the response type for the Service.TxsByEvents + RPC method. + GetValidatorSetByHeightResponse: + type: object + properties: + blockHeight: + type: string + validators: + type: array + items: + $ref: '#/components/schemas/Validator' + pagination: + allOf: + - $ref: '#/components/schemas/PageResponse' + description: pagination defines an pagination for the response. + description: GetValidatorSetByHeightResponse is the response type for the Query/GetValidatorSetByHeight RPC method. + GoogleProtobufAny: + type: object + properties: + '@type': + type: string + description: The type of the serialized message. + additionalProperties: true + description: Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. + Grant: + 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: + allOf: + - $ref: '#/components/schemas/GoogleProtobufAny' + description: allowance can be any of basic, periodic, allowed fee allowance. + description: Grant is stored in the KVStore to record a grant with full context + GrantAuthorization: + type: object + properties: + granter: + type: string + grantee: + type: string + authorization: + $ref: '#/components/schemas/GoogleProtobufAny' + expiration: + type: string + format: date-time + description: |- + GrantAuthorization extends a grant with both the addresses of the grantee and granter. + It is used in genesis.proto and query.proto + Header: + type: object + properties: + version: + allOf: + - $ref: '#/components/schemas/Consensus' + description: basic block info + chainId: + type: string + height: + type: string + time: + type: string + format: date-time + lastBlockId: + allOf: + - $ref: '#/components/schemas/BlockID' + description: prev block info + lastCommitHash: + type: string + description: hashes of block data + format: bytes + dataHash: + type: string + format: bytes + validatorsHash: + type: string + description: hashes from the app output from the prev block + format: bytes + nextValidatorsHash: + type: string + format: bytes + consensusHash: + type: string + format: bytes + appHash: + type: string + format: bytes + lastResultsHash: + type: string + format: bytes + evidenceHash: + type: string + description: consensus info + format: bytes + proposerAddress: + 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. + description: Header defines the structure of a Tendermint block header. + Height: + type: object + properties: + revisionNumber: + type: string + description: the revision that the client is currently on + revisionHeight: + type: string + description: the height within the given revision + description: |- + Height is a monotonically increasing data type + that can be compared against another Height for the purposes of updating and + freezing clients + + Normally the RevisionHeight is incremented at each height while keeping + RevisionNumber the same. However some consensus algorithms may choose to + reset the height in certain conditions e.g. hard forks, state-machine + breaking changes In these cases, the RevisionNumber is incremented so that + height continues to be monitonically increasing even as the RevisionHeight + gets reset + HistoricalInfo: + type: object + properties: + header: + $ref: '#/components/schemas/Header' + valset: + type: array + items: + $ref: '#/components/schemas/Validator' + description: |- + HistoricalInfo contains header and validator information for a given block. + It is stored as part of staking module's state, which persists the `n` most + recent HistoricalInfo + (`n` is set by the staking module's `historical_entries` parameter). + IdentifiedChannel: + type: object + properties: + state: + type: integer + description: current state of the channel end + format: enum + ordering: + type: integer + description: whether the channel is ordered or unordered + format: enum + counterparty: + allOf: + - $ref: '#/components/schemas/Counterparty' + description: counterparty channel end + connectionHops: + type: array + items: + type: string + description: |- + list of connection identifiers, in order, along which packets sent on + this channel will travel + version: + type: string + description: opaque channel version, which is agreed upon during the handshake + portId: + type: string + description: port identifier + channelId: + type: string + description: channel identifier + upgradeSequence: + type: string + description: |- + upgrade sequence indicates the latest upgrade attempt performed by this channel + the value of 0 indicates the channel has never been upgraded + description: |- + IdentifiedChannel defines a channel with additional port and channel + identifier fields. + IdentifiedClientState: + type: object + properties: + clientId: + type: string + description: client identifier + clientState: + allOf: + - $ref: '#/components/schemas/GoogleProtobufAny' + description: client state + description: |- + IdentifiedClientState defines a client state with an additional client + identifier field. + IdentifiedConnection: + type: object + properties: + id: + type: string + description: connection identifier. + clientId: + type: string + description: client associated with this connection. + versions: + type: array + items: + $ref: '#/components/schemas/Version' + description: |- + IBC version which can be utilised to determine encodings or protocols for + channels or packets utilising this connection + state: + type: integer + description: current state of the connection end. + format: enum + counterparty: + allOf: + - $ref: '#/components/schemas/Counterparty' + description: counterparty chain associated with this connection. + delayPeriod: + type: string + description: delay period associated with this connection. + description: |- + IdentifiedConnection defines a connection with additional connection + identifier field. + LightBlock: + type: object + properties: + signedHeader: + $ref: '#/components/schemas/SignedHeader' + validatorSet: + $ref: '#/components/schemas/ValidatorSet' + LightClientAttackEvidence: + type: object + properties: + conflictingBlock: + $ref: '#/components/schemas/LightBlock' + commonHeight: + type: string + byzantineValidators: + type: array + items: + $ref: '#/components/schemas/Validator' + totalVotingPower: + type: string + timestamp: + type: string + format: date-time + description: LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. + MerklePath: + type: object + properties: + keyPath: + type: array + items: + type: string + description: |- + MerklePath is the path used to verify commitment proofs, which can be an + arbitrary structured object (defined by a commitment type). + MerklePath is represented from root-to-leaf + Metadata: + type: object + properties: + chunkHashes: + type: array + items: + type: string + format: bytes + description: Metadata contains SDK-specific snapshot metadata. + ModeInfo: + type: object + properties: + single: + allOf: + - $ref: '#/components/schemas/ModeInfo_Single' + description: single represents a single signer + multi: + allOf: + - $ref: '#/components/schemas/ModeInfo_Multi' + description: multi represents a nested multisig signer + description: ModeInfo describes the signing mode of a single or nested multisig signer. + ModeInfo_Multi: + type: object + properties: + bitarray: + allOf: + - $ref: '#/components/schemas/CompactBitArray' + description: bitarray specifies which keys within the multisig are signing + modeInfos: + type: array + items: + $ref: '#/components/schemas/ModeInfo' + description: |- + mode_infos is the corresponding modes of the signers of the multisig + which could include nested multisig public keys + description: Multi is the mode info for a multisig public key + ModeInfo_Single: + type: object + properties: + mode: + type: integer + description: mode is the signing mode of the single signer + format: enum + description: |- + Single is the mode info for a single signer. It is structured as a message + to allow for additional fields such as locale for SIGN_MODE_TEXTUAL in the + future + Model: + type: object + properties: + key: + type: string + description: hex-encode key to read it better (this is often ascii) + format: bytes + value: + type: string + description: base64-encode raw value + format: bytes + description: Model is a struct that holds a KV pair + Module: + type: object + properties: + path: + type: string + description: module path + version: + type: string + description: module version + sum: + type: string + description: checksum + description: Module is the type for VersionInfo + ModuleVersion: + type: object + properties: + name: + type: string + description: name of the app module + version: + type: string + description: consensus version of the app module + description: ModuleVersion specifies a module and its consensus version. + PacketState: + type: object + properties: + portId: + type: string + description: channel port identifier. + channelId: + type: string + description: channel unique identifier. + sequence: + type: string + description: packet sequence. + data: + type: string + description: embedded data that represents packet state. + format: bytes + 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. + PageResponse: + type: object + properties: + nextKey: + type: string + 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. + format: bytes + total: + type: string + description: |- + 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; + } + Params: + type: object + properties: + contractGasLimit: + type: string + description: contract_gas_limit is the contract call gas limit + contractFailureRemovalThreshold: + type: string + description: contract_failure_removal_threshold is the threshold for removing a contract after consecutive failures + sendEnabled: + type: array + items: + $ref: '#/components/schemas/SendEnabled' + description: |- + Deprecated: Use of SendEnabled in params is deprecated. + For genesis, use the newly added send_enabled field in the genesis object. + 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. + defaultSendEnabled: + type: boolean + allowedClients: + 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. + hostEnabled: + type: boolean + description: host_enabled enables or disables the host submodule. + allowQueries: + type: array + items: + type: string + description: allow_queries defines a list of query paths allowed to be queried on a host chain. + codeUploadAccess: + $ref: '#/components/schemas/AccessConfig' + instantiateDefaultPermission: + type: integer + format: enum + description: Params defines the set of wasm parameters. + ParamsResponse: + type: object + properties: + params: + $ref: '#/components/schemas/Params' + description: ParamsResponse is the response type for the Query/Params RPC method. + PartSetHeader: + type: object + properties: + total: + type: integer + format: uint32 + hash: + type: string + format: bytes + description: PartsetHeader + 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 + 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. + format: date-time + height: + type: string + description: The height at which the upgrade must be performed. + info: + type: string + description: |- + Any application specific upgrade info to be included on-chain + such as a git commit that validators could automatically upgrade to + upgradedClientState: + allOf: + - $ref: '#/components/schemas/GoogleProtobufAny' + 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. + description: Plan specifies information about a planned upgrade and when it should occur. + Pool: + type: object + properties: + notBondedTokens: + type: string + bondedTokens: + type: string + description: |- + Pool is used for tracking bonded and not-bonded token supply of the bond + denomination. + ProofOp: + type: object + properties: + type: + type: string + key: + type: string + format: bytes + data: + type: string + format: bytes + description: |- + ProofOp defines an operation used for calculating Merkle root + The data could be arbitrary format, providing nessecary data + for example neighbouring node hash + ProofOps: + type: object + properties: + ops: + type: array + items: + $ref: '#/components/schemas/ProofOp' + 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. + Proposal: + type: object + properties: + proposalId: + type: string + description: proposal_id defines the unique id of the proposal. + content: + allOf: + - $ref: '#/components/schemas/GoogleProtobufAny' + description: content is the proposal's content. + status: + type: integer + description: status defines the proposal status. + format: enum + finalTallyResult: + allOf: + - $ref: '#/components/schemas/TallyResult' + 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. + submitTime: + type: string + description: submit_time is the time of proposal submission. + format: date-time + depositEndTime: + type: string + description: deposit_end_time is the end time for deposition. + format: date-time + totalDeposit: + type: array + items: + $ref: '#/components/schemas/Coin' + description: total_deposit is the total deposit on the proposal. + votingStartTime: + type: string + description: voting_start_time is the starting time to vote on a proposal. + format: date-time + votingEndTime: + type: string + description: voting_end_time is the end time of voting on a proposal. + format: date-time + description: Proposal defines the core field members of a governance proposal. + ProtocolVersion: + type: object + properties: + p2p: + type: string + block: + type: string + app: + type: string + QueryAccountAddressByIDResponse: + type: object + properties: + accountAddress: + type: string + description: QueryAccountAddressByIDResponse is the response type for AccountAddressByID rpc method + QueryAccountInfoResponse: + type: object + properties: + info: + allOf: + - $ref: '#/components/schemas/BaseAccount' + description: info is the account info which is represented by BaseAccount. + description: QueryAccountInfoResponse is the Query/AccountInfo response type. + QueryAccountResponse: + type: object + properties: + account: + allOf: + - $ref: '#/components/schemas/GoogleProtobufAny' + description: account defines the account of the corresponding address. + description: QueryAccountResponse is the response type for the Query/Account RPC method. + QueryAccountsResponse: + type: object + properties: + accounts: + type: array + items: + $ref: '#/components/schemas/GoogleProtobufAny' + description: accounts are the existing accounts + pagination: + allOf: + - $ref: '#/components/schemas/PageResponse' + description: pagination defines the pagination in the response. + description: QueryAccountsResponse is the response type for the Query/Accounts RPC method. + QueryAllBalancesResponse: + type: object + properties: + balances: + type: array + items: + $ref: '#/components/schemas/Coin' + description: balances is the balances of all the coins. + pagination: + allOf: + - $ref: '#/components/schemas/PageResponse' + description: pagination defines the pagination in the response. + description: |- + QueryAllBalancesResponse is the response type for the Query/AllBalances RPC + method. + QueryAllContractStateResponse: + type: object + properties: + models: + type: array + items: + $ref: '#/components/schemas/Model' + pagination: + allOf: + - $ref: '#/components/schemas/PageResponse' + description: pagination defines the pagination in the response. + description: |- + QueryAllContractStateResponse is the response type for the + Query/AllContractState RPC method + QueryAllEvidenceResponse: + type: object + properties: + evidence: + type: array + items: + $ref: '#/components/schemas/GoogleProtobufAny' + description: evidence returns all evidences. + pagination: + allOf: + - $ref: '#/components/schemas/PageResponse' + description: pagination defines the pagination in the response. + description: |- + QueryAllEvidenceResponse is the response type for the Query/AllEvidence RPC + method. + QueryAllowanceResponse: + type: object + properties: + allowance: + allOf: + - $ref: '#/components/schemas/Grant' + description: allowance is a allowance granted for grantee by granter. + description: QueryAllowanceResponse is the response type for the Query/Allowance RPC method. + QueryAllowancesByGranterResponse: + type: object + properties: + allowances: + type: array + items: + $ref: '#/components/schemas/Grant' + description: allowances that have been issued by the granter. + pagination: + allOf: + - $ref: '#/components/schemas/PageResponse' + description: pagination defines an pagination for the response. + description: QueryAllowancesByGranterResponse is the response type for the Query/AllowancesByGranter RPC method. + QueryAllowancesResponse: + type: object + properties: + allowances: + type: array + items: + $ref: '#/components/schemas/Grant' + description: allowances are allowance's granted for grantee by granter. + pagination: + allOf: + - $ref: '#/components/schemas/PageResponse' + description: pagination defines an pagination for the response. + description: QueryAllowancesResponse is the response type for the Query/Allowances RPC method. + QueryAnnualProvisionsResponse: + type: object + properties: + annualProvisions: + type: string + description: annual_provisions is the current minting annual provisions value. + format: bytes + description: |- + QueryAnnualProvisionsResponse is the response type for the + Query/AnnualProvisions RPC method. + QueryAppliedPlanResponse: + type: object + properties: + height: + type: string + description: height is the block height at which the plan was applied. + description: |- + QueryAppliedPlanResponse is the response type for the Query/AppliedPlan RPC + method. + QueryAuthorityResponse: + type: object + properties: + address: + type: string + description: QueryAuthorityResponse is the response type for Query/Authority + QueryBalanceResponse: + type: object + properties: + balance: + allOf: + - $ref: '#/components/schemas/Coin' + description: balance is the balance of the coin. + description: QueryBalanceResponse is the response type for the Query/Balance RPC method. + QueryBuildAddressResponse: + type: object + properties: + address: + type: string + description: Address is the contract address + description: |- + QueryBuildAddressResponse is the response type for the Query/BuildAddress RPC + method. + QueryChannelClientStateResponse: + type: object + properties: + identifiedClientState: + allOf: + - $ref: '#/components/schemas/IdentifiedClientState' + description: client state associated with the channel + proof: + type: string + description: merkle proof of existence + format: bytes + proofHeight: + allOf: + - $ref: '#/components/schemas/Height' + description: height at which the proof was retrieved + description: |- + QueryChannelClientStateResponse is the Response type for the + Query/QueryChannelClientState RPC method + QueryChannelConsensusStateResponse: + type: object + properties: + consensusState: + allOf: + - $ref: '#/components/schemas/GoogleProtobufAny' + description: consensus state associated with the channel + clientId: + type: string + description: client ID associated with the consensus state + proof: + type: string + description: merkle proof of existence + format: bytes + proofHeight: + allOf: + - $ref: '#/components/schemas/Height' + description: height at which the proof was retrieved + description: |- + QueryChannelClientStateResponse is the Response type for the + Query/QueryChannelClientState RPC method + QueryChannelParamsResponse: + type: object + properties: + params: + allOf: + - $ref: '#/components/schemas/Params' + description: params defines the parameters of the module. + description: QueryChannelParamsResponse is the response type for the Query/ChannelParams RPC method. + QueryChannelResponse: + type: object + properties: + channel: + allOf: + - $ref: '#/components/schemas/Channel' + description: channel associated with the request identifiers + proof: + type: string + description: merkle proof of existence + format: bytes + proofHeight: + allOf: + - $ref: '#/components/schemas/Height' + description: height at which the proof was retrieved + 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. + QueryChannelsResponse: + type: object + properties: + channels: + type: array + items: + $ref: '#/components/schemas/IdentifiedChannel' + description: list of stored channels of the chain. + pagination: + allOf: + - $ref: '#/components/schemas/PageResponse' + description: pagination response + height: + allOf: + - $ref: '#/components/schemas/Height' + description: query block height + description: QueryChannelsResponse is the response type for the Query/Channels RPC method. + QueryClientConnectionsResponse: + type: object + properties: + connectionPaths: + type: array + items: + type: string + description: slice of all the connection paths associated with a client. + proof: + type: string + description: merkle proof of existence + format: bytes + proofHeight: + allOf: + - $ref: '#/components/schemas/Height' + description: height at which the proof was generated + description: |- + QueryClientConnectionsResponse is the response type for the + Query/ClientConnections RPC method + QueryClientParamsResponse: + type: object + properties: + params: + allOf: + - $ref: '#/components/schemas/Params' + description: params defines the parameters of the module. + description: |- + QueryClientParamsResponse is the response type for the Query/ClientParams RPC + method. + QueryClientStateResponse: + type: object + properties: + clientState: + allOf: + - $ref: '#/components/schemas/GoogleProtobufAny' + description: client state associated with the request identifier + proof: + type: string + description: merkle proof of existence + format: bytes + proofHeight: + allOf: + - $ref: '#/components/schemas/Height' + description: height at which the proof was retrieved + 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. + QueryClientStatesResponse: + type: object + properties: + clientStates: + type: array + items: + $ref: '#/components/schemas/IdentifiedClientState' + description: list of stored ClientStates of the chain. + pagination: + allOf: + - $ref: '#/components/schemas/PageResponse' + description: pagination response + description: |- + QueryClientStatesResponse is the response type for the Query/ClientStates RPC + method. + QueryClientStatusResponse: + 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. + QueryClockContractResponse: + type: object + properties: + clockContract: + allOf: + - $ref: '#/components/schemas/ClockContract' + description: contract is the clock contract. + description: QueryClockContractResponse is the response type for the Query/ClockContract RPC method. + QueryClockContractsResponse: + type: object + properties: + clockContracts: + type: array + items: + $ref: '#/components/schemas/ClockContract' + description: clock_contracts are the clock contracts. + pagination: + allOf: + - $ref: '#/components/schemas/PageResponse' + description: pagination defines the pagination in the response. + description: QueryClockContractsResponse is the response type for the Query/ClockContracts RPC method. + QueryCodeInfoResponse: + type: object + properties: + codeId: + type: string + creator: + type: string + checksum: + type: string + format: bytes + instantiatePermission: + $ref: '#/components/schemas/AccessConfig' + description: QueryCodeInfoResponse is the response type for the Query/CodeInfo RPC method + QueryCodeResponse: + type: object + properties: + codeInfo: + $ref: '#/components/schemas/CodeInfoResponse' + data: + type: string + format: bytes + description: QueryCodeResponse is the response type for the Query/Code RPC method + QueryCodesResponse: + type: object + properties: + codeInfos: + type: array + items: + $ref: '#/components/schemas/CodeInfoResponse' + pagination: + allOf: + - $ref: '#/components/schemas/PageResponse' + description: pagination defines the pagination in the response. + description: QueryCodesResponse is the response type for the Query/Codes RPC method + QueryCommunityPoolResponse: + type: object + properties: + pool: + type: array + items: + $ref: '#/components/schemas/DecCoin' + description: pool defines community pool's coins. + description: |- + QueryCommunityPoolResponse is the response type for the Query/CommunityPool + RPC method. + QueryConnectionChannelsResponse: + type: object + properties: + channels: + type: array + items: + $ref: '#/components/schemas/IdentifiedChannel' + description: list of channels associated with a connection. + pagination: + allOf: + - $ref: '#/components/schemas/PageResponse' + description: pagination response + height: + allOf: + - $ref: '#/components/schemas/Height' + description: query block height + description: |- + QueryConnectionChannelsResponse is the Response type for the + Query/QueryConnectionChannels RPC method + QueryConnectionClientStateResponse: + type: object + properties: + identifiedClientState: + allOf: + - $ref: '#/components/schemas/IdentifiedClientState' + description: client state associated with the channel + proof: + type: string + description: merkle proof of existence + format: bytes + proofHeight: + allOf: + - $ref: '#/components/schemas/Height' + description: height at which the proof was retrieved + description: |- + QueryConnectionClientStateResponse is the response type for the + Query/ConnectionClientState RPC method + QueryConnectionConsensusStateResponse: + type: object + properties: + consensusState: + allOf: + - $ref: '#/components/schemas/GoogleProtobufAny' + description: consensus state associated with the channel + clientId: + type: string + description: client ID associated with the consensus state + proof: + type: string + description: merkle proof of existence + format: bytes + proofHeight: + allOf: + - $ref: '#/components/schemas/Height' + description: height at which the proof was retrieved + description: |- + QueryConnectionConsensusStateResponse is the response type for the + Query/ConnectionConsensusState RPC method + QueryConnectionParamsResponse: + type: object + properties: + params: + allOf: + - $ref: '#/components/schemas/Params' + description: params defines the parameters of the module. + description: QueryConnectionParamsResponse is the response type for the Query/ConnectionParams RPC method. + QueryConnectionResponse: + type: object + properties: + connection: + allOf: + - $ref: '#/components/schemas/ConnectionEnd' + description: connection associated with the request identifier + proof: + type: string + description: merkle proof of existence + format: bytes + proofHeight: + allOf: + - $ref: '#/components/schemas/Height' + description: height at which the proof was retrieved + 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. + QueryConnectionsResponse: + type: object + properties: + connections: + type: array + items: + $ref: '#/components/schemas/IdentifiedConnection' + description: list of stored connections of the chain. + pagination: + allOf: + - $ref: '#/components/schemas/PageResponse' + description: pagination response + height: + allOf: + - $ref: '#/components/schemas/Height' + description: query block height + description: |- + QueryConnectionsResponse is the response type for the Query/Connections RPC + method. + QueryConsensusStateHeightsResponse: + type: object + properties: + consensusStateHeights: + type: array + items: + $ref: '#/components/schemas/Height' + description: consensus state heights + pagination: + allOf: + - $ref: '#/components/schemas/PageResponse' + description: pagination response + description: |- + QueryConsensusStateHeightsResponse is the response type for the + Query/ConsensusStateHeights RPC method + QueryConsensusStateResponse: + type: object + properties: + consensusState: + allOf: + - $ref: '#/components/schemas/GoogleProtobufAny' + description: consensus state associated with the client identifier at the given height + proof: + type: string + description: merkle proof of existence + format: bytes + proofHeight: + allOf: + - $ref: '#/components/schemas/Height' + description: height at which the proof was retrieved + description: |- + QueryConsensusStateResponse is the response type for the Query/ConsensusState + RPC method + QueryConsensusStatesResponse: + type: object + properties: + consensusStates: + type: array + items: + $ref: '#/components/schemas/ConsensusStateWithHeight' + description: consensus states associated with the identifier + pagination: + allOf: + - $ref: '#/components/schemas/PageResponse' + description: pagination response + description: |- + QueryConsensusStatesResponse is the response type for the + Query/ConsensusStates RPC method + QueryConstitutionResponse: + type: object + properties: + constitution: + type: string + description: QueryConstitutionResponse is the response type for the Query/Constitution RPC method + QueryContractHistoryResponse: + type: object + properties: + entries: + type: array + items: + $ref: '#/components/schemas/ContractCodeHistoryEntry' + pagination: + allOf: + - $ref: '#/components/schemas/PageResponse' + description: pagination defines the pagination in the response. + description: |- + QueryContractHistoryResponse is the response type for the + Query/ContractHistory RPC method + QueryContractInfoResponse: + type: object + properties: + contract: + $ref: '#/components/schemas/ContractInfo' + address: + type: string + description: address is the address of the contract + contractInfo: + $ref: '#/components/schemas/ContractInfo' + description: |- + QueryContractInfoResponse is the response type for the Query/ContractInfo RPC + method + QueryContractsByCodeResponse: + type: object + properties: + contracts: + type: array + items: + type: string + description: contracts are a set of contract addresses + pagination: + allOf: + - $ref: '#/components/schemas/PageResponse' + description: pagination defines the pagination in the response. + description: |- + QueryContractsByCodeResponse is the response type for the + Query/ContractsByCode RPC method + QueryContractsByCreatorResponse: + type: object + properties: + contractAddresses: + type: array + items: + type: string + description: ContractAddresses result set + pagination: + allOf: + - $ref: '#/components/schemas/PageResponse' + description: Pagination defines the pagination in the response. + description: |- + QueryContractsByCreatorResponse is the response type for the + Query/ContractsByCreator RPC method. + QueryContractsResponse: + type: object + properties: + contracts: + type: array + items: + $ref: '#/components/schemas/ContractInfo' + description: The contracts registered for the module + description: QueryContractsResponse is the response type for the Query/Contracts RPC method + QueryCurrentPlanResponse: + type: object + properties: + plan: + allOf: + - $ref: '#/components/schemas/Plan' + description: plan is the current upgrade plan. + description: |- + QueryCurrentPlanResponse is the response type for the Query/CurrentPlan RPC + method. + QueryDelegationResponse: + type: object + properties: + delegationResponse: + allOf: + - $ref: '#/components/schemas/DelegationResponse' + description: delegation_responses defines the delegation info of a delegation. + description: QueryDelegationResponse is response type for the Query/Delegation RPC method. + QueryDelegationRewardsResponse: + type: object + properties: + rewards: + type: array + items: + $ref: '#/components/schemas/DecCoin' + description: rewards defines the rewards accrued by a delegation. + description: |- + QueryDelegationRewardsResponse is the response type for the + Query/DelegationRewards RPC method. + QueryDelegationTotalRewardsResponse: + type: object + properties: + rewards: + type: array + items: + $ref: '#/components/schemas/DelegationDelegatorReward' + description: rewards defines all the rewards accrued by a delegator. + total: + type: array + items: + $ref: '#/components/schemas/DecCoin' + description: total defines the sum of all the rewards. + description: |- + QueryDelegationTotalRewardsResponse is the response type for the + Query/DelegationTotalRewards RPC method. + QueryDelegatorDelegationsResponse: + type: object + properties: + delegationResponses: + type: array + items: + $ref: '#/components/schemas/DelegationResponse' + description: delegation_responses defines all the delegations' info of a delegator. + pagination: + allOf: + - $ref: '#/components/schemas/PageResponse' + description: pagination defines the pagination in the response. + description: |- + QueryDelegatorDelegationsResponse is response type for the + Query/DelegatorDelegations RPC method. + QueryDelegatorUnbondingDelegationsResponse: + type: object + properties: + unbondingResponses: + type: array + items: + $ref: '#/components/schemas/UnbondingDelegation' + pagination: + allOf: + - $ref: '#/components/schemas/PageResponse' + description: pagination defines the pagination in the response. + description: |- + QueryUnbondingDelegatorDelegationsResponse is response type for the + Query/UnbondingDelegatorDelegations RPC method. + QueryDelegatorValidatorResponse: + type: object + properties: + validator: + allOf: + - $ref: '#/components/schemas/Validator' + description: validator defines the validator info. + description: |- + QueryDelegatorValidatorResponse response type for the + Query/DelegatorValidator RPC method. + QueryDelegatorValidatorsResponse: + 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. + QueryDelegatorWithdrawAddressResponse: + type: object + properties: + withdrawAddress: + type: string + description: withdraw_address defines the delegator address to query for. + description: |- + QueryDelegatorWithdrawAddressResponse is the response type for the + Query/DelegatorWithdrawAddress RPC method. + QueryDenomAuthorityMetadataResponse: + type: object + properties: + authorityMetadata: + $ref: '#/components/schemas/DenomAuthorityMetadata' + description: |- + QueryDenomAuthorityMetadataResponse defines the response structure for the + DenomAuthorityMetadata gRPC query. + QueryDenomHashResponse: + 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. + QueryDenomMetadataByQueryStringResponse: + type: object + properties: + metadata: + allOf: + - $ref: '#/components/schemas/Metadata' + description: metadata describes and provides all the client information for the requested token. + description: |- + QueryDenomMetadataByQueryStringResponse is the response type for the Query/DenomMetadata RPC + method. Identical with QueryDenomMetadataResponse but receives denom as query string in request. + QueryDenomMetadataResponse: + type: object + properties: + metadata: + allOf: + - $ref: '#/components/schemas/Metadata' + description: metadata describes and provides all the client information for the requested token. + description: |- + QueryDenomMetadataResponse is the response type for the Query/DenomMetadata RPC + method. + QueryDenomOwnersByQueryResponse: + type: object + properties: + denomOwners: + type: array + items: + $ref: '#/components/schemas/DenomOwner' + pagination: + allOf: + - $ref: '#/components/schemas/PageResponse' + description: pagination defines the pagination in the response. + description: QueryDenomOwnersByQueryResponse defines the RPC response of a DenomOwnersByQuery RPC query. + QueryDenomOwnersResponse: + type: object + properties: + denomOwners: + type: array + items: + $ref: '#/components/schemas/DenomOwner' + pagination: + allOf: + - $ref: '#/components/schemas/PageResponse' + description: pagination defines the pagination in the response. + description: QueryDenomOwnersResponse defines the RPC response of a DenomOwners RPC query. + QueryDenomTraceResponse: + type: object + properties: + denomTrace: + allOf: + - $ref: '#/components/schemas/DenomTrace' + description: denom_trace returns the requested denomination trace information. + description: |- + QueryDenomTraceResponse is the response type for the Query/DenomTrace RPC + method. + QueryDenomTracesResponse: + type: object + properties: + denomTraces: + type: array + items: + $ref: '#/components/schemas/DenomTrace' + description: denom_traces returns all denominations trace information. + pagination: + allOf: + - $ref: '#/components/schemas/PageResponse' + description: pagination defines the pagination in the response. + description: |- + QueryConnectionsResponse is the response type for the Query/DenomTraces RPC + method. + QueryDenomsFromCreatorResponse: + type: object + properties: + denoms: + type: array + items: + type: string + description: |- + QueryDenomsFromCreatorRequest defines the response structure for the + DenomsFromCreator gRPC query. + QueryDenomsMetadataResponse: + type: object + properties: + metadatas: + type: array + items: + $ref: '#/components/schemas/Metadata' + description: metadata provides the client information for all the registered tokens. + pagination: + allOf: + - $ref: '#/components/schemas/PageResponse' + description: pagination defines the pagination in the response. + description: |- + QueryDenomsMetadataResponse is the response type for the Query/DenomsMetadata RPC + method. + QueryDeployerFeeSharesResponse: + type: object + properties: + contractAddresses: + type: array + items: + type: string + description: |- + contract_addresses is the slice of registered contract addresses for a + deployer + pagination: + allOf: + - $ref: '#/components/schemas/PageResponse' + description: pagination defines the pagination in the response. + description: |- + QueryDeployerFeeSharesResponse is the response type for the + Query/DeployerFeeShares RPC method. + QueryDepositResponse: + type: object + properties: + deposit: + allOf: + - $ref: '#/components/schemas/Deposit' + description: deposit defines the requested deposit. + description: QueryDepositResponse is the response type for the Query/Deposit RPC method. + QueryDepositsResponse: + type: object + properties: + deposits: + type: array + items: + $ref: '#/components/schemas/Deposit' + description: deposits defines the requested deposits. + pagination: + allOf: + - $ref: '#/components/schemas/PageResponse' + description: pagination defines the pagination in the response. + description: QueryDepositsResponse is the response type for the Query/Deposits RPC method. + QueryEscrowAddressResponse: + type: object + properties: + escrowAddress: + type: string + description: the escrow account address + description: QueryEscrowAddressResponse is the response type of the EscrowAddress RPC method. + QueryEvidenceResponse: + type: object + properties: + evidence: + allOf: + - $ref: '#/components/schemas/GoogleProtobufAny' + description: evidence returns the requested evidence. + description: QueryEvidenceResponse is the response type for the Query/Evidence RPC method. + QueryFeePayContractResponse: + type: object + properties: + feePayContract: + allOf: + - $ref: '#/components/schemas/FeePayContract' + description: contract defines the fee pay contract + description: QueryFeePayContractResponse defines the response for retrieving a single fee pay contract + QueryFeePayContractUsesResponse: + type: object + properties: + uses: + type: string + description: The number of uses on the fee pay contract by wallet + description: The response for querying the number of uses on a fee pay contract by wallet + QueryFeePayContractsResponse: + type: object + properties: + feePayContracts: + type: array + items: + $ref: '#/components/schemas/FeePayContract' + description: A slice of all the stored fee pay contracts + pagination: + allOf: + - $ref: '#/components/schemas/PageResponse' + description: pagination defines the pagination in the response. + description: The response for querying all fee pay contracts + QueryFeePayWalletIsEligibleResponse: + type: object + properties: + eligible: + type: boolean + description: The eligibility of the wallet for fee pay contract interactions + description: The response for querying if a wallet is eligible for fee pay contract interactions + QueryFeeShareResponse: + type: object + properties: + feeshare: + allOf: + - $ref: '#/components/schemas/FeeShare' + description: FeeShare is a stored Reveneue for the queried contract + description: QueryFeeShareResponse is the response type for the Query/FeeShare RPC method. + QueryFeeSharesResponse: + type: object + properties: + feeshare: + type: array + items: + $ref: '#/components/schemas/FeeShare' + description: FeeShare is a slice of all stored Reveneue + pagination: + allOf: + - $ref: '#/components/schemas/PageResponse' + description: pagination defines the pagination in the response. + description: |- + QueryFeeSharesResponse is the response type for the Query/FeeShares RPC + method. + QueryGranteeGrantsResponse: + type: object + properties: + grants: + type: array + items: + $ref: '#/components/schemas/GrantAuthorization' + description: grants is a list of grants granted to the grantee. + pagination: + allOf: + - $ref: '#/components/schemas/PageResponse' + description: pagination defines an pagination for the response. + description: QueryGranteeGrantsResponse is the response type for the Query/GranteeGrants RPC method. + QueryGranterGrantsResponse: + type: object + properties: + grants: + type: array + items: + $ref: '#/components/schemas/GrantAuthorization' + description: grants is a list of grants granted by the granter. + pagination: + allOf: + - $ref: '#/components/schemas/PageResponse' + description: pagination defines an pagination for the response. + description: QueryGranterGrantsResponse is the response type for the Query/GranterGrants RPC method. + QueryGrantsResponse: + type: object + properties: + grants: + type: array + items: + $ref: '#/components/schemas/Grant' + description: authorizations is a list of grants granted for grantee by granter. + pagination: + allOf: + - $ref: '#/components/schemas/PageResponse' + description: pagination defines an pagination for the response. + description: QueryGrantsResponse is the response type for the Query/Authorizations RPC method. + QueryHistoricalInfoResponse: + type: object + properties: + hist: + allOf: + - $ref: '#/components/schemas/HistoricalInfo' + description: hist defines the historical info at the given height. + description: |- + QueryHistoricalInfoResponse is response type for the Query/HistoricalInfo RPC + method. + QueryInflationResponse: + type: object + properties: + inflation: + type: string + description: inflation is the current minting inflation value. + format: bytes + description: |- + QueryInflationResponse is the response type for the Query/Inflation RPC + method. + QueryInterchainAccountResponse: + type: object + properties: + address: + type: string + description: QueryInterchainAccountResponse the response type for the Query/InterchainAccount RPC method. + QueryModuleAccountByNameResponse: + type: object + properties: + account: + $ref: '#/components/schemas/GoogleProtobufAny' + description: QueryModuleAccountByNameResponse is the response type for the Query/ModuleAccountByName RPC method. + QueryModuleAccountsResponse: + type: object + properties: + accounts: + type: array + items: + $ref: '#/components/schemas/GoogleProtobufAny' + description: QueryModuleAccountsResponse is the response type for the Query/ModuleAccounts RPC method. + QueryModuleVersionsResponse: + type: object + properties: + moduleVersions: + type: array + items: + $ref: '#/components/schemas/ModuleVersion' + 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. + QueryNextSequenceReceiveResponse: + type: object + properties: + nextSequenceReceive: + type: string + description: next sequence receive number + proof: + type: string + description: merkle proof of existence + format: bytes + proofHeight: + allOf: + - $ref: '#/components/schemas/Height' + description: height at which the proof was retrieved + description: |- + QuerySequenceResponse is the response type for the + Query/QueryNextSequenceReceiveResponse RPC method + QueryNextSequenceSendResponse: + type: object + properties: + nextSequenceSend: + type: string + description: next sequence send number + proof: + type: string + description: merkle proof of existence + format: bytes + proofHeight: + allOf: + - $ref: '#/components/schemas/Height' + description: height at which the proof was retrieved + description: |- + QueryNextSequenceSendResponse is the request type for the + Query/QueryNextSequenceSend RPC method + QueryPacketAcknowledgementResponse: + type: object + properties: + acknowledgement: + type: string + description: packet associated with the request fields + format: bytes + proof: + type: string + description: merkle proof of existence + format: bytes + proofHeight: + allOf: + - $ref: '#/components/schemas/Height' + description: height at which the proof was retrieved + description: |- + QueryPacketAcknowledgementResponse defines the client query response for a + packet which also includes a proof and the height from which the + proof was retrieved + QueryPacketAcknowledgementsResponse: + type: object + properties: + acknowledgements: + type: array + items: + $ref: '#/components/schemas/PacketState' + pagination: + allOf: + - $ref: '#/components/schemas/PageResponse' + description: pagination response + height: + allOf: + - $ref: '#/components/schemas/Height' + description: query block height + description: |- + QueryPacketAcknowledgemetsResponse is the request type for the + Query/QueryPacketAcknowledgements RPC method + QueryPacketCommitmentResponse: + type: object + properties: + commitment: + type: string + description: packet associated with the request fields + format: bytes + proof: + type: string + description: merkle proof of existence + format: bytes + proofHeight: + allOf: + - $ref: '#/components/schemas/Height' + description: height at which the proof was retrieved + description: |- + QueryPacketCommitmentResponse defines the client query response for a packet + which also includes a proof and the height from which the proof was + retrieved + QueryPacketCommitmentsResponse: + type: object + properties: + commitments: + type: array + items: + $ref: '#/components/schemas/PacketState' + pagination: + allOf: + - $ref: '#/components/schemas/PageResponse' + description: pagination response + height: + allOf: + - $ref: '#/components/schemas/Height' + description: query block height + description: |- + QueryPacketCommitmentsResponse is the request type for the + Query/QueryPacketCommitments RPC method + QueryPacketReceiptResponse: + type: object + properties: + received: + type: boolean + description: success flag for if receipt exists + proof: + type: string + description: merkle proof of existence + format: bytes + proofHeight: + allOf: + - $ref: '#/components/schemas/Height' + description: height at which the proof was retrieved + description: |- + QueryPacketReceiptResponse defines the client query response for a packet + receipt which also includes a proof, and the height from which the proof was + retrieved + QueryParamsResponse: + type: object + properties: + params: + $ref: '#/components/schemas/Params' + allOf: + - $ref: '#/components/schemas/Params' + - $ref: '#/components/schemas/Params' + - $ref: '#/components/schemas/Params' + - $ref: '#/components/schemas/Params' + description: params defines the parameters of the module. + description: QueryParamsResponse is the response type for the Query/Params RPC method. + QueryPinnedCodesResponse: + type: object + properties: + codeIds: + type: array + items: + type: string + pagination: + allOf: + - $ref: '#/components/schemas/PageResponse' + description: pagination defines the pagination in the response. + description: |- + QueryPinnedCodesResponse is the response type for the + Query/PinnedCodes RPC method + QueryPoolResponse: + type: object + properties: + pool: + allOf: + - $ref: '#/components/schemas/Pool' + description: pool defines the pool info. + description: QueryPoolResponse is response type for the Query/Pool RPC method. + QueryProposalResponse: + type: object + properties: + proposal: + allOf: + - $ref: '#/components/schemas/Proposal' + description: proposal is the requested governance proposal. + description: QueryProposalResponse is the response type for the Query/Proposal RPC method. + QueryProposalsResponse: + type: object + properties: + proposals: + type: array + items: + $ref: '#/components/schemas/Proposal' + description: proposals defines all the requested governance proposals. + pagination: + allOf: + - $ref: '#/components/schemas/PageResponse' + description: pagination defines the pagination in the response. + description: |- + QueryProposalsResponse is the response type for the Query/Proposals RPC + method. + QueryRawContractStateResponse: + type: object + properties: + data: + type: string + description: Data contains the raw store data + format: bytes + description: |- + QueryRawContractStateResponse is the response type for the + Query/RawContractState RPC method + QueryRedelegationsResponse: + type: object + properties: + redelegationResponses: + type: array + items: + $ref: '#/components/schemas/RedelegationResponse' + pagination: + allOf: + - $ref: '#/components/schemas/PageResponse' + description: pagination defines the pagination in the response. + description: |- + QueryRedelegationsResponse is response type for the Query/Redelegations RPC + method. + QuerySendEnabledResponse: + type: object + properties: + sendEnabled: + type: array + items: + $ref: '#/components/schemas/SendEnabled' + pagination: + allOf: + - $ref: '#/components/schemas/PageResponse' + description: |- + pagination defines the pagination in the response. This field is only + populated if the denoms field in the request is empty. + description: QuerySendEnabledResponse defines the RPC response of a SendEnable query. + QuerySigningInfoResponse: + type: object + properties: + valSigningInfo: + allOf: + - $ref: '#/components/schemas/ValidatorSigningInfo' + description: val_signing_info is the signing info of requested val cons address + description: |- + QuerySigningInfoResponse is the response type for the Query/SigningInfo RPC + method + QuerySigningInfosResponse: + type: object + properties: + info: + type: array + items: + $ref: '#/components/schemas/ValidatorSigningInfo' + description: info is the signing info of all validators + pagination: + $ref: '#/components/schemas/PageResponse' + description: |- + QuerySigningInfosResponse is the response type for the Query/SigningInfos RPC + method + QuerySmartContractStateResponse: + type: object + properties: + data: + type: string + description: Data contains the json data returned from the smart contract + format: bytes + description: |- + QuerySmartContractStateResponse is the response type for the + Query/SmartContractState RPC method + QuerySpendableBalanceByDenomResponse: + type: object + properties: + balance: + allOf: + - $ref: '#/components/schemas/Coin' + description: balance is the balance of the coin. + description: |- + QuerySpendableBalanceByDenomResponse defines the gRPC response structure for + querying an account's spendable balance for a specific denom. + QuerySpendableBalancesResponse: + type: object + properties: + balances: + type: array + items: + $ref: '#/components/schemas/Coin' + description: balances is the spendable balances of all the coins. + pagination: + allOf: + - $ref: '#/components/schemas/PageResponse' + description: pagination defines the pagination in the response. + description: |- + QuerySpendableBalancesResponse defines the gRPC response structure for querying + an account's spendable balances. + QuerySupplyOfResponse: + type: object + properties: + amount: + allOf: + - $ref: '#/components/schemas/Coin' + description: amount is the supply of the coin. + description: QuerySupplyOfResponse is the response type for the Query/SupplyOf RPC method. + QueryTallyResultResponse: + type: object + properties: + tally: + allOf: + - $ref: '#/components/schemas/TallyResult' + description: tally defines the requested tally. + description: QueryTallyResultResponse is the response type for the Query/Tally RPC method. + QueryTargetSupplyResponse: + type: object + properties: + targetSupply: + type: string + description: target_supply is the target supply for this phase value. + format: bytes + description: |- + QueryTargetSupplyResponse is the response type for the + Query/TargetSupply RPC method. + QueryTotalEscrowForDenomResponse: + type: object + properties: + amount: + $ref: '#/components/schemas/Coin' + description: QueryTotalEscrowForDenomResponse is the response type for TotalEscrowForDenom RPC method. + QueryTotalSupplyResponse: + type: object + properties: + supply: + type: array + items: + $ref: '#/components/schemas/Coin' + description: supply is the supply of the coins + pagination: + allOf: + - $ref: '#/components/schemas/PageResponse' + description: pagination defines the pagination in the response. + description: |- + QueryTotalSupplyResponse is the response type for the Query/TotalSupply RPC + method + QueryUnbondingDelegationResponse: + type: object + properties: + unbond: + allOf: + - $ref: '#/components/schemas/UnbondingDelegation' + description: unbond defines the unbonding information of a delegation. + description: |- + QueryDelegationResponse is response type for the Query/UnbondingDelegation + RPC method. + QueryUnreceivedAcksResponse: + type: object + properties: + sequences: + type: array + items: + type: string + description: list of unreceived acknowledgement sequences + height: + allOf: + - $ref: '#/components/schemas/Height' + description: query block height + description: |- + QueryUnreceivedAcksResponse is the response type for the + Query/UnreceivedAcks RPC method + QueryUnreceivedPacketsResponse: + type: object + properties: + sequences: + type: array + items: + type: string + description: list of unreceived packet sequences + height: + allOf: + - $ref: '#/components/schemas/Height' + description: query block height + description: |- + QueryUnreceivedPacketsResponse is the response type for the + Query/UnreceivedPacketCommitments RPC method + QueryUpgradeErrorResponse: + type: object + properties: + errorReceipt: + $ref: '#/components/schemas/ErrorReceipt' + proof: + type: string + description: merkle proof of existence + format: bytes + proofHeight: + allOf: + - $ref: '#/components/schemas/Height' + description: height at which the proof was retrieved + description: QueryUpgradeErrorResponse is the response type for the Query/QueryUpgradeError RPC method + QueryUpgradeResponse: + type: object + properties: + upgrade: + $ref: '#/components/schemas/Upgrade' + proof: + type: string + description: merkle proof of existence + format: bytes + proofHeight: + allOf: + - $ref: '#/components/schemas/Height' + description: height at which the proof was retrieved + description: QueryUpgradeResponse is the response type for the QueryUpgradeResponse RPC method + QueryUpgradedClientStateResponse: + type: object + properties: + upgradedClientState: + allOf: + - $ref: '#/components/schemas/GoogleProtobufAny' + description: client state associated with the request identifier + description: |- + QueryUpgradedClientStateResponse is the response type for the + Query/UpgradedClientState RPC method. + QueryUpgradedConsensusStateResponse: + type: object + properties: + upgradedConsensusState: + type: string + format: bytes + allOf: + - $ref: '#/components/schemas/GoogleProtobufAny' + description: Consensus state associated with the request identifier + description: |- + QueryUpgradedConsensusStateResponse is the response type for the + Query/UpgradedConsensusState RPC method. + QueryValidatorCommissionResponse: + type: object + properties: + commission: + allOf: + - $ref: '#/components/schemas/ValidatorAccumulatedCommission' + description: commission defines the commission the validator received. + description: |- + QueryValidatorCommissionResponse is the response type for the + Query/ValidatorCommission RPC method + QueryValidatorDelegationsResponse: + type: object + properties: + delegationResponses: + type: array + items: + $ref: '#/components/schemas/DelegationResponse' + pagination: + allOf: + - $ref: '#/components/schemas/PageResponse' + description: pagination defines the pagination in the response. + description: |- + QueryValidatorDelegationsResponse is response type for the + Query/ValidatorDelegations RPC method + QueryValidatorDistributionInfoResponse: + type: object + properties: + operatorAddress: + type: string + description: operator_address defines the validator operator address. + selfBondRewards: + type: array + items: + $ref: '#/components/schemas/DecCoin' + description: self_bond_rewards defines the self delegations rewards. + commission: + type: array + items: + $ref: '#/components/schemas/DecCoin' + description: commission defines the commission the validator received. + description: QueryValidatorDistributionInfoResponse is the response type for the Query/ValidatorDistributionInfo RPC method. + QueryValidatorOutstandingRewardsResponse: + type: object + properties: + rewards: + $ref: '#/components/schemas/ValidatorOutstandingRewards' + description: |- + QueryValidatorOutstandingRewardsResponse is the response type for the + Query/ValidatorOutstandingRewards RPC method. + QueryValidatorResponse: + type: object + properties: + validator: + allOf: + - $ref: '#/components/schemas/Validator' + description: validator defines the validator info. + description: QueryValidatorResponse is response type for the Query/Validator RPC method + QueryValidatorSlashesResponse: + type: object + properties: + slashes: + type: array + items: + $ref: '#/components/schemas/ValidatorSlashEvent' + description: slashes defines the slashes the validator received. + pagination: + allOf: + - $ref: '#/components/schemas/PageResponse' + description: pagination defines the pagination in the response. + description: |- + QueryValidatorSlashesResponse is the response type for the + Query/ValidatorSlashes RPC method. + QueryValidatorUnbondingDelegationsResponse: + type: object + properties: + unbondingResponses: + type: array + items: + $ref: '#/components/schemas/UnbondingDelegation' + pagination: + allOf: + - $ref: '#/components/schemas/PageResponse' + description: pagination defines the pagination in the response. + description: |- + QueryValidatorUnbondingDelegationsResponse is response type for the + Query/ValidatorUnbondingDelegations RPC method. + QueryValidatorsResponse: + type: object + properties: + validators: + type: array + items: + $ref: '#/components/schemas/Validator' + description: validators contains all the queried validators. + pagination: + allOf: + - $ref: '#/components/schemas/PageResponse' + description: pagination defines the pagination in the response. + description: QueryValidatorsResponse is response type for the Query/Validators RPC method + QueryVerifyMembershipRequest: + type: object + properties: + clientId: + type: string + description: client unique identifier. + proof: + type: string + description: the proof to be verified by the client. + format: bytes + proofHeight: + allOf: + - $ref: '#/components/schemas/Height' + description: the height of the commitment root at which the proof is verified. + merklePath: + allOf: + - $ref: '#/components/schemas/MerklePath' + description: the commitment key path. + value: + type: string + description: the value which is proven. + format: bytes + timeDelay: + type: string + description: optional time delay + blockDelay: + type: string + description: optional block delay + description: QueryVerifyMembershipRequest is the request type for the Query/VerifyMembership RPC method + QueryVerifyMembershipResponse: + type: object + properties: + success: + type: boolean + description: boolean indicating success or failure of proof verification. + description: QueryVerifyMembershipResponse is the response type for the Query/VerifyMembership RPC method + QueryVoteResponse: + type: object + properties: + vote: + allOf: + - $ref: '#/components/schemas/Vote' + description: vote defines the queried vote. + description: QueryVoteResponse is the response type for the Query/Vote RPC method. + QueryVotesResponse: + type: object + properties: + votes: + type: array + items: + $ref: '#/components/schemas/Vote' + description: votes defines the queried votes. + pagination: + allOf: + - $ref: '#/components/schemas/PageResponse' + description: pagination defines the pagination in the response. + description: QueryVotesResponse is the response type for the Query/Votes RPC method. + QueryWasmLimitsConfigResponse: + type: object + properties: + config: + type: string + description: |- + QueryWasmLimitsConfigResponse is the response type for the + Query/WasmLimitsConfig RPC method. It contains the JSON encoded limits for + static validation of Wasm files. + QueryWithdrawerFeeSharesResponse: + type: object + properties: + contractAddresses: + type: array + items: + type: string + description: |- + contract_addresses is the slice of registered contract addresses for a + withdrawer + pagination: + allOf: + - $ref: '#/components/schemas/PageResponse' + description: pagination defines the pagination in the response. + description: |- + QueryWithdrawerFeeSharesResponse is the response type for the + Query/WithdrawerFeeShares RPC method. + Redelegation: + type: object + properties: + delegatorAddress: + type: string + description: delegator_address is the bech32-encoded address of the delegator. + validatorSrcAddress: + type: string + description: validator_src_address is the validator redelegation source operator address. + validatorDstAddress: + type: string + description: validator_dst_address is the validator redelegation destination operator address. + entries: + type: array + items: + $ref: '#/components/schemas/RedelegationEntry' + description: entries are the redelegation entries. + description: |- + Redelegation contains the list of a particular delegator's redelegating bonds + from a particular source validator to a particular destination validator. + RedelegationEntry: + type: object + properties: + creationHeight: + type: string + description: creation_height defines the height which the redelegation took place. + completionTime: + type: string + description: completion_time defines the unix time for redelegation completion. + format: date-time + initialBalance: + type: string + description: initial_balance defines the initial balance when redelegation started. + sharesDst: + type: string + description: shares_dst is the amount of destination-validator shares created by redelegation. + unbondingId: + type: string + description: Incrementing id that uniquely identifies this entry + unbondingOnHoldRefCount: + type: string + description: Strictly positive if this entry's unbonding has been stopped by external modules + description: RedelegationEntry defines a redelegation object with relevant metadata. + RedelegationEntryResponse: + type: object + properties: + redelegationEntry: + $ref: '#/components/schemas/RedelegationEntry' + 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. + RedelegationResponse: + type: object + properties: + redelegation: + $ref: '#/components/schemas/Redelegation' + entries: + type: array + items: + $ref: '#/components/schemas/RedelegationEntryResponse' + 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. + Result: + type: object + properties: + data: + type: string + 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. + format: bytes + log: + type: string + description: Log contains the log information from message or handler execution. + events: + type: array + items: + $ref: '#/components/schemas/Event' + description: |- + Events contains a slice of Event objects that were emitted during message + or handler execution. + msgResponses: + type: array + items: + $ref: '#/components/schemas/GoogleProtobufAny' + description: msg_responses contains the Msg handler responses type packed in Anys. + description: Result is the union of ResponseFormat and ResponseCheckTx. + 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). + SignedHeader: + type: object + properties: + header: + $ref: '#/components/schemas/Header' + commit: + $ref: '#/components/schemas/Commit' + SignerInfo: + type: object + properties: + publicKey: + allOf: + - $ref: '#/components/schemas/GoogleProtobufAny' + description: |- + public_key is the public key of the signer. It is optional for accounts + that already exist in state. If unset, the verifier can use the required \ + signer address for this position and lookup the public key. + modeInfo: + allOf: + - $ref: '#/components/schemas/ModeInfo' + description: |- + mode_info describes the signing mode of the signer and is a nested + structure to support nested multisig pubkey's + sequence: + type: string + description: |- + sequence is the sequence of the account, which describes the + number of committed transactions signed by a given address. It is used to + prevent replay attacks. + description: |- + SignerInfo describes the public key and signing mode of a single top-level + signer. + SimulateRequest: + type: object + properties: + tx: + allOf: + - $ref: '#/components/schemas/Tx' + description: |- + tx is the transaction to simulate. + Deprecated. Send raw tx bytes instead. + txBytes: + type: string + description: tx_bytes is the raw transaction. + format: bytes + description: |- + SimulateRequest is the request type for the Service.Simulate + RPC method. + SimulateResponse: + type: object + properties: + gasInfo: + allOf: + - $ref: '#/components/schemas/GasInfo' + description: gas_info is the information about gas used in the simulation. + result: + allOf: + - $ref: '#/components/schemas/Result' + description: result is the result of the simulation. + description: |- + SimulateResponse is the response type for the + Service.SimulateRPC method. + State: + type: object + properties: + baseGasPrice: + type: string + description: |- + BaseGasPrice is the current base fee. This is denominated in the fee per + gas unit. + learningRate: + type: string + description: LearningRate is the current learning rate. + window: + type: array + items: + type: string + description: |- + Window contains a list of the last blocks' utilization values. This is used + to calculate the next base fee. This stores the number of units of gas + consumed per block. + index: + type: string + description: Index is the index of the current block in the block utilization window. + description: |- + State is utilized to track the current state of the fee market. This includes + the current base fee, learning rate, and block utilization within the + specified AIMD window. + StateResponse: + type: object + properties: + state: + $ref: '#/components/schemas/State' + description: StateResponse is the response type for the Query/State RPC method. + Status: + type: object + properties: + code: + type: integer + description: The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code]. + format: int32 + message: + type: string + description: A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client. + details: + type: array + items: + $ref: '#/components/schemas/GoogleProtobufAny' + description: A list of messages that carry the error details. There is a common set of message types for APIs to use. + description: 'The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).' + StatusResponse: + type: object + properties: + earliestStoreHeight: + type: string + height: + type: string + timestamp: + type: string + format: date-time + appHash: + type: string + format: bytes + validatorHash: + type: string + format: bytes + description: StateResponse defines the response structure for the status of a node. + StringEvent: + type: object + properties: + type: + type: string + attributes: + type: array + items: + $ref: '#/components/schemas/Attribute' + description: |- + StringEvent defines en Event object wrapper where all the attributes + contain key/value pairs that are strings instead of raw bytes. + TallyResult: + 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. + noWithVeto: + type: string + description: no_with_veto is the number of no with veto votes on a proposal. + description: TallyResult defines a standard tally for a governance proposal. + Timeout: + type: object + properties: + height: + allOf: + - $ref: '#/components/schemas/Height' + description: block height after which the packet or upgrade times out + timestamp: + type: string + description: block timestamp (in nanoseconds) after which the packet or upgrade times out + description: |- + Timeout defines an execution deadline structure for 04-channel handlers. + This includes packet lifecycle handlers as well as the upgrade handshake handlers. + A valid Timeout contains either one or both of a timestamp and block height (sequence). + Tip: + type: object + properties: + amount: + type: array + items: + $ref: '#/components/schemas/Coin' + description: amount is the amount of the tip + tipper: + type: string + description: tipper is the address of the account paying for the tip + description: Tip is the tip used for meta-transactions. + Tx: + type: object + properties: + body: + allOf: + - $ref: '#/components/schemas/TxBody' + description: body is the processable content of the transaction + authInfo: + allOf: + - $ref: '#/components/schemas/AuthInfo' + description: |- + auth_info is the authorization related content of the transaction, + specifically signers, signer modes and fee + signatures: + type: array + items: + type: string + format: bytes + description: |- + signatures is a list of signatures that matches the length and order of + AuthInfo's signer_infos to allow connecting signature meta information like + public key and signing mode by position. + description: Tx is the standard type used for broadcasting transactions. + TxBody: + type: object + properties: + messages: + type: array + items: + $ref: '#/components/schemas/GoogleProtobufAny' + description: |- + messages is a list of messages to be executed. The required signers of + those messages define the number and order of elements in AuthInfo's + signer_infos and Tx's signatures. Each required signer address is added to + the list only the first time it occurs. + By convention, the first required signer (usually from the first message) + is referred to as the primary signer and pays the fee for the whole + transaction. + memo: + type: string + description: |- + memo is any arbitrary note/comment to be added to the transaction. + WARNING: in clients, any publicly exposed text should not be called memo, + but should be called `note` instead (see + https://github.com/cosmos/cosmos-sdk/issues/9122). + timeoutHeight: + type: string + description: |- + timeout_height is the block height after which this transaction will not + be processed by the chain. + unordered: + type: boolean + description: |- + unordered, when set to true, indicates that the transaction signer(s) + intend for the transaction to be evaluated and executed in an un-ordered + fashion. Specifically, the account's nonce will NOT be checked or + incremented, which allows for fire-and-forget as well as concurrent + transaction execution. + + Note, when set to true, the existing 'timeout_timestamp' value must + be set and will be used to correspond to a timestamp in which the transaction is deemed + valid. + + When true, the sequence value MUST be 0, and any transaction with unordered=true and a non-zero sequence value will + be rejected. + External services that make assumptions about sequence values may need to be updated because of this. + timeoutTimestamp: + type: string + description: |- + timeout_timestamp is the block time after which this transaction will not + be processed by the chain. + + Note, if unordered=true this value MUST be set + and will act as a short-lived TTL in which the transaction is deemed valid + and kept in memory to prevent duplicates. + format: date-time + extensionOptions: + type: array + items: + $ref: '#/components/schemas/GoogleProtobufAny' + description: |- + extension_options are arbitrary options that can be added by chains + when the default options are not sufficient. If any of these are present + and can't be handled, the transaction will be rejected + nonCriticalExtensionOptions: + type: array + items: + $ref: '#/components/schemas/GoogleProtobufAny' + description: |- + extension_options are arbitrary options that can be added by chains + when the default options are not sufficient. If any of these are present + and can't be handled, they will be ignored + description: TxBody is the body of a transaction that all signers sign over. + TxDecodeAminoRequest: + type: object + properties: + aminoBinary: + type: string + format: bytes + description: |- + TxDecodeAminoRequest is the request type for the Service.TxDecodeAmino + RPC method. + TxDecodeAminoResponse: + type: object + properties: + aminoJson: + type: string + description: |- + TxDecodeAminoResponse is the response type for the Service.TxDecodeAmino + RPC method. + TxDecodeRequest: + type: object + properties: + txBytes: + type: string + description: tx_bytes is the raw transaction. + format: bytes + description: |- + TxDecodeRequest is the request type for the Service.TxDecode + RPC method. + TxDecodeResponse: + type: object + properties: + tx: + allOf: + - $ref: '#/components/schemas/Tx' + description: tx is the decoded transaction. + description: |- + TxDecodeResponse is the response type for the + Service.TxDecode method. + TxEncodeAminoRequest: + type: object + properties: + aminoJson: + type: string + description: |- + TxEncodeAminoRequest is the request type for the Service.TxEncodeAmino + RPC method. + TxEncodeAminoResponse: + type: object + properties: + aminoBinary: + type: string + format: bytes + description: |- + TxEncodeAminoResponse is the response type for the Service.TxEncodeAmino + RPC method. + TxEncodeRequest: + type: object + properties: + tx: + allOf: + - $ref: '#/components/schemas/Tx' + description: tx is the transaction to encode. + description: |- + TxEncodeRequest is the request type for the Service.TxEncode + RPC method. + TxEncodeResponse: + type: object + properties: + txBytes: + type: string + description: tx_bytes is the encoded transaction bytes. + format: bytes + description: |- + TxEncodeResponse is the response type for the + Service.TxEncode method. + TxResponse: + type: object + properties: + height: + type: string + description: The block height + txhash: + type: string + description: The transaction hash. + codespace: + type: string + description: Namespace for the Code + code: + type: integer + description: Response code. + format: uint32 + data: + type: string + description: Result bytes, if any. + rawLog: + type: string + description: |- + The output of the application's logger (raw string). May be + non-deterministic. + logs: + type: array + items: + $ref: '#/components/schemas/ABCIMessageLog' + description: The output of the application's logger (typed). May be non-deterministic. + info: + type: string + description: Additional information. May be non-deterministic. + gasWanted: + type: string + description: Amount of gas requested for transaction. + gasUsed: + type: string + description: Amount of gas consumed by transaction. + tx: + allOf: + - $ref: '#/components/schemas/GoogleProtobufAny' + description: The request transaction bytes. + 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: + $ref: '#/components/schemas/Event' + 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. + description: |- + TxResponse defines a structure containing relevant tx data and metadata. The + tags are stringified and the log is JSON decoded. + UnbondingDelegation: + type: object + properties: + delegatorAddress: + type: string + description: delegator_address is the encoded address of the delegator. + validatorAddress: + type: string + description: validator_address is the encoded address of the validator. + entries: + type: array + items: + $ref: '#/components/schemas/UnbondingDelegationEntry' + description: entries are the unbonding delegation entries. + description: |- + UnbondingDelegation stores all of a single delegator's unbonding bonds + for a single validator in an time-ordered list. + UnbondingDelegationEntry: + type: object + properties: + creationHeight: + type: string + description: creation_height is the height which the unbonding took place. + completionTime: + type: string + description: completion_time is the unix time for unbonding completion. + format: date-time + initialBalance: + 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. + unbondingId: + type: string + description: Incrementing id that uniquely identifies this entry + unbondingOnHoldRefCount: + type: string + description: Strictly positive if this entry's unbonding has been stopped by external modules + description: UnbondingDelegationEntry defines an unbonding object with relevant metadata. + Upgrade: + type: object + properties: + fields: + $ref: '#/components/schemas/UpgradeFields' + timeout: + $ref: '#/components/schemas/Timeout' + nextSequenceSend: + type: string + description: |- + Upgrade is a verifiable type which contains the relevant information + for an attempted upgrade. It provides the proposed changes to the channel + end, the timeout for this upgrade attempt and the next packet sequence + which allows the counterparty to efficiently know the highest sequence it has received. + The next sequence send is used for pruning and upgrading from unordered to ordered channels. + UpgradeFields: + type: object + properties: + ordering: + type: integer + format: enum + connectionHops: + type: array + items: + type: string + version: + type: string + description: |- + UpgradeFields are the fields in a channel end which may be changed + during a channel upgrade. + Validator: + type: object + properties: + address: + type: string + pubKey: + $ref: '#/components/schemas/GoogleProtobufAny' + votingPower: + type: string + proposerPriority: + type: string + description: Validator is the type for the validator-set. + ValidatorAccumulatedCommission: + type: object + properties: + commission: + type: array + items: + $ref: '#/components/schemas/DecCoin' + description: |- + ValidatorAccumulatedCommission represents accumulated commission + for a validator kept as a running counter, can be withdrawn at any time. + ValidatorOutstandingRewards: + type: object + properties: + rewards: + type: array + items: + $ref: '#/components/schemas/DecCoin' + description: |- + ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards + for a validator inexpensive to track, allows simple sanity checks. + ValidatorSet: + type: object + properties: + validators: + type: array + items: + $ref: '#/components/schemas/Validator' + proposer: + $ref: '#/components/schemas/Validator' + totalVotingPower: + type: string + ValidatorSigningInfo: + type: object + properties: + address: + type: string + startHeight: + type: string + description: Height at which validator was first a candidate OR was un-jailed + indexOffset: + type: string + description: |- + Index which is incremented every time a validator is bonded in a block and + _may_ have signed a pre-commit or not. This in conjunction with the + signed_blocks_window param determines the index in the missed block bitmap. + jailedUntil: + type: string + description: Timestamp until which the validator is jailed due to liveness downtime. + format: date-time + 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 misbehavior. + missedBlocksCounter: + type: string + description: |- + A counter of missed (unsigned) blocks. It is used to avoid unnecessary + reads in the missed block bitmap. + description: |- + ValidatorSigningInfo defines a validator's signing info for monitoring their + liveness activity. + ValidatorSlashEvent: + type: object + properties: + validatorPeriod: + type: string + 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. + Version: + type: object + properties: + identifier: + type: string + description: unique version identifier + features: + type: array + items: + type: string + description: list of features compatible with the specified identifier + description: |- + Version defines the versioning scheme used to negotiate the IBC verison in + the connection handshake. + VersionInfo: + type: object + properties: + name: + type: string + appName: + type: string + version: + type: string + gitCommit: + type: string + buildTags: + type: string + goVersion: + type: string + buildDeps: + type: array + items: + $ref: '#/components/schemas/Module' + cosmosSdkVersion: + type: string + description: VersionInfo is the type for the GetNodeInfoResponse message. + Vote: + type: object + properties: + proposalId: + type: string + description: proposal_id defines the unique id of the proposal. + voter: + type: string + description: voter is the voter address of the proposal. + option: + type: integer + 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. + format: enum + options: + type: array + items: + $ref: '#/components/schemas/WeightedVoteOption' + description: options is the weighted vote options. + description: |- + Vote defines a vote on a governance proposal. + A Vote consists of a proposal ID, the voter, and the vote option. + WeightedVoteOption: + type: object + properties: + option: + type: integer + description: option defines the valid vote options, it must not contain duplicate vote options. + format: enum + weight: + type: string + description: weight is the vote weight associated with the vote option. + description: WeightedVoteOption defines a unit of vote for vote split. +tags: + - name: Auth + description: "" + - name: Authz + description: "" + - name: Bank + description: "" + - name: Base + description: "" + - name: Clock + description: "" + - name: Consensus + description: "" + - name: CosmWasm + description: "" + - name: Distribution + description: "" + - name: Drip + description: "" + - name: Evidence + description: "" + - name: Feegrant + description: "" + - name: Feemarket + description: "" + - name: Feepay + description: "" + - name: Feeshare + description: "" + - name: Gov + description: "" + - name: Hooks + description: "" + - name: IBC + description: "" + - name: Mint + description: "" + - name: Slashing + description: "" + - name: Staking + description: "" + - name: Tokenfactory + description: "" + - name: Tx + description: "" + - name: Upgrade + description: "" diff --git a/app/endpoints/openapi_spec.go b/app/endpoints/openapi_spec.go new file mode 100644 index 000000000..83bb9ccfa --- /dev/null +++ b/app/endpoints/openapi_spec.go @@ -0,0 +1,231 @@ +package endpoints + +import ( + "fmt" + "net/http" + "sort" + "strings" + "sync" + + "gopkg.in/yaml.v3" + + _ "embed" +) + +//go:embed openapi.yaml +var rawOpenAPISpec []byte + +var ( + specOnce sync.Once + cachedDoc *openAPIDocument +) + +type openAPIDocument struct { + Paths map[string]*openAPIPathItem `yaml:"paths"` +} + +type openAPIPathItem struct { + Get *openAPIOperation `yaml:"get"` + Post *openAPIOperation `yaml:"post"` + Put *openAPIOperation `yaml:"put"` + Patch *openAPIOperation `yaml:"patch"` + Delete *openAPIOperation `yaml:"delete"` + Options *openAPIOperation `yaml:"options"` + Head *openAPIOperation `yaml:"head"` + Trace *openAPIOperation `yaml:"trace"` + Parameters []OpenAPIParameter `yaml:"parameters"` +} + +type openAPIOperation struct { + OperationID string `yaml:"operationId"` + Summary string `yaml:"summary"` + Tags []string `yaml:"tags"` + Parameters []OpenAPIParameter `yaml:"parameters"` + Responses map[string]*openAPIResponse `yaml:"responses"` +} + +type OpenAPIParameter struct { + Name string `yaml:"name"` + In string `yaml:"in"` + Required bool `yaml:"required"` + Description string `yaml:"description"` + Schema *openAPISchema `yaml:"schema"` +} + +type openAPIResponse struct { + Description string `yaml:"description"` + Content map[string]*openAPIMediaType `yaml:"content"` +} + +type openAPIMediaType struct { + Schema *openAPISchema `yaml:"schema"` +} + +type openAPISchema struct { + Ref string `yaml:"$ref"` + Type string `yaml:"type"` + Format string `yaml:"format"` +} + +// OpenAPIEndpoint contains the subset of metadata required by downstream consumers. +type OpenAPIEndpoint struct { + Path string + Method string + OperationID string + Summary string + Tags []string + Parameters []OpenAPIParameter + ResponseSchema string +} + +// RawOpenAPISpec returns the embedded OpenAPI document bytes. +func RawOpenAPISpec() []byte { + return rawOpenAPISpec +} + +func loadDocument() (*openAPIDocument, error) { + var errCachedSpec error + specOnce.Do(func() { + var parsed openAPIDocument + + if err := yaml.Unmarshal(rawOpenAPISpec, &parsed); err != nil { + errCachedSpec = fmt.Errorf("parse openapi spec: %w", err) + return + } + cachedDoc = &parsed + }) + return cachedDoc, errCachedSpec +} + +// GetOpenAPIEndpoints returns all GET endpoints defined in the OpenAPI spec. +func GetOpenAPIEndpoints() ([]OpenAPIEndpoint, error) { + doc, err := loadDocument() + if err != nil { + return nil, err + } + if doc == nil || len(doc.Paths) == 0 { + return nil, nil + } + paths := make([]string, 0, len(doc.Paths)) + for path := range doc.Paths { + paths = append(paths, path) + } + sort.Strings(paths) + + var endpoints []OpenAPIEndpoint + for _, path := range paths { + item := doc.Paths[path] + if item == nil { + continue + } + if ep, ok := buildEndpoint(path, http.MethodGet, item, item.Get); ok { + endpoints = append(endpoints, ep) + } + } + return endpoints, nil +} + +func buildEndpoint(path, method string, item *openAPIPathItem, op *openAPIOperation) (OpenAPIEndpoint, bool) { + if item == nil || op == nil { + return OpenAPIEndpoint{}, false + } + responseSchema := primaryResponseSchema(op) + if responseSchema == "" { + return OpenAPIEndpoint{}, false + } + params := mergeParameters(item.Parameters, op.Parameters) + return OpenAPIEndpoint{ + Path: path, + Method: method, + OperationID: op.OperationID, + Summary: op.Summary, + Tags: append([]string(nil), op.Tags...), + Parameters: params, + ResponseSchema: responseSchema, + }, true +} + +func mergeParameters(pathParams, opParams []OpenAPIParameter) []OpenAPIParameter { + if len(pathParams) == 0 && len(opParams) == 0 { + return nil + } + combined := make([]OpenAPIParameter, 0, len(pathParams)+len(opParams)) + seen := make(map[string]int, len(pathParams)+len(opParams)) + appendParam := func(p OpenAPIParameter) { + key := strings.ToLower(p.In) + ":" + strings.ToLower(p.Name) + if idx, exists := seen[key]; exists { + combined[idx] = p + return + } + seen[key] = len(combined) + combined = append(combined, p) + } + for _, p := range pathParams { + appendParam(p) + } + for _, p := range opParams { + appendParam(p) + } + return combined +} + +func primaryResponseSchema(op *openAPIOperation) string { + if op == nil || len(op.Responses) == 0 { + return "" + } + statusCodes := make([]string, 0, len(op.Responses)) + for code := range op.Responses { + statusCodes = append(statusCodes, code) + } + sort.Strings(statusCodes) + for _, code := range statusCodes { + if len(code) == 0 || code[0] != '2' { + continue + } + resp := op.Responses[code] + if resp == nil { + continue + } + if schema := firstSchemaRef(resp); schema != "" { + return schema + } + } + return "" +} + +func firstSchemaRef(resp *openAPIResponse) string { + if resp == nil || len(resp.Content) == 0 { + return "" + } + if mt, ok := resp.Content["application/json"]; ok { + if ref := extractSchemaRef(mt); ref != "" { + return ref + } + } + keys := make([]string, 0, len(resp.Content)) + for k := range resp.Content { + keys = append(keys, k) + } + sort.Strings(keys) + for _, key := range keys { + if ref := extractSchemaRef(resp.Content[key]); ref != "" { + return ref + } + } + return "" +} + +func extractSchemaRef(mt *openAPIMediaType) string { + if mt == nil || mt.Schema == nil { + return "" + } + return schemaComponentName(mt.Schema.Ref) +} + +func schemaComponentName(ref string) string { + if ref == "" { + return "" + } + segments := strings.Split(ref, "/") + return segments[len(segments)-1] +} diff --git a/app/endpoints/openapi_spec_test.go b/app/endpoints/openapi_spec_test.go new file mode 100644 index 000000000..ba35430dd --- /dev/null +++ b/app/endpoints/openapi_spec_test.go @@ -0,0 +1,27 @@ +package endpoints_test + +import ( + "testing" + + "github.com/stretchr/testify/require" + + "github.com/CosmosContracts/juno/v30/app/endpoints" +) + +func TestGetOpenAPIEndpointsIncludesAccountPath(t *testing.T) { + endpointsList, err := endpoints.GetOpenAPIEndpoints() + require.NoError(t, err) + require.NotEmpty(t, endpointsList) + + var found bool + for _, ep := range endpointsList { + if ep.Path == "/cosmos/auth/v1beta1/accounts/{address}" { + found = true + require.Equal(t, "auth_account", ep.OperationID) + require.Equal(t, "QueryAccountResponse", ep.ResponseSchema) + require.NotEmpty(t, ep.Parameters) + break + } + } + require.True(t, found, "expected auth account endpoint in OpenAPI spec") +} diff --git a/app/endpoints/scalar.go b/app/endpoints/scalar.go new file mode 100644 index 000000000..4eeb8e894 --- /dev/null +++ b/app/endpoints/scalar.go @@ -0,0 +1,157 @@ +package endpoints + +import ( + "net/http" + + scalargo "github.com/bdpiprava/scalar-go" + "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/httprule" + "github.com/grpc-ecosystem/grpc-gateway/runtime" + + "github.com/cosmos/cosmos-sdk/server/api" +) + +// compilePattern parses a path template and returns a runtime.Pattern +func compilePattern(rule string) runtime.Pattern { + tpl, err := httprule.Parse(rule) + if err != nil { + panic("invalid pattern: " + err.Error()) + } + c := tpl.Compile() + pat, err := runtime.NewPattern(1, c.OpCodes, c.Pool, c.Verb) + if err != nil { + panic("failed to make pattern: " + err.Error()) + } + return pat +} + +// RegisterScalarUI registers the Scalar UI
:/scalar. +func RegisterScalarUI(apiSvr *api.Server) error { + apiSvr.GRPCGatewayRouter.Handle( + "GET", + compilePattern("/openapi.yaml"), + func(w http.ResponseWriter, _ *http.Request, _ map[string]string) { + w.Header().Set("Content-Type", "plain/text; charset=utf-8") + _, err := w.Write(RawOpenAPISpec()) + if err != nil { + http.Error(w, err.Error(), http.StatusInternalServerError) + return + } + }, + ) + + scalarHandler := http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) { + content, err := scalargo.NewV2( + scalargo.WithSpecURL("http://localhost:1317/openapi.yaml"), + scalargo.WithBaseServerURL("/scalar"), + scalargo.WithHideDownloadButton(), + scalargo.WithDarkMode(), + scalargo.WithHideDarkModeToggle(), + scalargo.WithSearchHotKey("s"), + scalargo.WithMetaDataOpts(scalargo.WithTitle("Juno Augur - REST API Explorer")), + scalargo.WithTheme("kepler"), + scalargo.WithOverrideCSS(` + .section-flare { + width: 100vw; + background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 123, 124, 0.4), transparent); + height: 100dvh; + } + + .open-api-client { + visibility: hidden; + display: none; + } + + .open-api-client-button { + visibility: hidden; + display: none; + } + + div.flex.flex-col.gap-3.p-3.border-t.darklight-reference { + visibility: hidden; + display: none; + } + + button.toggle-nested-icon { + color: #FF7B7C !important; + font-weight: 900 !important; + } + + .active_page .toggle-nested-icon { + color: #FF7B7C !important; + font-weight: 900 !important; + } + + p.sidebar-heading-link-title:hover { + color: #FF7B7C !important; + } + + .active_page.sidebar-heading { + color: #FF7B7C !important; + font-weight: 900 !important; + } + + .section-header-label { + color: #FF7B7C; + } + + .scalar-card--contrast { + padding: 6px !important; + } + + span.sidebar-heading-type { + --method-color: var(--scalar-color-green) !important; + } + + .dark-mode { + --scalar-sidebar-search-border-color: 1px solid rgba(0, 0, 0, 0.1); + --scalar-sidebar-search-color: #ADADAD; + --scalar-sidebar-search-background: rgba(0, 0, 0, 0.1); + --scalar-sidebar-font-weight-active: 900; + --scalar-background-1: #121219; + --scalar-background-2: #121219; + --scalar-background-3: #202020; + --scalar-color-1: #ADADAD; + --scalar-color-2: #ADADAD; + --scalar-color-3: #E8B0AE; + --scalar-color-accent: #FF7B7C; + --scalar-color-active: #FF7B7C; + --scalar-sidebar-color-active: #FF7B7C; + --scalar-sidebar-item-hover-color: #E8B0AE; + --scalar-sidebar-item-hover-background: #3C2B29; + } + `), + ) + if err != nil { + http.Error(w, err.Error(), http.StatusInternalServerError) + return + } + w.Header().Set("Content-Type", "text/html; charset=utf-8") + _, err = w.Write([]byte(content)) + if err != nil { + http.Error(w, err.Error(), http.StatusInternalServerError) + return + } + }) + + apiSvr.GRPCGatewayRouter.Handle( + "GET", + compilePattern("/scalar"), + func( + w http.ResponseWriter, + r *http.Request, + _ map[string]string, + ) { + http.StripPrefix("/scalar", scalarHandler).ServeHTTP(w, r) + }, + ) + + apiSvr.GRPCGatewayRouter.Handle( + "GET", + compilePattern("/scalar/{rest=**}"), + func(w http.ResponseWriter, r *http.Request, _ map[string]string) { + http.StripPrefix("/scalar", scalarHandler).ServeHTTP(w, r) + }, + ) + + return nil +} diff --git a/app/endpoints/websocket/common/handler.go b/app/endpoints/websocket/common/handler.go new file mode 100644 index 000000000..48f5265ad --- /dev/null +++ b/app/endpoints/websocket/common/handler.go @@ -0,0 +1,384 @@ +package common + +import ( + "context" + "errors" + "fmt" + "net/http" + "sync" + "time" + + "github.com/gorilla/websocket" + + jsonpb "github.com/cosmos/gogoproto/jsonpb" + proto "github.com/cosmos/gogoproto/proto" + + errorsmod "cosmossdk.io/errors" + "cosmossdk.io/log" + + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + + "github.com/CosmosContracts/juno/v30/x/stream/types" + "github.com/CosmosContracts/juno/v30/x/stream/types/encoding" +) + +const ( + // WebSocket configuration values used across handlers + WriteWait = 10 * time.Second + pongWait = 60 * time.Second + pingPeriod = (pongWait * 9) / 10 + maxMessageSize = 512 +) + +// Handler contains the shared state required to service WebSocket connections +type Handler struct { + Logger log.Logger + Registry *types.SubscriptionRegistry + AppContextDone <-chan struct{} + Upgrader *websocket.Upgrader +} + +// ConnectionParams contains parameters for establishing a WebSocket connection +type ConnectionParams struct { + Writer http.ResponseWriter + Request *http.Request + Resolved *types.ResolvedStream + Fetch func(context.Context) (proto.Message, error) +} + +// ServeConnection handles the standard WebSocket connection lifecycle +func (h *Handler) ServeConnection(params ConnectionParams) (retErr error) { + if params.Resolved == nil { + return errorsmod.Wrap(sdkerrors.ErrInvalidRequest, "stream resolution missing") + } + if params.Fetch == nil { + return errorsmod.Wrap(sdkerrors.ErrInvalidRequest, "fetch function not provided") + } + if err := h.validateRequest(params); err != nil { + return err + } + + conn, err := h.upgradeConnection(params) + if err != nil { + return err + } + + session := newConnectionSession(h, conn) + defer session.finalize() + defer func() { + if r := recover(); r != nil { + session.handlePanic(r) + } + }() + + registry := h.Registry + if registry == nil { + return errorsmod.Wrap(sdkerrors.ErrInvalidRequest, "subscription registry not configured") + } + + baseCtx, cancel := h.connectionContext() + defer cancel() + + ctx, cancelClient := context.WithCancel(baseCtx) + defer cancelClient() + + if err := conn.SetReadDeadline(time.Now().Add(pongWait)); err != nil { + return err + } + conn.SetReadLimit(maxMessageSize) + conn.SetPongHandler(func(string) error { + return conn.SetReadDeadline(time.Now().Add(pongWait)) + }) + + go h.readPump(ctx, conn, cancelClient) + + ticker := time.NewTicker(pingPeriod) + defer ticker.Stop() + + var writeMu sync.Mutex + marshaler := jsonpb.Marshaler{OrigName: true, EmitDefaults: true} + + send := func(msg proto.Message) error { + if msg == nil { + return errorsmod.Wrap(sdkerrors.ErrInvalidRequest, "empty response message") + } + + payload, err := marshaler.MarshalToString(msg) + if err != nil { + return errorsmod.Wrap(err, "marshal response") + } + + writeMu.Lock() + defer writeMu.Unlock() + + if err := conn.SetWriteDeadline(time.Now().Add(WriteWait)); err != nil { + return err + } + err = conn.WriteMessage(websocket.TextMessage, []byte(payload)) + + return err + } + + go h.pingLoop(ctx, cancelClient, conn, &writeMu, ticker) + + meta := types.ConnectionMetadata{ + RemoteAddr: params.Request.RemoteAddr, + ForwardedFor: params.Request.Header.Get("X-Forwarded-For"), + } + + logger := h.Logger + var onEvent func(encoding.StreamEvent) + if logger != nil { + subscriptionKey := params.Resolved.Key.String() + onEvent = func(event encoding.StreamEvent) { + logger.Debug("websocket stream event received", + "module", event.Module, + "method", event.Method, + "params", event.Params, + "subscription", subscriptionKey, + ) + } + } + + err = types.RunStream(ctx, types.RunStreamParams{ + Registry: registry, + Key: params.Resolved.Key, + ConnectionKind: types.ConnectionKindWebsocket, + ConnectionMeta: meta, + Fetch: func(runCtx context.Context) (proto.Message, error) { + if err := runCtx.Err(); err != nil { + return nil, err + } + return params.Fetch(runCtx) + }, + Send: send, + OnEvent: onEvent, + Logger: logger, + OnConnect: func(connectionID string) error { + if !h.allowConnection(conn) { + return types.ErrCircuitBreakerOpen + } + session.setConnectionID(connectionID) + return nil + }, + }) + + if err == nil || errors.Is(err, context.Canceled) || errors.Is(err, context.DeadlineExceeded) { + return nil + } + if errors.Is(err, types.ErrCircuitBreakerOpen) { + return nil + } + if errors.Is(err, types.ErrSubscriptionLimit) { + session.setCloseError(closeError{code: websocket.ClosePolicyViolation, msg: "subscription limit reached"}) + return err + } + if errors.Is(err, types.ErrConnectionLimit) { + session.setCloseError(closeError{code: websocket.ClosePolicyViolation, msg: "connection limit exceeded"}) + return err + } + + session.setCloseError(closeError{code: websocket.CloseInternalServerErr, msg: "internal server error"}) + return err +} + +func (h *Handler) allowConnection(conn *websocket.Conn) bool { + errorMsg := map[string]string{"error": "service temporarily unavailable"} + if err := conn.SetWriteDeadline(time.Now().Add(WriteWait)); err != nil { + h.Logger.Error("failed to set write deadline", "error", err) + } + if err := conn.WriteJSON(errorMsg); err != nil { + h.Logger.Error("failed to write error message", "error", err) + } + if err := conn.Close(); err != nil { + h.Logger.Error("failed to close connection", "error", err) + } + return false +} + +// GetUpgrader returns a websocket upgrader with configurable CORS +func GetUpgrader(allowedOrigins []string) *websocket.Upgrader { + allowAll := false + allowed := make(map[string]struct{}, len(allowedOrigins)) + for _, origin := range allowedOrigins { + if origin == "*" { + allowAll = true + break + } + if origin != "" { + allowed[origin] = struct{}{} + } + } + + return &websocket.Upgrader{ + CheckOrigin: func(r *http.Request) bool { + if allowAll { + return true + } + + origin := r.Header.Get("Origin") + if origin == "" { + return true + } + + if len(allowedOrigins) == 0 { + return origin == "http://"+r.Host || origin == "https://"+r.Host + } + + _, ok := allowed[origin] + return ok + }, + } +} + +func (*Handler) readPump(ctx context.Context, conn *websocket.Conn, cancel context.CancelFunc) { + for { + if _, _, err := conn.ReadMessage(); err != nil { + if cancel != nil { + cancel() + } + return + } + select { + case <-ctx.Done(): + return + default: + } + } +} + +func (*Handler) pingLoop(ctx context.Context, cancel context.CancelFunc, conn *websocket.Conn, writeMu *sync.Mutex, ticker *time.Ticker) { + for { + select { + case <-ctx.Done(): + return + case <-ticker.C: + writeMu.Lock() + if err := conn.SetWriteDeadline(time.Now().Add(WriteWait)); err != nil { + writeMu.Unlock() + if cancel != nil { + cancel() + } + return + } + if err := conn.WriteMessage(websocket.PingMessage, nil); err != nil { + writeMu.Unlock() + if cancel != nil { + cancel() + } + return + } + writeMu.Unlock() + } + } +} + +// CloseWithMessage closes the WebSocket connection with a specific close code and message +func CloseWithMessage(conn *websocket.Conn, code int, message string) error { + if len(message) > 123 { + message = message[:123] + } + deadline := time.Now().Add(WriteWait) + if err := conn.SetWriteDeadline(deadline); err != nil { + return err + } + closeMsg := websocket.FormatCloseMessage(code, message) + err := conn.WriteMessage(websocket.CloseMessage, closeMsg) + if err != nil { + _ = conn.WriteControl(websocket.CloseMessage, closeMsg, deadline) + } + return err +} + +func (h *Handler) validateRequest(params ConnectionParams) error { + if h.Registry != nil && !h.Registry.CanAcceptConnection(types.ConnectionKindWebsocket) { + http.Error(params.Writer, "connection limit exceeded", http.StatusServiceUnavailable) + return errorsmod.Wrap(sdkerrors.ErrInvalidRequest, "connection limit exceeded") + } + + return nil +} + +func (h *Handler) upgradeConnection(params ConnectionParams) (*websocket.Conn, error) { + conn, err := h.Upgrader.Upgrade(params.Writer, params.Request, nil) + if err != nil { + h.Logger.Error("websocket upgrade failed", "error", err) + return nil, err + } + return conn, nil +} + +func (h *Handler) connectionContext() (context.Context, context.CancelFunc) { + ctx, cancel := context.WithCancel(context.Background()) + if h.AppContextDone != nil { + appDone := h.AppContextDone + go func() { + select { + case <-appDone: + cancel() + case <-ctx.Done(): + } + }() + } + return ctx, cancel +} + +type closeError struct { + code int + msg string +} + +func (e closeError) Error() string { + return e.msg +} + +type connectionSession struct { + handler *Handler + conn *websocket.Conn + connectionID string + closeErr error +} + +func newConnectionSession(h *Handler, conn *websocket.Conn) *connectionSession { + return &connectionSession{handler: h, conn: conn} +} + +func (s *connectionSession) setConnectionID(id string) { + s.connectionID = id +} + +func (s *connectionSession) setCloseError(err error) { + if err == nil { + return + } + s.closeErr = err +} + +func (s *connectionSession) handlePanic(recovered any) { + s.handler.Logger.Error("panic in WebSocket handler", "panic", recovered) + closeMsg := fmt.Sprintf("Internal error: %v", recovered) + if len(closeMsg) > 123 { + closeMsg = closeMsg[:123] + } + s.closeErr = closeError{code: websocket.CloseInternalServerErr, msg: closeMsg} +} + +func (s *connectionSession) finalize() { + if err := s.closeErr; err != nil { + var ce closeError + if errors.As(err, &ce) { + s.handler.Logger.Info("sending close message", "code", ce.code, "msg", ce.msg) + if err := CloseWithMessage(s.conn, ce.code, ce.msg); err != nil { + s.handler.Logger.Error("failed to send close message", "error", err) + } + } + } else { + if err := CloseWithMessage(s.conn, websocket.CloseGoingAway, "server shutting down"); err != nil { + s.handler.Logger.Error("failed to send close message", "error", err) + } + } + + if err := s.conn.Close(); err != nil && s.connectionID != "" { + s.handler.Logger.Error("failed to close websocket connection", "error", err, "connection_id", s.connectionID) + } +} diff --git a/app/endpoints/websocket/common/handler_test.go b/app/endpoints/websocket/common/handler_test.go new file mode 100644 index 000000000..1e5a7ab49 --- /dev/null +++ b/app/endpoints/websocket/common/handler_test.go @@ -0,0 +1,77 @@ +package common + +import ( + "context" + "net/http" + "net/http/httptest" + "strings" + "testing" + "time" + + "github.com/gorilla/websocket" + "github.com/stretchr/testify/require" + + proto "github.com/cosmos/gogoproto/proto" + + "cosmossdk.io/log" + + "github.com/CosmosContracts/juno/v30/x/stream/types" + "github.com/CosmosContracts/juno/v30/x/stream/types/encoding" +) + +func TestHandlerServeConnectionConnectionLimit(t *testing.T) { + logger := log.NewNopLogger() + registry := types.NewSubscriptionRegistry(logger, types.StreamConfig{ + WsMaxConnections: 1, + MaxSubscriptionsPerClient: 1, + }) + handler := &Handler{ + Logger: logger, + Registry: registry, + Upgrader: GetUpgrader([]string{"*"}), + } + + occupiedID, err := registry.RegisterConnection(types.ConnectionKindWebsocket, types.ConnectionMetadata{RemoteAddr: "existing"}) + require.NoError(t, err) + t.Cleanup(func() { + registry.UnregisterConnection(occupiedID) + }) + + resolved := &types.ResolvedStream{ + Descriptor: &encoding.MethodDescriptor{ + Module: "bank", + StreamName: "balance", + }, + Fields: map[string]string{}, + Key: encoding.StreamEvent{ + Module: "bank", + Method: "balance", + Params: map[string]string{}, + }, + } + + wsHandler := func(w http.ResponseWriter, r *http.Request) { + _ = handler.ServeConnection(ConnectionParams{ + Writer: w, + Request: r, + Resolved: resolved, + Fetch: func(context.Context) (proto.Message, error) { + return nil, nil + }, + }) + } + + server := httptest.NewServer(http.HandlerFunc(wsHandler)) + t.Cleanup(server.Close) + + wsURL := "ws" + strings.TrimPrefix(server.URL, "http") + "/ws" + dialer := websocket.Dialer{HandshakeTimeout: time.Second} + _, resp, err := dialer.Dial(wsURL, nil) + require.Error(t, err) + require.NotNil(t, resp) + require.Equal(t, http.StatusServiceUnavailable, resp.StatusCode) + require.NoError(t, resp.Body.Close()) + + total, _ := registry.ConnectionStats() + require.Equal(t, uint32(1), total) +} diff --git a/app/endpoints/websocket/common/stream_module.go b/app/endpoints/websocket/common/stream_module.go new file mode 100644 index 000000000..cfd2e99fd --- /dev/null +++ b/app/endpoints/websocket/common/stream_module.go @@ -0,0 +1,465 @@ +package common + +import ( + "context" + "fmt" + "net/http" + "strings" + "sync" + + "github.com/gorilla/mux" + + proto "github.com/cosmos/gogoproto/proto" + + "cosmossdk.io/log" + + "github.com/CosmosContracts/juno/v30/app/endpoints" + "github.com/CosmosContracts/juno/v30/x/stream/types" + "github.com/CosmosContracts/juno/v30/x/stream/types/encoding" +) + +const wsRoutePrefix = "/ws" + +// RouteDefinition defines a WebSocket route with its pattern and handler. +type RouteDefinition struct { + Pattern string + Handler RouteHandler +} + +// RouteHandler defines a function that handles a specific route. +type RouteHandler func(http.ResponseWriter, *http.Request) + +type parameterBinding struct { + Name string + CanonicalName string + Required bool +} + +type routeMetadata struct { + pattern string + endpoint endpoints.OpenAPIEndpoint + descriptor *encoding.MethodDescriptor + resolver *descriptorResolver + pathParams []parameterBinding + queryParams []parameterBinding + logger log.Logger + mu sync.RWMutex +} + +// BuildWSRoutes produces websocket routes based on the OpenAPI specification. +func BuildWSRoutes( + handler *Handler, + registry *encoding.DynamicRegistry, + invoker *types.RouterInvoker, + logger log.Logger, +) []RouteDefinition { + if handler == nil || registry == nil || invoker == nil { + return nil + } + if logger == nil { + logger = log.NewNopLogger() + } + routeLogger := logger.With("module", "x/stream") + + opSpecs, err := endpoints.GetOpenAPIEndpoints() + if err != nil { + routeLogger.Error("failed to load OpenAPI specification", "error", err) + return nil + } + if len(opSpecs) == 0 { + routeLogger.Warn("OpenAPI specification did not contain any endpoints") + return nil + } + + resolver := newDescriptorResolver(registry) + var routes []RouteDefinition + for _, endpoint := range opSpecs { + desc := resolver.Resolve(endpoint) + if desc == nil { + routeLogger.Info( + "gRPC method not yet available for endpoint; handler will retry", + "path", endpoint.Path, + "operation", endpoint.OperationID, + "response_schema", endpoint.ResponseSchema, + ) + } + + pattern := wsRoutePrefix + endpoint.Path + pathParams, queryParams := buildParameterBindings(endpoint.Parameters) + meta := &routeMetadata{ + pattern: pattern, + endpoint: endpoint, + descriptor: desc, + resolver: resolver, + pathParams: pathParams, + queryParams: queryParams, + logger: routeLogger.With( + "path", endpoint.Path, + "operation", endpoint.OperationID, + "grpc_method", grpcMethodLabel(desc), + ), + } + + routes = append(routes, RouteDefinition{ + Pattern: pattern, + Handler: makeRouteHandler(meta, handler, invoker), + }) + } + + if len(routes) == 0 { + routeLogger.Warn("no websocket routes were generated from OpenAPI spec") + } + return routes +} + +func buildParameterBindings(params []endpoints.OpenAPIParameter) ([]parameterBinding, []parameterBinding) { + if len(params) == 0 { + return nil, nil + } + var pathParams []parameterBinding + var queryParams []parameterBinding + for _, param := range params { + binding := parameterBinding{ + Name: param.Name, + CanonicalName: canonicalizeKey(param.Name), + Required: param.Required, + } + switch strings.ToLower(param.In) { + case "path": + pathParams = append(pathParams, binding) + case "query": + queryParams = append(queryParams, binding) + default: + continue + } + } + return pathParams, queryParams +} + +func makeRouteHandler(meta *routeMetadata, handler *Handler, invoker *types.RouterInvoker) RouteHandler { + return func(w http.ResponseWriter, r *http.Request) { + if r.Method != http.MethodGet { + http.Error(w, "method not allowed", http.StatusMethodNotAllowed) + return + } + + desc := meta.ensureDescriptor() + if desc == nil { + http.Error(w, "stream definition unavailable", http.StatusServiceUnavailable) + meta.logger.Error("stream definition unavailable; descriptor missing") + return + } + + fields, err := extractFields(meta, r) + if err != nil { + http.Error(w, err.Error(), http.StatusBadRequest) + meta.logger.Warn("invalid websocket request", "error", err) + return + } + + // Validate inputs early so we can surface user-friendly errors. + if _, err := encoding.BuildRequestMessage(desc, cloneStringMap(fields)); err != nil { + http.Error(w, err.Error(), http.StatusBadRequest) + meta.logger.Warn("failed to build request message", "error", err) + return + } + + resolved := &types.ResolvedStream{ + Descriptor: desc, + Fields: fields, + Key: encoding.StreamEvent{ + Module: desc.Module, + Method: desc.StreamName, + Params: cloneStringMap(fields), + }, + } + + fetch := func(context.Context) (proto.Message, error) { + return invoker.Execute(desc, cloneStringMap(resolved.Fields)) + } + + paramsCfg := ConnectionParams{ + Writer: w, + Request: r, + Resolved: resolved, + Fetch: fetch, + } + + if err := handler.ServeConnection(paramsCfg); err != nil { + meta.logger.Error("failed to serve websocket connection", "error", err) + } + } +} + +func extractFields(meta *routeMetadata, r *http.Request) (map[string]string, error) { + vars := mux.Vars(r) + fields := make(map[string]string, len(vars)+len(r.URL.Query())) + for _, param := range meta.pathParams { + value, ok := vars[param.Name] + if !ok || value == "" { + return nil, fmt.Errorf("%w: %s", types.ErrMissingPathParameter, param.Name) + } + fields[param.CanonicalName] = value + } + + queryValues := r.URL.Query() + for key, values := range queryValues { + if len(values) == 0 { + continue + } + fields[canonicalizeKey(key)] = values[len(values)-1] + } + + for _, param := range meta.queryParams { + if !param.Required { + continue + } + if _, ok := fields[param.CanonicalName]; !ok { + return nil, fmt.Errorf("%w: %s", types.ErrMissingQueryParameter, param.Name) + } + } + return fields, nil +} + +func canonicalizeKey(name string) string { + if name == "" { + return "" + } + parts := strings.Split(name, ".") + for i, part := range parts { + converted := encoding.CamelToSnake(part) + if converted == "" { + converted = strings.ToLower(part) + } + parts[i] = converted + } + return strings.Join(parts, ".") +} + +func (meta *routeMetadata) ensureDescriptor() *encoding.MethodDescriptor { + if meta == nil { + return nil + } + meta.mu.RLock() + desc := meta.descriptor + meta.mu.RUnlock() + if desc != nil { + return desc + } + if meta.resolver == nil { + return nil + } + resolved := meta.resolver.Resolve(meta.endpoint) + if resolved == nil { + return nil + } + meta.mu.Lock() + meta.descriptor = resolved + meta.logger = meta.logger.With("grpc_method", grpcMethodLabel(resolved)) + meta.mu.Unlock() + return resolved +} + +func grpcMethodLabel(desc *encoding.MethodDescriptor) string { + if desc == nil { + return "pending" + } + return desc.FullMethod +} + +type descriptorResolver struct { + provider func() []*encoding.MethodDescriptor +} + +func newDescriptorResolver(registry *encoding.DynamicRegistry) *descriptorResolver { + var provider func() []*encoding.MethodDescriptor + if registry != nil { + provider = registry.List + } + return &descriptorResolver{provider: provider} +} + +// newDescriptorResolverFromList is intended for testing scenarios. +func newDescriptorResolverFromList(list []*encoding.MethodDescriptor) *descriptorResolver { + return &descriptorResolver{provider: func() []*encoding.MethodDescriptor { return list }} +} + +func (r *descriptorResolver) Resolve(endpoint endpoints.OpenAPIEndpoint) *encoding.MethodDescriptor { + if r == nil || r.provider == nil { + return nil + } + candidates := r.candidatesByResponse(endpoint.ResponseSchema) + if len(candidates) == 0 { + return nil + } + return resolveDescriptorFromCandidates(endpoint, candidates) +} + +func (r *descriptorResolver) candidatesByResponse(responseSchema string) []*encoding.MethodDescriptor { + if responseSchema == "" { + return nil + } + methods := r.provider() + if len(methods) == 0 { + return nil + } + key := strings.ToLower(responseSchema) + var matches []*encoding.MethodDescriptor + for _, desc := range methods { + if desc == nil || desc.ResponseType == "" { + continue + } + if strings.ToLower(simpleTypeName(desc.ResponseType)) == key { + matches = append(matches, desc) + } + } + return matches +} + +func resolveDescriptorFromCandidates(endpoint endpoints.OpenAPIEndpoint, candidates []*encoding.MethodDescriptor) *encoding.MethodDescriptor { + if len(candidates) == 1 { + return candidates[0] + } + + moduleHint := moduleHintFromEndpoint(endpoint) + filtered := filterDescriptors(candidates, func(desc *encoding.MethodDescriptor) bool { + if moduleHint == "" { + return true + } + return strings.ToLower(desc.Module) == moduleHint + }) + if len(filtered) == 1 { + return filtered[0] + } + if len(filtered) > 0 { + candidates = filtered + } + + operationName := operationNameFromID(endpoint.OperationID) + if operationName != "" { + filtered = filterDescriptors(candidates, func(desc *encoding.MethodDescriptor) bool { + return strings.ToLower(desc.StreamName) == operationName + }) + if len(filtered) == 1 { + return filtered[0] + } + if len(filtered) > 0 { + candidates = filtered + } + } + + return selectPreferredDescriptor(candidates) +} + +func filterDescriptors(candidates []*encoding.MethodDescriptor, predicate func(*encoding.MethodDescriptor) bool) []*encoding.MethodDescriptor { + if len(candidates) == 0 { + return nil + } + var filtered []*encoding.MethodDescriptor + for _, desc := range candidates { + if desc == nil { + continue + } + if predicate(desc) { + filtered = append(filtered, desc) + } + } + return filtered +} + +func selectPreferredDescriptor(candidates []*encoding.MethodDescriptor) *encoding.MethodDescriptor { + if len(candidates) == 0 { + return nil + } + best := candidates[0] + for _, candidate := range candidates[1:] { + best = morePreferredDescriptor(best, candidate) + } + return best +} + +func morePreferredDescriptor(a, b *encoding.MethodDescriptor) *encoding.MethodDescriptor { + if a == nil { + return b + } + if b == nil { + return a + } + aStable := isStableVersion(a.Version) + bStable := isStableVersion(b.Version) + switch { + case !aStable && bStable: + return b + case aStable && !bStable: + return a + case b.Version > a.Version: + return b + default: + return a + } +} + +func isStableVersion(version string) bool { + if version == "" { + return true + } + lower := strings.ToLower(version) + if strings.Contains(lower, "beta") || strings.Contains(lower, "alpha") || strings.Contains(lower, "rc") { + return false + } + if lower[0] != 'v' { + return false + } + for _, r := range lower[1:] { + if (r < '0' || r > '9') && (r < 'a' || r > 'z') { + return false + } + } + return true +} + +func simpleTypeName(full string) string { + if full == "" { + return "" + } + segments := strings.Split(full, ".") + return segments[len(segments)-1] +} + +func moduleHintFromEndpoint(endpoint endpoints.OpenAPIEndpoint) string { + path := strings.TrimSpace(endpoint.Path) + if strings.HasPrefix(path, "/ibc/") || strings.HasPrefix(path, "ibc/") || strings.HasPrefix(path, "/async-icq/") { + return "ibc" + } + trimmed := strings.Trim(path, "/") + if trimmed == "" { + return "" + } + parts := strings.Split(trimmed, "/") + if len(parts) >= 2 { + return strings.ToLower(parts[1]) + } + return strings.ToLower(parts[0]) +} + +func operationNameFromID(operationID string) string { + if operationID == "" { + return "" + } + parts := strings.Split(operationID, "_") + if len(parts) <= 1 { + return strings.ToLower(operationID) + } + return strings.ToLower(strings.Join(parts[1:], "_")) +} + +func cloneStringMap(src map[string]string) map[string]string { + if len(src) == 0 { + return map[string]string{} + } + dst := make(map[string]string, len(src)) + for k, v := range src { + dst[k] = v + } + return dst +} diff --git a/app/endpoints/websocket/common/stream_module_test.go b/app/endpoints/websocket/common/stream_module_test.go new file mode 100644 index 000000000..7bbe2bf85 --- /dev/null +++ b/app/endpoints/websocket/common/stream_module_test.go @@ -0,0 +1,44 @@ +package common + +import ( + "testing" + + "github.com/stretchr/testify/require" + + "github.com/CosmosContracts/juno/v30/app/endpoints" + "github.com/CosmosContracts/juno/v30/x/stream/types/encoding" +) + +func TestDescriptorResolverPrefersModuleHint(t *testing.T) { + responseName := "QueryAccountResponse" + resolver := newDescriptorResolverFromList([]*encoding.MethodDescriptor{ + {Module: "bank", StreamName: "account", ResponseType: "cosmos.bank.v1beta1." + responseName, Version: "v1beta1"}, + {Module: "auth", StreamName: "account", ResponseType: "cosmos.auth.v1beta1." + responseName, Version: "v1beta1"}, + }) + endpoint := endpoints.OpenAPIEndpoint{ + Path: "/cosmos/auth/v1beta1/accounts/{address}", + OperationID: "auth_account", + ResponseSchema: responseName, + } + + desc := resolver.Resolve(endpoint) + require.NotNil(t, desc) + require.Equal(t, "auth", desc.Module) +} + +func TestDescriptorResolverFallsBackToStreamName(t *testing.T) { + responseName := "LatestBlockResponse" + resolver := newDescriptorResolverFromList([]*encoding.MethodDescriptor{ + {Module: "base", StreamName: "block", ResponseType: "cosmos.base.v1." + responseName, Version: "v1beta1"}, + {Module: "base", StreamName: "latest_block", ResponseType: "cosmos.base.v1." + responseName, Version: "v1"}, + }) + endpoint := endpoints.OpenAPIEndpoint{ + Path: "/cosmos/base/tendermint/v1beta1/blocks/latest", + OperationID: "base_latest_block", + ResponseSchema: responseName, + } + + desc := resolver.Resolve(endpoint) + require.NotNil(t, desc) + require.Equal(t, "latest_block", desc.StreamName) +} diff --git a/app/endpoints/websocket/config.go b/app/endpoints/websocket/config.go new file mode 100644 index 000000000..10e1c23b6 --- /dev/null +++ b/app/endpoints/websocket/config.go @@ -0,0 +1,31 @@ +package websocket + +import ( + "errors" + "os" + "path/filepath" + + "github.com/spf13/viper" +) + +// Config contains the runtime configuration for the websocket server +type Config struct { + CORSAllowedOrigins []string +} + +// LoadConfig reads the websocket configuration from app.toml located under the node's home directory +func LoadConfig(homePath string) (Config, error) { + configPath := filepath.Join(homePath, "config", "config.toml") + serverConfig := viper.New() + serverConfig.SetConfigFile(configPath) + serverConfig.SetConfigType("toml") + + if err := serverConfig.ReadInConfig(); err != nil { + var configErr viper.ConfigFileNotFoundError + if !errors.As(err, &configErr) && !errors.Is(err, os.ErrNotExist) { + return Config{}, err + } + } + + return Config{CORSAllowedOrigins: serverConfig.GetStringSlice("rpc.cors_allowed_origins")}, nil +} diff --git a/app/endpoints/websocket/server.go b/app/endpoints/websocket/server.go new file mode 100644 index 000000000..ed3b76e75 --- /dev/null +++ b/app/endpoints/websocket/server.go @@ -0,0 +1,98 @@ +package websocket + +import ( + "net/http" + + "github.com/gorilla/websocket" + + "cosmossdk.io/log" + + "github.com/CosmosContracts/juno/v30/app/endpoints/websocket/common" + "github.com/CosmosContracts/juno/v30/x/stream/types" + "github.com/CosmosContracts/juno/v30/x/stream/types/encoding" +) + +// ServerOptions contains the configuration required to build a WebSocket server. +type ServerOptions struct { + ContextDone <-chan struct{} + MethodRegistry *encoding.DynamicRegistry + Registry *types.SubscriptionRegistry + Invoker *types.RouterInvoker + Logger log.Logger + Upgrader *websocket.Upgrader +} + +// Server wraps the WebSocket handler together with its supporting components. +type Server struct { + routes []common.RouteDefinition + registry *types.SubscriptionRegistry + logger log.Logger +} + +func buildRoutes( + handler *common.Handler, + logger log.Logger, + methodRegistry *encoding.DynamicRegistry, + invoker *types.RouterInvoker, +) []common.RouteDefinition { + return common.BuildWSRoutes(handler, methodRegistry, invoker, logger) +} + +// NewServer constructs a WebSocket server for the stream module using the provided options. +func NewServer(opts ServerOptions) *Server { + logger := opts.Logger + if logger == nil { + logger = log.NewNopLogger() + } + logger = logger.With("component", "stream-websocket") + + if opts.MethodRegistry == nil { + logger.Error("method registry is nil; skipping websocket server setup") + return nil + } + if opts.Invoker == nil { + logger.Error("query invoker is nil; skipping websocket server setup") + return nil + } + if opts.Registry == nil { + logger.Error("subscription registry is nil; skipping websocket server setup") + return nil + } + + upgrader := opts.Upgrader + if upgrader == nil { + upgrader = common.GetUpgrader(nil) + } + + handler := &common.Handler{ + Logger: logger, + Registry: opts.Registry, + AppContextDone: opts.ContextDone, + Upgrader: upgrader, + } + + wsRoutes := buildRoutes(handler, logger, opts.MethodRegistry, opts.Invoker) + + server := &Server{ + routes: wsRoutes, + registry: opts.Registry, + logger: logger, + } + + return server +} + +// RegisterRoutes registers all WebSocket routes with the provided function. +func (s *Server) RegisterRoutes(register func(pattern string, handler http.Handler)) { + if s == nil || len(s.routes) == 0 { + return + } + for _, route := range s.routes { + register(route.Pattern, http.HandlerFunc(route.Handler)) + } +} + +// HasRoutes reports whether the server produced any websocket routes. +func (s *Server) HasRoutes() bool { + return s != nil && len(s.routes) > 0 +} diff --git a/app/endpoints/websocket/websocket.go b/app/endpoints/websocket/websocket.go new file mode 100644 index 000000000..38e07d590 --- /dev/null +++ b/app/endpoints/websocket/websocket.go @@ -0,0 +1,51 @@ +package websocket + +import ( + "net/http" + + errorsmod "cosmossdk.io/errors" + + "github.com/cosmos/cosmos-sdk/server/api" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + + "github.com/CosmosContracts/juno/v30/app/endpoints/websocket/common" + "github.com/CosmosContracts/juno/v30/x/stream/keeper" +) + +// RegisterRoutes registers WebSocket routes for the stream module using the configuration +// loaded from the node's home directory. +func RegisterRoutes(apiSvr *api.Server, sk *keeper.Keeper, homePath string) error { + if sk == nil { + return errorsmod.Wrap(sdkerrors.ErrInvalidRequest, "stream keeper not initialized") + } + + cfg, err := LoadConfig(homePath) + if err != nil { + sk.Logger().Debug("failed to load websocket config", "error", err) + cfg = Config{} + } + + appCtx := sk.GetAppContext() + var appDone <-chan struct{} + if appCtx != nil { + appDone = appCtx.Done() + } + + server := NewServer(ServerOptions{ + ContextDone: appDone, + MethodRegistry: sk.MethodRegistry(), + Registry: sk.Registry(), + Invoker: sk.Invoker(), + Logger: sk.Logger(), + Upgrader: common.GetUpgrader(cfg.CORSAllowedOrigins), + }) + if server == nil || !server.HasRoutes() { + return errorsmod.Wrap(sdkerrors.ErrInvalidRequest, "websocket server not initialized") + } + + server.RegisterRoutes(func(pattern string, handler http.Handler) { + apiSvr.Router.Handle(pattern, handler) + }) + + return nil +} diff --git a/app/export.go b/app/export.go index 8e88b95ed..70ead7913 100644 --- a/app/export.go +++ b/app/export.go @@ -2,11 +2,11 @@ package app import ( "encoding/json" - "fmt" "log" cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" + errorsmod "cosmossdk.io/errors" storetypes "cosmossdk.io/store/types" servertypes "github.com/cosmos/cosmos-sdk/server/types" @@ -65,11 +65,7 @@ func (app *App) prepForZeroHeightGenesis(ctx sdk.Context, jailAllowedAddrs []str allowedAddrsMap[addr] = true } - /* Just to be safe, assert the invariants on current state. */ - app.AppKeepers.CrisisKeeper.AssertInvariants(ctx) - /* Handle fee distribution state. */ - // withdraw all validator commission err := app.AppKeepers.StakingKeeper.IterateValidators(ctx, func(_ int64, val stakingtypes.ValidatorI) (stop bool) { valBz, err := app.AppKeepers.StakingKeeper.ValidatorAddressCodec().StringToBytes(val.GetOperator()) @@ -90,9 +86,9 @@ func (app *App) prepForZeroHeightGenesis(ctx sdk.Context, jailAllowedAddrs []str } for _, delegation := range dels { - valAddr, err := sdk.ValAddressFromBech32(delegation.ValidatorAddress) - if err != nil { - panic(err) + valAddr, valErr := sdk.ValAddressFromBech32(delegation.ValidatorAddress) + if valErr != nil { + panic(valErr) } delAddr := sdk.MustAccAddressFromBech32(delegation.DelegatorAddress) @@ -114,14 +110,14 @@ func (app *App) prepForZeroHeightGenesis(ctx sdk.Context, jailAllowedAddrs []str // reinitialize all validators err = app.AppKeepers.StakingKeeper.IterateValidators(ctx, func(_ int64, val stakingtypes.ValidatorI) (stop bool) { - valBz, err := app.AppKeepers.StakingKeeper.ValidatorAddressCodec().StringToBytes(val.GetOperator()) - if err != nil { - panic(err) + valBz, valErr := app.AppKeepers.StakingKeeper.ValidatorAddressCodec().StringToBytes(val.GetOperator()) + if valErr != nil { + panic(valErr) } // donate any unwithdrawn outstanding reward fraction tokens to the community pool - scraps, err := app.AppKeepers.DistrKeeper.GetValidatorOutstandingRewardsCoins(ctx, valBz) - if err != nil { - panic(err) + scraps, rewardErr := app.AppKeepers.DistrKeeper.GetValidatorOutstandingRewardsCoins(ctx, valBz) + if rewardErr != nil { + panic(rewardErr) } feePool, err := app.AppKeepers.DistrKeeper.FeePool.Get(ctx) if err != nil { @@ -151,12 +147,12 @@ func (app *App) prepForZeroHeightGenesis(ctx sdk.Context, jailAllowedAddrs []str if err := app.AppKeepers.DistrKeeper.Hooks().BeforeDelegationCreated(ctx, delAddr, valAddr); err != nil { // never called as BeforeDelegationCreated always returns nil - panic(fmt.Errorf("error while incrementing period: %w", err)) + panic(errorsmod.Wrap(err, "error while incrementing period")) } if err := app.AppKeepers.DistrKeeper.Hooks().AfterDelegationModified(ctx, delAddr, valAddr); err != nil { // never called as AfterDelegationModified always returns nil - panic(fmt.Errorf("error while creating a new delegation period record: %w", err)) + panic(errorsmod.Wrap(err, "error while creating a new delegation period record")) } } diff --git a/app/genesis.go b/app/genesis.go index f8dada0d0..ece8411c7 100644 --- a/app/genesis.go +++ b/app/genesis.go @@ -6,7 +6,7 @@ import ( "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. diff --git a/app/helpers/mock.go b/app/helpers/mock.go deleted file mode 100644 index 832a5e542..000000000 --- a/app/helpers/mock.go +++ /dev/null @@ -1,50 +0,0 @@ -package helpers - -import ( - "github.com/cometbft/cometbft/crypto" - tmproto "github.com/cometbft/cometbft/proto/tendermint/types" - tmtypes "github.com/cometbft/cometbft/types" - - cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec" - "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" -) - -var _ tmtypes.PrivValidator = PV{} - -// PV implements PrivValidator without any safety or persistence. -// Only use it for testing. -type PV struct { - PrivKey cryptotypes.PrivKey -} - -func NewPV() PV { - return PV{ed25519.GenPrivKey()} -} - -// GetPubKey implements PrivValidator interface -func (pv PV) GetPubKey() (crypto.PubKey, error) { - return cryptocodec.ToCmtPubKeyInterface(pv.PrivKey.PubKey()) -} - -// SignVote implements PrivValidator interface -func (pv PV) SignVote(chainID string, vote *tmproto.Vote) error { - signBytes := tmtypes.VoteSignBytes(chainID, vote) - sig, err := pv.PrivKey.Sign(signBytes) - if err != nil { - return err - } - vote.Signature = sig - return nil -} - -// SignProposal implements PrivValidator interface -func (pv PV) SignProposal(chainID string, proposal *tmproto.Proposal) error { - signBytes := tmtypes.ProposalSignBytes(chainID, proposal) - sig, err := pv.PrivKey.Sign(signBytes) - if err != nil { - return err - } - proposal.Signature = sig - return nil -} diff --git a/app/keepers/acceptedQueries.go b/app/keepers/acceptedQueries.go index 8779f29c9..b2b03fde0 100644 --- a/app/keepers/acceptedQueries.go +++ b/app/keepers/acceptedQueries.go @@ -14,7 +14,7 @@ import ( govv1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" - tokenfactorytypes "github.com/CosmosContracts/juno/v29/x/tokenfactory/types" + tokenfactorytypes "github.com/CosmosContracts/juno/v30/x/tokenfactory/types" ) func AcceptedQueries() map[string]func() proto.Message { diff --git a/app/keepers/keepers.go b/app/keepers/keepers.go index 692d04436..22da5d3ef 100644 --- a/app/keepers/keepers.go +++ b/app/keepers/keepers.go @@ -35,8 +35,6 @@ import ( transfer "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" - 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" @@ -46,8 +44,6 @@ import ( evidencetypes "cosmossdk.io/x/evidence/types" "cosmossdk.io/x/feegrant" feegrantkeeper "cosmossdk.io/x/feegrant/keeper" - "cosmossdk.io/x/nft" - nftkeeper "cosmossdk.io/x/nft/keeper" upgradekeeper "cosmossdk.io/x/upgrade/keeper" upgradetypes "cosmossdk.io/x/upgrade/types" @@ -65,41 +61,36 @@ import ( banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" consensusparamkeeper "github.com/cosmos/cosmos-sdk/x/consensus/keeper" consensusparamtypes "github.com/cosmos/cosmos-sdk/x/consensus/types" - crisiskeeper "github.com/cosmos/cosmos-sdk/x/crisis/keeper" - crisistypes "github.com/cosmos/cosmos-sdk/x/crisis/types" distrkeeper "github.com/cosmos/cosmos-sdk/x/distribution/keeper" distrtypes "github.com/cosmos/cosmos-sdk/x/distribution/types" govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" govv1beta "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1" - "github.com/cosmos/cosmos-sdk/x/params" - 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" slashingkeeper "github.com/cosmos/cosmos-sdk/x/slashing/keeper" slashingtypes "github.com/cosmos/cosmos-sdk/x/slashing/types" stakingkeeper "github.com/cosmos/cosmos-sdk/x/staking/keeper" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" - bindings "github.com/CosmosContracts/juno/v29/wasmbindings" - junoburn "github.com/CosmosContracts/juno/v29/x/burn" - clockkeeper "github.com/CosmosContracts/juno/v29/x/clock/keeper" - clocktypes "github.com/CosmosContracts/juno/v29/x/clock/types" - cwhookskeeper "github.com/CosmosContracts/juno/v29/x/cw-hooks/keeper" - cwhookstypes "github.com/CosmosContracts/juno/v29/x/cw-hooks/types" - dripkeeper "github.com/CosmosContracts/juno/v29/x/drip/keeper" - driptypes "github.com/CosmosContracts/juno/v29/x/drip/types" - feepaykeeper "github.com/CosmosContracts/juno/v29/x/feepay/keeper" - feepaytypes "github.com/CosmosContracts/juno/v29/x/feepay/types" - feesharekeeper "github.com/CosmosContracts/juno/v29/x/feeshare/keeper" - feesharetypes "github.com/CosmosContracts/juno/v29/x/feeshare/types" - globalfeekeeper "github.com/CosmosContracts/juno/v29/x/globalfee/keeper" - globalfeetypes "github.com/CosmosContracts/juno/v29/x/globalfee/types" - mintkeeper "github.com/CosmosContracts/juno/v29/x/mint/keeper" - minttypes "github.com/CosmosContracts/juno/v29/x/mint/types" - tokenfactorykeeper "github.com/CosmosContracts/juno/v29/x/tokenfactory/keeper" - tokenfactorytypes "github.com/CosmosContracts/juno/v29/x/tokenfactory/types" + "github.com/CosmosContracts/juno/v30/wasmbindings" + junoburn "github.com/CosmosContracts/juno/v30/x/burn" + clockkeeper "github.com/CosmosContracts/juno/v30/x/clock/keeper" + clocktypes "github.com/CosmosContracts/juno/v30/x/clock/types" + cwhookskeeper "github.com/CosmosContracts/juno/v30/x/cw-hooks/keeper" + cwhookstypes "github.com/CosmosContracts/juno/v30/x/cw-hooks/types" + dripkeeper "github.com/CosmosContracts/juno/v30/x/drip/keeper" + driptypes "github.com/CosmosContracts/juno/v30/x/drip/types" + feemarketkeeper "github.com/CosmosContracts/juno/v30/x/feemarket/keeper" + feemarkettypes "github.com/CosmosContracts/juno/v30/x/feemarket/types" + feepaykeeper "github.com/CosmosContracts/juno/v30/x/feepay/keeper" + feepaytypes "github.com/CosmosContracts/juno/v30/x/feepay/types" + feesharekeeper "github.com/CosmosContracts/juno/v30/x/feeshare/keeper" + feesharetypes "github.com/CosmosContracts/juno/v30/x/feeshare/types" + mintkeeper "github.com/CosmosContracts/juno/v30/x/mint/keeper" + minttypes "github.com/CosmosContracts/juno/v30/x/mint/types" + streamkeeper "github.com/CosmosContracts/juno/v30/x/stream/keeper" + tokenfactorykeeper "github.com/CosmosContracts/juno/v30/x/tokenfactory/keeper" + tokenfactorytypes "github.com/CosmosContracts/juno/v30/x/tokenfactory/types" // wrappers - wrappedgovkeeper "github.com/CosmosContracts/juno/v29/x/wrappers/gov/keeper" + wrappedgovkeeper "github.com/CosmosContracts/juno/v30/x/wrappers/gov/keeper" ) var ( @@ -114,28 +105,26 @@ var ( // module account permissions var maccPerms = map[string][]string{ - authtypes.FeeCollectorName: nil, - distrtypes.ModuleName: nil, - minttypes.ModuleName: {authtypes.Minter}, - stakingtypes.BondedPoolName: {authtypes.Burner, authtypes.Staking}, - stakingtypes.NotBondedPoolName: {authtypes.Burner, authtypes.Staking}, - govtypes.ModuleName: {authtypes.Burner}, - nft.ModuleName: nil, - icqtypes.ModuleName: nil, - ibctransfertypes.ModuleName: {authtypes.Minter, authtypes.Burner}, - icatypes.ModuleName: nil, - ibcfeetypes.ModuleName: nil, - wasmtypes.ModuleName: {}, - tokenfactorytypes.ModuleName: {authtypes.Minter, authtypes.Burner}, - globalfeetypes.ModuleName: nil, - feepaytypes.ModuleName: nil, - junoburn.ModuleName: {authtypes.Burner}, + authtypes.FeeCollectorName: nil, + distrtypes.ModuleName: nil, + minttypes.ModuleName: {authtypes.Minter}, + stakingtypes.BondedPoolName: {authtypes.Burner, authtypes.Staking}, + stakingtypes.NotBondedPoolName: {authtypes.Burner, authtypes.Staking}, + govtypes.ModuleName: {authtypes.Burner}, + icqtypes.ModuleName: nil, + ibctransfertypes.ModuleName: {authtypes.Minter, authtypes.Burner}, + icatypes.ModuleName: nil, + ibcfeetypes.ModuleName: nil, + wasmtypes.ModuleName: {}, + tokenfactorytypes.ModuleName: {authtypes.Minter, authtypes.Burner}, + feepaytypes.ModuleName: nil, + feemarkettypes.FeeCollectorName: nil, + junoburn.ModuleName: {authtypes.Burner}, } type AppKeepers struct { // keys to access the substores keys map[string]*storetypes.KVStoreKey - tkeys map[string]*storetypes.TransientStoreKey memKeys map[string]*storetypes.MemoryStoreKey // keepers @@ -147,9 +136,7 @@ type AppKeepers struct { MintKeeper mintkeeper.Keeper DistrKeeper distrkeeper.Keeper GovKeeper *wrappedgovkeeper.KeeperWrapper // x/wrappers/gov wrapper to modify the gov module without forking it - 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 ICQKeeper icqkeeper.Keeper IBCFeeKeeper ibcfeekeeper.Keeper @@ -159,10 +146,8 @@ type AppKeepers struct { TransferKeeper ibctransferkeeper.Keeper AuthzKeeper authzkeeper.Keeper FeeGrantKeeper feegrantkeeper.Keeper - NFTKeeper nftkeeper.Keeper FeePayKeeper feepaykeeper.Keeper FeeShareKeeper feesharekeeper.Keeper - GlobalFeeKeeper globalfeekeeper.Keeper ContractKeeper wasmtypes.ContractOpsKeeper ClockKeeper clockkeeper.Keeper CWHooksKeeper cwhookskeeper.Keeper @@ -184,7 +169,10 @@ type AppKeepers struct { scopedWasmKeeper capabilitykeeper.ScopedKeeper TokenFactoryKeeper tokenfactorykeeper.Keeper - DripKeeper dripkeeper.Keeper + DripKeeper dripkeeper.Keeper + StreamKeeper *streamkeeper.Keeper + + FeeMarketKeeper *feemarketkeeper.Keeper // Middleware wrapper Ics20WasmHooks *ibchooks.WasmHooks @@ -206,19 +194,10 @@ func NewAppKeepers( // Set keys KVStoreKey, TransientStoreKey, MemoryStoreKey appKeepers.GenerateKeys() keys := appKeepers.GetKVStoreKeys() - tkeys := appKeepers.GetTransientStoreKeys() - - appKeepers.ParamsKeeper = initParamsKeeper( - appCodec, - cdc, - keys[paramstypes.StoreKey], - tkeys[paramstypes.TStoreKey], - ) govModAddress := authtypes.NewModuleAddress(govtypes.ModuleName).String() bech32Prefix := sdk.GetConfig().GetBech32AccountAddrPrefix() ac := authcodec.NewBech32Codec(bech32Prefix) - invCheckPeriod := cast.ToUint(appOpts.Get(server.FlagInvCheckPeriod)) dataDir := path.Join(homePath, "data") wasmDir := path.Join(dataDir, "wasm") @@ -304,16 +283,6 @@ func NewAppKeepers( govModAddress, ) - appKeepers.CrisisKeeper = crisiskeeper.NewKeeper( - appCodec, - runtime.NewKVStoreService(keys[crisistypes.StoreKey]), - invCheckPeriod, - appKeepers.BankKeeper, - authtypes.FeeCollectorName, - govModAddress, - ac, - ) - skipUpgradeHeights := map[int64]bool{} for _, h := range cast.ToIntSlice(appOpts.Get(server.FlagUnsafeSkipUpgrades)) { skipUpgradeHeights[int64(h)] = true @@ -332,7 +301,7 @@ func NewAppKeepers( appKeepers.IBCKeeper = ibckeeper.NewKeeper( appCodec, appKeepers.keys[ibcexported.StoreKey], - appKeepers.GetSubspace(ibcexported.ModuleName), + nil, stakingKeeper, appKeepers.UpgradeKeeper, scopedIBCKeeper, @@ -355,8 +324,7 @@ func NewAppKeepers( // register the proposal types govRouter := govv1beta.NewRouter() // This should be removed. It is still in place to avoid failures of modules that have not yet been upgraded - govRouter.AddRoute(govtypes.RouterKey, govv1beta.ProposalHandler). - AddRoute(paramproposal.RouterKey, params.NewParamChangeProposalHandler(appKeepers.ParamsKeeper)) + govRouter.AddRoute(govtypes.RouterKey, govv1beta.ProposalHandler) // Update the max metadata length to be >255 govConfig := govtypes.DefaultConfig() govConfig.MaxMetadataLen = math.MaxUint64 @@ -373,13 +341,6 @@ func NewAppKeepers( govModAddress, ) - appKeepers.NFTKeeper = nftkeeper.NewKeeper( - runtime.NewKVStoreService(keys[nftkeeper.StoreKey]), - appCodec, - appKeepers.AccountKeeper, - appKeepers.BankKeeper, - ) - // Configure the hooks keeper hooksKeeper := ibchookskeeper.NewKeeper( appKeepers.keys[ibchookstypes.StoreKey], @@ -426,7 +387,7 @@ func NewAppKeepers( appKeepers.TransferKeeper = ibctransferkeeper.NewKeeper( appCodec, appKeepers.keys[ibctransfertypes.StoreKey], - appKeepers.GetSubspace(ibctransfertypes.ModuleName), + nil, // The ICS4Wrapper is replaced by the PacketForwardKeeper instead of the channel so that sending can be overridden by the middleware appKeepers.PacketForwardKeeper, appKeepers.IBCKeeper.ChannelKeeper, @@ -454,7 +415,7 @@ func NewAppKeepers( appKeepers.ICAHostKeeper = icahostkeeper.NewKeeper( appCodec, appKeepers.keys[icahosttypes.StoreKey], - appKeepers.GetSubspace(icahosttypes.SubModuleName), + nil, appKeepers.HooksICS4Wrapper, appKeepers.IBCKeeper.ChannelKeeper, appKeepers.IBCKeeper.PortKeeper, @@ -469,7 +430,7 @@ func NewAppKeepers( appKeepers.ICAControllerKeeper = icacontrollerkeeper.NewKeeper( appCodec, appKeepers.keys[icacontrollertypes.StoreKey], - appKeepers.GetSubspace(icacontrollertypes.SubModuleName), + nil, appKeepers.IBCFeeKeeper, // use ics29 fee as ics4Wrapper in middleware stack appKeepers.IBCKeeper.ChannelKeeper, appKeepers.IBCKeeper.PortKeeper, @@ -502,13 +463,21 @@ func NewAppKeepers( govModAddress, ) + appKeepers.FeeMarketKeeper = feemarketkeeper.NewKeeper( + appCodec, + keys[feemarkettypes.StoreKey], + appKeepers.AccountKeeper, + &feemarkettypes.TestDenomResolver{}, + govModAddress, + ) + wasmConfig, err := wasm.ReadNodeConfig(appOpts) if err != nil { panic("error while reading wasm config: " + err.Error()) } // Move custom query of token factory to stargate, still use custom msg which is tfOpts[1] - tfOpts := bindings.RegisterCustomPlugins(appKeepers.BankKeeper, &appKeepers.TokenFactoryKeeper) + tfOpts := wasmbindings.RegisterCustomPlugins(appKeepers.BankKeeper, &appKeepers.TokenFactoryKeeper) wasmOpts = append(wasmOpts, tfOpts...) // Stargate Queries @@ -584,12 +553,6 @@ func NewAppKeepers( govModAddress, ) - appKeepers.GlobalFeeKeeper = globalfeekeeper.NewKeeper( - appCodec, - runtime.NewKVStoreService(appKeepers.keys[globalfeetypes.StoreKey]), - govModAddress, - ) - appKeepers.DripKeeper = dripkeeper.NewKeeper( appCodec, runtime.NewKVStoreService(appKeepers.keys[driptypes.StoreKey]), @@ -598,6 +561,16 @@ func NewAppKeepers( govModAddress, ) + appKeepers.StreamKeeper = streamkeeper.NewKeeper( + appCodec, + homePath, + bApp, + ) + + // if err := appKeepers.registerStreamModuleCodecs(appCodec); err != nil { + // panic(fmt.Sprintf("failed to register stream module codecs: %v", err)) + // } + appKeepers.ClockKeeper = clockkeeper.NewKeeper( appCodec, runtime.NewKVStoreService(appKeepers.keys[clocktypes.StoreKey]), @@ -685,43 +658,26 @@ func NewAppKeepers( return appKeepers } -// 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) - - // https://github.com/cosmos/ibc-go/issues/2010 - // Will remove all of these in the future. For now we keep for legacy proposals to work properly. - paramsKeeper.Subspace(authtypes.ModuleName) - paramsKeeper.Subspace(banktypes.ModuleName) - paramsKeeper.Subspace(distrtypes.ModuleName) - paramsKeeper.Subspace(slashingtypes.ModuleName) - paramsKeeper.Subspace(govtypes.ModuleName) - paramsKeeper.Subspace(crisistypes.ModuleName) - paramsKeeper.Subspace(stakingtypes.ModuleName).WithKeyTable(stakingtypes.ParamKeyTable()) //nolint:staticcheck - paramsKeeper.Subspace(minttypes.ModuleName) - - // custom - keyTable := ibcclienttypes.ParamKeyTable() - keyTable.RegisterParamSet(&ibcconnectiontypes.Params{}) - - paramsKeeper.Subspace(ibcexported.ModuleName).WithKeyTable(keyTable) - paramsKeeper.Subspace(ibctransfertypes.ModuleName).WithKeyTable(ibctransfertypes.ParamKeyTable()) - paramsKeeper.Subspace(icahosttypes.SubModuleName).WithKeyTable(icahosttypes.ParamKeyTable()) - paramsKeeper.Subspace(icacontrollertypes.SubModuleName).WithKeyTable(icacontrollertypes.ParamKeyTable()) - paramsKeeper.Subspace(ibchookstypes.ModuleName) - paramsKeeper.Subspace(icqtypes.ModuleName) - - paramsKeeper.Subspace(feesharetypes.ModuleName) - paramsKeeper.Subspace(wasmtypes.ModuleName) - - return paramsKeeper -} - -// GetSubspace returns a param subspace for a given module name. -func (appKeepers *AppKeepers) GetSubspace(moduleName string) paramstypes.Subspace { - subspace, _ := appKeepers.ParamsKeeper.GetSubspace(moduleName) - return subspace -} +// TODO: we need to wait until ALL cosmos sdk and juno modules FULLY implement SDK collections +// until we can simplify the state decode by A LOT. Keeping this here for future reference. +// type moduleEntry struct { +// storeKey string +// schema collections.Schema +// } + +// func (appKeepers *AppKeepers) registerStreamModuleCodecs(appCodec codec.Codec) error { +// modules := []moduleEntry{ +// {storeKey: distrtypes.StoreKey, schema: appKeepers.DistrKeeper.Schema}, +// } + +// for _, module := range modules { +// if err := appKeepers.StreamKeeper.RegisterModuleSchema(module.storeKey, module.schema, collections.IndexingOptions{}); err != nil { +// return err +// } +// } + +// return nil +// } // BlockedAddresses returns all the app's blocked account addresses. func BlockedAddresses() map[string]bool { diff --git a/app/keepers/keys.go b/app/keepers/keys.go index 8d50b4900..bbddb13a8 100644 --- a/app/keepers/keys.go +++ b/app/keepers/keys.go @@ -16,28 +16,25 @@ import ( storetypes "cosmossdk.io/store/types" evidencetypes "cosmossdk.io/x/evidence/types" "cosmossdk.io/x/feegrant" - nftkeeper "cosmossdk.io/x/nft/keeper" upgradetypes "cosmossdk.io/x/upgrade/types" 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" consensusparamtypes "github.com/cosmos/cosmos-sdk/x/consensus/types" - crisistypes "github.com/cosmos/cosmos-sdk/x/crisis/types" distrtypes "github.com/cosmos/cosmos-sdk/x/distribution/types" govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" - paramstypes "github.com/cosmos/cosmos-sdk/x/params/types" slashingtypes "github.com/cosmos/cosmos-sdk/x/slashing/types" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" - clocktypes "github.com/CosmosContracts/juno/v29/x/clock/types" - cwhookstypes "github.com/CosmosContracts/juno/v29/x/cw-hooks/types" - driptypes "github.com/CosmosContracts/juno/v29/x/drip/types" - feepaytypes "github.com/CosmosContracts/juno/v29/x/feepay/types" - feesharetypes "github.com/CosmosContracts/juno/v29/x/feeshare/types" - globalfeetypes "github.com/CosmosContracts/juno/v29/x/globalfee/types" - minttypes "github.com/CosmosContracts/juno/v29/x/mint/types" - tokenfactorytypes "github.com/CosmosContracts/juno/v29/x/tokenfactory/types" + clocktypes "github.com/CosmosContracts/juno/v30/x/clock/types" + cwhookstypes "github.com/CosmosContracts/juno/v30/x/cw-hooks/types" + driptypes "github.com/CosmosContracts/juno/v30/x/drip/types" + feemarkettypes "github.com/CosmosContracts/juno/v30/x/feemarket/types" + feepaytypes "github.com/CosmosContracts/juno/v30/x/feepay/types" + feesharetypes "github.com/CosmosContracts/juno/v30/x/feeshare/types" + minttypes "github.com/CosmosContracts/juno/v30/x/mint/types" + tokenfactorytypes "github.com/CosmosContracts/juno/v30/x/tokenfactory/types" ) func (appKeepers *AppKeepers) GenerateKeys() { @@ -46,18 +43,15 @@ func (appKeepers *AppKeepers) GenerateKeys() { authtypes.StoreKey, banktypes.StoreKey, stakingtypes.StoreKey, - crisistypes.StoreKey, minttypes.StoreKey, distrtypes.StoreKey, slashingtypes.StoreKey, govtypes.StoreKey, - paramstypes.StoreKey, consensusparamtypes.StoreKey, upgradetypes.StoreKey, feegrant.StoreKey, evidencetypes.StoreKey, authzkeeper.StoreKey, - nftkeeper.StoreKey, // ibc store keys capabilitytypes.StoreKey, @@ -75,26 +69,23 @@ func (appKeepers *AppKeepers) GenerateKeys() { // juno store keys tokenfactorytypes.StoreKey, + feemarkettypes.StoreKey, feepaytypes.StoreKey, feesharetypes.StoreKey, - globalfeetypes.StoreKey, driptypes.StoreKey, clocktypes.StoreKey, cwhookstypes.StoreKey, ) - appKeepers.tkeys = storetypes.NewTransientStoreKeys(paramstypes.TStoreKey) - appKeepers.memKeys = storetypes.NewMemoryStoreKeys(capabilitytypes.MemStoreKey) + appKeepers.memKeys = storetypes.NewMemoryStoreKeys( + capabilitytypes.MemStoreKey, + ) } func (appKeepers *AppKeepers) GetKVStoreKeys() map[string]*storetypes.KVStoreKey { return appKeepers.keys } -func (appKeepers *AppKeepers) GetTransientStoreKeys() map[string]*storetypes.TransientStoreKey { - return appKeepers.tkeys -} - func (appKeepers *AppKeepers) GetMemoryStoreKeys() map[string]*storetypes.MemoryStoreKey { return appKeepers.memKeys } @@ -103,10 +94,6 @@ func (appKeepers *AppKeepers) GetKey(storeKey string) *storetypes.KVStoreKey { return appKeepers.keys[storeKey] } -func (appKeepers *AppKeepers) GetTKey(storeKey string) *storetypes.TransientStoreKey { - return appKeepers.tkeys[storeKey] -} - func (appKeepers *AppKeepers) GetMemKey(storeKey string) *storetypes.MemoryStoreKey { return appKeepers.memKeys[storeKey] } diff --git a/app/modules.go b/app/modules.go index ecd0d9a24..faa606d43 100644 --- a/app/modules.go +++ b/app/modules.go @@ -26,8 +26,6 @@ import ( evidencetypes "cosmossdk.io/x/evidence/types" "cosmossdk.io/x/feegrant" feegrantmodule "cosmossdk.io/x/feegrant/module" - "cosmossdk.io/x/nft" - nftmodule "cosmossdk.io/x/nft/module" "cosmossdk.io/x/upgrade" upgradetypes "cosmossdk.io/x/upgrade/types" @@ -44,47 +42,43 @@ import ( banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" "github.com/cosmos/cosmos-sdk/x/consensus" consensusparamtypes "github.com/cosmos/cosmos-sdk/x/consensus/types" - "github.com/cosmos/cosmos-sdk/x/crisis" - crisistypes "github.com/cosmos/cosmos-sdk/x/crisis/types" distr "github.com/cosmos/cosmos-sdk/x/distribution" distrtypes "github.com/cosmos/cosmos-sdk/x/distribution/types" "github.com/cosmos/cosmos-sdk/x/genutil" genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types" "github.com/cosmos/cosmos-sdk/x/gov" - // "github.com/cosmos/cosmos-sdk/x/gov" govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" - "github.com/cosmos/cosmos-sdk/x/params" - paramstypes "github.com/cosmos/cosmos-sdk/x/params/types" "github.com/cosmos/cosmos-sdk/x/slashing" slashingtypes "github.com/cosmos/cosmos-sdk/x/slashing/types" "github.com/cosmos/cosmos-sdk/x/staking" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" - clockmodule "github.com/CosmosContracts/juno/v29/x/clock/module" - clocktypes "github.com/CosmosContracts/juno/v29/x/clock/types" - cwhooksmodule "github.com/CosmosContracts/juno/v29/x/cw-hooks/module" - cwhookstypes "github.com/CosmosContracts/juno/v29/x/cw-hooks/types" - dripmodule "github.com/CosmosContracts/juno/v29/x/drip/module" - driptypes "github.com/CosmosContracts/juno/v29/x/drip/types" - feepaymodule "github.com/CosmosContracts/juno/v29/x/feepay/module" - feepaytypes "github.com/CosmosContracts/juno/v29/x/feepay/types" - feesharemodule "github.com/CosmosContracts/juno/v29/x/feeshare/module" - feesharetypes "github.com/CosmosContracts/juno/v29/x/feeshare/types" - globalfeemodule "github.com/CosmosContracts/juno/v29/x/globalfee/module" - globalfeetypes "github.com/CosmosContracts/juno/v29/x/globalfee/types" - mintmodule "github.com/CosmosContracts/juno/v29/x/mint/module" - minttypes "github.com/CosmosContracts/juno/v29/x/mint/types" - tokenfactorymodule "github.com/CosmosContracts/juno/v29/x/tokenfactory/module" - tokenfactorytypes "github.com/CosmosContracts/juno/v29/x/tokenfactory/types" + clockmodule "github.com/CosmosContracts/juno/v30/x/clock/module" + clocktypes "github.com/CosmosContracts/juno/v30/x/clock/types" + cwhooksmodule "github.com/CosmosContracts/juno/v30/x/cw-hooks/module" + cwhookstypes "github.com/CosmosContracts/juno/v30/x/cw-hooks/types" + dripmodule "github.com/CosmosContracts/juno/v30/x/drip/module" + driptypes "github.com/CosmosContracts/juno/v30/x/drip/types" + feemarketmodule "github.com/CosmosContracts/juno/v30/x/feemarket/module" + feemarkettypes "github.com/CosmosContracts/juno/v30/x/feemarket/types" + feepaymodule "github.com/CosmosContracts/juno/v30/x/feepay/module" + feepaytypes "github.com/CosmosContracts/juno/v30/x/feepay/types" + feesharemodule "github.com/CosmosContracts/juno/v30/x/feeshare/module" + feesharetypes "github.com/CosmosContracts/juno/v30/x/feeshare/types" + mintmodule "github.com/CosmosContracts/juno/v30/x/mint/module" + minttypes "github.com/CosmosContracts/juno/v30/x/mint/types" + streammodule "github.com/CosmosContracts/juno/v30/x/stream/module" + streamtypes "github.com/CosmosContracts/juno/v30/x/stream/types" + tokenfactorymodule "github.com/CosmosContracts/juno/v30/x/tokenfactory/module" + tokenfactorytypes "github.com/CosmosContracts/juno/v30/x/tokenfactory/types" // wrappers - wrappedgovmodule "github.com/CosmosContracts/juno/v29/x/wrappers/gov/module" + wrappedgovmodule "github.com/CosmosContracts/juno/v30/x/wrappers/gov/module" ) func appModules( app *App, txConfig client.TxConfig, appCodec codec.Codec, - skipGenesisInvariants bool, ) []module.AppModule { return []module.AppModule{ // Cosmos SDK modules @@ -94,29 +88,27 @@ func appModules( app, txConfig, ), - auth.NewAppModule(appCodec, app.AppKeepers.AccountKeeper, nil, app.GetSubspace(authtypes.ModuleName)), + auth.NewAppModule(appCodec, app.AppKeepers.AccountKeeper, nil, nil), vesting.NewAppModule(app.AppKeepers.AccountKeeper, app.AppKeepers.BankKeeper), - bank.NewAppModule(appCodec, app.AppKeepers.BankKeeper, app.AppKeepers.AccountKeeper, app.GetSubspace(banktypes.ModuleName)), + bank.NewAppModule(appCodec, app.AppKeepers.BankKeeper, app.AppKeepers.AccountKeeper, nil), feegrantmodule.NewAppModule(appCodec, app.AppKeepers.AccountKeeper, app.AppKeepers.BankKeeper, app.AppKeepers.FeeGrantKeeper, app.interfaceRegistry), // replaced gov.NewAppModule with wrappedgovmodule.NewAppModule - wrappedgovmodule.NewAppModule(appCodec, app.AppKeepers.GovKeeper, app.AppKeepers.AccountKeeper, app.AppKeepers.BankKeeper, app.GetSubspace(govtypes.ModuleName)), - slashing.NewAppModule(appCodec, app.AppKeepers.SlashingKeeper, app.AppKeepers.AccountKeeper, app.AppKeepers.BankKeeper, app.AppKeepers.StakingKeeper, app.GetSubspace(slashingtypes.ModuleName), app.interfaceRegistry), - distr.NewAppModule(appCodec, app.AppKeepers.DistrKeeper, app.AppKeepers.AccountKeeper, app.AppKeepers.BankKeeper, app.AppKeepers.StakingKeeper, app.GetSubspace(distrtypes.ModuleName)), - staking.NewAppModule(appCodec, app.AppKeepers.StakingKeeper, app.AppKeepers.AccountKeeper, app.AppKeepers.BankKeeper, app.GetSubspace(stakingtypes.ModuleName)), + wrappedgovmodule.NewAppModule(appCodec, app.AppKeepers.GovKeeper, app.AppKeepers.AccountKeeper, app.AppKeepers.BankKeeper, nil), + slashing.NewAppModule(appCodec, app.AppKeepers.SlashingKeeper, app.AppKeepers.AccountKeeper, app.AppKeepers.BankKeeper, app.AppKeepers.StakingKeeper, nil, app.interfaceRegistry), + distr.NewAppModule(appCodec, app.AppKeepers.DistrKeeper, app.AppKeepers.AccountKeeper, app.AppKeepers.BankKeeper, app.AppKeepers.StakingKeeper, nil), + staking.NewAppModule(appCodec, app.AppKeepers.StakingKeeper, app.AppKeepers.AccountKeeper, app.AppKeepers.BankKeeper, nil), upgrade.NewAppModule(app.AppKeepers.UpgradeKeeper, app.AppKeepers.AccountKeeper.AddressCodec()), evidence.NewAppModule(app.AppKeepers.EvidenceKeeper), - params.NewAppModule(app.AppKeepers.ParamsKeeper), authzmodule.NewAppModule(appCodec, app.AppKeepers.AuthzKeeper, app.AppKeepers.AccountKeeper, app.AppKeepers.BankKeeper, app.interfaceRegistry), - nftmodule.NewAppModule(appCodec, app.AppKeepers.NFTKeeper, app.AppKeepers.AccountKeeper, app.AppKeepers.BankKeeper, app.interfaceRegistry), consensus.NewAppModule(appCodec, app.AppKeepers.ConsensusParamsKeeper), - crisis.NewAppModule(app.AppKeepers.CrisisKeeper, skipGenesisInvariants, app.GetSubspace(crisistypes.ModuleName)), // Juno modules mintmodule.NewAppModule(appCodec, app.AppKeepers.MintKeeper, app.AppKeepers.AccountKeeper), tokenfactorymodule.NewAppModule(app.AppKeepers.TokenFactoryKeeper, app.AppKeepers.AccountKeeper, app.AppKeepers.BankKeeper), - globalfeemodule.NewAppModule(appCodec, app.AppKeepers.GlobalFeeKeeper), feepaymodule.NewAppModule(app.AppKeepers.FeePayKeeper, app.AppKeepers.AccountKeeper), + feemarketmodule.NewAppModule(appCodec, *app.AppKeepers.FeeMarketKeeper), feesharemodule.NewAppModule(app.AppKeepers.FeeShareKeeper, app.AppKeepers.AccountKeeper), dripmodule.NewAppModule(appCodec, app.AppKeepers.DripKeeper, app.AppKeepers.AccountKeeper), + streammodule.NewAppModule(appCodec, app.AppKeepers.StreamKeeper), clockmodule.NewAppModule(appCodec, app.AppKeepers.ClockKeeper), cwhooksmodule.NewAppModule(appCodec, app.AppKeepers.CWHooksKeeper), // IBC modules @@ -127,10 +119,10 @@ func appModules( ica.NewAppModule(&app.AppKeepers.ICAControllerKeeper, &app.AppKeepers.ICAHostKeeper), ibcfee.NewAppModule(app.AppKeepers.IBCFeeKeeper), ibchooks.NewAppModule(app.AppKeepers.AccountKeeper), - icq.NewAppModule(app.AppKeepers.ICQKeeper, app.GetSubspace(icqtypes.ModuleName)), - packetforward.NewAppModule(app.AppKeepers.PacketForwardKeeper, app.GetSubspace(packetforwardtypes.ModuleName)), + icq.NewAppModule(app.AppKeepers.ICQKeeper, nil), + packetforward.NewAppModule(app.AppKeepers.PacketForwardKeeper, nil), // Wasm modules - wasm.NewAppModule(appCodec, &app.AppKeepers.WasmKeeper, app.AppKeepers.StakingKeeper, app.AppKeepers.AccountKeeper, app.AppKeepers.BankKeeper, app.MsgServiceRouter(), app.GetSubspace(wasmtypes.ModuleName)), + wasm.NewAppModule(appCodec, &app.AppKeepers.WasmKeeper, app.AppKeepers.StakingKeeper, app.AppKeepers.AccountKeeper, app.AppKeepers.BankKeeper, app.MsgServiceRouter(), nil), } } @@ -147,13 +139,10 @@ func orderBeginBlockers() []string { authtypes.ModuleName, banktypes.ModuleName, govtypes.ModuleName, - crisistypes.ModuleName, genutiltypes.ModuleName, authz.ModuleName, feegrant.ModuleName, - paramstypes.ModuleName, vestingtypes.ModuleName, - nft.ModuleName, consensusparamtypes.ModuleName, // additional modules ibctransfertypes.ModuleName, @@ -165,8 +154,8 @@ func orderBeginBlockers() []string { tokenfactorytypes.ModuleName, driptypes.ModuleName, feepaytypes.ModuleName, + feemarkettypes.ModuleName, feesharetypes.ModuleName, - globalfeetypes.ModuleName, wasmtypes.ModuleName, ibchookstypes.ModuleName, clocktypes.ModuleName, @@ -176,7 +165,6 @@ func orderBeginBlockers() []string { func orderEndBlockers() []string { return []string{ - crisistypes.ModuleName, govtypes.ModuleName, stakingtypes.ModuleName, capabilitytypes.ModuleName, @@ -189,10 +177,8 @@ func orderEndBlockers() []string { evidencetypes.ModuleName, authz.ModuleName, feegrant.ModuleName, - paramstypes.ModuleName, upgradetypes.ModuleName, vestingtypes.ModuleName, - nft.ModuleName, consensusparamtypes.ModuleName, // additional non simd modules ibctransfertypes.ModuleName, @@ -205,11 +191,11 @@ func orderEndBlockers() []string { driptypes.ModuleName, feepaytypes.ModuleName, feesharetypes.ModuleName, - globalfeetypes.ModuleName, wasmtypes.ModuleName, ibchookstypes.ModuleName, clocktypes.ModuleName, cwhookstypes.ModuleName, + feemarkettypes.ModuleName, } } @@ -229,15 +215,12 @@ func orderInitBlockers() []string { slashingtypes.ModuleName, govtypes.ModuleName, minttypes.ModuleName, - crisistypes.ModuleName, genutiltypes.ModuleName, evidencetypes.ModuleName, authz.ModuleName, - paramstypes.ModuleName, upgradetypes.ModuleName, vestingtypes.ModuleName, feegrant.ModuleName, - nft.ModuleName, consensusparamtypes.ModuleName, // additional non simd modules ibctransfertypes.ModuleName, @@ -249,8 +232,9 @@ func orderInitBlockers() []string { tokenfactorytypes.ModuleName, driptypes.ModuleName, feepaytypes.ModuleName, + feemarkettypes.ModuleName, feesharetypes.ModuleName, - globalfeetypes.ModuleName, + streamtypes.ModuleName, wasmtypes.ModuleName, ibchookstypes.ModuleName, clocktypes.ModuleName, @@ -268,24 +252,21 @@ var AppModuleBasics = module.NewBasicManager( bank.AppModuleBasic{}, feegrantmodule.AppModuleBasic{}, gov.AppModuleBasic{}, - // Replace .NewAppModule with .AppModuleBasic{} slashing.AppModuleBasic{}, distr.AppModuleBasic{}, staking.AppModuleBasic{}, upgrade.AppModuleBasic{}, evidence.AppModuleBasic{}, - params.AppModuleBasic{}, authzmodule.AppModuleBasic{}, - nftmodule.AppModuleBasic{}, consensus.AppModuleBasic{}, - crisis.AppModuleBasic{}, // Juno modules mintmodule.AppModuleBasic{}, tokenfactorymodule.AppModuleBasic{}, - globalfeemodule.AppModuleBasic{}, feepaymodule.AppModuleBasic{}, + feemarketmodule.AppModuleBasic{}, feesharemodule.AppModuleBasic{}, dripmodule.AppModuleBasic{}, + streammodule.AppModuleBasic{}, clockmodule.AppModuleBasic{}, cwhooksmodule.AppModuleBasic{}, // IBC modules diff --git a/app/post.go b/app/post.go new file mode 100644 index 000000000..907a3479b --- /dev/null +++ b/app/post.go @@ -0,0 +1,37 @@ +package app + +import ( + errorsmod "cosmossdk.io/errors" + + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + authkeeper "github.com/cosmos/cosmos-sdk/x/auth/keeper" + bankkeeper "github.com/cosmos/cosmos-sdk/x/bank/keeper" + + feemarketkeeper "github.com/CosmosContracts/juno/v30/x/feemarket/keeper" + feemarketpost "github.com/CosmosContracts/juno/v30/x/feemarket/post" +) + +// PostHandlerOptions are the options required for constructing a FeeMarket PostHandler. +type PostHandlerOptions struct { + AccountKeeper authkeeper.AccountKeeper + BankKeeper bankkeeper.Keeper + FeeMarketKeeper feemarketkeeper.Keeper +} + +// NewPostHandler returns a PostHandler chain with the fee deduct decorator. +func NewPostHandler(options PostHandlerOptions) (sdk.PostHandler, error) { + if options.BankKeeper == nil { + return nil, errorsmod.Wrap(sdkerrors.ErrLogic, "bank keeper is required for post builder") + } + + postDecorators := []sdk.PostDecorator{ + feemarketpost.NewFeeMarketDeductDecorator( + options.AccountKeeper, + options.BankKeeper, + options.FeeMarketKeeper, + ), + } + + return sdk.ChainPostDecorators(postDecorators...), nil +} diff --git a/app/upgrades/types.go b/app/upgrades/types.go index 5cbaa8882..359f99360 100644 --- a/app/upgrades/types.go +++ b/app/upgrades/types.go @@ -6,7 +6,7 @@ import ( "github.com/cosmos/cosmos-sdk/types/module" - "github.com/CosmosContracts/juno/v29/app/keepers" + "github.com/CosmosContracts/juno/v30/app/keepers" ) // Upgrade defines a struct containing necessary fields that a SoftwareUpgradeProposal diff --git a/app/upgrades/v28/constants.go b/app/upgrades/v28/constants.go deleted file mode 100644 index 2c22e2226..000000000 --- a/app/upgrades/v28/constants.go +++ /dev/null @@ -1,24 +0,0 @@ -package v28 - -import ( - storetypes "cosmossdk.io/store/types" - - "github.com/CosmosContracts/juno/v29/app/upgrades" -) - -const UpgradeName = "v28" - -const ( - mevModuleAccount = "juno1ma4sw9m2nvtucny6lsjhh4qywvh86zdh5dlkd4" -) - -var Upgrade = upgrades.Upgrade{ - UpgradeName: UpgradeName, - CreateUpgradeHandler: CreateV28UpgradeHandler, - StoreUpgrades: storetypes.StoreUpgrades{ - Deleted: []string{ - "08-wasm", - "builder", - }, - }, -} diff --git a/app/upgrades/v28/upgrades.go b/app/upgrades/v28/upgrades.go deleted file mode 100644 index 8717ca1f3..000000000 --- a/app/upgrades/v28/upgrades.go +++ /dev/null @@ -1,66 +0,0 @@ -package v28 - -import ( - "context" - "errors" - "fmt" - - "cosmossdk.io/log" - upgradetypes "cosmossdk.io/x/upgrade/types" - - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/module" - - "github.com/CosmosContracts/juno/v29/app/keepers" -) - -func CreateV28UpgradeHandler( - mm *module.Manager, - cfg module.Configurator, - k *keepers.AppKeepers, -) upgradetypes.UpgradeHandler { - return func(ctx context.Context, _ upgradetypes.Plan, vm module.VersionMap) (module.VersionMap, error) { - sdkCtx := sdk.UnwrapSDKContext(ctx) - logger := sdkCtx.Logger().With("upgrade", UpgradeName) - - // Run migrations - logger.Info(fmt.Sprintf("v28: running migrations for: %v", vm)) - versionMap, err := mm.RunMigrations(ctx, cfg, vm) - if err != nil { - return nil, err - } - logger.Info(fmt.Sprintf("v28: post migration check: %v", versionMap)) - - // Send MEV profits from module account to community pool - err = sendMEVtoCommunityPool(ctx, k, logger) - if err != nil { - return nil, err - } - - return versionMap, nil - } -} - -func sendMEVtoCommunityPool(ctx context.Context, k *keepers.AppKeepers, logger log.Logger) error { - mevModuleAddress := sdk.MustAccAddressFromBech32(mevModuleAccount) - - // get mev module account balance - mintParams, err := k.MintKeeper.GetParams(ctx) - if err != nil { - logger.Error("v28: failed to get x/mint params") - return errors.New("v28: failed to get x/mint params") - } - - mevModuleTokenAmount := k.BankKeeper.GetBalance(ctx, mevModuleAddress, mintParams.MintDenom) - - // skip if balance is 0 (testnet etc) - if !mevModuleTokenAmount.IsZero() { - coins := sdk.NewCoins(mevModuleTokenAmount) - err = k.DistrKeeper.FundCommunityPool(ctx, coins, mevModuleAddress) - if err != nil { - logger.Error(fmt.Sprintf("v28: failed to fund community pool with MEV profits: %v", coins)) - return err - } - } - return nil -} diff --git a/app/upgrades/v29/constants.go b/app/upgrades/v29/constants.go deleted file mode 100644 index 62e638851..000000000 --- a/app/upgrades/v29/constants.go +++ /dev/null @@ -1,16 +0,0 @@ -package v29 - -import ( - "github.com/CosmosContracts/juno/v29/app/upgrades" -) - -const UpgradeName = "v29" - -const ( - expeditedMinDeposit = "10000000000" -) - -var Upgrade = upgrades.Upgrade{ - UpgradeName: UpgradeName, - CreateUpgradeHandler: CreateV29UpgradeHandler, -} diff --git a/app/upgrades/v29/upgrades.go b/app/upgrades/v29/upgrades.go deleted file mode 100644 index 7f974f1fb..000000000 --- a/app/upgrades/v29/upgrades.go +++ /dev/null @@ -1,75 +0,0 @@ -package v29 - -import ( - "context" - "errors" - "fmt" - - "cosmossdk.io/log" - sdkmath "cosmossdk.io/math" - upgradetypes "cosmossdk.io/x/upgrade/types" - - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/module" - - "github.com/CosmosContracts/juno/v29/app/keepers" -) - -func CreateV29UpgradeHandler( - mm *module.Manager, - cfg module.Configurator, - k *keepers.AppKeepers, -) upgradetypes.UpgradeHandler { - return func(ctx context.Context, _ upgradetypes.Plan, vm module.VersionMap) (module.VersionMap, error) { - sdkCtx := sdk.UnwrapSDKContext(ctx) - logger := sdkCtx.Logger().With("upgrade", UpgradeName) - - // Run migrations - logger.Info(fmt.Sprintf("v29: running migrations for: %v", vm)) - versionMap, err := mm.RunMigrations(ctx, cfg, vm) - if err != nil { - return nil, err - } - logger.Info(fmt.Sprintf("v29: post migration check: %v", versionMap)) - - // Configure x/gov params, fixes expedited proposal deposit being way too low - err = configureGovV1Params(ctx, k, logger) - if err != nil { - return nil, err - } - - return versionMap, nil - } -} - -func configureGovV1Params(ctx context.Context, k *keepers.AppKeepers, logger log.Logger) error { - govParams, err := k.GovKeeper.Params.Get(ctx) - if err != nil { - logger.Error("v29: failed to get x/gov params") - return errors.New("v29: failed to get x/gov params") - } - - mintParams, err := k.MintKeeper.GetParams(ctx) - if err != nil { - logger.Error("v29: failed to get x/mint params") - return errors.New("v29: failed to get x/mint params") - } - - expeditedMinDepositInt, ok := sdkmath.NewIntFromString(expeditedMinDeposit) - if !ok { - logger.Error("v29: failed to parse expedited min deposit") - return errors.New("v29: failed to parse expedited min deposit") - } - - govParams.ExpeditedMinDeposit = sdk.NewCoins(sdk.NewCoin(mintParams.MintDenom, expeditedMinDepositInt)) - - err = k.GovKeeper.Params.Set(ctx, govParams) - if err != nil { - logger.Error("v29: failed to set updated x/gov params") - return errors.New("v29: failed to set updated x/gov params") - } - - logger.Info("v29: successfully set updated x/gov params") - - return nil -} diff --git a/app/upgrades/v30/constants.go b/app/upgrades/v30/constants.go new file mode 100644 index 000000000..dfe43dd69 --- /dev/null +++ b/app/upgrades/v30/constants.go @@ -0,0 +1,26 @@ +package v30 + +import ( + storetypes "cosmossdk.io/store/types" + + "github.com/CosmosContracts/juno/v30/app/upgrades" + feemarkettypes "github.com/CosmosContracts/juno/v30/x/feemarket/types" +) + +const UpgradeName = "v30" + +var Upgrade = upgrades.Upgrade{ + UpgradeName: UpgradeName, + CreateUpgradeHandler: CreateV30UpgradeHandler, + StoreUpgrades: storetypes.StoreUpgrades{ + Deleted: []string{ + "globalfee", + "crisis", + "params", + "nft", + }, + Added: []string{ + feemarkettypes.ModuleName, + }, + }, +} diff --git a/app/upgrades/v30/upgrades.go b/app/upgrades/v30/upgrades.go new file mode 100644 index 000000000..99202e581 --- /dev/null +++ b/app/upgrades/v30/upgrades.go @@ -0,0 +1,115 @@ +package v30 + +import ( + "context" + "fmt" + + errorsmod "cosmossdk.io/errors" + log "cosmossdk.io/log" + sdkmath "cosmossdk.io/math" + upgradetypes "cosmossdk.io/x/upgrade/types" + + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/types/module" + + "github.com/CosmosContracts/juno/v30/app/keepers" + feemarkettypes "github.com/CosmosContracts/juno/v30/x/feemarket/types" +) + +func CreateV30UpgradeHandler( + mm *module.Manager, + cfg module.Configurator, + k *keepers.AppKeepers, +) upgradetypes.UpgradeHandler { + return func(ctx context.Context, _ upgradetypes.Plan, vm module.VersionMap) (module.VersionMap, error) { + sdkCtx := sdk.UnwrapSDKContext(ctx) + logger := sdkCtx.Logger().With("upgrade", UpgradeName) + + // Run migrations + logger.Info(fmt.Sprintf("v30: running migrations for: %v", vm)) + versionMap, err := mm.RunMigrations(ctx, cfg, vm) + if err != nil { + return nil, err + } + logger.Info(fmt.Sprintf("v30: post migration check: %v", versionMap)) + + err = configureFeemarketParams(ctx, k, logger) + if err != nil { + return nil, err + } + + err = configureCWHooksParams(ctx, k, logger) + if err != nil { + return nil, err + } + + return versionMap, nil + } +} + +func configureFeemarketParams(ctx context.Context, k *keepers.AppKeepers, logger log.Logger) error { + stakingParams, err := k.StakingKeeper.GetParams(ctx) + if err != nil { + logger.Error("v30: failed to get x/staking params") + return errorsmod.Wrap(err, "v30: failed to get x/staking params") + } + + consensusParams, err := k.ConsensusParamsKeeper.ParamsStore.Get(ctx) + if err != nil { + logger.Error("v30: failed to get x/consensus params") + return errorsmod.Wrap(err, "v30: failed to get x/consensus params") + } + + newFeemarketParams := feemarkettypes.Params{ + Alpha: sdkmath.LegacyMustNewDecFromStr("0.004"), + Beta: sdkmath.LegacyMustNewDecFromStr("0.983"), + Gamma: sdkmath.LegacyMustNewDecFromStr("0.2"), + Delta: sdkmath.LegacyMustNewDecFromStr("0.00000000000125"), + MinBaseGasPrice: sdkmath.LegacyMustNewDecFromStr("0.075"), + MinLearningRate: sdkmath.LegacyMustNewDecFromStr("0.0015"), + MaxLearningRate: sdkmath.LegacyMustNewDecFromStr("0.05"), + MaxBlockUtilization: uint64(consensusParams.Block.MaxGas), + Window: 60, + FeeDenom: stakingParams.BondDenom, + Enabled: true, + DistributeFees: true, + } + + sdkCtx := sdk.UnwrapSDKContext(ctx) + err = k.FeeMarketKeeper.SetParams(sdkCtx, newFeemarketParams) + if err != nil { + return errorsmod.Wrap(err, "v30: failed to set x/feemarket params") + } + + newState := feemarkettypes.NewState( + newFeemarketParams.Window, + newFeemarketParams.MinBaseGasPrice, + newFeemarketParams.MinLearningRate, + ) + if err := k.FeeMarketKeeper.SetState(sdkCtx, newState); err != nil { + return errorsmod.Wrap(err, "v30: failed to rebuild x/feemarket state") + } + + logger.Info("v30: successfully configured x/feemarket") + + return nil +} + +func configureCWHooksParams(ctx context.Context, k *keepers.AppKeepers, logger log.Logger) error { + params, err := k.CWHooksKeeper.Params.Get(ctx) + if err != nil { + logger.Error("v30: failed to get x/cw-hooks params") + return errorsmod.Wrap(err, "v30: failed to get x/cw-hooks params") + } + + params.ContractFailureRemovalThreshold = 3 + + if err := k.CWHooksKeeper.Params.Set(ctx, params); err != nil { + logger.Error("v30: failed to set x/cw-hooks params") + return errorsmod.Wrap(err, "v30: failed to set x/cw-hooks params") + } + + logger.Info("v30: successfully set x/cw-hooks params") + + return nil +} diff --git a/app/helpers/contracts.go b/app/utils/contracts.go similarity index 87% rename from app/helpers/contracts.go rename to app/utils/contracts.go index 4dfbe8955..0d285559e 100644 --- a/app/helpers/contracts.go +++ b/app/utils/contracts.go @@ -1,4 +1,4 @@ -package helpers +package utils import ( wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" @@ -8,7 +8,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" ) -// Execute contract, recover from panic +// ExecuteContract executes a contract and recovers from panic func ExecuteContract(k wasmtypes.ContractOpsKeeper, childCtx sdk.Context, contractAddr sdk.AccAddress, msgBz []byte, err *error) { // Recover from panic, return error defer func() { @@ -26,7 +26,7 @@ func ExecuteContract(k wasmtypes.ContractOpsKeeper, childCtx sdk.Context, contra _, *err = k.Sudo(childCtx, contractAddr, msgBz) } -// Check if error is out of gas error +// IsOutOfGasError checks if error is out of gas error func IsOutOfGasError(err any) (bool, string) { switch e := err.(type) { case storetypes.ErrorOutOfGas: diff --git a/app/helpers/global_errors.go b/app/utils/errors.go similarity index 94% rename from app/helpers/global_errors.go rename to app/utils/errors.go index 385ddb54e..2158c16d9 100644 --- a/app/helpers/global_errors.go +++ b/app/utils/errors.go @@ -1,4 +1,4 @@ -package helpers +package utils import ( errorsmod "cosmossdk.io/errors" @@ -6,7 +6,7 @@ import ( sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" ) -const codespace = "juno-global" +const codespace = "juno" var ( ErrInvalidAddress = sdkerrors.ErrInvalidAddress diff --git a/buf.lock b/buf.lock new file mode 100644 index 000000000..2a97d7c7e --- /dev/null +++ b/buf.lock @@ -0,0 +1,18 @@ +# Generated by buf. DO NOT EDIT. +version: v2 +deps: + - name: buf.build/cosmos/cosmos-proto + commit: 04467658e59e44bbb22fe568206e1f70 + digest: b5:8058c0aadbee8c9af67a9cefe86492c6c0b0bd5b4526b0ec820507b91fc9b0b5efbebca97331854576d2d279b0b3f5ed6a7abb0640cb640c4186532239c48fc4 + - name: buf.build/cosmos/cosmos-sdk + commit: 34ac2e8322d44db08830e553ad21b93c + digest: b5:381f54c53f533c6ff074a440a4635af5ac4041eb6533c8234b5395465a209b1ecd2722a004f198bcdde77346e0eb789e56213364bf28600619b86a314719ddfb + - name: buf.build/cosmos/gogo-proto + commit: 88ef6483f90f478fb938c37dde52ece3 + digest: b5:f0c69202c9bca9672dc72a9737ea9bc83744daaed2b3da77e3a95b0e53b86dee76b5a7405b993181d6c863fd64afaca0976a302f700d6c4912eb1692a1782c0a + - name: buf.build/googleapis/googleapis + commit: 72c8614f3bd0466ea67931ef2c43d608 + digest: b5:13efeea24e633fd45327390bdee941207a8727e96cf01affb84c1e4100fd8f48a42bbd508df11930cd2884629bafad685df1ac3111bc78cdaefcd38c9371c6b1 + - name: buf.build/protocolbuffers/wellknowntypes + commit: 9220c3cb4fac4bb4a8587d4fd7aa7582 + digest: b5:412c81d3f1549cc9ef52b364a11ab41d9ea6ba5e8e22a2b3f1f614c180b991a76503d715574e94ff77e33f216a1614a8026f1fc01aeaefdaf701155cb125e8bc diff --git a/buf.work.yaml b/buf.work.yaml deleted file mode 100644 index 7a18eb025..000000000 --- a/buf.work.yaml +++ /dev/null @@ -1,3 +0,0 @@ -version: v1 -directories: - - proto \ No newline at end of file diff --git a/proto/buf.yaml b/buf.yaml similarity index 59% rename from proto/buf.yaml rename to buf.yaml index 2abb1959e..46e949903 100644 --- a/proto/buf.yaml +++ b/buf.yaml @@ -1,16 +1,19 @@ -version: v1 -name: buf.build/CosmosContracts/juno +version: v2 +modules: + - path: proto + name: buf.build/CosmosContracts/juno deps: - - buf.build/cosmos/cosmos-sdk:v0.50.0 + - buf.build/cosmos/cosmos-sdk:34ac2e8322d44db08830e553ad21b93c - buf.build/cosmos/cosmos-proto - buf.build/cosmos/gogo-proto - buf.build/googleapis/googleapis + - buf.build/protocolbuffers/wellknowntypes breaking: use: - FILE lint: use: - - DEFAULT + - STANDARD - COMMENTS - FILE_LOWER_SNAKE_CASE except: @@ -19,5 +22,6 @@ lint: - SERVICE_SUFFIX - PACKAGE_VERSION_SUFFIX - RPC_REQUEST_STANDARD_NAME + - RPC_RESPONSE_STANDARD_NAME ignore: - tendermint diff --git a/chains.yaml b/chains.yaml deleted file mode 100644 index bdea8cec9..000000000 --- a/chains.yaml +++ /dev/null @@ -1,11 +0,0 @@ -# This file is used to create docker images using the heighliner binary. -# see: https://github.com/strangelove-ventures/heighliner - -- name: juno - dockerfile: cosmos - build-target: "sh -c './scripts/heighliner/pre_build.sh' && make install" - binaries: - - /go/bin/junod - build-env: - - LEDGER_ENABLED=false - - BUILD_TAGS=muslc diff --git a/cmd/junod/cmd/balances_from_state_export.go b/cmd/junod/cmd/balances_from_state_export.go index d9aed0c46..be54f3171 100644 --- a/cmd/junod/cmd/balances_from_state_export.go +++ b/cmd/junod/cmd/balances_from_state_export.go @@ -1,7 +1,7 @@ package cmd // modified from osmosis -// https://github.com/CosmosContracts/juno/v29/blob/main/cmd/osmosisd/cmd/balances_from_state_export.go +// https://github.com/CosmosContracts/juno/v30/blob/main/cmd/osmosisd/cmd/balances_from_state_export.go import ( "encoding/csv" @@ -16,6 +16,7 @@ import ( tmjson "github.com/cometbft/cometbft/libs/json" tmtypes "github.com/cometbft/cometbft/types" + errorsmod "cosmossdk.io/errors" sdkmath "cosmossdk.io/math" "github.com/cosmos/cosmos-sdk/client" @@ -184,13 +185,13 @@ Example: _, err = fmt.Printf("# accounts: %d\n", len(snapshotAccs)) if err != nil { - return fmt.Errorf("failed to print accounts: %w", err) + return errorsmod.Wrap(err, "failed to print accounts") } // export snapshot json snapshotJSON, err := json.MarshalIndent(snapshot, "", " ") if err != nil { - return fmt.Errorf("failed to marshal snapshot: %w", err) + return errorsmod.Wrap(err, "failed to marshal snapshot") } err = os.WriteFile(snapshotOutput, snapshotJSON, 0o600) diff --git a/cmd/junod/cmd/commands.go b/cmd/junod/cmd/commands.go index 6651adfb2..dd2b587c8 100644 --- a/cmd/junod/cmd/commands.go +++ b/cmd/junod/cmd/commands.go @@ -1,9 +1,10 @@ package cmd import ( - "errors" "io" "os" + "os/signal" + "syscall" wasm "github.com/CosmWasm/wasmd/x/wasm" wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper" @@ -13,6 +14,7 @@ import ( dbm "github.com/cosmos/cosmos-db" + errorsmod "cosmossdk.io/errors" "cosmossdk.io/log" "github.com/cosmos/cosmos-sdk/client" @@ -20,12 +22,13 @@ import ( "github.com/cosmos/cosmos-sdk/client/rpc" "github.com/cosmos/cosmos-sdk/server" servertypes "github.com/cosmos/cosmos-sdk/server/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "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/CosmosContracts/juno/v29/app" + "github.com/CosmosContracts/juno/v30/app" + "github.com/CosmosContracts/juno/v30/cmd/junod/cmd/stream" ) var tempDir = func() string { @@ -39,7 +42,6 @@ var tempDir = func() string { } func addModuleInitFlags(startCmd *cobra.Command) { - crisis.AddModuleInitFlags(startCmd) wasm.AddModuleInitFlags(startCmd) } @@ -66,6 +68,8 @@ func queryCommand() *cobra.Command { RunE: client.ValidateCmd, } + cmd.PersistentFlags().Bool(stream.StreamFlagName, false, "Stream updates and keep watching for changes") + cmd.AddCommand( rpc.ValidatorCommand(), server.QueryBlocksCmd(), @@ -127,7 +131,7 @@ func newApp( homePath = app.DefaultNodeHome } - return app.New( + junoApp := app.New( logger, db, traceStore, @@ -137,6 +141,21 @@ func newApp( wasmOpts, baseappOptions..., ) + + // Set up a deferred cleanup that ensures Close is called + // This is a workaround for cases where the SDK doesn't call Close + go func() { + sigCh := make(chan os.Signal, 1) + signal.Notify(sigCh, os.Interrupt, syscall.SIGTERM) + <-sigCh + logger.Info("Received shutdown signal in newApp") + if err := junoApp.Close(); err != nil { + logger.Error("Error closing app", "error", err) + } + os.Exit(0) + }() + + return junoApp } func appExport( @@ -152,7 +171,7 @@ func appExport( var junoApp *app.App homePath, ok := appOpts.Get(flags.FlagHome).(string) if !ok || homePath == "" { - return servertypes.ExportedApp{}, errors.New("application home is not set") + return servertypes.ExportedApp{}, errorsmod.Wrap(sdkerrors.ErrInvalidRequest, "application home is not set") } loadLatest := height == -1 diff --git a/cmd/junod/cmd/debug.go b/cmd/junod/cmd/debug.go index 52ba5fb1b..d76b4fb4a 100644 --- a/cmd/junod/cmd/debug.go +++ b/cmd/junod/cmd/debug.go @@ -8,6 +8,8 @@ import ( "github.com/spf13/cobra" + errorsmod "cosmossdk.io/errors" + "github.com/cosmos/cosmos-sdk/client" cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" sdk "github.com/cosmos/cosmos-sdk/types" @@ -17,7 +19,7 @@ import ( var flagBech32Prefix = "prefix" -// Cmd creates a main CLI command +// DebugCmd creates a main CLI command to debug the node setup func DebugCmd() *cobra.Command { cmd := &cobra.Command{ Use: "debug", @@ -103,7 +105,7 @@ func getCodecInterfaceImpls() *cobra.Command { } } -// get cmd to convert any bech32 address to a juno prefix. +// ConvertBech32Cmd converts any bech32 address to a juno prefixed address (cosmos1... -> juno1...) func ConvertBech32Cmd() *cobra.Command { cmd := &cobra.Command{ Use: "bech32-convert [bech32 string]", @@ -196,7 +198,7 @@ $ %s debug addr cosmos1e0jnq2sun3dzjh8p2xq95kk0expwmd7shwjpfg addr, err3 = sdk.ValAddressFromBech32(addrString) if err3 != nil { - return fmt.Errorf("expected hex or bech32. Got errors: hex: %v, bech32 acc: %v, bech32 val: %v", err, err2, err3) + return errorsmod.Wrapf(err, "expected hex or bech32. bech32 acc error: %v, bech32 val error: %v", err2, err3) } } } diff --git a/cmd/junod/cmd/genica.go b/cmd/junod/cmd/genica.go index a1702f1cf..2232a62e3 100644 --- a/cmd/junod/cmd/genica.go +++ b/cmd/junod/cmd/genica.go @@ -2,7 +2,6 @@ package cmd import ( "encoding/json" - "fmt" "github.com/spf13/cobra" @@ -11,9 +10,12 @@ import ( 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" + errorsmod "cosmossdk.io/errors" + "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/server" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/cosmos/cosmos-sdk/x/genutil" genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types" ) @@ -35,7 +37,7 @@ func AddGenesisIcaCmd(defaultNodeHome string) *cobra.Command { genFile := config.GenesisFile() appState, genDoc, err := genutiltypes.GenesisStateFromGenFile(genFile) if err != nil { - return fmt.Errorf("failed to unmarshal genesis state: %w", err) + return errorsmod.Wrapf(sdkerrors.ErrJSONUnmarshal, "failed to unmarshal genesis state: %v", err) } controllerGenesisState := icagenesistypes.DefaultControllerGenesis() @@ -53,14 +55,14 @@ func AddGenesisIcaCmd(defaultNodeHome string) *cobra.Command { icaGenStateBz, err := clientCtx.Codec.MarshalJSON(newIcaGenState) if err != nil { - return fmt.Errorf("failed to marshal auth genesis state: %w", err) + return errorsmod.Wrapf(sdkerrors.ErrJSONMarshal, "failed to marshal auth genesis state: %v", err) } appState[icatypes.ModuleName] = icaGenStateBz appStateJSON, err := json.Marshal(appState) if err != nil { - return fmt.Errorf("failed to marshal application genesis state: %w", err) + return errorsmod.Wrapf(sdkerrors.ErrJSONMarshal, "failed to marshal application genesis state: %v", err) } genDoc.AppState = appStateJSON diff --git a/cmd/junod/cmd/resets.go b/cmd/junod/cmd/resets.go index 407a1c7f3..11c5fc90d 100644 --- a/cmd/junod/cmd/resets.go +++ b/cmd/junod/cmd/resets.go @@ -9,11 +9,13 @@ import ( tmos "github.com/cometbft/cometbft/libs/os" + errorsmod "cosmossdk.io/errors" + "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/server" ) -// Cmd creates a main CLI command +// ResetCmd creates a main CLI command to reset different parts of application state func ResetCmd() *cobra.Command { cmd := &cobra.Command{ Use: "reset", @@ -65,15 +67,15 @@ func resetWasm(dbDir string) error { if err := os.RemoveAll(wasmDir); err == nil { _, err = fmt.Println("Removed wasm", "dir", wasmDir) if err != nil { - return fmt.Errorf("error removing wasm dir: %s; err: %w", wasmDir, err) + return errorsmod.Wrapf(err, "error removing wasm dir: %s", wasmDir) } } else { - return fmt.Errorf("error removing wasm dir: %s; err: %w", wasmDir, err) + return errorsmod.Wrapf(err, "error removing wasm dir: %s", wasmDir) } } if err := tmos.EnsureDir(wasmDir, 0o700); err != nil { - return fmt.Errorf("unable to recreate wasm %w", err) + return errorsmod.Wrap(err, "unable to recreate wasm") } return nil } @@ -86,15 +88,15 @@ func resetApp(dbDir string) error { if err := os.RemoveAll(appDir); err == nil { _, err = fmt.Println("Removed application.db", "dir", appDir) if err != nil { - return fmt.Errorf("error removing application.db dir: %s; err: %w", appDir, err) + return errorsmod.Wrapf(err, "error removing application.db dir: %s", appDir) } } else { - return fmt.Errorf("error removing application.db dir: %s; err: %w", appDir, err) + return errorsmod.Wrapf(err, "error removing application.db dir: %s", appDir) } } if err := tmos.EnsureDir(appDir, 0o700); err != nil { - return fmt.Errorf("unable to recreate application.db %w", err) + return errorsmod.Wrap(err, "unable to recreate application.db") } return nil } diff --git a/cmd/junod/cmd/root.go b/cmd/junod/cmd/root.go index 2f9ee67a5..3de450874 100644 --- a/cmd/junod/cmd/root.go +++ b/cmd/junod/cmd/root.go @@ -39,7 +39,8 @@ import ( authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" genutilcli "github.com/cosmos/cosmos-sdk/x/genutil/client/cli" - "github.com/CosmosContracts/juno/v29/app" + "github.com/CosmosContracts/juno/v30/app" + "github.com/CosmosContracts/juno/v30/cmd/junod/cmd/stream" ) var ( @@ -65,7 +66,6 @@ var ( // main function. func NewRootCmd() *cobra.Command { tempDir := tempDir() - sdk.DefaultBondDenom = "ujuno" cfg := sdk.GetConfig() cfg.SetBech32PrefixForAccount(Bech32PrefixAccAddr, Bech32PrefixAccPub) cfg.SetBech32PrefixForValidator(Bech32PrefixValAddr, Bech32PrefixValPub) @@ -182,6 +182,10 @@ func NewRootCmd() *cobra.Command { panic(err) } + if err := stream.EnableQueryStreaming(rootCmd, autoCliOpts); err != nil { + panic(err) + } + return rootCmd } @@ -238,7 +242,7 @@ func initAppConfig() (string, any) { return customAppTemplate, customAppConfig } -// Reads the custom extra values in the config.toml file if set. +// SetCustomEnvVariablesFromClientToml reads the custom extra values in the config.toml file if set. // If they are, then use them. func SetCustomEnvVariablesFromClientToml(ctx client.Context) { configFilePath := filepath.Join(ctx.HomeDir, "config", "client.toml") @@ -288,7 +292,7 @@ func initRootCmd( txConfig client.TxConfig, ) { rootCmd.AddCommand( - genutilcli.InitCmd(basicManager, app.DefaultNodeHome), + stream.WrapInitCmd(genutilcli.InitCmd(basicManager, app.DefaultNodeHome)), cmtcli.NewCompletionCmd(rootCmd, false), DebugCmd(), confixcmd.ConfigCommand(), diff --git a/cmd/junod/cmd/stream/config.go b/cmd/junod/cmd/stream/config.go new file mode 100644 index 000000000..cbde1836b --- /dev/null +++ b/cmd/junod/cmd/stream/config.go @@ -0,0 +1,132 @@ +package stream + +import ( + "bytes" + "os" + "path/filepath" + + "github.com/spf13/cobra" + + errorsmod "cosmossdk.io/errors" +) + +const streamingWSConfig = ` +[streaming.ws] +# Circuit breaker prevents cascading failures by temporarily blocking failing connections. +circuit_breaker_enabled = true + +# Number of consecutive failures before circuit breaker opens. +circuit_breaker_threshold = 5 + +# Duration to wait before attempting to close the circuit breaker (e.g., "30s", "1m"). +circuit_breaker_timeout = "30s" +` + +func ensureStreamingWSSection(configPath string) error { + content, err := os.ReadFile(configPath) + if err != nil { + return errorsmod.Wrap(err, "failed to read app.toml") + } + + if bytes.Contains(content, []byte("[streaming.ws]")) { + return nil + } + + insert := []byte(streamingWSConfig) + // Ensure the snippet ends with a newline so subsequent sections keep their alignment. + if len(insert) == 0 || insert[len(insert)-1] != '\n' { + insert = append(insert, '\n') + } + + // Try to place the new section immediately before the mempool section. + mempoolIdx := bytes.Index(content, []byte("\n[mempool]")) + var updated bytes.Buffer + + writeBytes := func(data []byte) error { + if _, err := updated.Write(data); err != nil { + return err + } + return nil + } + + writeString := func(value string) error { + if _, err := updated.WriteString(value); err != nil { + return err + } + return nil + } + + switch { + case mempoolIdx >= 0: + if err := writeBytes(content[:mempoolIdx]); err != nil { + return errorsmod.Wrap(err, "prepare streaming config prefix") + } + if !bytes.HasSuffix(updated.Bytes(), []byte("\n\n")) { + if err := writeString("\n"); err != nil { + return errorsmod.Wrap(err, "ensure spacing before streaming config") + } + } + if err := writeBytes(insert); err != nil { + return errorsmod.Wrap(err, "insert streaming config") + } + if !bytes.HasSuffix(updated.Bytes(), []byte("\n")) { + if err := writeString("\n"); err != nil { + return errorsmod.Wrap(err, "ensure trailing newline after streaming config") + } + } + if err := writeBytes(content[mempoolIdx:]); err != nil { + return errorsmod.Wrap(err, "append remainder of config") + } + default: + if err := writeBytes(content); err != nil { + return errorsmod.Wrap(err, "copy existing config") + } + if len(content) == 0 || content[len(content)-1] != '\n' { + if err := writeString("\n"); err != nil { + return errorsmod.Wrap(err, "ensure newline before streaming config") + } + } + if err := writeBytes(insert); err != nil { + return errorsmod.Wrap(err, "append streaming config") + } + } + + return os.WriteFile(configPath, updated.Bytes(), 0o600) +} + +// EnsureStreamConfig ensures the websocket streaming configuration exists in app.toml. +func EnsureStreamConfig(homeDir string) error { + configPath := filepath.Join(homeDir, "config", "app.toml") + + if _, err := os.Stat(configPath); os.IsNotExist(err) { + return nil + } + + return ensureStreamingWSSection(configPath) +} + +// WrapInitCmd wraps the init command to add stream configuration after initialization. +func WrapInitCmd(initCmd *cobra.Command) *cobra.Command { + originalRunE := initCmd.RunE + + initCmd.RunE = func(cmd *cobra.Command, args []string) error { + if err := originalRunE(cmd, args); err != nil { + return err + } + + homeDir, err := cmd.Flags().GetString("home") + if err != nil { + return err + } + + if err := EnsureStreamConfig(homeDir); err != nil { + cmd.Printf("Warning: failed to add websocket streaming configuration to app.toml: %v\n", err) + } else { + cmd.Println("Websocket streaming configuration added to app.toml") + } + + return nil + } + + return initCmd +} diff --git a/cmd/junod/cmd/stream/query.go b/cmd/junod/cmd/stream/query.go new file mode 100644 index 000000000..f945b05d0 --- /dev/null +++ b/cmd/junod/cmd/stream/query.go @@ -0,0 +1,196 @@ +package stream + +import ( + "fmt" + "maps" + "strings" + "unicode" + + "github.com/spf13/cobra" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/reflect/protoregistry" + + proto "github.com/cosmos/gogoproto/proto" + + autocliv1 "cosmossdk.io/api/cosmos/autocli/v1" + "cosmossdk.io/client/v2/autocli" + flagbuilder "cosmossdk.io/client/v2/autocli/flag" + + "github.com/CosmosContracts/juno/v30/x/stream/types/encoding" +) + +const StreamFlagName = "stream" + +func EnableQueryStreaming(rootCmd *cobra.Command, appOpts autocli.AppOptions) error { + queryCmd := findCommand(rootCmd, "query") + if queryCmd == nil { + return nil + } + + moduleOptions := collectModuleOptions(appOpts) + if len(moduleOptions) == 0 { + return nil + } + + var fileResolver flagbuilder.FileResolver + var protoFiles *protoregistry.Files + var err error + protoFiles, err = proto.MergedRegistry() + if err != nil { + fileResolver = appOpts.ClientCtx.InterfaceRegistry + } else { + fileResolver = protoFiles + } + + builder := &autocli.Builder{ + Builder: flagbuilder.Builder{ + TypeResolver: protoregistry.GlobalTypes, + FileResolver: fileResolver, + AddressCodec: appOpts.AddressCodec, + ValidatorAddressCodec: appOpts.ValidatorAddressCodec, + ConsensusAddressCodec: appOpts.ConsensusAddressCodec, + }, + } + + if err := builder.ValidateAndComplete(); err != nil { + return err + } + + var registry *encoding.DynamicRegistry + if protoFiles != nil { + if reg, regErr := encoding.NewFilesRegistry(protoFiles); regErr == nil { + registry = reg + } + } + + for moduleName, options := range moduleOptions { + if options == nil || options.Query == nil { + continue + } + + moduleCmd := findCommand(queryCmd, moduleName) + if moduleCmd == nil { + continue + } + + if err := wrapQueryServiceWithStreaming(moduleCmd, options.Query, builder, registry); err != nil { + return err + } + } + + return nil +} + +func findCommand(parent *cobra.Command, name string) *cobra.Command { + for _, cmd := range parent.Commands() { + use := cmd.Use + if use == name || strings.HasPrefix(use, name+" ") { + return cmd + } + for _, alias := range cmd.Aliases { + if alias == name || strings.HasPrefix(alias, name+" ") { + return cmd + } + } + } + return nil +} + +func protoNameToCLIName(name protoreflect.Name) string { + out := make([]rune, 0, len(name)) + for i, r := range name { + if unicode.IsUpper(r) { + if i != 0 { + out = append(out, '-') + } + out = append(out, unicode.ToLower(r)) + continue + } + out = append(out, r) + } + + return string(out) +} + +func collectModuleOptions(appOpts autocli.AppOptions) map[string]*autocliv1.ModuleOptions { + moduleOptions := map[string]*autocliv1.ModuleOptions{} + + if appOpts.ModuleOptions != nil { + maps.Copy(moduleOptions, appOpts.ModuleOptions) + } + + for name, module := range appOpts.Modules { + if _, ok := moduleOptions[name]; ok { + continue + } + + if withConfig, ok := module.(autocli.HasAutoCLIConfig); ok { + moduleOptions[name] = withConfig.AutoCLIOptions() + } + } + + return moduleOptions +} + +func wrapQueryServiceWithStreaming(cmd *cobra.Command, desc *autocliv1.ServiceCommandDescriptor, builder *autocli.Builder, registry *encoding.DynamicRegistry) error { + if desc == nil { + return nil + } + if registry == nil { + return nil + } + + for subName, subDesc := range desc.SubCommands { + subCmd := findCommand(cmd, subName) + if subCmd == nil { + continue + } + if err := wrapQueryServiceWithStreaming(subCmd, subDesc, builder, registry); err != nil { + return err + } + } + + if desc.Service == "" { + return nil + } + + serviceDescriptor, err := builder.FileResolver.FindDescriptorByName(protoreflect.FullName(desc.Service)) + if err != nil { + return fmt.Errorf("resolve service %s: %w", desc.Service, err) + } + + service := serviceDescriptor.(protoreflect.ServiceDescriptor) + methodOptions := map[protoreflect.Name]*autocliv1.RpcCommandOptions{} + for _, opt := range desc.RpcCommandOptions { + methodOptions[protoreflect.Name(opt.RpcMethod)] = opt + } + + for i := 0; i < service.Methods().Len(); i++ { + method := service.Methods().Get(i) + opts := methodOptions[method.Name()] + if opts != nil && opts.Skip { + continue + } + + use := "" + if opts != nil && opts.Use != "" { + use = opts.Use + } else { + use = protoNameToCLIName(method.Name()) + } + commandName := strings.SplitN(use, " ", 2)[0] + methodCmd := findCommand(cmd, commandName) + if methodCmd == nil { + continue + } + + fullMethod := fullMethodName(service, method) + attachStreamCommand(methodCmd, method, opts, builder, registry, fullMethod) + } + + return nil +} + +func fullMethodName(service protoreflect.ServiceDescriptor, method protoreflect.MethodDescriptor) string { + return "/" + string(service.FullName()) + "/" + string(method.Name()) +} diff --git a/cmd/junod/cmd/stream/runtime.go b/cmd/junod/cmd/stream/runtime.go new file mode 100644 index 000000000..0dbba0464 --- /dev/null +++ b/cmd/junod/cmd/stream/runtime.go @@ -0,0 +1,169 @@ +package stream + +import ( + "crypto/tls" + "errors" + "fmt" + "io" + + "github.com/spf13/cobra" + "google.golang.org/grpc" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/credentials" + "google.golang.org/grpc/credentials/insecure" + "google.golang.org/grpc/status" + + proto "github.com/cosmos/gogoproto/proto" + + errorsmod "cosmossdk.io/errors" + + "github.com/cosmos/cosmos-sdk/client" + clientflags "github.com/cosmos/cosmos-sdk/client/flags" + "github.com/cosmos/cosmos-sdk/codec" + codectypes "github.com/cosmos/cosmos-sdk/codec/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + + streamtypes "github.com/CosmosContracts/juno/v30/x/stream/types" + "github.com/CosmosContracts/juno/v30/x/stream/types/encoding" +) + +func runDynamicStreamCommand(cmd *cobra.Command, ctx client.Context, descriptor *encoding.MethodDescriptor, params map[string]string) error { + if descriptor == nil { + return errorsmod.Wrap(sdkerrors.ErrInvalidRequest, "method descriptor required") + } + if ctx.GRPCClient == nil { + return errorsmod.Wrap(sdkerrors.ErrInvalidRequest, "grpc client not configured") + } + + queryClient := streamtypes.NewQueryClient(ctx.GRPCClient) + req := &streamtypes.StreamDynamicRequest{ + Module: descriptor.Module, + Method: descriptor.StreamName, + Params: params, + } + + stream, err := queryClient.Stream(cmd.Context(), req) + if err != nil { + return err + } + + return consumeStream(ctx, func() (proto.Message, error) { + resp, err := stream.Recv() + if err != nil { + return nil, err + } + if resp.Result == nil { + return nil, errorsmod.Wrap(sdkerrors.ErrInvalidType, "empty stream response") + } + return decodeDynamicAny(ctx.Codec, descriptor.ResponseType, resp.Result) + }) +} + +func consumeStream(clientCtx client.Context, next func() (proto.Message, error)) error { + for { + msg, err := next() + if err != nil { + if errors.Is(err, io.EOF) { + return nil + } + + //nolint:exhaustive // We only treat canceled and deadline errors specially. + switch status.Code(err) { + case codes.Canceled, codes.DeadlineExceeded: + return nil + default: + return err + } + } + + if err := clientCtx.PrintProto(msg); err != nil { + return err + } + } +} + +func buildStreamingClientContext(cmd *cobra.Command) (client.Context, error) { + clientCtx, err := client.GetClientQueryContext(cmd) + if err != nil { + return client.Context{}, err + } + + if clientCtx.GRPCClient == nil { + grpcAddr, _ := cmd.Flags().GetString(clientflags.FlagGRPC) + if grpcAddr == "" && clientCtx.Viper != nil { + if viaFlag := clientCtx.Viper.GetString(clientflags.FlagGRPC); viaFlag != "" { + grpcAddr = viaFlag + } + if grpcAddr == "" { + grpcAddr = clientCtx.Viper.GetString("grpc.address") + } + } + if grpcAddr == "" { + grpcAddr = "localhost:9090" + } + + useInsecure := true + insecureChanged := cmd.Flags().Changed(clientflags.FlagGRPCInsecure) + if insecureChanged { + useInsecure, _ = cmd.Flags().GetBool(clientflags.FlagGRPCInsecure) + } + + conn, err := dialEndpoint( + grpcAddr, + useInsecure, + useInsecure && !insecureChanged, + ) + if err != nil { + return client.Context{}, fmt.Errorf("failed to dial gRPC endpoint %s: %w", grpcAddr, err) + } + + clientCtx = clientCtx.WithGRPCClient(conn) + } + + return clientCtx, nil +} + +func dialEndpoint(target string, useInsecure bool, allowFallback bool) (*grpc.ClientConn, error) { + if useInsecure { + conn, err := grpc.NewClient(target, grpc.WithTransportCredentials(insecure.NewCredentials())) + if err == nil || !allowFallback { + return conn, err + } + } + + return grpc.NewClient( + target, + grpc.WithTransportCredentials(credentials.NewTLS(&tls.Config{MinVersion: tls.VersionTLS12})), + ) +} + +func decodeDynamicAny( + marshaler codec.Codec, + typeName string, + anyMsg *codectypes.Any, +) (proto.Message, error) { + if anyMsg == nil { + return nil, errorsmod.Wrap(sdkerrors.ErrInvalidType, "stream result is nil") + } + if marshaler == nil { + return nil, errorsmod.Wrapf(sdkerrors.ErrInvalidType, "codec not configured for decoding %s", anyMsg.TypeUrl) + } + if typeName == "" { + return nil, errorsmod.Wrap(sdkerrors.ErrInvalidType, "response type not specified") + } + + msg, err := encoding.NewMessageByName(typeName) + if err != nil { + return nil, err + } + + protoMsg, ok := msg.(proto.Message) + if !ok { + return nil, errorsmod.Wrapf(sdkerrors.ErrInvalidType, "type %s does not implement proto.Message", typeName) + } + + if err := marshaler.Unmarshal(anyMsg.Value, protoMsg); err != nil { + return nil, errorsmod.Wrapf(err, "decode %s", anyMsg.TypeUrl) + } + return protoMsg, nil +} diff --git a/cmd/junod/cmd/stream/utils.go b/cmd/junod/cmd/stream/utils.go new file mode 100644 index 000000000..a67ec0502 --- /dev/null +++ b/cmd/junod/cmd/stream/utils.go @@ -0,0 +1,176 @@ +package stream + +import ( + "context" + "fmt" + + "github.com/spf13/cobra" + "github.com/spf13/pflag" + "google.golang.org/protobuf/reflect/protoreflect" + + autocliv1 "cosmossdk.io/api/cosmos/autocli/v1" + "cosmossdk.io/client/v2/autocli" + flagbuilder "cosmossdk.io/client/v2/autocli/flag" + errorsmod "cosmossdk.io/errors" + + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + + "github.com/CosmosContracts/juno/v30/x/stream/types/encoding" +) + +type methodContext struct { + builder *autocli.Builder + method protoreflect.MethodDescriptor + opts *autocliv1.RpcCommandOptions + registry *encoding.DynamicRegistry + fullMethod string +} + +func (m methodContext) buildBinder() (*flagbuilder.MessageBinder, *pflag.FlagSet, error) { + if m.builder == nil || m.method == nil { + return nil, nil, errorsmod.Wrap(sdkerrors.ErrInvalidRequest, "autocli builder and method are required") + } + if m.builder.TypeResolver == nil { + return nil, nil, errorsmod.Wrap(sdkerrors.ErrInvalidRequest, "type resolver not configured") + } + + inputType, err := m.builder.TypeResolver.FindMessageByName(m.method.Input().FullName()) + if err != nil { + return nil, nil, fmt.Errorf("resolve input type for %s: %w", m.method.FullName(), err) + } + + flagSet := pflag.NewFlagSet(string(m.method.FullName()), pflag.ContinueOnError) + flagSet.ParseErrorsAllowlist.UnknownFlags = true + + ctx := context.Background() + opts := m.opts + if opts == nil { + opts = &autocliv1.RpcCommandOptions{} + } + + binder, err := m.builder.AddMessageFlags(&ctx, flagSet, inputType, opts) + if err != nil { + return nil, nil, err + } + + return binder, flagSet, nil +} + +func (m methodContext) descriptor() (*encoding.MethodDescriptor, error) { + if m.registry == nil { + return nil, errorsmod.Wrap(sdkerrors.ErrInvalidType, "stream registry is not available") + } + + desc, ok := m.registry.LookupByFullMethod(m.fullMethod) + if !ok || desc == nil { + return nil, errorsmod.Wrapf(sdkerrors.ErrNotFound, "stream descriptor not registered: %s", m.fullMethod) + } + + return desc, nil +} + +func attachStreamCommand( + cmd *cobra.Command, + method protoreflect.MethodDescriptor, + opts *autocliv1.RpcCommandOptions, + builder *autocli.Builder, + registry *encoding.DynamicRegistry, + methodName string, +) { + if cmd == nil { + return + } + + ctx := methodContext{ + builder: builder, + method: method, + opts: opts, + registry: registry, + fullMethod: methodName, + } + + origRun, origRunE := cmd.Run, cmd.RunE + cmd.Run = nil + cmd.RunE = func(current *cobra.Command, args []string) error { + useStream, err := resolveStreamFlag(current) + if err != nil { + return err + } + + if !useStream { + if origRunE != nil { + return origRunE(current, args) + } + if origRun != nil { + origRun(current, args) + } + return nil + } + + binder, flagSet, err := ctx.buildBinder() + if err != nil { + return err + } + + if err := populateBinderFlags(current, flagSet); err != nil { + return err + } + + input, err := binder.BuildMessage(args) + if err != nil { + return err + } + + desc, err := ctx.descriptor() + if err != nil { + return fmt.Errorf("resolve streaming descriptor for %s: %w", ctx.fullMethod, err) + } + + params, err := encoding.ExtractParams(desc, input) + if err != nil { + return fmt.Errorf("prepare streaming params for %s: %w", ctx.fullMethod, err) + } + + streamCtx, err := buildStreamingClientContext(current) + if err != nil { + return err + } + + return runDynamicStreamCommand(current, streamCtx, desc, params) + } +} + +func populateBinderFlags(cmd *cobra.Command, dest *pflag.FlagSet) error { + var firstErr error + + visit := func(set *pflag.FlagSet) { + set.Visit(func(flag *pflag.Flag) { + if firstErr != nil { + return + } + + if destFlag := dest.Lookup(flag.Name); destFlag == nil { + return + } + + if err := dest.Set(flag.Name, flag.Value.String()); err != nil { + firstErr = err + } + }) + } + + visit(cmd.Flags()) + visit(cmd.InheritedFlags()) + + return firstErr +} + +func resolveStreamFlag(cmd *cobra.Command) (bool, error) { + if cmd.Flags().Lookup(StreamFlagName) != nil { + return cmd.Flags().GetBool(StreamFlagName) + } + if cmd.InheritedFlags().Lookup(StreamFlagName) != nil { + return cmd.InheritedFlags().GetBool(StreamFlagName) + } + return false, errorsmod.Wrapf(sdkerrors.ErrInvalidRequest, "stream flag is not registered on command %s", cmd.CommandPath()) +} diff --git a/cmd/junod/main.go b/cmd/junod/main.go index 095e792df..bf70c0b6d 100644 --- a/cmd/junod/main.go +++ b/cmd/junod/main.go @@ -7,8 +7,8 @@ import ( svrcmd "github.com/cosmos/cosmos-sdk/server/cmd" - "github.com/CosmosContracts/juno/v29/app" - "github.com/CosmosContracts/juno/v29/cmd/junod/cmd" + "github.com/CosmosContracts/juno/v30/app" + "github.com/CosmosContracts/juno/v30/cmd/junod/cmd" ) func main() { diff --git a/docker-compose.yml b/docker-compose.yml index d961c5eeb..cfc231369 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,18 +1,31 @@ ---- -version: "3" +name: juno-development services: node: build: context: . args: - arch=${ARCH:-x86_64} - command: ./setup_and_run.sh juno16g2rahf5846rxzp3fwlswy08fz8ccuwk03k57y juno14juhdqftm8zd9n9pv4shjf92jzrm8ey4422jky + image: ghcr.io/cosmoscontracts/juno:local + pull_policy: never + init: true + healthcheck: + test: ["CMD", "/bin/sh", "-lc", "junod status >/dev/null 2>&1 || exit 1"] + interval: 10s + timeout: 3s + retries: 10 + start_period: 20s + stop_grace_period: 30s + volumes: + - .:/work + working_dir: /work + entrypoint: ["/bin/sh", "-lc"] + command: + - ./scripts/init.sh && ./scripts/start.sh ports: - 1317:1317 # rest - 26656:26656 # p2p - 26657:26657 # rpc - environment: - - GAS_LIMIT=${GAS_LIMIT:-10000000} - - STAKE_TOKEN=${STAKE_TOKEN:-ujunox} - - TIMEOUT_COMMIT=${TIMEOUT_COMMIT:-5s} - - UNSAFE_CORS=true + - 9090:9090 # grpc + # Uncomment to override default values in scripts/init.sh + # environment: + # - DENOM=ujuno diff --git a/docker/run_junod.sh b/docker/run_junod.sh deleted file mode 100755 index 2761bbbc5..000000000 --- a/docker/run_junod.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - -if test -n "$1"; then - # need -R not -r to copy hidden files - cp -R "$1/.juno" /root -fi - -mkdir -p /root/log -junod start --rpc.laddr tcp://0.0.0.0:26657 --minimum-gas-prices 0.0001ujunox --trace diff --git a/docker/setup_and_run.sh b/docker/setup_and_run.sh deleted file mode 100644 index c32454a75..000000000 --- a/docker/setup_and_run.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh - -./setup_junod.sh "$@" -./run_junod.sh \ No newline at end of file diff --git a/docker/setup_junod.sh b/docker/setup_junod.sh deleted file mode 100755 index e2628d497..000000000 --- a/docker/setup_junod.sh +++ /dev/null @@ -1,69 +0,0 @@ -#!/bin/sh -#set -o errexit -o nounset -o pipefail - -PASSWORD=${PASSWORD:-1234567890} -STAKE=${STAKE_TOKEN:-ustake} -FEE=${FEE_TOKEN:-ucosm} -CHAIN_ID=${CHAIN_ID:-testing} -MONIKER=${MONIKER:-node001} -KEYRING="--keyring-backend test" -TIMEOUT_COMMIT=${TIMEOUT_COMMIT:-5s} -BLOCK_GAS_LIMIT=${GAS_LIMIT:-10000000} # should mirror mainnet - -echo "Configured Block Gas Limit: $BLOCK_GAS_LIMIT" - -# check the genesis file -GENESIS_FILE="$HOME"/.juno/config/genesis.json -if [ -f "$GENESIS_FILE" ]; then - echo "$GENESIS_FILE exists..." -else - echo "$GENESIS_FILE does not exist. Generating..." - - junod init --chain-id "$CHAIN_ID" "$MONIKER" - junod add-ica-config - # staking/governance token is hardcoded in config, change this - sed -i "s/\"stake\"/\"$STAKE\"/" "$GENESIS_FILE" - # this is essential for sub-1s block times (or header times go crazy) - sed -i 's/"time_iota_ms": "1000"/"time_iota_ms": "10"/' "$GENESIS_FILE" - # change gas limit to mainnet value - sed -i 's/"max_gas": "-1"/"max_gas": "'"$BLOCK_GAS_LIMIT"'"/' "$GENESIS_FILE" - # change default keyring-backend to test - sed -i 's/keyring-backend = "os"/keyring-backend = "test"/' "$HOME"/.juno/config/client.toml -fi - -APP_TOML_CONFIG="$HOME"/.juno/config/app.toml -APP_TOML_CONFIG_NEW="$HOME"/.juno/config/app_new.toml -CONFIG_TOML_CONFIG="$HOME"/.juno/config/config.toml -if [ -n "$UNSAFE_CORS" ]; then - echo "Unsafe CORS set... updating app.toml and config.toml" - # sorry about this bit, but toml is rubbish for structural editing - sed -n '1h;1!H;${g;s/# Enable defines if the API server should be enabled.\nenable = false/enable = true/;p;}' "$APP_TOML_CONFIG" > "$APP_TOML_CONFIG_NEW" - mv "$APP_TOML_CONFIG_NEW" "$APP_TOML_CONFIG" - # ...and breathe - sed -i "s/enabled-unsafe-cors = false/enabled-unsafe-cors = true/" "$APP_TOML_CONFIG" - sed -i "s/cors_allowed_origins = \[\]/cors_allowed_origins = \[\"\*\"\]/" "$CONFIG_TOML_CONFIG" -fi - -# speed up block times for testing environments -sed -i "s/timeout_commit = \"5s\"/timeout_commit = \"$TIMEOUT_COMMIT\"/" "$CONFIG_TOML_CONFIG" - -# are we running for the first time? -if ! junod keys show validator $KEYRING; then - (echo "$PASSWORD"; echo "$PASSWORD") | junod keys add validator $KEYRING - - # hardcode the validator account for this instance - echo "$PASSWORD" | junod genesis add-genesis-account validator "1000000000$STAKE,1000000000$FEE" $KEYRING - - # (optionally) add a few more genesis accounts - for addr in "$@"; do - echo $addr - junod genesis add-genesis-account "$addr" "1000000000$STAKE,1000000000$FEE,5000000000uusd" - done - - # submit a genesis validator tx - ## Workraround for https://github.com/cosmos/cosmos-sdk/issues/8251 - (echo "$PASSWORD"; echo "$PASSWORD"; echo "$PASSWORD") | junod genesis gentx validator "250000000$STAKE" --chain-id="$CHAIN_ID" --amount="250000000$STAKE" $KEYRING - ## should be: - # (echo "$PASSWORD"; echo "$PASSWORD"; echo "$PASSWORD") | junod genesis gentx validator "250000000$STAKE" --chain-id="$CHAIN_ID" - junod genesis collect-gentxs -fi diff --git a/docker/test-user.env b/docker/test-user.env deleted file mode 100644 index ac87a7526..000000000 --- a/docker/test-user.env +++ /dev/null @@ -1,2 +0,0 @@ -TEST_ADDR=juno16g2rahf5846rxzp3fwlswy08fz8ccuwk03k57y -TEST_MNEMONIC="clip hire initial neck maid actor venue client foam budget lock catalog sweet steak waste crater broccoli pipe steak sister coyote moment obvious choose" \ No newline at end of file diff --git a/docs/docs.go b/docs/docs.go deleted file mode 100644 index 1167d5657..000000000 --- a/docs/docs.go +++ /dev/null @@ -1,6 +0,0 @@ -package docs - -import "embed" - -//go:embed static -var Docs embed.FS diff --git a/docs/static/favicon-16x16.png b/docs/static/favicon-16x16.png deleted file mode 100644 index 2ee803d29..000000000 Binary files a/docs/static/favicon-16x16.png and /dev/null differ diff --git a/docs/static/favicon-32x32.png b/docs/static/favicon-32x32.png deleted file mode 100644 index 9d8a4f598..000000000 Binary files a/docs/static/favicon-32x32.png and /dev/null differ diff --git a/docs/static/index.html b/docs/static/index.html deleted file mode 100644 index 5e2a39339..000000000 --- a/docs/static/index.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - Swagger UI - - - - - - - -
- - - - - - \ No newline at end of file diff --git a/docs/static/oauth2-redirect.html b/docs/static/oauth2-redirect.html deleted file mode 100644 index a0e25bc03..000000000 --- a/docs/static/oauth2-redirect.html +++ /dev/null @@ -1,75 +0,0 @@ - - - - Swagger UI: OAuth2 Redirect - - - - - \ No newline at end of file diff --git a/docs/static/swagger-ui-bundle.js b/docs/static/swagger-ui-bundle.js deleted file mode 100644 index 84c5a1513..000000000 --- a/docs/static/swagger-ui-bundle.js +++ /dev/null @@ -1,3 +0,0 @@ -/*! For license information please see swagger-ui-bundle.js.LICENSE.txt */ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.SwaggerUIBundle=t():e.SwaggerUIBundle=t()}(this,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist",n(n.s=479)}([function(e,t,n){"use strict";e.exports=n(560)},function(e,t,n){e.exports=function(){"use strict";var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function n(e){return i(e)?e:J(e)}function r(e){return u(e)?e:K(e)}function o(e){return s(e)?e:Y(e)}function a(e){return i(e)&&!c(e)?e:G(e)}function i(e){return!(!e||!e[f])}function u(e){return!(!e||!e[p])}function s(e){return!(!e||!e[h])}function c(e){return u(e)||s(e)}function l(e){return!(!e||!e[d])}t(r,n),t(o,n),t(a,n),n.isIterable=i,n.isKeyed=u,n.isIndexed=s,n.isAssociative=c,n.isOrdered=l,n.Keyed=r,n.Indexed=o,n.Set=a;var f="@@__IMMUTABLE_ITERABLE__@@",p="@@__IMMUTABLE_KEYED__@@",h="@@__IMMUTABLE_INDEXED__@@",d="@@__IMMUTABLE_ORDERED__@@",m="delete",v=5,g=1<>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?A(e)+t:t}function C(){return!0}function j(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function T(e,t){return P(e,t,0)}function I(e,t){return P(e,t,t)}function P(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var N=0,M=1,R=2,D="function"==typeof Symbol&&Symbol.iterator,L="@@iterator",B=D||L;function F(e){this.next=e}function z(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function U(){return{value:void 0,done:!0}}function q(e){return!!H(e)}function V(e){return e&&"function"==typeof e.next}function W(e){var t=H(e);return t&&t.call(e)}function H(e){var t=e&&(D&&e[D]||e[L]);if("function"==typeof t)return t}function $(e){return e&&"number"==typeof e.length}function J(e){return null==e?ie():i(e)?e.toSeq():ce(e)}function K(e){return null==e?ie().toKeyedSeq():i(e)?u(e)?e.toSeq():e.fromEntrySeq():ue(e)}function Y(e){return null==e?ie():i(e)?u(e)?e.entrySeq():e.toIndexedSeq():se(e)}function G(e){return(null==e?ie():i(e)?u(e)?e.entrySeq():e:se(e)).toSetSeq()}F.prototype.toString=function(){return"[Iterator]"},F.KEYS=N,F.VALUES=M,F.ENTRIES=R,F.prototype.inspect=F.prototype.toSource=function(){return this.toString()},F.prototype[B]=function(){return this},t(J,n),J.of=function(){return J(arguments)},J.prototype.toSeq=function(){return this},J.prototype.toString=function(){return this.__toString("Seq {","}")},J.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},J.prototype.__iterate=function(e,t){return fe(this,e,t,!0)},J.prototype.__iterator=function(e,t){return pe(this,e,t,!0)},t(K,J),K.prototype.toKeyedSeq=function(){return this},t(Y,J),Y.of=function(){return Y(arguments)},Y.prototype.toIndexedSeq=function(){return this},Y.prototype.toString=function(){return this.__toString("Seq [","]")},Y.prototype.__iterate=function(e,t){return fe(this,e,t,!1)},Y.prototype.__iterator=function(e,t){return pe(this,e,t,!1)},t(G,J),G.of=function(){return G(arguments)},G.prototype.toSetSeq=function(){return this},J.isSeq=ae,J.Keyed=K,J.Set=G,J.Indexed=Y;var Q,Z,X,ee="@@__IMMUTABLE_SEQ__@@";function te(e){this._array=e,this.size=e.length}function ne(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function re(e){this._iterable=e,this.size=e.length||e.size}function oe(e){this._iterator=e,this._iteratorCache=[]}function ae(e){return!(!e||!e[ee])}function ie(){return Q||(Q=new te([]))}function ue(e){var t=Array.isArray(e)?new te(e).fromEntrySeq():V(e)?new oe(e).fromEntrySeq():q(e)?new re(e).fromEntrySeq():"object"==typeof e?new ne(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function se(e){var t=le(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ce(e){var t=le(e)||"object"==typeof e&&new ne(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}function le(e){return $(e)?new te(e):V(e)?new oe(e):q(e)?new re(e):void 0}function fe(e,t,n,r){var o=e._cache;if(o){for(var a=o.length-1,i=0;i<=a;i++){var u=o[n?a-i:i];if(!1===t(u[1],r?u[0]:i,e))return i+1}return i}return e.__iterateUncached(t,n)}function pe(e,t,n,r){var o=e._cache;if(o){var a=o.length-1,i=0;return new F((function(){var e=o[n?a-i:i];return i++>a?U():z(t,r?e[0]:i-1,e[1])}))}return e.__iteratorUncached(t,n)}function he(e,t){return t?de(t,e,"",{"":e}):me(e)}function de(e,t,n,r){return Array.isArray(t)?e.call(r,n,Y(t).map((function(n,r){return de(e,n,r,t)}))):ve(t)?e.call(r,n,K(t).map((function(n,r){return de(e,n,r,t)}))):t}function me(e){return Array.isArray(e)?Y(e).map(me).toList():ve(e)?K(e).map(me).toMap():e}function ve(e){return e&&(e.constructor===Object||void 0===e.constructor)}function ge(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function ye(e,t){if(e===t)return!0;if(!i(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||u(e)!==u(t)||s(e)!==s(t)||l(e)!==l(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!c(e);if(l(e)){var r=e.entries();return t.every((function(e,t){var o=r.next().value;return o&&ge(o[1],e)&&(n||ge(o[0],t))}))&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var a=e;e=t,t=a}var f=!0,p=t.__iterate((function(t,r){if(n?!e.has(t):o?!ge(t,e.get(r,b)):!ge(e.get(r,b),t))return f=!1,!1}));return f&&e.size===p}function be(e,t){if(!(this instanceof be))return new be(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(Z)return Z;Z=this}}function we(e,t){if(!e)throw new Error(t)}function xe(e,t,n){if(!(this instanceof xe))return new xe(e,t,n);if(we(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),tr?U():z(e,o,n[t?r-o++:o++])}))},t(ne,K),ne.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},ne.prototype.has=function(e){return this._object.hasOwnProperty(e)},ne.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,a=0;a<=o;a++){var i=r[t?o-a:a];if(!1===e(n[i],i,this))return a+1}return a},ne.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,a=0;return new F((function(){var i=r[t?o-a:a];return a++>o?U():z(e,i,n[i])}))},ne.prototype[d]=!0,t(re,Y),re.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=W(this._iterable),r=0;if(V(n))for(var o;!(o=n.next()).done&&!1!==e(o.value,r++,this););return r},re.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=W(this._iterable);if(!V(n))return new F(U);var r=0;return new F((function(){var t=n.next();return t.done?t:z(e,r++,t.value)}))},t(oe,Y),oe.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,o=this._iteratorCache,a=0;a=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return z(e,o,r[o++])}))},t(be,Y),be.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},be.prototype.get=function(e,t){return this.has(e)?this._value:t},be.prototype.includes=function(e){return ge(this._value,e)},be.prototype.slice=function(e,t){var n=this.size;return j(e,t,n)?this:new be(this._value,I(t,n)-T(e,n))},be.prototype.reverse=function(){return this},be.prototype.indexOf=function(e){return ge(this._value,e)?0:-1},be.prototype.lastIndexOf=function(e){return ge(this._value,e)?this.size:-1},be.prototype.__iterate=function(e,t){for(var n=0;n=0&&t=0&&nn?U():z(e,a++,i)}))},xe.prototype.equals=function(e){return e instanceof xe?this._start===e._start&&this._end===e._end&&this._step===e._step:ye(this,e)},t(Ee,n),t(_e,Ee),t(Se,Ee),t(ke,Ee),Ee.Keyed=_e,Ee.Indexed=Se,Ee.Set=ke;var Ae="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function Oe(e){return e>>>1&1073741824|3221225471&e}function Ce(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){if(e!=e||e===1/0)return 0;var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return Oe(n)}if("string"===t)return e.length>Fe?je(e):Te(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return Ie(e);if("function"==typeof e.toString)return Te(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function je(e){var t=qe[e];return void 0===t&&(t=Te(e),Ue===ze&&(Ue=0,qe={}),Ue++,qe[e]=t),t}function Te(e){for(var t=0,n=0;n0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}var Re,De="function"==typeof WeakMap;De&&(Re=new WeakMap);var Le=0,Be="__immutablehash__";"function"==typeof Symbol&&(Be=Symbol(Be));var Fe=16,ze=255,Ue=0,qe={};function Ve(e){we(e!==1/0,"Cannot perform this action with an infinite size.")}function We(e){return null==e?ot():He(e)&&!l(e)?e:ot().withMutations((function(t){var n=r(e);Ve(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function He(e){return!(!e||!e[Je])}t(We,_e),We.of=function(){var t=e.call(arguments,0);return ot().withMutations((function(e){for(var n=0;n=t.length)throw new Error("Missing value for key: "+t[n]);e.set(t[n],t[n+1])}}))},We.prototype.toString=function(){return this.__toString("Map {","}")},We.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},We.prototype.set=function(e,t){return at(this,e,t)},We.prototype.setIn=function(e,t){return this.updateIn(e,b,(function(){return t}))},We.prototype.remove=function(e){return at(this,e,b)},We.prototype.deleteIn=function(e){return this.updateIn(e,(function(){return b}))},We.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},We.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=vt(this,En(e),t,n);return r===b?void 0:r},We.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):ot()},We.prototype.merge=function(){return pt(this,void 0,arguments)},We.prototype.mergeWith=function(t){return pt(this,t,e.call(arguments,1))},We.prototype.mergeIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,ot(),(function(e){return"function"==typeof e.merge?e.merge.apply(e,n):n[n.length-1]}))},We.prototype.mergeDeep=function(){return pt(this,ht,arguments)},We.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return pt(this,dt(t),n)},We.prototype.mergeDeepIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,ot(),(function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,n):n[n.length-1]}))},We.prototype.sort=function(e){return qt(fn(this,e))},We.prototype.sortBy=function(e,t){return qt(fn(this,t,e))},We.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},We.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new S)},We.prototype.asImmutable=function(){return this.__ensureOwner()},We.prototype.wasAltered=function(){return this.__altered},We.prototype.__iterator=function(e,t){return new et(this,e,t)},We.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate((function(t){return r++,e(t[1],t[0],n)}),t),r},We.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?rt(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},We.isMap=He;var $e,Je="@@__IMMUTABLE_MAP__@@",Ke=We.prototype;function Ye(e,t){this.ownerID=e,this.entries=t}function Ge(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function Qe(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function Ze(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function Xe(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function et(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&nt(e._root)}function tt(e,t){return z(e,t[0],t[1])}function nt(e,t){return{node:e,index:0,__prev:t}}function rt(e,t,n,r){var o=Object.create(Ke);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function ot(){return $e||($e=rt(0))}function at(e,t,n){var r,o;if(e._root){var a=E(w),i=E(x);if(r=it(e._root,e.__ownerID,0,void 0,t,n,a,i),!i.value)return e;o=e.size+(a.value?n===b?-1:1:0)}else{if(n===b)return e;o=1,r=new Ye(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=o,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?rt(o,r):ot()}function it(e,t,n,r,o,a,i,u){return e?e.update(t,n,r,o,a,i,u):a===b?e:(_(u),_(i),new Xe(t,r,[o,a]))}function ut(e){return e.constructor===Xe||e.constructor===Ze}function st(e,t,n,r,o){if(e.keyHash===r)return new Ze(t,r,[e.entry,o]);var a,i=(0===n?e.keyHash:e.keyHash>>>n)&y,u=(0===n?r:r>>>n)&y;return new Ge(t,1<>>=1)i[u]=1&n?t[a++]:void 0;return i[r]=o,new Qe(e,a+1,i)}function pt(e,t,n){for(var o=[],a=0;a>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function yt(e,t,n,r){var o=r?e:k(e);return o[t]=n,o}function bt(e,t,n,r){var o=e.length+1;if(r&&t+1===o)return e[t]=n,e;for(var a=new Array(o),i=0,u=0;u=xt)return ct(e,s,r,o);var p=e&&e===this.ownerID,h=p?s:k(s);return f?u?c===l-1?h.pop():h[c]=h.pop():h[c]=[r,o]:h.push([r,o]),p?(this.entries=h,this):new Ye(e,h)}},Ge.prototype.get=function(e,t,n,r){void 0===t&&(t=Ce(n));var o=1<<((0===e?t:t>>>e)&y),a=this.bitmap;return 0==(a&o)?r:this.nodes[gt(a&o-1)].get(e+v,t,n,r)},Ge.prototype.update=function(e,t,n,r,o,a,i){void 0===n&&(n=Ce(r));var u=(0===t?n:n>>>t)&y,s=1<=Et)return ft(e,p,c,u,d);if(l&&!d&&2===p.length&&ut(p[1^f]))return p[1^f];if(l&&d&&1===p.length&&ut(d))return d;var m=e&&e===this.ownerID,g=l?d?c:c^s:c|s,w=l?d?yt(p,f,d,m):wt(p,f,m):bt(p,f,d,m);return m?(this.bitmap=g,this.nodes=w,this):new Ge(e,g,w)},Qe.prototype.get=function(e,t,n,r){void 0===t&&(t=Ce(n));var o=(0===e?t:t>>>e)&y,a=this.nodes[o];return a?a.get(e+v,t,n,r):r},Qe.prototype.update=function(e,t,n,r,o,a,i){void 0===n&&(n=Ce(r));var u=(0===t?n:n>>>t)&y,s=o===b,c=this.nodes,l=c[u];if(s&&!l)return this;var f=it(l,e,t+v,n,r,o,a,i);if(f===l)return this;var p=this.count;if(l){if(!f&&--p<_t)return lt(e,c,p,u)}else p++;var h=e&&e===this.ownerID,d=yt(c,u,f,h);return h?(this.count=p,this.nodes=d,this):new Qe(e,p,d)},Ze.prototype.get=function(e,t,n,r){for(var o=this.entries,a=0,i=o.length;a0&&r=0&&e>>t&y;if(r>=this.array.length)return new Ct([],e);var o,a=0===r;if(t>0){var i=this.array[r];if((o=i&&i.removeBefore(e,t-v,n))===i&&a)return this}if(a&&!o)return this;var u=Lt(this,e);if(!a)for(var s=0;s>>t&y;if(o>=this.array.length)return this;if(t>0){var a=this.array[o];if((r=a&&a.removeAfter(e,t-v,n))===a&&o===this.array.length-1)return this}var i=Lt(this,e);return i.array.splice(o+1),r&&(i.array[o]=r),i};var jt,Tt,It={};function Pt(e,t){var n=e._origin,r=e._capacity,o=Ut(r),a=e._tail;return i(e._root,e._level,0);function i(e,t,n){return 0===t?u(e,n):s(e,t,n)}function u(e,i){var u=i===o?a&&a.array:e&&e.array,s=i>n?0:n-i,c=r-i;return c>g&&(c=g),function(){if(s===c)return It;var e=t?--c:s++;return u&&u[e]}}function s(e,o,a){var u,s=e&&e.array,c=a>n?0:n-a>>o,l=1+(r-a>>o);return l>g&&(l=g),function(){for(;;){if(u){var e=u();if(e!==It)return e;u=null}if(c===l)return It;var n=t?--l:c++;u=i(s&&s[n],o-v,a+(n<=e.size||t<0)return e.withMutations((function(e){t<0?Ft(e,t).set(0,n):Ft(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,o=e._root,a=E(x);return t>=Ut(e._capacity)?r=Dt(r,e.__ownerID,0,t,n,a):o=Dt(o,e.__ownerID,e._level,t,n,a),a.value?e.__ownerID?(e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e):Nt(e._origin,e._capacity,e._level,o,r):e}function Dt(e,t,n,r,o,a){var i,u=r>>>n&y,s=e&&u0){var c=e&&e.array[u],l=Dt(c,t,n-v,r,o,a);return l===c?e:((i=Lt(e,t)).array[u]=l,i)}return s&&e.array[u]===o?e:(_(a),i=Lt(e,t),void 0===o&&u===i.array.length-1?i.array.pop():i.array[u]=o,i)}function Lt(e,t){return t&&e&&t===e.ownerID?e:new Ct(e?e.array.slice():[],t)}function Bt(e,t){if(t>=Ut(e._capacity))return e._tail;if(t<1<0;)n=n.array[t>>>r&y],r-=v;return n}}function Ft(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new S,o=e._origin,a=e._capacity,i=o+t,u=void 0===n?a:n<0?a+n:o+n;if(i===o&&u===a)return e;if(i>=u)return e.clear();for(var s=e._level,c=e._root,l=0;i+l<0;)c=new Ct(c&&c.array.length?[void 0,c]:[],r),l+=1<<(s+=v);l&&(i+=l,o+=l,u+=l,a+=l);for(var f=Ut(a),p=Ut(u);p>=1<f?new Ct([],r):h;if(h&&p>f&&iv;g-=v){var b=f>>>g&y;m=m.array[b]=Lt(m.array[b],r)}m.array[f>>>v&y]=h}if(u=p)i-=p,u-=p,s=v,c=null,d=d&&d.removeBefore(r,0,i);else if(i>o||p>>s&y;if(w!==p>>>s&y)break;w&&(l+=(1<o&&(c=c.removeBefore(r,s,i-l)),c&&pa&&(a=c.size),i(s)||(c=c.map((function(e){return he(e)}))),r.push(c)}return a>e.size&&(e=e.setSize(a)),mt(e,t,r)}function Ut(e){return e>>v<=g&&i.size>=2*a.size?(r=(o=i.filter((function(e,t){return void 0!==e&&u!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=a.remove(t),o=u===i.size-1?i.pop():i.set(u,void 0))}else if(s){if(n===i.get(u)[1])return e;r=a,o=i.set(u,[t,n])}else r=a.set(t,i.size),o=i.set(i.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e):Wt(r,o)}function Jt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Kt(e){this._iter=e,this.size=e.size}function Yt(e){this._iter=e,this.size=e.size}function Gt(e){this._iter=e,this.size=e.size}function Qt(e){var t=bn(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=wn,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(t===R){var r=e.__iterator(t,n);return new F((function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(t===M?N:M,n)},t}function Zt(e,t,n){var r=bn(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var a=e.get(r,b);return a===b?o:t.call(n,a,r,e)},r.__iterateUncached=function(r,o){var a=this;return e.__iterate((function(e,o,i){return!1!==r(t.call(n,e,o,i),o,a)}),o)},r.__iteratorUncached=function(r,o){var a=e.__iterator(R,o);return new F((function(){var o=a.next();if(o.done)return o;var i=o.value,u=i[0];return z(r,u,t.call(n,i[1],u,e),o)}))},r}function Xt(e,t){var n=bn(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Qt(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=wn,n.__iterate=function(t,n){var r=this;return e.__iterate((function(e,n){return t(e,n,r)}),!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function en(e,t,n,r){var o=bn(e);return r&&(o.has=function(r){var o=e.get(r,b);return o!==b&&!!t.call(n,o,r,e)},o.get=function(r,o){var a=e.get(r,b);return a!==b&&t.call(n,a,r,e)?a:o}),o.__iterateUncached=function(o,a){var i=this,u=0;return e.__iterate((function(e,a,s){if(t.call(n,e,a,s))return u++,o(e,r?a:u-1,i)}),a),u},o.__iteratorUncached=function(o,a){var i=e.__iterator(R,a),u=0;return new F((function(){for(;;){var a=i.next();if(a.done)return a;var s=a.value,c=s[0],l=s[1];if(t.call(n,l,c,e))return z(o,r?c:u++,l,a)}}))},o}function tn(e,t,n){var r=We().asMutable();return e.__iterate((function(o,a){r.update(t.call(n,o,a,e),0,(function(e){return e+1}))})),r.asImmutable()}function nn(e,t,n){var r=u(e),o=(l(e)?qt():We()).asMutable();e.__iterate((function(a,i){o.update(t.call(n,a,i,e),(function(e){return(e=e||[]).push(r?[i,a]:a),e}))}));var a=yn(e);return o.map((function(t){return mn(e,a(t))}))}function rn(e,t,n,r){var o=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n===1/0?n=o:n|=0),j(t,n,o))return e;var a=T(t,o),i=I(n,o);if(a!=a||i!=i)return rn(e.toSeq().cacheResult(),t,n,r);var u,s=i-a;s==s&&(u=s<0?0:s);var c=bn(e);return c.size=0===u?u:e.size&&u||void 0,!r&&ae(e)&&u>=0&&(c.get=function(t,n){return(t=O(this,t))>=0&&tu)return U();var e=o.next();return r||t===M?e:z(t,s-1,t===N?void 0:e.value[1],e)}))},c}function on(e,t,n){var r=bn(e);return r.__iterateUncached=function(r,o){var a=this;if(o)return this.cacheResult().__iterate(r,o);var i=0;return e.__iterate((function(e,o,u){return t.call(n,e,o,u)&&++i&&r(e,o,a)})),i},r.__iteratorUncached=function(r,o){var a=this;if(o)return this.cacheResult().__iterator(r,o);var i=e.__iterator(R,o),u=!0;return new F((function(){if(!u)return U();var e=i.next();if(e.done)return e;var o=e.value,s=o[0],c=o[1];return t.call(n,c,s,a)?r===R?e:z(r,s,c,e):(u=!1,U())}))},r}function an(e,t,n,r){var o=bn(e);return o.__iterateUncached=function(o,a){var i=this;if(a)return this.cacheResult().__iterate(o,a);var u=!0,s=0;return e.__iterate((function(e,a,c){if(!u||!(u=t.call(n,e,a,c)))return s++,o(e,r?a:s-1,i)})),s},o.__iteratorUncached=function(o,a){var i=this;if(a)return this.cacheResult().__iterator(o,a);var u=e.__iterator(R,a),s=!0,c=0;return new F((function(){var e,a,l;do{if((e=u.next()).done)return r||o===M?e:z(o,c++,o===N?void 0:e.value[1],e);var f=e.value;a=f[0],l=f[1],s&&(s=t.call(n,l,a,i))}while(s);return o===R?e:z(o,a,l,e)}))},o}function un(e,t){var n=u(e),o=[e].concat(t).map((function(e){return i(e)?n&&(e=r(e)):e=n?ue(e):se(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===o.length)return e;if(1===o.length){var a=o[0];if(a===e||n&&u(a)||s(e)&&s(a))return a}var c=new te(o);return n?c=c.toKeyedSeq():s(e)||(c=c.toSetSeq()),(c=c.flatten(!0)).size=o.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),c}function sn(e,t,n){var r=bn(e);return r.__iterateUncached=function(r,o){var a=0,u=!1;function s(e,c){var l=this;e.__iterate((function(e,o){return(!t||c0}function dn(e,t,r){var o=bn(e);return o.size=new te(r).map((function(e){return e.size})).min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(M,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var a=r.map((function(e){return e=n(e),W(o?e.reverse():e)})),i=0,u=!1;return new F((function(){var n;return u||(n=a.map((function(e){return e.next()})),u=n.some((function(e){return e.done}))),u?U():z(e,i++,t.apply(null,n.map((function(e){return e.value}))))}))},o}function mn(e,t){return ae(e)?t:e.constructor(t)}function vn(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function gn(e){return Ve(e.size),A(e)}function yn(e){return u(e)?r:s(e)?o:a}function bn(e){return Object.create((u(e)?K:s(e)?Y:G).prototype)}function wn(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):J.prototype.cacheResult.call(this)}function xn(e,t){return e>t?1:e=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Kn(e,t)},Vn.prototype.pushAll=function(e){if(0===(e=o(e)).size)return this;Ve(e.size);var t=this.size,n=this._head;return e.reverse().forEach((function(e){t++,n={value:e,next:n}})),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Kn(t,n)},Vn.prototype.pop=function(){return this.slice(1)},Vn.prototype.unshift=function(){return this.push.apply(this,arguments)},Vn.prototype.unshiftAll=function(e){return this.pushAll(e)},Vn.prototype.shift=function(){return this.pop.apply(this,arguments)},Vn.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Yn()},Vn.prototype.slice=function(e,t){if(j(e,t,this.size))return this;var n=T(e,this.size);if(I(t,this.size)!==this.size)return Se.prototype.slice.call(this,e,t);for(var r=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=r,this._head=o,this.__hash=void 0,this.__altered=!0,this):Kn(r,o)},Vn.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Kn(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Vn.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},Vn.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new F((function(){if(r){var t=r.value;return r=r.next,z(e,n++,t)}return U()}))},Vn.isStack=Wn;var Hn,$n="@@__IMMUTABLE_STACK__@@",Jn=Vn.prototype;function Kn(e,t,n,r){var o=Object.create(Jn);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Yn(){return Hn||(Hn=Kn(0))}function Gn(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}Jn[$n]=!0,Jn.withMutations=Ke.withMutations,Jn.asMutable=Ke.asMutable,Jn.asImmutable=Ke.asImmutable,Jn.wasAltered=Ke.wasAltered,n.Iterator=F,Gn(n,{toArray:function(){Ve(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate((function(t,n){e[n]=t})),e},toIndexedSeq:function(){return new Kt(this)},toJS:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJS?e.toJS():e})).__toJS()},toJSON:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e})).__toJS()},toKeyedSeq:function(){return new Jt(this,!0)},toMap:function(){return We(this.toKeyedSeq())},toObject:function(){Ve(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e},toOrderedMap:function(){return qt(this.toKeyedSeq())},toOrderedSet:function(){return Ln(u(this)?this.valueSeq():this)},toSet:function(){return jn(u(this)?this.valueSeq():this)},toSetSeq:function(){return new Yt(this)},toSeq:function(){return s(this)?this.toIndexedSeq():u(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Vn(u(this)?this.valueSeq():this)},toList:function(){return St(u(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){return mn(this,un(this,e.call(arguments,0)))},includes:function(e){return this.some((function(t){return ge(t,e)}))},entries:function(){return this.__iterator(R)},every:function(e,t){Ve(this.size);var n=!0;return this.__iterate((function(r,o,a){if(!e.call(t,r,o,a))return n=!1,!1})),n},filter:function(e,t){return mn(this,en(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},forEach:function(e,t){return Ve(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Ve(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""})),t},keys:function(){return this.__iterator(N)},map:function(e,t){return mn(this,Zt(this,e,t))},reduce:function(e,t,n){var r,o;return Ve(this.size),arguments.length<2?o=!0:r=t,this.__iterate((function(t,a,i){o?(o=!1,r=t):r=e.call(n,r,t,a,i)})),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return mn(this,Xt(this,!0))},slice:function(e,t){return mn(this,rn(this,e,t,!0))},some:function(e,t){return!this.every(tr(e),t)},sort:function(e){return mn(this,fn(this,e))},values:function(){return this.__iterator(M)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return A(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return tn(this,e,t)},equals:function(e){return ye(this,e)},entrySeq:function(){var e=this;if(e._cache)return new te(e._cache);var t=e.toSeq().map(er).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(tr(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate((function(n,o,a){if(e.call(t,n,o,a))return r=[o,n],!1})),r},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(){return this.find(C)},flatMap:function(e,t){return mn(this,cn(this,e,t))},flatten:function(e){return mn(this,sn(this,e,!0))},fromEntrySeq:function(){return new Gt(this)},get:function(e,t){return this.find((function(t,n){return ge(n,e)}),void 0,t)},getIn:function(e,t){for(var n,r=this,o=En(e);!(n=o.next()).done;){var a=n.value;if((r=r&&r.get?r.get(a,b):b)===b)return t}return r},groupBy:function(e,t){return nn(this,e,t)},has:function(e){return this.get(e,b)!==b},hasIn:function(e){return this.getIn(e,b)!==b},isSubset:function(e){return e="function"==typeof e.includes?e:n(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:n(e)).isSubset(this)},keyOf:function(e){return this.findKey((function(t){return ge(t,e)}))},keySeq:function(){return this.toSeq().map(Xn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return pn(this,e)},maxBy:function(e,t){return pn(this,t,e)},min:function(e){return pn(this,e?nr(e):ar)},minBy:function(e,t){return pn(this,t?nr(t):ar,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return mn(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return mn(this,an(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(tr(e),t)},sortBy:function(e,t){return mn(this,fn(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return mn(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return mn(this,on(this,e,t))},takeUntil:function(e,t){return this.takeWhile(tr(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=ir(this))}});var Qn=n.prototype;Qn[f]=!0,Qn[B]=Qn.values,Qn.__toJS=Qn.toArray,Qn.__toStringMapper=rr,Qn.inspect=Qn.toSource=function(){return this.toString()},Qn.chain=Qn.flatMap,Qn.contains=Qn.includes,Gn(r,{flip:function(){return mn(this,Qt(this))},mapEntries:function(e,t){var n=this,r=0;return mn(this,this.toSeq().map((function(o,a){return e.call(t,[a,o],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return mn(this,this.toSeq().flip().map((function(r,o){return e.call(t,r,o,n)})).flip())}});var Zn=r.prototype;function Xn(e,t){return t}function er(e,t){return[t,e]}function tr(e){return function(){return!e.apply(this,arguments)}}function nr(e){return function(){return-e.apply(this,arguments)}}function rr(e){return"string"==typeof e?JSON.stringify(e):String(e)}function or(){return k(arguments)}function ar(e,t){return et?-1:0}function ir(e){if(e.size===1/0)return 0;var t=l(e),n=u(e),r=t?1:0;return ur(e.__iterate(n?t?function(e,t){r=31*r+sr(Ce(e),Ce(t))|0}:function(e,t){r=r+sr(Ce(e),Ce(t))|0}:t?function(e){r=31*r+Ce(e)|0}:function(e){r=r+Ce(e)|0}),r)}function ur(e,t){return t=Ae(t,3432918353),t=Ae(t<<15|t>>>-15,461845907),t=Ae(t<<13|t>>>-13,5),t=Ae((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=Oe((t=Ae(t^t>>>13,3266489909))^t>>>16)}function sr(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}return Zn[p]=!0,Zn[B]=Qn.entries,Zn.__toJS=Qn.toObject,Zn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+rr(e)},Gn(o,{toKeyedSeq:function(){return new Jt(this,!1)},filter:function(e,t){return mn(this,en(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return mn(this,Xt(this,!1))},slice:function(e,t){return mn(this,rn(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=T(e,e<0?this.count():this.size);var r=this.slice(0,e);return mn(this,1===n?r:r.concat(k(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(){return this.get(0)},flatten:function(e){return mn(this,sn(this,e,!1))},get:function(e,t){return(e=O(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=O(this,e))>=0&&(void 0!==this.size?this.size===1/0||e1)try{return decodeURIComponent(t[1])}catch(e){console.error(e)}return null}function Pe(e){return t=e.replace(/\.[^./]*$/,""),Y()(J()(t));var t}function Ne(e,t,n,r,a){if(!t)return[];var u=[],s=t.get("nullable"),c=t.get("required"),f=t.get("maximum"),h=t.get("minimum"),d=t.get("type"),m=t.get("format"),g=t.get("maxLength"),b=t.get("minLength"),x=t.get("uniqueItems"),E=t.get("maxItems"),_=t.get("minItems"),S=t.get("pattern"),k=n||!0===c,A=null!=e;if(s&&null===e||!d||!(k||A&&"array"===d||!(!k&&!A)))return[];var O="string"===d&&e,C="array"===d&&l()(e)&&e.length,j="array"===d&&W.a.List.isList(e)&&e.count(),T=[O,C,j,"array"===d&&"string"==typeof e&&e,"file"===d&&e instanceof ue.a.File,"boolean"===d&&(e||!1===e),"number"===d&&(e||0===e),"integer"===d&&(e||0===e),"object"===d&&"object"===i()(e)&&null!==e,"object"===d&&"string"==typeof e&&e],I=P()(T).call(T,(function(e){return!!e}));if(k&&!I&&!r)return u.push("Required field is not provided"),u;if("object"===d&&(null===a||"application/json"===a)){var N,M=e;if("string"==typeof e)try{M=JSON.parse(e)}catch(e){return u.push("Parameter string value must be valid JSON"),u}if(t&&t.has("required")&&_e(c.isList)&&c.isList()&&y()(c).call(c,(function(e){void 0===M[e]&&u.push({propKey:e,error:"Required property not found"})})),t&&t.has("properties"))y()(N=t.get("properties")).call(N,(function(e,t){var n=Ne(M[t],e,!1,r,a);u.push.apply(u,o()(p()(n).call(n,(function(e){return{propKey:t,error:e}}))))}))}if(S){var R=function(e,t){if(!new RegExp(t).test(e))return"Value must follow pattern "+t}(e,S);R&&u.push(R)}if(_&&"array"===d){var D=function(e,t){var n;if(!e&&t>=1||e&&e.lengtht)return v()(n="Array must not contain more then ".concat(t," item")).call(n,1===t?"":"s")}(e,E);L&&u.push({needRemove:!0,error:L})}if(x&&"array"===d){var B=function(e,t){if(e&&("true"===t||!0===t)){var n=Object(V.fromJS)(e),r=n.toSet();if(e.length>r.size){var o=Object(V.Set)();if(y()(n).call(n,(function(e,t){w()(n).call(n,(function(t){return _e(t.equals)?t.equals(e):t===e})).size>1&&(o=o.add(t))})),0!==o.size)return p()(o).call(o,(function(e){return{index:e,error:"No duplicates allowed."}})).toArray()}}}(e,x);B&&u.push.apply(u,o()(B))}if(g||0===g){var F=function(e,t){var n;if(e.length>t)return v()(n="Value must be no longer than ".concat(t," character")).call(n,1!==t?"s":"")}(e,g);F&&u.push(F)}if(b){var z=function(e,t){var n;if(e.lengtht)return"Value must be less than ".concat(t)}(e,f);U&&u.push(U)}if(h||0===h){var q=function(e,t){if(e2&&void 0!==arguments[2]?arguments[2]:{},r=n.isOAS3,o=void 0!==r&&r,a=n.bypassRequiredCheck,i=void 0!==a&&a,u=e.get("required"),s=Object(le.a)(e,{isOAS3:o}),c=s.schema,l=s.parameterContentMediaType;return Ne(t,c,u,i,l)},Re=function(e,t,n){if(e&&(!e.xml||!e.xml.name)){if(e.xml=e.xml||{},!e.$$ref)return e.type||e.items||e.properties||e.additionalProperties?'\n\x3c!-- XML example cannot be generated; root element name is undefined --\x3e':null;var r=e.$$ref.match(/\S*\/(\S+)$/);e.xml.name=r[1]}return Object(ie.memoizedCreateXMLExample)(e,t,n)},De=[{when:/json/,shouldStringifyTypes:["string"]}],Le=["object"],Be=function(e,t,n,r){var a=Object(ie.memoizedSampleFromSchema)(e,t,r),u=i()(a),s=S()(De).call(De,(function(e,t){var r;return t.when.test(n)?v()(r=[]).call(r,o()(e),o()(t.shouldStringifyTypes)):e}),Le);return te()(s,(function(e){return e===u}))?M()(a,null,2):a},Fe=function(e,t,n,r){var o,a=Be(e,t,n,r);try{"\n"===(o=me.a.dump(me.a.load(a),{lineWidth:-1}))[o.length-1]&&(o=T()(o).call(o,0,o.length-1))}catch(e){return console.error(e),"error: could not generate yaml example"}return o.replace(/\t/g," ")},ze=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;return e&&_e(e.toJS)&&(e=e.toJS()),r&&_e(r.toJS)&&(r=r.toJS()),/xml/.test(t)?Re(e,n,r):/(yaml|yml)/.test(t)?Fe(e,n,t,r):Be(e,n,t,r)},Ue=function(){var e={},t=ue.a.location.search;if(!t)return{};if(""!=t){var n=t.substr(1).split("&");for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(r=n[r].split("="),e[decodeURIComponent(r[0])]=r[1]&&decodeURIComponent(r[1])||"")}return e},qe=function(t){return(t instanceof e?t:e.from(t.toString(),"utf-8")).toString("base64")},Ve={operationsSorter:{alpha:function(e,t){return e.get("path").localeCompare(t.get("path"))},method:function(e,t){return e.get("method").localeCompare(t.get("method"))}},tagsSorter:{alpha:function(e,t){return e.localeCompare(t)}}},We=function(e){var t=[];for(var n in e){var r=e[n];void 0!==r&&""!==r&&t.push([n,"=",encodeURIComponent(r).replace(/%20/g,"+")].join(""))}return t.join("&")},He=function(e,t,n){return!!X()(n,(function(n){return re()(e[n],t[n])}))};function $e(e){return"string"!=typeof e||""===e?"":Object(H.sanitizeUrl)(e)}function Je(e){return!(!e||D()(e).call(e,"localhost")>=0||D()(e).call(e,"127.0.0.1")>=0||"none"===e)}function Ke(e){if(!W.a.OrderedMap.isOrderedMap(e))return null;if(!e.size)return null;var t=B()(e).call(e,(function(e,t){return z()(t).call(t,"2")&&E()(e.get("content")||{}).length>0})),n=e.get("default")||W.a.OrderedMap(),r=(n.get("content")||W.a.OrderedMap()).keySeq().toJS().length?n:null;return t||r}var Ye=function(e){return"string"==typeof e||e instanceof String?q()(e).call(e).replace(/\s/g,"%20"):""},Ge=function(e){return ce()(Ye(e).replace(/%20/g,"_"))},Qe=function(e){return w()(e).call(e,(function(e,t){return/^x-/.test(t)}))},Ze=function(e){return w()(e).call(e,(function(e,t){return/^pattern|maxLength|minLength|maximum|minimum/.test(t)}))};function Xe(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){return!0};if("object"!==i()(e)||l()(e)||null===e||!t)return e;var o=A()({},e);return y()(n=E()(o)).call(n,(function(e){e===t&&r(o[e],e)?delete o[e]:o[e]=Xe(o[e],t,r)})),o}function et(e){if("string"==typeof e)return e;if(e&&e.toJS&&(e=e.toJS()),"object"===i()(e)&&null!==e)try{return M()(e,null,2)}catch(t){return String(e)}return null==e?"":e.toString()}function tt(e){return"number"==typeof e?e.toString():e}function nt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.returnAll,r=void 0!==n&&n,o=t.allowHashes,a=void 0===o||o;if(!W.a.Map.isMap(e))throw new Error("paramToIdentifier: received a non-Im.Map parameter as input");var i,u,s,c=e.get("name"),l=e.get("in"),f=[];e&&e.hashCode&&l&&c&&a&&f.push(v()(i=v()(u="".concat(l,".")).call(u,c,".hash-")).call(i,e.hashCode()));l&&c&&f.push(v()(s="".concat(l,".")).call(s,c));return f.push(c),r?f:f[0]||""}function rt(e,t){var n,r=nt(e,{returnAll:!0});return w()(n=p()(r).call(r,(function(e){return t[e]}))).call(n,(function(e){return void 0!==e}))[0]}function ot(){return it(pe()(32).toString("base64"))}function at(e){return it(de()("sha256").update(e).digest("base64"))}function it(e){return e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}var ut=function(e){return!e||!(!ge(e)||!e.isEmpty())}}).call(this,n(129).Buffer)},function(e,t,n){var r=n(416),o=n(185),a=n(250);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=r(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),o(e,"prototype",{writable:!1}),t&&a(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(251),o=n(137),a=n(417),i=n(769);e.exports=function(e){var t=a();return function(){var n,a=o(e);if(t){var u=o(this).constructor;n=r(a,arguments,u)}else n=a.apply(this,arguments);return i(this,n)}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){e.exports=n(889)()},function(e,t,n){e.exports=n(349)},function(e,t,n){var r=n(386),o=n(627),a=n(197),i=n(387);e.exports=function(e,t){return r(e)||o(e,t)||a(e,t)||i()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(611),o=n(379),a=n(197),i=n(626);e.exports=function(e){return r(e)||o(e)||a(e)||i()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){e.exports=n(350)},function(e,t,n){"use strict";var r=n(17),o=n(96),a=n(28),i=n(42),u=n(97).f,s=n(335),c=n(35),l=n(55),f=n(90),p=n(47),h=function(e){var t=function(n,r,a){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,a)}return o(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var n,o,d,m,v,g,y,b,w=e.target,x=e.global,E=e.stat,_=e.proto,S=x?r:E?r[w]:(r[w]||{}).prototype,k=x?c:c[w]||f(c,w,{})[w],A=k.prototype;for(d in t)n=!s(x?d:w+(E?".":"#")+d,e.forced)&&S&&p(S,d),v=k[d],n&&(g=e.noTargetGet?(b=u(S,d))&&b.value:S[d]),m=n&&g?g:t[d],n&&typeof v==typeof m||(y=e.bind&&n?l(m,r):e.wrap&&n?h(m):_&&i(m)?a(m):m,(e.sham||m&&m.sham||v&&v.sham)&&f(y,"sham",!0),f(k,d,y),_&&(p(c,o=w+"Prototype")||f(c,o,{}),f(c[o],d,m),e.real&&A&&!A[d]&&f(A,d,m)))}},function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")()}).call(this,n(61))},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r="NOT_FOUND";var o=function(e,t){return e===t};function a(e,t){var n,a,i="object"==typeof t?t:{equalityCheck:t},u=i.equalityCheck,s=void 0===u?o:u,c=i.maxSize,l=void 0===c?1:c,f=i.resultEqualityCheck,p=function(e){return function(t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,o=0;o-1){var a=n[o];return o>0&&(n.splice(o,1),n.unshift(a)),a.value}return r}return{get:o,put:function(t,a){o(t)===r&&(n.unshift({key:t,value:a}),n.length>e&&n.pop())},getEntries:function(){return n},clear:function(){n=[]}}}(l,p);function d(){var t=h.get(arguments);if(t===r){if(t=e.apply(null,arguments),f){var n=h.getEntries(),o=n.find((function(e){return f(e.value,t)}));o&&(t=o.value)}h.put(arguments,t)}return t}return d.clearCache=function(){return h.clear()},d}function i(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"==typeof e}))){var n=t.map((function(e){return"function"==typeof e?"function "+(e.name||"unnamed")+"()":typeof e})).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return t}function u(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r>",i=function(){invariant(!1,"ImmutablePropTypes type checking code is stripped in production.")};i.isRequired=i;var u=function(){return i};function s(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":e instanceof o.Iterable?"Immutable."+e.toSource().split(" ")[0]:t}function c(e){function t(t,n,r,o,i,u){for(var s=arguments.length,c=Array(s>6?s-6:0),l=6;l4)}function l(e){var t=e.get("swagger");return"string"==typeof t&&i()(t).call(t,"2.0")}function f(e){return function(t,n){return function(r){return n&&n.specSelectors&&n.specSelectors.specJson?c(n.specSelectors.specJson())?s.a.createElement(e,o()({},r,n,{Ori:t})):s.a.createElement(t,r):(console.warn("OAS3 wrapper: couldn't get spec"),null)}}}},function(e,t,n){var r=n(17),o=n(221),a=n(47),i=n(179),u=n(219),s=n(333),c=o("wks"),l=r.Symbol,f=l&&l.for,p=s?l:l&&l.withoutSetter||i;e.exports=function(e){if(!a(c,e)||!u&&"string"!=typeof c[e]){var t="Symbol."+e;u&&a(l,e)?c[e]=l[e]:c[e]=s&&f?f(t):p(t)}return c[e]}},function(e,t,n){var r=n(35);e.exports=function(e){return r[e+"Prototype"]}},function(e,t){e.exports=function(e){return"function"==typeof e}},function(e,t,n){var r=n(245);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},function(e,t,n){e.exports=n(872)},function(e,t,n){var r=n(42);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},function(e,t,n){var r=n(17),o=n(42),a=n(178),i=r.TypeError;e.exports=function(e){if(o(e))return e;throw i(a(e)+" is not a function")}},function(e,t,n){var r=n(28),o=n(62),a=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return a(o(e),t)}},function(e,t,n){var r=n(35),o=n(47),a=n(231),i=n(63).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});o(t,e)||i(t,e,{value:a.f(e)})}},function(e,t,n){var r=n(17),o=n(55),a=n(37),i=n(33),u=n(178),s=n(384),c=n(67),l=n(36),f=n(159),p=n(158),h=n(383),d=r.TypeError,m=function(e,t){this.stopped=e,this.result=t},v=m.prototype;e.exports=function(e,t,n){var r,g,y,b,w,x,E,_=n&&n.that,S=!(!n||!n.AS_ENTRIES),k=!(!n||!n.IS_ITERATOR),A=!(!n||!n.INTERRUPTED),O=o(t,_),C=function(e){return r&&h(r,"normal",e),new m(!0,e)},j=function(e){return S?(i(e),A?O(e[0],e[1],C):O(e[0],e[1])):A?O(e,C):O(e)};if(k)r=e;else{if(!(g=p(e)))throw d(u(e)+" is not iterable");if(s(g)){for(y=0,b=c(e);b>y;y++)if((w=j(e[y]))&&l(v,w))return w;return new m(!1)}r=f(e,g)}for(x=r.next;!(E=a(x,r)).done;){try{w=j(E.value)}catch(e){h(r,"throw",e)}if("object"==typeof w&&w&&l(v,w))return w}return new m(!1)}},function(e,t,n){e.exports=n(353)},function(e,t,n){var r=n(34);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,n){e.exports=n(656)},function(e,t,n){"use strict";n.r(t),n.d(t,"UPDATE_SPEC",(function(){return ee})),n.d(t,"UPDATE_URL",(function(){return te})),n.d(t,"UPDATE_JSON",(function(){return ne})),n.d(t,"UPDATE_PARAM",(function(){return re})),n.d(t,"UPDATE_EMPTY_PARAM_INCLUSION",(function(){return oe})),n.d(t,"VALIDATE_PARAMS",(function(){return ae})),n.d(t,"SET_RESPONSE",(function(){return ie})),n.d(t,"SET_REQUEST",(function(){return ue})),n.d(t,"SET_MUTATED_REQUEST",(function(){return se})),n.d(t,"LOG_REQUEST",(function(){return ce})),n.d(t,"CLEAR_RESPONSE",(function(){return le})),n.d(t,"CLEAR_REQUEST",(function(){return fe})),n.d(t,"CLEAR_VALIDATE_PARAMS",(function(){return pe})),n.d(t,"UPDATE_OPERATION_META_VALUE",(function(){return he})),n.d(t,"UPDATE_RESOLVED",(function(){return de})),n.d(t,"UPDATE_RESOLVED_SUBTREE",(function(){return me})),n.d(t,"SET_SCHEME",(function(){return ve})),n.d(t,"updateSpec",(function(){return ge})),n.d(t,"updateResolved",(function(){return ye})),n.d(t,"updateUrl",(function(){return be})),n.d(t,"updateJsonSpec",(function(){return we})),n.d(t,"parseToJson",(function(){return xe})),n.d(t,"resolveSpec",(function(){return _e})),n.d(t,"requestResolvedSubtree",(function(){return Ae})),n.d(t,"changeParam",(function(){return Oe})),n.d(t,"changeParamByIdentity",(function(){return Ce})),n.d(t,"updateResolvedSubtree",(function(){return je})),n.d(t,"invalidateResolvedSubtreeCache",(function(){return Te})),n.d(t,"validateParams",(function(){return Ie})),n.d(t,"updateEmptyParamInclusion",(function(){return Pe})),n.d(t,"clearValidateParams",(function(){return Ne})),n.d(t,"changeConsumesValue",(function(){return Me})),n.d(t,"changeProducesValue",(function(){return Re})),n.d(t,"setResponse",(function(){return De})),n.d(t,"setRequest",(function(){return Le})),n.d(t,"setMutatedRequest",(function(){return Be})),n.d(t,"logRequest",(function(){return Fe})),n.d(t,"executeRequest",(function(){return ze})),n.d(t,"execute",(function(){return Ue})),n.d(t,"clearResponse",(function(){return qe})),n.d(t,"clearRequest",(function(){return Ve})),n.d(t,"setScheme",(function(){return We}));var r=n(25),o=n.n(r),a=n(59),i=n.n(a),u=n(79),s=n.n(u),c=n(19),l=n.n(c),f=n(44),p=n.n(f),h=n(22),d=n.n(h),m=n(4),v=n.n(m),g=n(323),y=n.n(g),b=n(31),w=n.n(b),x=n(140),E=n.n(x),_=n(72),S=n.n(_),k=n(12),A=n.n(k),O=n(207),C=n.n(O),j=n(20),T=n.n(j),I=n(23),P=n.n(I),N=n(2),M=n.n(N),R=n(15),D=n.n(R),L=n(24),B=n.n(L),F=n(324),z=n.n(F),U=n(76),q=n(1),V=n(92),W=n.n(V),H=n(138),$=n(455),J=n.n($),K=n(456),Y=n.n(K),G=n(325),Q=n.n(G),Z=n(7),X=["path","method"],ee="spec_update_spec",te="spec_update_url",ne="spec_update_json",re="spec_update_param",oe="spec_update_empty_param_inclusion",ae="spec_validate_param",ie="spec_set_response",ue="spec_set_request",se="spec_set_mutated_request",ce="spec_log_request",le="spec_clear_response",fe="spec_clear_request",pe="spec_clear_validate_param",he="spec_update_operation_meta_value",de="spec_update_resolved",me="spec_update_resolved_subtree",ve="set_scheme";function ge(e){var t,n=(t=e,J()(t)?t:"").replace(/\t/g," ");if("string"==typeof e)return{type:ee,payload:n}}function ye(e){return{type:de,payload:e}}function be(e){return{type:te,payload:e}}function we(e){return{type:ne,payload:e}}var xe=function(e){return function(t){var n=t.specActions,r=t.specSelectors,o=t.errActions,a=r.specStr,i=null;try{e=e||a(),o.clear({source:"parser"}),i=U.a.load(e)}catch(e){return console.error(e),o.newSpecErr({source:"parser",level:"error",message:e.reason,line:e.mark&&e.mark.line?e.mark.line+1:void 0})}return i&&"object"===l()(i)?n.updateJsonSpec(i):{}}},Ee=!1,_e=function(e,t){return function(n){var r=n.specActions,o=n.specSelectors,a=n.errActions,i=n.fn,u=i.fetch,s=i.resolve,c=i.AST,l=void 0===c?{}:c,f=n.getConfigs;Ee||(console.warn("specActions.resolveSpec is deprecated since v0.3.0.10.0 and will be removed in v4.0.0; use requestResolvedSubtree instead!"),Ee=!0);var p=f(),h=p.modelPropertyMacro,m=p.parameterMacro,g=p.requestInterceptor,b=p.responseInterceptor;void 0===e&&(e=o.specJson()),void 0===t&&(t=o.url());var w=l.getLineNumberForPath?l.getLineNumberForPath:function(){},x=o.specStr();return s({fetch:u,spec:e,baseDoc:t,modelPropertyMacro:h,parameterMacro:m,requestInterceptor:g,responseInterceptor:b}).then((function(e){var t=e.spec,n=e.errors;if(a.clear({type:"thrown"}),d()(n)&&n.length>0){var o=v()(n).call(n,(function(e){return console.error(e),e.line=e.fullPath?w(x,e.fullPath):null,e.path=e.fullPath?e.fullPath.join("."):null,e.level="error",e.type="thrown",e.source="resolver",y()(e,"message",{enumerable:!0,value:e.message}),e}));a.newThrownErrBatch(o)}return r.updateResolved(t)}))}},Se=[],ke=Y()(s()(p.a.mark((function e(){var t,n,r,o,a,i,u,c,l,f,h,m,g,b,x,_,k,O;return p.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=Se.system){e.next=4;break}return console.error("debResolveSubtrees: don't have a system to operate on, aborting."),e.abrupt("return");case 4:if(n=t.errActions,r=t.errSelectors,o=t.fn,a=o.resolveSubtree,i=o.fetch,u=o.AST,c=void 0===u?{}:u,l=t.specSelectors,f=t.specActions,a){e.next=8;break}return console.error("Error: Swagger-Client did not provide a `resolveSubtree` method, doing nothing."),e.abrupt("return");case 8:return h=c.getLineNumberForPath?c.getLineNumberForPath:function(){},m=l.specStr(),g=t.getConfigs(),b=g.modelPropertyMacro,x=g.parameterMacro,_=g.requestInterceptor,k=g.responseInterceptor,e.prev=11,e.next=14,w()(Se).call(Se,function(){var e=s()(p.a.mark((function e(t,o){var u,c,f,g,w,O,j,T,I;return p.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t;case 2:return u=e.sent,c=u.resultMap,f=u.specWithCurrentSubtrees,e.next=7,a(f,o,{baseDoc:l.url(),modelPropertyMacro:b,parameterMacro:x,requestInterceptor:_,responseInterceptor:k});case 7:if(g=e.sent,w=g.errors,O=g.spec,r.allErrors().size&&n.clearBy((function(e){var t;return"thrown"!==e.get("type")||"resolver"!==e.get("source")||!E()(t=e.get("fullPath")).call(t,(function(e,t){return e===o[t]||void 0===o[t]}))})),d()(w)&&w.length>0&&(j=v()(w).call(w,(function(e){return e.line=e.fullPath?h(m,e.fullPath):null,e.path=e.fullPath?e.fullPath.join("."):null,e.level="error",e.type="thrown",e.source="resolver",y()(e,"message",{enumerable:!0,value:e.message}),e})),n.newThrownErrBatch(j)),!O||!l.isOAS3()||"components"!==o[0]||"securitySchemes"!==o[1]){e.next=15;break}return e.next=15,S.a.all(v()(T=A()(I=C()(O)).call(I,(function(e){return"openIdConnect"===e.type}))).call(T,function(){var e=s()(p.a.mark((function e(t){var n,r;return p.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={url:t.openIdConnectUrl,requestInterceptor:_,responseInterceptor:k},e.prev=1,e.next=4,i(n);case 4:(r=e.sent)instanceof Error||r.status>=400?console.error(r.statusText+" "+n.url):t.openIdConnectData=JSON.parse(r.text),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),console.error(e.t0);case 11:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(t){return e.apply(this,arguments)}}()));case 15:return Q()(c,o,O),Q()(f,o,O),e.abrupt("return",{resultMap:c,specWithCurrentSubtrees:f});case 18:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),S.a.resolve({resultMap:(l.specResolvedSubtree([])||Object(q.Map)()).toJS(),specWithCurrentSubtrees:l.specJson().toJS()}));case 14:O=e.sent,delete Se.system,Se=[],e.next=22;break;case 19:e.prev=19,e.t0=e.catch(11),console.error(e.t0);case 22:f.updateResolvedSubtree([],O.resultMap);case 23:case"end":return e.stop()}}),e,null,[[11,19]])}))),35),Ae=function(e){return function(t){var n;T()(n=v()(Se).call(Se,(function(e){return e.join("@@")}))).call(n,e.join("@@"))>-1||(Se.push(e),Se.system=t,ke())}};function Oe(e,t,n,r,o){return{type:re,payload:{path:e,value:r,paramName:t,paramIn:n,isXml:o}}}function Ce(e,t,n,r){return{type:re,payload:{path:e,param:t,value:n,isXml:r}}}var je=function(e,t){return{type:me,payload:{path:e,value:t}}},Te=function(){return{type:me,payload:{path:[],value:Object(q.Map)()}}},Ie=function(e,t){return{type:ae,payload:{pathMethod:e,isOAS3:t}}},Pe=function(e,t,n,r){return{type:oe,payload:{pathMethod:e,paramName:t,paramIn:n,includeEmptyValue:r}}};function Ne(e){return{type:pe,payload:{pathMethod:e}}}function Me(e,t){return{type:he,payload:{path:e,value:t,key:"consumes_value"}}}function Re(e,t){return{type:he,payload:{path:e,value:t,key:"produces_value"}}}var De=function(e,t,n){return{payload:{path:e,method:t,res:n},type:ie}},Le=function(e,t,n){return{payload:{path:e,method:t,req:n},type:ue}},Be=function(e,t,n){return{payload:{path:e,method:t,req:n},type:se}},Fe=function(e){return{payload:e,type:ce}},ze=function(e){return function(t){var n,r,o=t.fn,a=t.specActions,i=t.specSelectors,u=t.getConfigs,c=t.oas3Selectors,l=e.pathName,f=e.method,h=e.operation,m=u(),g=m.requestInterceptor,y=m.responseInterceptor,b=h.toJS();h&&h.get("parameters")&&P()(n=A()(r=h.get("parameters")).call(r,(function(e){return e&&!0===e.get("allowEmptyValue")}))).call(n,(function(t){if(i.parameterInclusionSettingFor([l,f],t.get("name"),t.get("in"))){e.parameters=e.parameters||{};var n=Object(Z.B)(t,e.parameters);(!n||n&&0===n.size)&&(e.parameters[t.get("name")]="")}}));if(e.contextUrl=W()(i.url()).toString(),b&&b.operationId?e.operationId=b.operationId:b&&l&&f&&(e.operationId=o.opId(b,l,f)),i.isOAS3()){var w,x=M()(w="".concat(l,":")).call(w,f);e.server=c.selectedServer(x)||c.selectedServer();var E=c.serverVariables({server:e.server,namespace:x}).toJS(),_=c.serverVariables({server:e.server}).toJS();e.serverVariables=D()(E).length?E:_,e.requestContentType=c.requestContentType(l,f),e.responseContentType=c.responseContentType(l,f)||"*/*";var S,k=c.requestBodyValue(l,f),O=c.requestBodyInclusionSetting(l,f);if(k&&k.toJS)e.requestBody=A()(S=v()(k).call(k,(function(e){return q.Map.isMap(e)?e.get("value"):e}))).call(S,(function(e,t){return(d()(e)?0!==e.length:!Object(Z.q)(e))||O.get(t)})).toJS();else e.requestBody=k}var C=B()({},e);C=o.buildRequest(C),a.setRequest(e.pathName,e.method,C);var j=function(){var t=s()(p.a.mark((function t(n){var r,o;return p.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,g.apply(undefined,[n]);case 2:return r=t.sent,o=B()({},r),a.setMutatedRequest(e.pathName,e.method,o),t.abrupt("return",r);case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();e.requestInterceptor=j,e.responseInterceptor=y;var T=z()();return o.execute(e).then((function(t){t.duration=z()()-T,a.setResponse(e.pathName,e.method,t)})).catch((function(t){"Failed to fetch"===t.message&&(t.name="",t.message='**Failed to fetch.** \n**Possible Reasons:** \n - CORS \n - Network Failure \n - URL scheme must be "http" or "https" for CORS request.'),a.setResponse(e.pathName,e.method,{error:!0,err:Object(H.serializeError)(t)})}))}},Ue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.path,n=e.method,r=i()(e,X);return function(e){var a=e.fn.fetch,i=e.specSelectors,u=e.specActions,s=i.specJsonWithResolvedSubtrees().toJS(),c=i.operationScheme(t,n),l=i.contentTypeValues([t,n]).toJS(),f=l.requestContentType,p=l.responseContentType,h=/xml/i.test(f),d=i.parameterValues([t,n],h).toJS();return u.executeRequest(o()(o()({},r),{},{fetch:a,spec:s,pathName:t,method:n,parameters:d,requestContentType:f,scheme:c,responseContentType:p}))}};function qe(e,t){return{type:le,payload:{path:e,method:t}}}function Ve(e,t){return{type:fe,payload:{path:e,method:t}}}function We(e,t,n){return{type:ve,payload:{scheme:e,path:t,method:n}}}},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t=e.length?{done:!0}:{done:!1,value:e[u++]}},e:function(e){throw e},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,l=!0,f=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){f=!0,c=e},f:function(){try{l||null==n.return||n.return()}finally{if(f)throw c}}}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(35),o=n(17),a=n(42),i=function(e){return a(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e])||i(o[e]):r[e]&&r[e][t]||o[e]&&o[e][t]}},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var r=n(426),o=n(253),a=n(850);e.exports=function(e,t){if(null==e)return{};var n,i,u=a(e,t);if(r){var s=r(e);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(u[n]=e[n])}return u},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n.r(t),n.d(t,"UPDATE_SELECTED_SERVER",(function(){return r})),n.d(t,"UPDATE_REQUEST_BODY_VALUE",(function(){return o})),n.d(t,"UPDATE_REQUEST_BODY_VALUE_RETAIN_FLAG",(function(){return a})),n.d(t,"UPDATE_REQUEST_BODY_INCLUSION",(function(){return i})),n.d(t,"UPDATE_ACTIVE_EXAMPLES_MEMBER",(function(){return u})),n.d(t,"UPDATE_REQUEST_CONTENT_TYPE",(function(){return s})),n.d(t,"UPDATE_RESPONSE_CONTENT_TYPE",(function(){return c})),n.d(t,"UPDATE_SERVER_VARIABLE_VALUE",(function(){return l})),n.d(t,"SET_REQUEST_BODY_VALIDATE_ERROR",(function(){return f})),n.d(t,"CLEAR_REQUEST_BODY_VALIDATE_ERROR",(function(){return p})),n.d(t,"CLEAR_REQUEST_BODY_VALUE",(function(){return h})),n.d(t,"setSelectedServer",(function(){return d})),n.d(t,"setRequestBodyValue",(function(){return m})),n.d(t,"setRetainRequestBodyValueFlag",(function(){return v})),n.d(t,"setRequestBodyInclusion",(function(){return g})),n.d(t,"setActiveExamplesMember",(function(){return y})),n.d(t,"setRequestContentType",(function(){return b})),n.d(t,"setResponseContentType",(function(){return w})),n.d(t,"setServerVariableValue",(function(){return x})),n.d(t,"setRequestBodyValidateError",(function(){return E})),n.d(t,"clearRequestBodyValidateError",(function(){return _})),n.d(t,"initRequestBodyValidateError",(function(){return S})),n.d(t,"clearRequestBodyValue",(function(){return k}));var r="oas3_set_servers",o="oas3_set_request_body_value",a="oas3_set_request_body_retain_flag",i="oas3_set_request_body_inclusion",u="oas3_set_active_examples_member",s="oas3_set_request_content_type",c="oas3_set_response_content_type",l="oas3_set_server_variable_value",f="oas3_set_request_body_validate_error",p="oas3_clear_request_body_validate_error",h="oas3_clear_request_body_value";function d(e,t){return{type:r,payload:{selectedServerUrl:e,namespace:t}}}function m(e){var t=e.value,n=e.pathMethod;return{type:o,payload:{value:t,pathMethod:n}}}var v=function(e){var t=e.value,n=e.pathMethod;return{type:a,payload:{value:t,pathMethod:n}}};function g(e){var t=e.value,n=e.pathMethod,r=e.name;return{type:i,payload:{value:t,pathMethod:n,name:r}}}function y(e){var t=e.name,n=e.pathMethod,r=e.contextType,o=e.contextName;return{type:u,payload:{name:t,pathMethod:n,contextType:r,contextName:o}}}function b(e){var t=e.value,n=e.pathMethod;return{type:s,payload:{value:t,pathMethod:n}}}function w(e){var t=e.value,n=e.path,r=e.method;return{type:c,payload:{value:t,path:n,method:r}}}function x(e){var t=e.server,n=e.namespace,r=e.key,o=e.val;return{type:l,payload:{server:t,namespace:n,key:r,val:o}}}var E=function(e){var t=e.path,n=e.method,r=e.validationErrors;return{type:f,payload:{path:t,method:n,validationErrors:r}}},_=function(e){var t=e.path,n=e.method;return{type:p,payload:{path:t,method:n}}},S=function(e){var t=e.pathMethod;return{type:p,payload:{path:t[0],method:t[1]}}},k=function(e){var t=e.pathMethod;return{type:h,payload:{pathMethod:t}}}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(17),o=n(114),a=r.Object;e.exports=function(e){return a(o(e))}},function(e,t,n){var r=n(17),o=n(51),a=n(334),i=n(336),u=n(33),s=n(177),c=r.TypeError,l=Object.defineProperty,f=Object.getOwnPropertyDescriptor,p="enumerable",h="configurable",d="writable";t.f=o?i?function(e,t,n){if(u(e),t=s(t),u(n),"function"==typeof e&&"prototype"===t&&"value"in n&&d in n&&!n.writable){var r=f(e,t);r&&r.writable&&(e[t]=n.value,n={configurable:h in n?n.configurable:r.configurable,enumerable:p in n?n.enumerable:r.enumerable,writable:!1})}return l(e,t,n)}:l:function(e,t,n){if(u(e),t=s(t),u(n),a)try{return l(e,t,n)}catch(e){}if("get"in n||"set"in n)throw c("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){"use strict";n.d(t,"b",(function(){return m})),n.d(t,"e",(function(){return v})),n.d(t,"c",(function(){return y})),n.d(t,"a",(function(){return b})),n.d(t,"d",(function(){return w}));var r=n(56),o=n.n(r),a=n(19),i=n.n(a),u=n(109),s=n.n(u),c=n(2),l=n.n(c),f=n(32),p=n.n(f),h=function(e){return String.prototype.toLowerCase.call(e)},d=function(e){return e.replace(/[^\w]/gi,"_")};function m(e){var t=e.openapi;return!!t&&s()(t).call(t,"3")}function v(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=r.v2OperationIdCompatibilityMode;if(!e||"object"!==i()(e))return null;var a=(e.operationId||"").replace(/\s/g,"");return a.length?d(e.operationId):g(t,n,{v2OperationIdCompatibilityMode:o})}function g(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=r.v2OperationIdCompatibilityMode;if(o){var a,i,u=l()(a="".concat(t.toLowerCase(),"_")).call(a,e).replace(/[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,"_");return(u=u||l()(i="".concat(e.substring(1),"_")).call(i,t)).replace(/((_){2,})/g,"_").replace(/^(_)*/g,"").replace(/([_])*$/g,"")}return l()(n="".concat(h(t))).call(n,d(e))}function y(e,t){var n;return l()(n="".concat(h(t),"-")).call(n,e)}function b(e,t){return e&&e.paths?function(e,t){return function(e,t,n){if(!e||"object"!==i()(e)||!e.paths||"object"!==i()(e.paths))return null;var r=e.paths;for(var o in r)for(var a in r[o])if("PARAMETERS"!==a.toUpperCase()){var u=r[o][a];if(u&&"object"===i()(u)){var s={spec:e,pathName:o,method:a.toUpperCase(),operation:u},c=t(s);if(n&&c)return s}}return}(e,t,!0)||null}(e,(function(e){var n=e.pathName,r=e.method,o=e.operation;if(!o||"object"!==i()(o))return!1;var a=o.operationId;return[v(o,n,r),y(n,r),a].some((function(e){return e&&e===t}))})):null}function w(e){var t=e.spec,n=t.paths,r={};if(!n||t.$$normalized)return e;for(var a in n){var u,s=n[a];if(null!=s&&p()(u=["object","function"]).call(u,i()(s))){var c=s.parameters,f=function(e){var n,u=s[e];if(null==u||!p()(n=["object","function"]).call(n,i()(u)))return"continue";var f=v(u,a,e);if(f){r[f]?r[f].push(u):r[f]=[u];var h=r[f];if(h.length>1)h.forEach((function(e,t){var n;e.__originalOperationId=e.__originalOperationId||e.operationId,e.operationId=l()(n="".concat(f)).call(n,t+1)}));else if(void 0!==u.operationId){var d=h[0];d.__originalOperationId=d.__originalOperationId||u.operationId,d.operationId=f}}if("parameters"!==e){var m=[],g={};for(var y in t)"produces"!==y&&"consumes"!==y&&"security"!==y||(g[y]=t[y],m.push(g));if(c&&(g.parameters=c,m.push(g)),m.length){var b,w=o()(m);try{for(w.s();!(b=w.n()).done;){var x=b.value;for(var E in x)if(u[E]){if("parameters"===E){var _,S=o()(x[E]);try{var k=function(){var e=_.value;u[E].some((function(t){return t.name&&t.name===e.name||t.$ref&&t.$ref===e.$ref||t.$$ref&&t.$$ref===e.$$ref||t===e}))||u[E].push(e)};for(S.s();!(_=S.n()).done;)k()}catch(e){S.e(e)}finally{S.f()}}}else u[E]=x[E]}}catch(e){w.e(e)}finally{w.f()}}}};for(var h in s)f(h)}}return t.$$normalized=!0,e}},function(e,t,n){"use strict";n.r(t),n.d(t,"NEW_THROWN_ERR",(function(){return o})),n.d(t,"NEW_THROWN_ERR_BATCH",(function(){return a})),n.d(t,"NEW_SPEC_ERR",(function(){return i})),n.d(t,"NEW_SPEC_ERR_BATCH",(function(){return u})),n.d(t,"NEW_AUTH_ERR",(function(){return s})),n.d(t,"CLEAR",(function(){return c})),n.d(t,"CLEAR_BY",(function(){return l})),n.d(t,"newThrownErr",(function(){return f})),n.d(t,"newThrownErrBatch",(function(){return p})),n.d(t,"newSpecErr",(function(){return h})),n.d(t,"newSpecErrBatch",(function(){return d})),n.d(t,"newAuthErr",(function(){return m})),n.d(t,"clear",(function(){return v})),n.d(t,"clearBy",(function(){return g}));var r=n(138),o="err_new_thrown_err",a="err_new_thrown_err_batch",i="err_new_spec_err",u="err_new_spec_err_batch",s="err_new_auth_err",c="err_clear",l="err_clear_by";function f(e){return{type:o,payload:Object(r.serializeError)(e)}}function p(e){return{type:a,payload:e}}function h(e){return{type:i,payload:e}}function d(e){return{type:u,payload:e}}function m(e){return{type:s,payload:e}}function v(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:c,payload:e}}function g(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){return!0};return{type:l,payload:e}}},function(e,t,n){var r=n(176),o=n(114);e.exports=function(e){return r(o(e))}},function(e,t,n){var r=n(337);e.exports=function(e){return r(e.length)}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},function(e,t,n){var r=n(129),o=r.Buffer;function a(e,t){for(var n in e)t[n]=e[n]}function i(e,t,n){return o(e,t,n)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=r:(a(r,t),t.Buffer=i),a(o,i),i.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return o(e,t,n)},i.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=o(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},i.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o(e)},i.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t,n){e.exports=n(381)},function(e,t,n){e.exports=n(428)},function(e,t,n){var r=n(17),o=n(80),a=r.String;e.exports=function(e){if("Symbol"===o(e))throw TypeError("Cannot convert a Symbol value to a string");return a(e)}},function(e,t,n){n(83);var r=n(506),o=n(17),a=n(80),i=n(90),u=n(127),s=n(40)("toStringTag");for(var c in r){var l=o[c],f=l&&l.prototype;f&&a(f)!==s&&i(f,s,c),u[c]=u.Array}},function(e,t,n){var r=n(361),o="object"==typeof self&&self&&self.Object===Object&&self,a=r||o||Function("return this")();e.exports=a},function(e,t,n){"use strict";function r(e){return null==e}var o={isNothing:r,isObject:function(e){return"object"==typeof e&&null!==e},toArray:function(e){return Array.isArray(e)?e:r(e)?[]:[e]},repeat:function(e,t){var n,r="";for(n=0;nu&&(t=r-u+(a=" ... ").length),n-r>u&&(n=r+u-(i=" ...").length),{str:a+e.slice(t,n).replace(/\t/g,"→")+i,pos:r-t+a.length}}function c(e,t){return o.repeat(" ",t-e.length)+e}var l=function(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var n,r=/\r?\n|\r|\0/g,a=[0],i=[],u=-1;n=r.exec(e.buffer);)i.push(n.index),a.push(n.index+n[0].length),e.position<=n.index&&u<0&&(u=a.length-2);u<0&&(u=a.length-1);var l,f,p="",h=Math.min(e.line+t.linesAfter,i.length).toString().length,d=t.maxLength-(t.indent+h+3);for(l=1;l<=t.linesBefore&&!(u-l<0);l++)f=s(e.buffer,a[u-l],i[u-l],e.position-(a[u]-a[u-l]),d),p=o.repeat(" ",t.indent)+c((e.line-l+1).toString(),h)+" | "+f.str+"\n"+p;for(f=s(e.buffer,a[u],i[u],e.position,d),p+=o.repeat(" ",t.indent)+c((e.line+1).toString(),h)+" | "+f.str+"\n",p+=o.repeat("-",t.indent+h+3+f.pos)+"^\n",l=1;l<=t.linesAfter&&!(u+l>=i.length);l++)f=s(e.buffer,a[u+l],i[u+l],e.position-(a[u]-a[u+l]),d),p+=o.repeat(" ",t.indent)+c((e.line+l+1).toString(),h)+" | "+f.str+"\n";return p.replace(/\n$/,"")},f=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],p=["scalar","sequence","mapping"];var h=function(e,t){if(t=t||{},Object.keys(t).forEach((function(t){if(-1===f.indexOf(t))throw new u('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')})),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=function(e){var t={};return null!==e&&Object.keys(e).forEach((function(n){e[n].forEach((function(e){t[String(e)]=n}))})),t}(t.styleAliases||null),-1===p.indexOf(this.kind))throw new u('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};function d(e,t){var n=[];return e[t].forEach((function(e){var t=n.length;n.forEach((function(n,r){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=r)})),n[t]=e})),n}function m(e){return this.extend(e)}m.prototype.extend=function(e){var t=[],n=[];if(e instanceof h)n.push(e);else if(Array.isArray(e))n=n.concat(e);else{if(!e||!Array.isArray(e.implicit)&&!Array.isArray(e.explicit))throw new u("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit))}t.forEach((function(e){if(!(e instanceof h))throw new u("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new u("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new u("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")})),n.forEach((function(e){if(!(e instanceof h))throw new u("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var r=Object.create(m.prototype);return r.implicit=(this.implicit||[]).concat(t),r.explicit=(this.explicit||[]).concat(n),r.compiledImplicit=d(r,"implicit"),r.compiledExplicit=d(r,"explicit"),r.compiledTypeMap=function(){var e,t,n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function r(e){e.multi?(n.multi[e.kind].push(e),n.multi.fallback.push(e)):n[e.kind][e.tag]=n.fallback[e.tag]=e}for(e=0,t=arguments.length;e=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),A=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var O=/^[-+]?[0-9]+e/;var C=new h("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!A.test(e)||"_"===e[e.length-1])},construct:function(e){var t,n;return n="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:n*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||o.isNegativeZero(e))},represent:function(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(o.isNegativeZero(e))return"-0.0";return n=e.toString(10),O.test(n)?n.replace("e",".e"):n},defaultStyle:"lowercase"}),j=w.extend({implicit:[x,E,k,C]}),T=j,I=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),P=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");var N=new h("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==I.exec(e)||null!==P.exec(e))},construct:function(e){var t,n,r,o,a,i,u,s,c=0,l=null;if(null===(t=I.exec(e))&&(t=P.exec(e)),null===t)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,o=+t[3],!t[4])return new Date(Date.UTC(n,r,o));if(a=+t[4],i=+t[5],u=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+="0";c=+c}return t[9]&&(l=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(l=-l)),s=new Date(Date.UTC(n,r,o,a,i,u,c)),l&&s.setTime(s.getTime()-l),s},instanceOf:Date,represent:function(e){return e.toISOString()}});var M=new h("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}}),R="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";var D=new h("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,r=0,o=e.length,a=R;for(n=0;n64)){if(t<0)return!1;r+=6}return r%8==0},construct:function(e){var t,n,r=e.replace(/[\r\n=]/g,""),o=r.length,a=R,i=0,u=[];for(t=0;t>16&255),u.push(i>>8&255),u.push(255&i)),i=i<<6|a.indexOf(r.charAt(t));return 0===(n=o%4*6)?(u.push(i>>16&255),u.push(i>>8&255),u.push(255&i)):18===n?(u.push(i>>10&255),u.push(i>>2&255)):12===n&&u.push(i>>4&255),new Uint8Array(u)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){var t,n,r="",o=0,a=e.length,i=R;for(t=0;t>18&63],r+=i[o>>12&63],r+=i[o>>6&63],r+=i[63&o]),o=(o<<8)+e[t];return 0===(n=a%3)?(r+=i[o>>18&63],r+=i[o>>12&63],r+=i[o>>6&63],r+=i[63&o]):2===n?(r+=i[o>>10&63],r+=i[o>>4&63],r+=i[o<<2&63],r+=i[64]):1===n&&(r+=i[o>>2&63],r+=i[o<<4&63],r+=i[64],r+=i[64]),r}}),L=Object.prototype.hasOwnProperty,B=Object.prototype.toString;var F=new h("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,r,o,a,i=[],u=e;for(t=0,n=u.length;t>10),56320+(e-65536&1023))}for(var ae=new Array(256),ie=new Array(256),ue=0;ue<256;ue++)ae[ue]=re(ue)?1:0,ie[ue]=re(ue);function se(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||W,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function ce(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=l(n),new u(t,n)}function le(e,t){throw ce(e,t)}function fe(e,t){e.onWarning&&e.onWarning.call(null,ce(e,t))}var pe={YAML:function(e,t,n){var r,o,a;null!==e.version&&le(e,"duplication of %YAML directive"),1!==n.length&&le(e,"YAML directive accepts exactly one argument"),null===(r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&le(e,"ill-formed argument of the YAML directive"),o=parseInt(r[1],10),a=parseInt(r[2],10),1!==o&&le(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=a<2,1!==a&&2!==a&&fe(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var r,o;2!==n.length&&le(e,"TAG directive accepts exactly two arguments"),r=n[0],o=n[1],Y.test(r)||le(e,"ill-formed tag handle (first argument) of the TAG directive"),H.call(e.tagMap,r)&&le(e,'there is a previously declared suffix for "'+r+'" tag handle'),G.test(o)||le(e,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch(t){le(e,"tag prefix is malformed: "+o)}e.tagMap[r]=o}};function he(e,t,n,r){var o,a,i,u;if(t1&&(e.result+=o.repeat("\n",t-1))}function we(e,t){var n,r,o=e.tag,a=e.anchor,i=[],u=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=i),r=e.input.charCodeAt(e.position);0!==r&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,le(e,"tab characters must not be used in indentation")),45===r)&&ee(e.input.charCodeAt(e.position+1));)if(u=!0,e.position++,ge(e,!0,-1)&&e.lineIndent<=t)i.push(null),r=e.input.charCodeAt(e.position);else if(n=e.line,_e(e,t,3,!1,!0),i.push(e.result),ge(e,!0,-1),r=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==r)le(e,"bad indentation of a sequence entry");else if(e.lineIndentt?m=1:e.lineIndent===t?m=0:e.lineIndentt?m=1:e.lineIndent===t?m=0:e.lineIndentt)&&(g&&(i=e.line,u=e.lineStart,s=e.position),_e(e,t,4,!0,o)&&(g?m=e.result:v=e.result),g||(me(e,p,h,d,m,v,i,u,s),d=m=v=null),ge(e,!0,-1),c=e.input.charCodeAt(e.position)),(e.line===a||e.lineIndent>t)&&0!==c)le(e,"bad indentation of a mapping entry");else if(e.lineIndent=0))break;0===a?le(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?le(e,"repeat of an indentation width identifier"):(f=t+a-1,l=!0)}if(X(i)){do{i=e.input.charCodeAt(++e.position)}while(X(i));if(35===i)do{i=e.input.charCodeAt(++e.position)}while(!Z(i)&&0!==i)}for(;0!==i;){for(ve(e),e.lineIndent=0,i=e.input.charCodeAt(e.position);(!l||e.lineIndentf&&(f=e.lineIndent),Z(i))p++;else{if(e.lineIndent0){for(o=i,a=0;o>0;o--)(i=ne(u=e.input.charCodeAt(++e.position)))>=0?a=(a<<4)+i:le(e,"expected hexadecimal character");e.result+=oe(a),e.position++}else le(e,"unknown escape sequence");n=r=e.position}else Z(u)?(he(e,n,r,!0),be(e,ge(e,!1,t)),n=r=e.position):e.position===e.lineStart&&ye(e)?le(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}le(e,"unexpected end of the stream within a double quoted scalar")}(e,h)?g=!0:!function(e){var t,n,r;if(42!==(r=e.input.charCodeAt(e.position)))return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!ee(r)&&!te(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&le(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),H.call(e.anchorMap,n)||le(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],ge(e,!0,-1),!0}(e)?function(e,t,n){var r,o,a,i,u,s,c,l,f=e.kind,p=e.result;if(ee(l=e.input.charCodeAt(e.position))||te(l)||35===l||38===l||42===l||33===l||124===l||62===l||39===l||34===l||37===l||64===l||96===l)return!1;if((63===l||45===l)&&(ee(r=e.input.charCodeAt(e.position+1))||n&&te(r)))return!1;for(e.kind="scalar",e.result="",o=a=e.position,i=!1;0!==l;){if(58===l){if(ee(r=e.input.charCodeAt(e.position+1))||n&&te(r))break}else if(35===l){if(ee(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&ye(e)||n&&te(l))break;if(Z(l)){if(u=e.line,s=e.lineStart,c=e.lineIndent,ge(e,!1,-1),e.lineIndent>=t){i=!0,l=e.input.charCodeAt(e.position);continue}e.position=a,e.line=u,e.lineStart=s,e.lineIndent=c;break}}i&&(he(e,o,a,!1),be(e,e.line-u),o=a=e.position,i=!1),X(l)||(a=e.position+1),l=e.input.charCodeAt(++e.position)}return he(e,o,a,!1),!!e.result||(e.kind=f,e.result=p,!1)}(e,h,1===n)&&(g=!0,null===e.tag&&(e.tag="?")):(g=!0,null===e.tag&&null===e.anchor||le(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===m&&(g=s&&we(e,d))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&le(e,'unacceptable node kind for ! tag; it should be "scalar", not "'+e.kind+'"'),c=0,l=e.implicitTypes.length;c"),null!==e.result&&p.kind!==e.kind&&le(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+p.kind+'", not "'+e.kind+'"'),p.resolve(e.result,e.tag)?(e.result=p.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):le(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||g}function Se(e){var t,n,r,o,a=e.position,i=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(o=e.input.charCodeAt(e.position))&&(ge(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==o));){for(i=!0,o=e.input.charCodeAt(++e.position),t=e.position;0!==o&&!ee(o);)o=e.input.charCodeAt(++e.position);for(r=[],(n=e.input.slice(t,e.position)).length<1&&le(e,"directive name must not be less than one character in length");0!==o;){for(;X(o);)o=e.input.charCodeAt(++e.position);if(35===o){do{o=e.input.charCodeAt(++e.position)}while(0!==o&&!Z(o));break}if(Z(o))break;for(t=e.position;0!==o&&!ee(o);)o=e.input.charCodeAt(++e.position);r.push(e.input.slice(t,e.position))}0!==o&&ve(e),H.call(pe,n)?pe[n](e,n,r):fe(e,'unknown document directive "'+n+'"')}ge(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,ge(e,!0,-1)):i&&le(e,"directives end mark is expected"),_e(e,e.lineIndent-1,4,!1,!0),ge(e,!0,-1),e.checkLineBreaks&&J.test(e.input.slice(a,e.position))&&fe(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&ye(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,ge(e,!0,-1)):e.position=55296&&r<=56319&&t+1=56320&&n<=57343?1024*(r-55296)+n-56320+65536:r}function qe(e){return/^\n* /.test(e)}function Ve(e,t,n,r,o,a,i,u){var s,c,l=0,f=null,p=!1,h=!1,d=-1!==r,m=-1,v=Be(c=Ue(e,0))&&c!==je&&!Le(c)&&45!==c&&63!==c&&58!==c&&44!==c&&91!==c&&93!==c&&123!==c&&125!==c&&35!==c&&38!==c&&42!==c&&33!==c&&124!==c&&61!==c&&62!==c&&39!==c&&34!==c&&37!==c&&64!==c&&96!==c&&function(e){return!Le(e)&&58!==e}(Ue(e,e.length-1));if(t||i)for(s=0;s=65536?s+=2:s++){if(!Be(l=Ue(e,s)))return 5;v=v&&ze(l,f,u),f=l}else{for(s=0;s=65536?s+=2:s++){if(10===(l=Ue(e,s)))p=!0,d&&(h=h||s-m-1>r&&" "!==e[m+1],m=s);else if(!Be(l))return 5;v=v&&ze(l,f,u),f=l}h=h||d&&s-m-1>r&&" "!==e[m+1]}return p||h?n>9&&qe(e)?5:i?2===a?5:2:h?4:3:!v||i||o(e)?2===a?5:2:1}function We(e,t,n,r,o){e.dump=function(){if(0===t.length)return 2===e.quotingType?'""':"''";if(!e.noCompatMode&&(-1!==Ie.indexOf(t)||Pe.test(t)))return 2===e.quotingType?'"'+t+'"':"'"+t+"'";var a=e.indent*Math.max(1,n),i=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-a),s=r||e.flowLevel>-1&&n>=e.flowLevel;switch(Ve(t,s,e.indent,i,(function(t){return function(e,t){var n,r;for(n=0,r=e.implicitTypes.length;n"+He(t,e.indent)+$e(Re(function(e,t){var n,r,o=/(\n+)([^\n]*)/g,a=(u=e.indexOf("\n"),u=-1!==u?u:e.length,o.lastIndex=u,Je(e.slice(0,u),t)),i="\n"===e[0]||" "===e[0];var u;for(;r=o.exec(e);){var s=r[1],c=r[2];n=" "===c[0],a+=s+(i||n||""===c?"":"\n")+Je(c,t),i=n}return a}(t,i),a));case 5:return'"'+function(e){for(var t,n="",r=0,o=0;o=65536?o+=2:o++)r=Ue(e,o),!(t=Te[r])&&Be(r)?(n+=e[o],r>=65536&&(n+=e[o+1])):n+=t||Ne(r);return n}(t)+'"';default:throw new u("impossible error: invalid scalar style")}}()}function He(e,t){var n=qe(e)?String(t):"",r="\n"===e[e.length-1];return n+(r&&("\n"===e[e.length-2]||"\n"===e)?"+":r?"":"-")+"\n"}function $e(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function Je(e,t){if(""===e||" "===e[0])return e;for(var n,r,o=/ [^ ]/g,a=0,i=0,u=0,s="";n=o.exec(e);)(u=n.index)-a>t&&(r=i>a?i:u,s+="\n"+e.slice(a,r),a=r+1),i=u;return s+="\n",e.length-a>t&&i>a?s+=e.slice(a,i)+"\n"+e.slice(i+1):s+=e.slice(a),s.slice(1)}function Ke(e,t,n,r){var o,a,i,u="",s=e.tag;for(o=0,a=n.length;o tag resolver accepts not "'+c+'" style');r=s.represent[c](t,c)}e.dump=r}return!0}return!1}function Ge(e,t,n,r,o,a,i){e.tag=null,e.dump=n,Ye(e,n,!1)||Ye(e,n,!0);var s,c=Oe.call(e.dump),l=r;r&&(r=e.flowLevel<0||e.flowLevel>t);var f,p,h="[object Object]"===c||"[object Array]"===c;if(h&&(p=-1!==(f=e.duplicates.indexOf(n))),(null!==e.tag&&"?"!==e.tag||p||2!==e.indent&&t>0)&&(o=!1),p&&e.usedDuplicates[f])e.dump="*ref_"+f;else{if(h&&p&&!e.usedDuplicates[f]&&(e.usedDuplicates[f]=!0),"[object Object]"===c)r&&0!==Object.keys(e.dump).length?(!function(e,t,n,r){var o,a,i,s,c,l,f="",p=e.tag,h=Object.keys(n);if(!0===e.sortKeys)h.sort();else if("function"==typeof e.sortKeys)h.sort(e.sortKeys);else if(e.sortKeys)throw new u("sortKeys must be a boolean or a function");for(o=0,a=h.length;o1024)&&(e.dump&&10===e.dump.charCodeAt(0)?l+="?":l+="? "),l+=e.dump,c&&(l+=De(e,t)),Ge(e,t+1,s,!0,c)&&(e.dump&&10===e.dump.charCodeAt(0)?l+=":":l+=": ",f+=l+=e.dump));e.tag=p,e.dump=f||"{}"}(e,t,e.dump,o),p&&(e.dump="&ref_"+f+e.dump)):(!function(e,t,n){var r,o,a,i,u,s="",c=e.tag,l=Object.keys(n);for(r=0,o=l.length;r1024&&(u+="? "),u+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Ge(e,t,i,!1,!1)&&(s+=u+=e.dump));e.tag=c,e.dump="{"+s+"}"}(e,t,e.dump),p&&(e.dump="&ref_"+f+" "+e.dump));else if("[object Array]"===c)r&&0!==e.dump.length?(e.noArrayIndent&&!i&&t>0?Ke(e,t-1,e.dump,o):Ke(e,t,e.dump,o),p&&(e.dump="&ref_"+f+e.dump)):(!function(e,t,n){var r,o,a,i="",u=e.tag;for(r=0,o=n.length;r",e.dump=s+" "+e.dump)}return!0}function Qe(e,t){var n,r,o=[],a=[];for(Ze(e,o,a),n=0,r=a.length;nS;S++)if((h||S in x)&&(b=E(y=x[S],S,w),e))if(t)A[S]=b;else if(b)switch(e){case 3:return!0;case 5:return y;case 6:return S;case 2:c(A,y)}else switch(e){case 4:return!1;case 7:c(A,y)}return f?-1:o||l?l:A}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},function(e,t,n){"use strict";var r=n(66),o=n(153),a=n(127),i=n(81),u=n(63).f,s=n(232),c=n(38),l=n(51),f="Array Iterator",p=i.set,h=i.getterFor(f);e.exports=s(Array,"Array",(function(e,t){p(this,{type:f,target:r(e),index:0,kind:t})}),(function(){var e=h(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");var d=a.Arguments=a.Array;if(o("keys"),o("values"),o("entries"),!c&&l&&"values"!==d.name)try{u(d,"name",{value:"values"})}catch(e){}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){var r=n(159);e.exports=r},function(e,t,n){e.exports=n(628)},function(e,t,n){"use strict";var r=n(957),o=n(958);function a(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=b,t.resolve=function(e,t){return b(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?b(e,!1,!0).resolveObject(t):t},t.format=function(e){o.isString(e)&&(e=b(e));return e instanceof a?e.format():a.prototype.format.call(e)},t.Url=a;var i=/^([a-z0-9.+-]+:)/i,u=/:[0-9]*$/,s=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),l=["'"].concat(c),f=["%","/","?",";","#"].concat(l),p=["/","?","#"],h=/^[+a-z0-9A-Z_-]{0,63}$/,d=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},v={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=n(959);function b(e,t,n){if(e&&o.isObject(e)&&e instanceof a)return e;var r=new a;return r.parse(e,t,n),r}a.prototype.parse=function(e,t,n){if(!o.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var a=e.indexOf("?"),u=-1!==a&&a127?N+="x":N+=P[M];if(!N.match(h)){var D=T.slice(0,O),L=T.slice(O+1),B=P.match(d);B&&(D.push(B[1]),L.unshift(B[2])),L.length&&(b="/"+L.join(".")+b),this.hostname=D.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),j||(this.hostname=r.toASCII(this.hostname));var F=this.port?":"+this.port:"",z=this.hostname||"";this.host=z+F,this.href+=this.host,j&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!m[E])for(O=0,I=l.length;O0)&&n.host.split("@"))&&(n.auth=j.shift(),n.host=n.hostname=j.shift());return n.search=e.search,n.query=e.query,o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!_.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var k=_.slice(-1)[0],A=(n.host||e.host||_.length>1)&&("."===k||".."===k)||""===k,O=0,C=_.length;C>=0;C--)"."===(k=_[C])?_.splice(C,1):".."===k?(_.splice(C,1),O++):O&&(_.splice(C,1),O--);if(!x&&!E)for(;O--;O)_.unshift("..");!x||""===_[0]||_[0]&&"/"===_[0].charAt(0)||_.unshift(""),A&&"/"!==_.join("/").substr(-1)&&_.push("");var j,T=""===_[0]||_[0]&&"/"===_[0].charAt(0);S&&(n.hostname=n.host=T?"":_.length?_.shift():"",(j=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=j.shift(),n.host=n.hostname=j.shift()));return(x=x||n.host&&_.length)&&!T&&_.unshift(""),_.length?n.pathname=_.join("/"):(n.pathname=null,n.path=null),o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},a.prototype.parseHost=function(){var e=this.host,t=u.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,n){"use strict";n.r(t),n.d(t,"SHOW_AUTH_POPUP",(function(){return h})),n.d(t,"AUTHORIZE",(function(){return d})),n.d(t,"LOGOUT",(function(){return m})),n.d(t,"PRE_AUTHORIZE_OAUTH2",(function(){return v})),n.d(t,"AUTHORIZE_OAUTH2",(function(){return g})),n.d(t,"VALIDATE",(function(){return y})),n.d(t,"CONFIGURE_AUTH",(function(){return b})),n.d(t,"RESTORE_AUTHORIZATION",(function(){return w})),n.d(t,"showDefinitions",(function(){return x})),n.d(t,"authorize",(function(){return E})),n.d(t,"authorizeWithPersistOption",(function(){return _})),n.d(t,"logout",(function(){return S})),n.d(t,"logoutWithPersistOption",(function(){return k})),n.d(t,"preAuthorizeImplicit",(function(){return A})),n.d(t,"authorizeOauth2",(function(){return O})),n.d(t,"authorizeOauth2WithPersistOption",(function(){return C})),n.d(t,"authorizePassword",(function(){return j})),n.d(t,"authorizeApplication",(function(){return T})),n.d(t,"authorizeAccessCodeWithFormParams",(function(){return I})),n.d(t,"authorizeAccessCodeWithBasicAuthentication",(function(){return P})),n.d(t,"authorizeRequest",(function(){return N})),n.d(t,"configureAuth",(function(){return M})),n.d(t,"restoreAuthorization",(function(){return R})),n.d(t,"persistAuthorizationIfNeeded",(function(){return D}));var r=n(19),o=n.n(r),a=n(30),i=n.n(a),u=n(24),s=n.n(u),c=n(92),l=n.n(c),f=n(27),p=n(7),h="show_popup",d="authorize",m="logout",v="pre_authorize_oauth2",g="authorize_oauth2",y="validate",b="configure_auth",w="restore_authorization";function x(e){return{type:h,payload:e}}function E(e){return{type:d,payload:e}}var _=function(e){return function(t){var n=t.authActions;n.authorize(e),n.persistAuthorizationIfNeeded()}};function S(e){return{type:m,payload:e}}var k=function(e){return function(t){var n=t.authActions;n.logout(e),n.persistAuthorizationIfNeeded()}},A=function(e){return function(t){var n=t.authActions,r=t.errActions,o=e.auth,a=e.token,u=e.isValid,s=o.schema,c=o.name,l=s.get("flow");delete f.a.swaggerUIRedirectOauth2,"accessCode"===l||u||r.newAuthErr({authId:c,source:"auth",level:"warning",message:"Authorization may be unsafe, passed state was changed in server Passed state wasn't returned from auth server"}),a.error?r.newAuthErr({authId:c,source:"auth",level:"error",message:i()(a)}):n.authorizeOauth2WithPersistOption({auth:o,token:a})}};function O(e){return{type:g,payload:e}}var C=function(e){return function(t){var n=t.authActions;n.authorizeOauth2(e),n.persistAuthorizationIfNeeded()}},j=function(e){return function(t){var n=t.authActions,r=e.schema,o=e.name,a=e.username,i=e.password,u=e.passwordType,c=e.clientId,l=e.clientSecret,f={grant_type:"password",scope:e.scopes.join(" "),username:a,password:i},h={};switch(u){case"request-body":!function(e,t,n){t&&s()(e,{client_id:t});n&&s()(e,{client_secret:n})}(f,c,l);break;case"basic":h.Authorization="Basic "+Object(p.a)(c+":"+l);break;default:console.warn("Warning: invalid passwordType ".concat(u," was passed, not including client id and secret"))}return n.authorizeRequest({body:Object(p.b)(f),url:r.get("tokenUrl"),name:o,headers:h,query:{},auth:e})}};var T=function(e){return function(t){var n=t.authActions,r=e.schema,o=e.scopes,a=e.name,i=e.clientId,u=e.clientSecret,s={Authorization:"Basic "+Object(p.a)(i+":"+u)},c={grant_type:"client_credentials",scope:o.join(" ")};return n.authorizeRequest({body:Object(p.b)(c),name:a,url:r.get("tokenUrl"),auth:e,headers:s})}},I=function(e){var t=e.auth,n=e.redirectUrl;return function(e){var r=e.authActions,o=t.schema,a=t.name,i=t.clientId,u=t.clientSecret,s=t.codeVerifier,c={grant_type:"authorization_code",code:t.code,client_id:i,client_secret:u,redirect_uri:n,code_verifier:s};return r.authorizeRequest({body:Object(p.b)(c),name:a,url:o.get("tokenUrl"),auth:t})}},P=function(e){var t=e.auth,n=e.redirectUrl;return function(e){var r=e.authActions,o=t.schema,a=t.name,i=t.clientId,u=t.clientSecret,s=t.codeVerifier,c={Authorization:"Basic "+Object(p.a)(i+":"+u)},l={grant_type:"authorization_code",code:t.code,client_id:i,redirect_uri:n,code_verifier:s};return r.authorizeRequest({body:Object(p.b)(l),name:a,url:o.get("tokenUrl"),auth:t,headers:c})}},N=function(e){return function(t){var n,r=t.fn,a=t.getConfigs,u=t.authActions,c=t.errActions,f=t.oas3Selectors,p=t.specSelectors,h=t.authSelectors,d=e.body,m=e.query,v=void 0===m?{}:m,g=e.headers,y=void 0===g?{}:g,b=e.name,w=e.url,x=e.auth,E=(h.getConfigs()||{}).additionalQueryStringParams;if(p.isOAS3()){var _=f.serverEffectiveValue(f.selectedServer());n=l()(w,_,!0)}else n=l()(w,p.url(),!0);"object"===o()(E)&&(n.query=s()({},n.query,E));var S=n.toString(),k=s()({Accept:"application/json, text/plain, */*","Content-Type":"application/x-www-form-urlencoded","X-Requested-With":"XMLHttpRequest"},y);r.fetch({url:S,method:"post",headers:k,query:v,body:d,requestInterceptor:a().requestInterceptor,responseInterceptor:a().responseInterceptor}).then((function(e){var t=JSON.parse(e.data),n=t&&(t.error||""),r=t&&(t.parseError||"");e.ok?n||r?c.newAuthErr({authId:b,level:"error",source:"auth",message:i()(t)}):u.authorizeOauth2WithPersistOption({auth:x,token:t}):c.newAuthErr({authId:b,level:"error",source:"auth",message:e.statusText})})).catch((function(e){var t=new Error(e).message;if(e.response&&e.response.data){var n=e.response.data;try{var r="string"==typeof n?JSON.parse(n):n;r.error&&(t+=", error: ".concat(r.error)),r.error_description&&(t+=", description: ".concat(r.error_description))}catch(e){}}c.newAuthErr({authId:b,level:"error",source:"auth",message:t})}))}};function M(e){return{type:b,payload:e}}function R(e){return{type:w,payload:e}}var D=function(){return function(e){var t=e.authSelectors;if((0,e.getConfigs)().persistAuthorization){var n=t.authorized();localStorage.setItem("authorized",i()(n.toJS()))}}}},function(e,t,n){var r=n(931);e.exports=function(e){for(var t=1;t0&&"/"!==t[0]}));function Se(e,t,n){var r;t=t||[];var o=xe.apply(void 0,s()(r=[e]).call(r,i()(t))).get("parameters",Object(I.List)());return E()(o).call(o,(function(e,t){var r=n&&"body"===t.get("in")?t.get("value_xml"):t.get("value");return e.set(Object(T.A)(t,{allowHashes:!1}),r)}),Object(I.fromJS)({}))}function ke(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(I.List.isList(e))return A()(e).call(e,(function(e){return I.Map.isMap(e)&&e.get("in")===t}))}function Ae(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(I.List.isList(e))return A()(e).call(e,(function(e){return I.Map.isMap(e)&&e.get("type")===t}))}function Oe(e,t){var n,r;t=t||[];var o=q(e).getIn(s()(n=["paths"]).call(n,i()(t)),Object(I.fromJS)({})),a=e.getIn(s()(r=["meta","paths"]).call(r,i()(t)),Object(I.fromJS)({})),u=Ce(e,t),c=o.get("parameters")||new I.List,l=a.get("consumes_value")?a.get("consumes_value"):Ae(c,"file")?"multipart/form-data":Ae(c,"formData")?"application/x-www-form-urlencoded":void 0;return Object(I.fromJS)({requestContentType:l,responseContentType:u})}function Ce(e,t){var n,r;t=t||[];var o=q(e).getIn(s()(n=["paths"]).call(n,i()(t)),null);if(null!==o){var a=e.getIn(s()(r=["meta","paths"]).call(r,i()(t),["produces_value"]),null),u=o.getIn(["produces",0],null);return a||u||"application/json"}}function je(e,t){var n;t=t||[];var r=q(e),a=r.getIn(s()(n=["paths"]).call(n,i()(t)),null);if(null!==a){var u=t,c=o()(u,1)[0],l=a.get("produces",null),f=r.getIn(["paths",c,"produces"],null),p=r.getIn(["produces"],null);return l||f||p}}function Te(e,t){var n;t=t||[];var r=q(e),a=r.getIn(s()(n=["paths"]).call(n,i()(t)),null);if(null!==a){var u=t,c=o()(u,1)[0],l=a.get("consumes",null),f=r.getIn(["paths",c,"consumes"],null),p=r.getIn(["consumes"],null);return l||f||p}}var Ie=function(e,t,n){var r=e.get("url").match(/^([a-z][a-z0-9+\-.]*):/),o=C()(r)?r[1]:null;return e.getIn(["scheme",t,n])||e.getIn(["scheme","_defaultScheme"])||o||""},Pe=function(e,t,n){var r;return d()(r=["http","https"]).call(r,Ie(e,t,n))>-1},Ne=function(e,t){var n;t=t||[];var r=e.getIn(s()(n=["meta","paths"]).call(n,i()(t),["parameters"]),Object(I.fromJS)([])),o=!0;return p()(r).call(r,(function(e){var t=e.get("errors");t&&t.count()&&(o=!1)})),o},Me=function(e,t){var n,r,o={requestBody:!1,requestContentType:{}},a=e.getIn(s()(n=["resolvedSubtrees","paths"]).call(n,i()(t),["requestBody"]),Object(I.fromJS)([]));return a.size<1||(a.getIn(["required"])&&(o.requestBody=a.getIn(["required"])),p()(r=a.getIn(["content"]).entrySeq()).call(r,(function(e){var t=e[0];if(e[1].getIn(["schema","required"])){var n=e[1].getIn(["schema","required"]).toJS();o.requestContentType[t]=n}}))),o},Re=function(e,t,n,r){var o;if((n||r)&&n===r)return!0;var a=e.getIn(s()(o=["resolvedSubtrees","paths"]).call(o,i()(t),["requestBody","content"]),Object(I.fromJS)([]));if(a.size<2||!n||!r)return!1;var u=a.getIn([n,"schema","properties"],Object(I.fromJS)([])),c=a.getIn([r,"schema","properties"],Object(I.fromJS)([]));return!!u.equals(c)};function De(e){return I.Map.isMap(e)?e:new I.Map}},function(e,t,n){"use strict";(function(t){var r=n(879),o=n(880),a=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,i=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,u=/^[a-zA-Z]:/,s=new RegExp("^[\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF]+");function c(e){return(e||"").toString().replace(s,"")}var l=[["#","hash"],["?","query"],function(e,t){return h(t.protocol)?e.replace(/\\/g,"/"):e},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d+)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],f={hash:1,query:1};function p(e){var n,r=("undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{}).location||{},o={},i=typeof(e=e||r);if("blob:"===e.protocol)o=new m(unescape(e.pathname),{});else if("string"===i)for(n in o=new m(e,{}),f)delete o[n];else if("object"===i){for(n in e)n in f||(o[n]=e[n]);void 0===o.slashes&&(o.slashes=a.test(e.href))}return o}function h(e){return"file:"===e||"ftp:"===e||"http:"===e||"https:"===e||"ws:"===e||"wss:"===e}function d(e,t){e=c(e),t=t||{};var n,r=i.exec(e),o=r[1]?r[1].toLowerCase():"",a=!!r[2],u=!!r[3],s=0;return a?u?(n=r[2]+r[3]+r[4],s=r[2].length+r[3].length):(n=r[2]+r[4],s=r[2].length):u?(n=r[3]+r[4],s=r[3].length):n=r[4],"file:"===o?s>=2&&(n=n.slice(2)):h(o)?n=r[4]:o?a&&(n=n.slice(2)):s>=2&&h(t.protocol)&&(n=r[4]),{protocol:o,slashes:a||h(o),slashesCount:s,rest:n}}function m(e,t,n){if(e=c(e),!(this instanceof m))return new m(e,t,n);var a,i,s,f,v,g,y=l.slice(),b=typeof t,w=this,x=0;for("object"!==b&&"string"!==b&&(n=t,t=null),n&&"function"!=typeof n&&(n=o.parse),a=!(i=d(e||"",t=p(t))).protocol&&!i.slashes,w.slashes=i.slashes||a&&t.slashes,w.protocol=i.protocol||t.protocol||"",e=i.rest,("file:"===i.protocol&&(2!==i.slashesCount||u.test(e))||!i.slashes&&(i.protocol||i.slashesCount<2||!h(w.protocol)))&&(y[3]=[/(.*)/,"pathname"]);x=4?[t[0],t[1],t[2],t[3],"".concat(t[0],".").concat(t[1]),"".concat(t[0],".").concat(t[2]),"".concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[0]),"".concat(t[1],".").concat(t[2]),"".concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[1]),"".concat(t[2],".").concat(t[3]),"".concat(t[3],".").concat(t[0]),"".concat(t[3],".").concat(t[1]),"".concat(t[3],".").concat(t[2]),"".concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[1],".").concat(t[3]),"".concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[2],".").concat(t[3]),"".concat(t[0],".").concat(t[3],".").concat(t[1]),"".concat(t[0],".").concat(t[3],".").concat(t[2]),"".concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[1],".").concat(t[2],".").concat(t[3]),"".concat(t[1],".").concat(t[3],".").concat(t[0]),"".concat(t[1],".").concat(t[3],".").concat(t[2]),"".concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[0],".").concat(t[3]),"".concat(t[2],".").concat(t[1],".").concat(t[0]),"".concat(t[2],".").concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[3],".").concat(t[0]),"".concat(t[2],".").concat(t[3],".").concat(t[1]),"".concat(t[3],".").concat(t[0],".").concat(t[1]),"".concat(t[3],".").concat(t[0],".").concat(t[2]),"".concat(t[3],".").concat(t[1],".").concat(t[0]),"".concat(t[3],".").concat(t[1],".").concat(t[2]),"".concat(t[3],".").concat(t[2],".").concat(t[0]),"".concat(t[3],".").concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[1],".").concat(t[2],".").concat(t[3]),"".concat(t[0],".").concat(t[1],".").concat(t[3],".").concat(t[2]),"".concat(t[0],".").concat(t[2],".").concat(t[1],".").concat(t[3]),"".concat(t[0],".").concat(t[2],".").concat(t[3],".").concat(t[1]),"".concat(t[0],".").concat(t[3],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[3],".").concat(t[2],".").concat(t[1]),"".concat(t[1],".").concat(t[0],".").concat(t[2],".").concat(t[3]),"".concat(t[1],".").concat(t[0],".").concat(t[3],".").concat(t[2]),"".concat(t[1],".").concat(t[2],".").concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[2],".").concat(t[3],".").concat(t[0]),"".concat(t[1],".").concat(t[3],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[3],".").concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[0],".").concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[0],".").concat(t[3],".").concat(t[1]),"".concat(t[2],".").concat(t[1],".").concat(t[0],".").concat(t[3]),"".concat(t[2],".").concat(t[1],".").concat(t[3],".").concat(t[0]),"".concat(t[2],".").concat(t[3],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[3],".").concat(t[1],".").concat(t[0]),"".concat(t[3],".").concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[3],".").concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[3],".").concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[3],".").concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[3],".").concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[3],".").concat(t[2],".").concat(t[1],".").concat(t[0])]:void 0),g[r]}function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=e.filter((function(e){return"token"!==e})),o=y(r);return o.reduce((function(e,t){return p()({},e,n[t])}),t)}function w(e){return e.join(" ")}function x(e){var t=e.node,n=e.stylesheet,r=e.style,o=void 0===r?{}:r,a=e.useInlineStyles,i=e.key,u=t.properties,s=t.type,c=t.tagName,l=t.value;if("text"===s)return l;if(c){var f,h=function(e,t){var n=0;return function(r){return n+=1,r.map((function(r,o){return x({node:r,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(n,"-").concat(o)})}))}}(n,a);if(a){var m=Object.keys(n).reduce((function(e,t){return t.split(".").forEach((function(t){e.includes(t)||e.push(t)})),e}),[]),g=u.className&&u.className.includes("token")?["token"]:[],y=u.className&&g.concat(u.className.filter((function(e){return!m.includes(e)})));f=p()({},u,{className:w(y)||void 0,style:b(u.className,Object.assign({},u.style,o),n)})}else f=p()({},u,{className:w(u.className)});var E=h(t.children);return d.a.createElement(c,v()({key:i},f),E)}}var E=/\n/g;function _(e){var t=e.codeString,n=e.codeStyle,r=e.containerStyle,o=void 0===r?{float:"left",paddingRight:"10px"}:r,a=e.numberStyle,i=void 0===a?{}:a,u=e.startingLineNumber;return d.a.createElement("code",{style:Object.assign({},n,o)},function(e){var t=e.lines,n=e.startingLineNumber,r=e.style;return t.map((function(e,t){var o=t+n;return d.a.createElement("span",{key:"line-".concat(t),className:"react-syntax-highlighter-line-number",style:"function"==typeof r?r(o):r},"".concat(o,"\n"))}))}({lines:t.replace(/\n$/,"").split("\n"),style:i,startingLineNumber:u}))}function S(e,t){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:t},children:[{type:"text",value:e}]}}function k(e,t,n){var r,o={display:"inline-block",minWidth:(r=n,"".concat(r.toString().length,".25em")),paddingRight:"1em",textAlign:"right",userSelect:"none"},a="function"==typeof e?e(t):e;return p()({},o,a)}function A(e){var t=e.children,n=e.lineNumber,r=e.lineNumberStyle,o=e.largestLineNumber,a=e.showInlineLineNumbers,i=e.lineProps,u=void 0===i?{}:i,s=e.className,c=void 0===s?[]:s,l=e.showLineNumbers,f=e.wrapLongLines,h="function"==typeof u?u(n):u;if(h.className=c,n&&a){var d=k(r,n,o);t.unshift(S(n,d))}return f&l&&(h.style=p()({},h.style,{display:"flex"})),{type:"element",tagName:"span",properties:h,children:t}}function O(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=0;r2&&void 0!==arguments[2]?arguments[2]:[];return A({children:e,lineNumber:t,lineNumberStyle:u,largestLineNumber:i,showInlineLineNumbers:o,lineProps:n,className:a,showLineNumbers:r,wrapLongLines:s})}function m(e,t){if(r&&t&&o){var n=k(u,t,i);e.unshift(S(t,n))}return e}function v(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return t||r.length>0?d(e,n,r):m(e,n)}for(var g=function(){var e=l[h],t=e.children[0].value;if(t.match(E)){var n=t.split("\n");n.forEach((function(t,o){var i=r&&f.length+a,u={type:"text",value:"".concat(t,"\n")};if(0===o){var s=v(l.slice(p+1,h).concat(A({children:[u],className:e.properties.className})),i);f.push(s)}else if(o===n.length-1){if(l[h+1]&&l[h+1].children&&l[h+1].children[0]){var c=A({children:[{type:"text",value:"".concat(t)}],className:e.properties.className});l.splice(h+1,0,c)}else{var d=v([u],i,e.properties.className);f.push(d)}}else{var m=v([u],i,e.properties.className);f.push(m)}})),p=h}h++};h .hljs-title":{color:"#88C0D0"},"hljs-keyword":{color:"#81A1C1"},"hljs-literal":{color:"#81A1C1"},"hljs-symbol":{color:"#81A1C1"},"hljs-number":{color:"#B48EAD"},"hljs-regexp":{color:"#EBCB8B"},"hljs-string":{color:"#A3BE8C"},"hljs-title":{color:"#8FBCBB"},"hljs-params":{color:"#D8DEE9"},"hljs-bullet":{color:"#81A1C1"},"hljs-code":{color:"#8FBCBB"},"hljs-emphasis":{fontStyle:"italic"},"hljs-formula":{color:"#8FBCBB"},"hljs-strong":{fontWeight:"bold"},"hljs-link:hover":{textDecoration:"underline"},"hljs-quote":{color:"#4C566A"},"hljs-comment":{color:"#4C566A"},"hljs-doctag":{color:"#8FBCBB"},"hljs-meta":{color:"#5E81AC"},"hljs-meta-keyword":{color:"#5E81AC"},"hljs-meta-string":{color:"#A3BE8C"},"hljs-attr":{color:"#8FBCBB"},"hljs-attribute":{color:"#D8DEE9"},"hljs-builtin-name":{color:"#81A1C1"},"hljs-name":{color:"#81A1C1"},"hljs-section":{color:"#88C0D0"},"hljs-tag":{color:"#81A1C1"},"hljs-variable":{color:"#D8DEE9"},"hljs-template-variable":{color:"#D8DEE9"},"hljs-template-tag":{color:"#5E81AC"},"abnf .hljs-attribute":{color:"#88C0D0"},"abnf .hljs-symbol":{color:"#EBCB8B"},"apache .hljs-attribute":{color:"#88C0D0"},"apache .hljs-section":{color:"#81A1C1"},"arduino .hljs-built_in":{color:"#88C0D0"},"aspectj .hljs-meta":{color:"#D08770"},"aspectj > .hljs-title":{color:"#88C0D0"},"bnf .hljs-attribute":{color:"#8FBCBB"},"clojure .hljs-name":{color:"#88C0D0"},"clojure .hljs-symbol":{color:"#EBCB8B"},"coq .hljs-built_in":{color:"#88C0D0"},"cpp .hljs-meta-string":{color:"#8FBCBB"},"css .hljs-built_in":{color:"#88C0D0"},"css .hljs-keyword":{color:"#D08770"},"diff .hljs-meta":{color:"#8FBCBB"},"ebnf .hljs-attribute":{color:"#8FBCBB"},"glsl .hljs-built_in":{color:"#88C0D0"},"groovy .hljs-meta:not(:first-child)":{color:"#D08770"},"haxe .hljs-meta":{color:"#D08770"},"java .hljs-meta":{color:"#D08770"},"ldif .hljs-attribute":{color:"#8FBCBB"},"lisp .hljs-name":{color:"#88C0D0"},"lua .hljs-built_in":{color:"#88C0D0"},"moonscript .hljs-built_in":{color:"#88C0D0"},"nginx .hljs-attribute":{color:"#88C0D0"},"nginx .hljs-section":{color:"#5E81AC"},"pf .hljs-built_in":{color:"#88C0D0"},"processing .hljs-built_in":{color:"#88C0D0"},"scss .hljs-keyword":{color:"#81A1C1"},"stylus .hljs-keyword":{color:"#81A1C1"},"swift .hljs-meta":{color:"#D08770"},"vim .hljs-built_in":{color:"#88C0D0",fontStyle:"italic"},"yaml .hljs-meta":{color:"#D08770"}},obsidian:{hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:"#282b2e",color:"#e0e2e4"},"hljs-keyword":{color:"#93c763",fontWeight:"bold"},"hljs-selector-tag":{color:"#93c763",fontWeight:"bold"},"hljs-literal":{color:"#93c763",fontWeight:"bold"},"hljs-selector-id":{color:"#93c763"},"hljs-number":{color:"#ffcd22"},"hljs-attribute":{color:"#668bb0"},"hljs-code":{color:"white"},"hljs-class .hljs-title":{color:"white"},"hljs-section":{color:"white",fontWeight:"bold"},"hljs-regexp":{color:"#d39745"},"hljs-link":{color:"#d39745"},"hljs-meta":{color:"#557182"},"hljs-tag":{color:"#8cbbad"},"hljs-name":{color:"#8cbbad",fontWeight:"bold"},"hljs-bullet":{color:"#8cbbad"},"hljs-subst":{color:"#8cbbad"},"hljs-emphasis":{color:"#8cbbad"},"hljs-type":{color:"#8cbbad",fontWeight:"bold"},"hljs-built_in":{color:"#8cbbad"},"hljs-selector-attr":{color:"#8cbbad"},"hljs-selector-pseudo":{color:"#8cbbad"},"hljs-addition":{color:"#8cbbad"},"hljs-variable":{color:"#8cbbad"},"hljs-template-tag":{color:"#8cbbad"},"hljs-template-variable":{color:"#8cbbad"},"hljs-string":{color:"#ec7600"},"hljs-symbol":{color:"#ec7600"},"hljs-comment":{color:"#818e96"},"hljs-quote":{color:"#818e96"},"hljs-deletion":{color:"#818e96"},"hljs-selector-class":{color:"#A082BD"},"hljs-doctag":{fontWeight:"bold"},"hljs-title":{fontWeight:"bold"},"hljs-strong":{fontWeight:"bold"}},"tomorrow-night":{"hljs-comment":{color:"#969896"},"hljs-quote":{color:"#969896"},"hljs-variable":{color:"#cc6666"},"hljs-template-variable":{color:"#cc6666"},"hljs-tag":{color:"#cc6666"},"hljs-name":{color:"#cc6666"},"hljs-selector-id":{color:"#cc6666"},"hljs-selector-class":{color:"#cc6666"},"hljs-regexp":{color:"#cc6666"},"hljs-deletion":{color:"#cc6666"},"hljs-number":{color:"#de935f"},"hljs-built_in":{color:"#de935f"},"hljs-builtin-name":{color:"#de935f"},"hljs-literal":{color:"#de935f"},"hljs-type":{color:"#de935f"},"hljs-params":{color:"#de935f"},"hljs-meta":{color:"#de935f"},"hljs-link":{color:"#de935f"},"hljs-attribute":{color:"#f0c674"},"hljs-string":{color:"#b5bd68"},"hljs-symbol":{color:"#b5bd68"},"hljs-bullet":{color:"#b5bd68"},"hljs-addition":{color:"#b5bd68"},"hljs-title":{color:"#81a2be"},"hljs-section":{color:"#81a2be"},"hljs-keyword":{color:"#b294bb"},"hljs-selector-tag":{color:"#b294bb"},hljs:{display:"block",overflowX:"auto",background:"#1d1f21",color:"#c5c8c6",padding:"0.5em"},"hljs-emphasis":{fontStyle:"italic"},"hljs-strong":{fontWeight:"bold"}}},X=o()(Z),ee=function(e){return i()(X).call(X,e)?Z[e]:(console.warn("Request style '".concat(e,"' is not available, returning default instead")),Q)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.File=t.Blob=t.FormData=void 0;const r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:window;t.FormData=r.FormData,t.Blob=r.Blob,t.File=r.File},function(e,t,n){var r=n(147),o=Function.prototype,a=o.apply,i=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?i.bind(a):function(){return i.apply(a,arguments)})},function(e,t,n){var r=n(51),o=n(37),a=n(175),i=n(98),u=n(66),s=n(177),c=n(47),l=n(334),f=Object.getOwnPropertyDescriptor;t.f=r?f:function(e,t){if(e=u(e),t=s(t),l)try{return f(e,t)}catch(e){}if(c(e,t))return i(!o(a.f,e,t),e[t])}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(57);e.exports=r("navigator","userAgent")||""},function(e,t){},function(e,t,n){var r,o=n(33),a=n(181),i=n(228),u=n(152),s=n(340),c=n(223),l=n(182),f=l("IE_PROTO"),p=function(){},h=function(e){return"