From 666dbbdbc5ea92b02250ce4fb2e547804d603a40 Mon Sep 17 00:00:00 2001 From: hard-nett Date: Tue, 19 Mar 2024 12:01:57 -0400 Subject: [PATCH 1/5] add release scripts --- .../create_all_binaries_json.sh | 16 +++ .../create_binaries_json.py | 118 ++++++++++++++++++ .../create_binaries_json/requirements.txt | 5 + .../create_upgrade_guide/UPGRADE_TEMPLATE.md | 116 +++++++++++++++++ .../create_upgrade_guide.py | 82 ++++++++++++ 5 files changed, 337 insertions(+) create mode 100644 scripts/release/create_binaries_json/create_all_binaries_json.sh create mode 100644 scripts/release/create_binaries_json/create_binaries_json.py create mode 100644 scripts/release/create_binaries_json/requirements.txt create mode 100644 scripts/release/create_upgrade_guide/UPGRADE_TEMPLATE.md create mode 100644 scripts/release/create_upgrade_guide/create_upgrade_guide.py diff --git a/scripts/release/create_binaries_json/create_all_binaries_json.sh b/scripts/release/create_binaries_json/create_all_binaries_json.sh new file mode 100644 index 00000000..dfdd1da9 --- /dev/null +++ b/scripts/release/create_binaries_json/create_all_binaries_json.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +tags=( + "v4.2.0" +) + +echo "## Upgrade binaries" + +for tag in ${tags[@]}; do + echo + echo "### ${tag}" + echo + echo '```json' + python create_binaries_json.py --tag $tag + echo '```' +done \ No newline at end of file diff --git a/scripts/release/create_binaries_json/create_binaries_json.py b/scripts/release/create_binaries_json/create_binaries_json.py new file mode 100644 index 00000000..84d9d5f7 --- /dev/null +++ b/scripts/release/create_binaries_json/create_binaries_json.py @@ -0,0 +1,118 @@ +""" +Usage: +This script generates a JSON object containing binary download URLs and their corresponding checksums +for a given release tag of terpnetwork/terp-core or from a provided checksum URL. +The binary JSON is compatible with cosmovisor and with the chain registry. + +You can run this script with the following commands: + +❯ python create_binaries_json.py --checksums_url https://github.com/terpnetwork/terp-core/releases/download/v4.2.0/sha256sum.txt + +Output: +{ + "binaries": { + "linux/arm64": "https://github.com/terpnetwork/terp-core/releases/download/16.1.1/terpd-4.2.0-linux-arm64?checksum=", + "darwin/arm64": "https://github.com/terpnetwork/terp-core/releases/download/16.1.1/terpd-4.2.0-darwin-arm64?checksum=", + "darwin/amd64": "https://github.com/terpnetwork/terp-core/releases/download/16.1.1/terpd-4.2.0-darwin-amd64?checksum=, + "linux/amd64": "https://github.com/terpnetwork/terp-core/releases/download/16.1.1/terpd-4.2.0-linux-amd64?checksum=>" + } +} + +Expects a checksum in the form: + + terpd---[.tar.gz] + terpd---[.tar.gz] +... + +Example: + +f838618633c1d42f593dc33d26b25842f5900961e987fc08570bb81a062e311d terpd-4.2.0-linux-amd64 +fa6699a763487fe6699c8720a2a9be4e26a4f45aafaec87aa0c3aced4cbdd155 terpd-4.2.0-linux-amd64.tar.gz + +(From: https://github.com/terpnetwork/terp-core/releases/download/v16.1.1/sha256sum.txt) + +❯ python create_binaries_json.py --tag v16.1.1 + +Output: +{ + "binaries": { + "linux/arm64": "https://github.com/terpnetwork/terp-core/releases/download/16.1.1/terpd-4.2.0-linux-arm64?checksum=", + "darwin/arm64": "https://github.com/terpnetwork/terp-core/releases/download/16.1.1/terpd-4.2.0-darwin-arm64?checksum=", + "darwin/amd64": "https://github.com/terpnetwork/terp-core/releases/download/16.1.1/terpd-4.2.0-darwin-amd64?checksum=", + "linux/amd64": "https://github.com/terpnetwork/terp-core/releases/download/16.1.1/terpd-4.2.0-linux-amd64?checksum=>" + } +} + +Expect a checksum to be present at: +https://github.com/terpnetwork/terp-core/releases/download//sha256sum.txt +""" + +import requests +import json +import argparse +import re +import sys + +def validate_tag(tag): + pattern = '^v[0-9]+.[0-9]+.[0-9]+$' + return bool(re.match(pattern, tag)) + +def download_checksums(checksums_url): + + response = requests.get(checksums_url) + if response.status_code != 200: + raise ValueError(f"Failed to fetch sha256sum.txt. Status code: {response.status_code}") + return response.text + +def checksums_to_binaries_json(checksums): + + binaries = {} + + # Parse the content and create the binaries dictionary + for line in checksums.splitlines(): + checksum, filename = line.split(' ') + + # exclude tar.gz files + if not filename.endswith('.tar.gz') and filename.startswith('terpd'): + try: + _, tag, platform, arch = filename.split('-') + except ValueError: + print(f"Error: Expected binary name in the form: terpd-X.Y.Z-platform-architecture, but got {filename}") + sys.exit(1) + _, tag, platform, arch, = filename.split('-') + # exclude universal binaries and windows binaries + if arch == 'all' or platform == 'windows': + continue + binaries[f"{platform}/{arch}"] = f"https://github.com/terpnetwork/terp-core/releases/download/v{tag}/{filename}?checksum=sha256:{checksum}" + + binaries_json = { + "binaries": binaries + } + + return json.dumps(binaries_json, indent=2) + +def main(): + + parser = argparse.ArgumentParser(description="Create binaries json") + parser.add_argument('--tag', metavar='tag', type=str, help='the tag to use (e.g v16.1.1)') + parser.add_argument('--checksums_url', metavar='checksums_url', type=str, help='URL to the checksum') + + args = parser.parse_args() + + # Validate the tag format + if args.tag and not validate_tag(args.tag): + print("Error: The provided tag does not follow the 'vX.Y.Z' format.") + sys.exit(1) + + # Ensure that only one of --tag or --checksums_url is specified + if not bool(args.tag) ^ bool(args.checksums_url): + parser.error("Only one of tag or --checksums_url must be specified") + sys.exit(1) + + checksums_url = args.checksums_url if args.checksums_url else f"https://github.com/terpnetwork/terp-core/releases/download/{args.tag}/sha256sum.txt" + checksums = download_checksums(checksums_url) + binaries_json = checksums_to_binaries_json(checksums) + print(binaries_json) + +if __name__ == "__main__": + main() \ No newline at end of file diff --git a/scripts/release/create_binaries_json/requirements.txt b/scripts/release/create_binaries_json/requirements.txt new file mode 100644 index 00000000..74db4b4f --- /dev/null +++ b/scripts/release/create_binaries_json/requirements.txt @@ -0,0 +1,5 @@ +certifi==2023.7.22 +charset-normalizer==3.2.0 +idna==3.4 +requests==2.31.0 +urllib3==2.0.7 \ No newline at end of file diff --git a/scripts/release/create_upgrade_guide/UPGRADE_TEMPLATE.md b/scripts/release/create_upgrade_guide/UPGRADE_TEMPLATE.md new file mode 100644 index 00000000..97147d2c --- /dev/null +++ b/scripts/release/create_upgrade_guide/UPGRADE_TEMPLATE.md @@ -0,0 +1,116 @@ +# Mainnet Upgrade Guide: From Version $CURRENT_VERSION to $UPGRADE_VERSION + +## Overview + +- **$UPGRADE_VERSION Proposal**: [Proposal Page](https://www.ping.pub/terp/gov/$PROPOSAL_ID) +- **$UPGRADE_VERSION Upgrade Block Height**: $UPGRADE_BLOCK +- **$UPGRADE_VERSION Upgrade Countdown**: [Block Countdown](https://testnet.itrocket.net/terp/block/$UPGRADE_BLOCK) + +## Hardware Requirements + +### Memory Specifications + +Although this upgrade is not expected to be resource-intensive, a minimum of 64GB of RAM is advised. If you cannot meet this requirement, setting up a swap space is recommended. + +#### Configuring Swap Space + +*Execute these commands to set up a 32GB swap space*: + +```sh +sudo swapoff -a +sudo fallocate -l 32G /swapfile +sudo chmod 600 /swapfile +sudo mkswap /swapfile +sudo swapon /swapfile +``` + +*To ensure the swap space persists after reboot*: + +```sh +sudo cp /etc/fstab /etc/fstab.bak +echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab +``` + +For an in-depth guide on swap configuration, please refer to [this tutorial](https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-20-04). + +--- + +## Cosmovisor Configuration + +### Initial Setup (For First-Time Users) + +If you have not previously configured Cosmovisor, follow this section; otherwise, proceed to the next section. + +Cosmovisor is strongly recommended for validators to minimize downtime during upgrades. It automates the binary replacement process according to on-chain `SoftwareUpgrade` proposals. + +Documentation for Cosmovisor can be found [here](https://docs.cosmos.network/main/tooling/cosmovisor). + +#### Installation Steps + +*Run these commands to install and configure Cosmovisor*: + +```sh +go install github.com/cosmos/cosmos-sdk/cosmovisor/cmd/cosmovisor@v1.0.0 +mkdir -p ~/.terp +mkdir -p ~/.terp/cosmovisor +mkdir -p ~/.terp/cosmovisor/genesis +mkdir -p ~/.terp/cosmovisor/genesis/bin +mkdir -p ~/.terp/cosmovisor/upgrades +cp $GOPATH/bin/terpd ~/.terp/cosmovisor/genesis/bin +mkdir -p ~/.terp/cosmovisor/upgrades/$CURRENT_VERSION/bin +cp $GOPATH/bin/terpd ~/.terp/cosmovisor/upgrades/$CURRENT_VERSION/bin +``` + +*Add these lines to your profile to set up environment variables*: + +```sh +echo "# Cosmovisor Setup" >> ~/.profile +echo "export DAEMON_NAME=terpd" >> ~/.profile +echo "export DAEMON_HOME=$HOME/.terp" >> ~/.profile +echo "export DAEMON_ALLOW_DOWNLOAD_BINARIES=false" >> ~/.profile +echo "export DAEMON_LOG_BUFFER_SIZE=512" >> ~/.profile +echo "export DAEMON_RESTART_AFTER_UPGRADE=true" >> ~/.profile +echo "export UNSAFE_SKIP_BACKUP=true" >> ~/.profile +source ~/.profile +``` + +### Upgrading to $UPGRADE_VERSION + +*To prepare for the upgrade, execute these commands*: + +```sh +mkdir -p ~/.terp/cosmovisor/upgrades/$UPGRADE_VERSION/bin +cd $HOME/terp-core +git pull +git checkout $UPGRADE_TAG +make build +cp build/terpd ~/.terp/cosmovisor/upgrades/$UPGRADE_VERSION/bin +``` + +At the designated block height, Cosmovisor will automatically upgrade to version $UPGRADE_VERSION. + +--- + +## Manual Upgrade Procedure + +Follow these steps if you opt for a manual upgrade: + +1. Monitor Terp Network until it reaches the specified upgrade block height: $UPGRADE_BLOCK. +2. Observe for a panic message followed by continuous peer logs, then halt the daemon. +3. Perform these steps: + +```sh +cd $HOME/terp-core +git pull +git checkout $UPGRADE_TAG +make install +``` + +4. Restart the Terp-Core daemon and observe the upgrade. + +--- + +## Additional Resources + +- Terp Network Documentation: [Website](https://docs.terp.network) +- Community Support: [Discord](https://discord.gg/pAxjcFnAFH) \ No newline at end of file diff --git a/scripts/release/create_upgrade_guide/create_upgrade_guide.py b/scripts/release/create_upgrade_guide/create_upgrade_guide.py new file mode 100644 index 00000000..8f6e5b86 --- /dev/null +++ b/scripts/release/create_upgrade_guide/create_upgrade_guide.py @@ -0,0 +1,82 @@ +import argparse +from string import Template +import argparse +import re +import sys + +# USAGE: +# +# This script generates a Mainnet Upgrade Guide using a template. It replaces variables like current_version, upgrade_version, +# proposal_id, and upgrade_block based on the arguments provided. +# +# Example: +# Run the script using the following command: +# python create_upgrade_guide.py --current_version=v18 --upgrade_version=v19 --proposal_id=606 --upgrade_block=11317300 --upgrade_tag=v19.0.0 +# +# Arguments: +# --current_version : The current version before upgrade (e.g., v18) +# --upgrade_version : The version to upgrade to (e.g., v19) +# --proposal_id : The proposal ID related to the upgrade +# --upgrade_block : The block height at which the upgrade will occur +# --upgrade_tag : The specific version tag for the upgrade (e.g., v19.0.0) +# +# This will read a template file and replace the variables in it to generate a complete Mainnet Upgrade Guide. + + +def validate_tag(tag): + pattern = '^v[0-9]+.[0-9]+.[0-9]+$' + return bool(re.match(pattern, tag)) + + +def validate_version(version): + # Regex to match 'v' followed by a number + pattern = '^v\d+$' + return bool(re.match(pattern, version)) + + +def main(): + + parser = argparse.ArgumentParser(description="Create upgrade guide from template") + parser.add_argument('--current_version', '-c', metavar='current_version', type=str, required=True, help='Current version (e.g v1)') + parser.add_argument('--upgrade_version', '-u', metavar='upgrade_version', type=str, required=True, help='Upgrade version (e.g v2)') + parser.add_argument('--upgrade_tag', '-t', metavar='upgrade_tag', type=str, required=True, help='Upgrade tag (e.g v2.0.0)') + parser.add_argument('--proposal_id', '-p', metavar='proposal_id', type=str, required=True, help='Proposal ID') + parser.add_argument('--upgrade_block', '-b', metavar='upgrade_block', type=str, required=True, help='Upgrade block height') + + args = parser.parse_args() + + if not validate_version(args.current_version): + print("Error: The provided current_version does not follow the 'vX' format.") + sys.exit(1) + + if not validate_version(args.upgrade_version): + print("Error: The provided upgrade_version does not follow the 'vX' format.") + sys.exit(1) + + if not validate_tag(args.upgrade_tag): + print("Error: The provided tag does not follow the 'vX.Y.Z' format.") + sys.exit(1) + + # Read the template from an external file + with open('UPGRADE_TEMPLATE.md', 'r') as f: + markdown_template = f.read() + + # Initialize the template + t = Template(markdown_template) + + # Substitute the variables + # Use Template.safe_substitute() over Template.substitute() + # This method won't throw an error for missing placeholders, making it suitable for partial replacements. + filled_markdown = t.safe_substitute( + CURRENT_VERSION=args.current_version, + UPGRADE_VERSION=args.upgrade_version, + UPGRADE_TAG=args.upgrade_tag, + PROPOSAL_ID=args.proposal_id, + UPGRADE_BLOCK=args.upgrade_block + ) + + print(filled_markdown) + + +if __name__ == "__main__": + main() \ No newline at end of file From 442188f6c10719e371f57bc9a1288db169849426 Mon Sep 17 00:00:00 2001 From: hard-nett Date: Tue, 19 Mar 2024 16:05:22 -0400 Subject: [PATCH 2/5] add goreleaser --- .goreleaser.yaml | 228 +++++++++++++++++++++++++++++++++++++++++++++++ Makefile | 53 +++++++++++ 2 files changed, 281 insertions(+) create mode 100644 .goreleaser.yaml diff --git a/.goreleaser.yaml b/.goreleaser.yaml new file mode 100644 index 00000000..295d78fa --- /dev/null +++ b/.goreleaser.yaml @@ -0,0 +1,228 @@ +project_name: terpd + +env: + - CGO_ENABLED=1 + +builds: + - id: terpd-darwin-amd64 + main: ./cmd/terpd/main.go + binary: terpd + hooks: + pre: + - wget https://github.com/CosmWasm/wasmvm/releases/download/{{ .Env.COSMWASM_VERSION }}/libwasmvmstatic_darwin.a -O /lib/libwasmvmstatic_darwin.a + env: + - CC=o64-clang + - CGO_LDFLAGS=-L/lib + goos: + - darwin + goarch: + - amd64 + flags: + - -mod=readonly + - -trimpath + ldflags: + - -X github.com/cosmos/cosmos-sdk/version.Name=terpnetwork + - -X github.com/cosmos/cosmos-sdk/version.AppName=terpd + - -X github.com/cosmos/cosmos-sdk/version.Version={{ .Version }} + - -X github.com/cosmos/cosmos-sdk/version.Commit={{ .Commit }} + - -X github.com/cosmos/cosmos-sdk/version.BuildTags=netgo,ledger,static_wasm + - -w -s + - -linkmode=external + tags: + - netgo + - ledger + - static_wasm + + - id: terpd-darwin-arm64 + main: ./cmd/terpd/main.go + binary: terpd + hooks: + pre: + - wget https://github.com/CosmWasm/wasmvm/releases/download/{{ .Env.COSMWASM_VERSION }}/libwasmvmstatic_darwin.a -O /lib/libwasmvmstatic_darwin.a + env: + - CC=oa64-clang + - CGO_LDFLAGS=-L/lib + goos: + - darwin + goarch: + - arm64 + flags: + - -mod=readonly + - -trimpath + ldflags: + - -X github.com/cosmos/cosmos-sdk/version.Name=terpnetwork + - -X github.com/cosmos/cosmos-sdk/version.AppName=terpd + - -X github.com/cosmos/cosmos-sdk/version.Version={{ .Version }} + - -X github.com/cosmos/cosmos-sdk/version.Commit={{ .Commit }} + - -X github.com/cosmos/cosmos-sdk/version.BuildTags=netgo,ledger,static_wasm + - -w -s + - -linkmode=external + tags: + - netgo + - ledger + - static_wasm + + - id: terpd-linux-amd64 + main: ./cmd/terpd + binary: terpd + hooks: + pre: + - wget https://github.com/CosmWasm/wasmvm/releases/download/{{ .Env.COSMWASM_VERSION }}/libwasmvm_muslc.x86_64.a -O /usr/lib/x86_64-linux-gnu/libwasmvm_muslc.a + goos: + - linux + goarch: + - amd64 + env: + - CC=x86_64-linux-gnu-gcc + flags: + - -mod=readonly + - -trimpath + ldflags: + - -X github.com/cosmos/cosmos-sdk/version.Name=terpnetwork + - -X github.com/cosmos/cosmos-sdk/version.AppName=terpd + - -X github.com/cosmos/cosmos-sdk/version.Version={{ .Version }} + - -X github.com/cosmos/cosmos-sdk/version.Commit={{ .Commit }} + - -X github.com/cosmos/cosmos-sdk/version.BuildTags=netgo,ledger,muslc,osusergo + - -w -s + - -linkmode=external + - -extldflags '-Wl,-z,muldefs -static -lm' + tags: + - netgo + - ledger + - muslc + - osusergo + + - id: terpd-linux-arm64 + main: ./cmd/terpd + binary: terpd + hooks: + pre: + - wget https://github.com/CosmWasm/wasmvm/releases/download/{{ .Env.COSMWASM_VERSION }}/libwasmvm_muslc.aarch64.a -O /usr/lib/aarch64-linux-gnu/libwasmvm_muslc.a + goos: + - linux + goarch: + - arm64 + env: + - CC=aarch64-linux-gnu-gcc + flags: + - -mod=readonly + - -trimpath + ldflags: + - -X github.com/cosmos/cosmos-sdk/version.Name=terpnetwork + - -X github.com/cosmos/cosmos-sdk/version.AppName=terpd + - -X github.com/cosmos/cosmos-sdk/version.Version={{ .Version }} + - -X github.com/cosmos/cosmos-sdk/version.Commit={{ .Commit }} + - -X github.com/cosmos/cosmos-sdk/version.BuildTags=netgo,ledger,muslc,osusergo + - -w -s + - -linkmode=external + - -extldflags '-Wl,-z,muldefs -static -lm' + tags: + - netgo + - ledger + - muslc + - osusergo + +universal_binaries: + - id: terpd-darwin-universal + ids: + - terpd-darwin-amd64 + - terpd-darwin-arm64 + replace: false + +archives: + - id: zipped + builds: + # - terpd-darwin-universal + - terpd-linux-amd64 + - terpd-linux-arm64 + # - terpd-darwin-amd64 + # - terpd-darwin-arm64 + name_template: "{{.ProjectName}}-{{ .Version }}-{{ .Os }}-{{ .Arch }}" + format: tar.gz + files: + - none* + - id: binaries + builds: + # - terpd-darwin-universal + - terpd-linux-amd64 + - terpd-linux-arm64 + # - terpd-darwin-amd64 + # - terpd-darwin-arm64 + name_template: "{{.ProjectName}}-{{ .Version }}-{{ .Os }}-{{ .Arch }}" + format: binary + files: + - none* + +checksum: + name_template: "sha256sum.txt" + algorithm: sha256 + +# Docs: https://goreleaser.com/customization/changelog/ +changelog: + skip: true + +# Docs: https://goreleaser.com/customization/release/ +release: + github: + owner: osmosis-labs + name: osmosis + replace_existing_draft: true + header: | + < DESCRIPTION OF RELEASE > + + ## Changelog + + See the full changelog [here](https://github.com/osmosis-labs/osmosis/blob/v{{ .Version }}/CHANGELOG.md) + + ## ⚡️ Binaries + + Binaries for Linux (amd64 and arm64) are available below. + + #### 🔨 Build from source + + If you prefer to build from source, you can use the following commands: + + ````bash + git clone https://github.com/osmosis-labs/osmosis + cd osmosis && git checkout v{{ .Version }} + make install + ```` + + ## 🐳 Run with Docker + + As an alternative to installing and running terpd on your system, you may run terpd in a Docker container. + The following Docker images are available in our registry: + + | Image Name | Base | Description | + |----------------------------------------------|--------------------------------------|-----------------------------------| + | `terpnetwork/terp-core:{{ .Version }}` | `distroless/static-debian11` | Default image based on Distroless | + | `terpnetwork/terp-core:{{ .Version }}-distroless` | `distroless/static-debian11` | Distroless image (same as above) | + | `terpnetwork/terp-core:{{ .Version }}-nonroot` | `distroless/static-debian11:nonroot` | Distroless non-root image | + | `terpnetwork/terp-core:{{ .Version }}-alpine` | `alpine` | Alpine image | + + Example run: + + ```bash + docker run terpnetwork/terp-core:{{ .Version }} version + # v{{ .Version }} + ```` + + All the images support `arm64` and `amd64` architectures. + + name_template: "Osmosis v{{.Version}} 🧪" + mode: replace + draft: true + +# Docs: https://goreleaser.com/customization/announce/ +# We could automatically announce the release in +# - discord +# - slack +# - twitter +# - webhooks +# - telegram +# - reddit +# +# announce: + # discord: + # enabled: true + # message_template: 'New {{.Tag}} is out!' diff --git a/Makefile b/Makefile index 40226cd7..ca10cee0 100644 --- a/Makefile +++ b/Makefile @@ -277,3 +277,56 @@ proto-check-breaking: go-mod-cache draw-deps clean build format \ test test-all test-build test-cover test-unit test-race \ test-sim-import-export build-windows-client \ + +############################################################################### +### Release ### +############################################################################### + +GORELEASER_IMAGE := ghcr.io/goreleaser/goreleaser-cross:v$(GO_VERSION) +COSMWASM_VERSION := $(shell go list -m github.com/CosmWasm/wasmvm | sed 's/.* //') + +ifdef GITHUB_TOKEN +release: + docker run \ + --rm \ + -e GITHUB_TOKEN=$(GITHUB_TOKEN) \ + -e COSMWASM_VERSION=$(COSMWASM_VERSION) \ + -v /var/run/docker.sock:/var/run/docker.sock \ + -v `pwd`:/go/src/terpd \ + -w /go/src/terpd \ + $(GORELEASER_IMAGE) \ + release \ + --clean +else +release: + @echo "Error: GITHUB_TOKEN is not defined. Please define it before running 'make release'." +endif + +release-dry-run: + docker run \ + --rm \ + -e COSMWASM_VERSION=$(COSMWASM_VERSION) \ + -v /var/run/docker.sock:/var/run/docker.sock \ + -v `pwd`:/go/src/terpd \ + -w /go/src/terpd \ + $(GORELEASER_IMAGE) \ + release \ + --clean \ + --skip-publish + +release-snapshot: + docker run \ + --rm \ + -e COSMWASM_VERSION=$(COSMWASM_VERSION) \ + -v /var/run/docker.sock:/var/run/docker.sock \ + -v `pwd`:/go/src/terpd \ + -w /go/src/terpd \ + $(GORELEASER_IMAGE) \ + release \ + --clean \ + --snapshot \ + --skip-validate \ + --skip-publish + +create-binaries: + \ No newline at end of file From 3c3cc45b7f4d43c04d5a798b33f164ca2e485860 Mon Sep 17 00:00:00 2001 From: hard-nett Date: Tue, 19 Mar 2024 18:33:57 -0400 Subject: [PATCH 3/5] add scripts, md & proto lint --- Makefile | 295 ++++-------------- README.md | 19 +- SECURITY.md | 1 - contrib/devtools/README.md | 2 +- contrib/relayer-tests/README.md | 3 +- docs/README.md | 2 +- docs/static/openapi.yml | 0 proto/Dockerfile | 39 +++ proto/buf.gen.gogo.yaml | 4 +- proto/buf.lock | 13 +- proto/gaia/globalfee/v1beta1/query.proto | 5 +- proto/gaia/globalfee/v1beta1/tx.proto | 5 +- .../osmosis/tokenfactory/v1beta1/params.proto | 6 +- proto/osmosis/tokenfactory/v1beta1/tx.proto | 4 +- proto/terp/clock/v1/genesis.proto | 5 +- proto/terp/clock/v1/query.proto | 16 +- proto/terp/clock/v1/tx.proto | 4 +- proto/terp/drip/v1/genesis.proto | 6 +- proto/terp/drip/v1/query.proto | 1 - proto/terp/drip/v1/tx.proto | 26 +- proto/terp/feeshare/v1/tx.proto | 9 +- scripts/README.md | 4 +- scripts/generate-docs.sh | 40 +++ scripts/makefiles/build.mk | 144 +++++++++ scripts/makefiles/deps.mk | 45 +++ scripts/makefiles/e2e.mk | 66 ++++ scripts/makefiles/lint.mk | 38 +++ scripts/makefiles/proto.mk | 101 ++++++ scripts/makefiles/release.mk | 52 +++ scripts/makefiles/tests.mk | 29 ++ .../create_upgrade_guide/UPGRADE_TEMPLATE.md | 2 +- scripts/replace_import_paths.sh | 61 ++++ x/clock/types/genesis.pb.go | 3 +- x/clock/types/query.pb.go | 6 +- x/drip/spec/01_authorization.md | 2 +- x/drip/spec/02_distribute_tokens.md | 6 +- x/drip/spec/03_example.md | 2 +- x/drip/spec/README.md | 4 +- x/drip/types/genesis.pb.go | 3 +- x/drip/types/tx.pb.go | 12 +- 40 files changed, 786 insertions(+), 299 deletions(-) delete mode 100644 docs/static/openapi.yml create mode 100644 proto/Dockerfile create mode 100644 scripts/generate-docs.sh create mode 100644 scripts/makefiles/build.mk create mode 100644 scripts/makefiles/deps.mk create mode 100644 scripts/makefiles/e2e.mk create mode 100644 scripts/makefiles/lint.mk create mode 100644 scripts/makefiles/proto.mk create mode 100644 scripts/makefiles/release.mk create mode 100644 scripts/makefiles/tests.mk create mode 100644 scripts/replace_import_paths.sh diff --git a/Makefile b/Makefile index ca10cee0..38a635a4 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,67 @@ #!/usr/bin/make -f +include scripts/makefiles/proto.mk +include scripts/makefiles/release.mk +include scripts/makefiles/lint.mk +include scripts/makefiles/tests.mk +include scripts/makefiles/e2e.mk +include scripts/makefiles/heighliner.mk +include scripts/makefiles/build.mk +include scripts/makefiles/deps.mk + + +.DEFAULT_GOAL := help +help: + @echo "Available top-level commands:" + @echo "" + @echo "Usage:" + @echo " make [command]" + @echo "" + @echo " make build Build terpd binary" + @echo " make build-help Show available build commands" + @echo " make deps Show available deps commands" + @echo " make heighliner Show available docker commands" + @echo " make e2e Show available e2e commands" + @echo " make install Install terpd binary" + @echo " make lint Show available lint commands" + @echo " make proto Show available proto commands" + @echo " make release Show available release commands" + @echo " make release-help Show available release commands" + @echo " make test Show available test commands" + @echo "" + @echo "Run 'make [subcommand]' to see the available commands for each subcommand." + +# git info BRANCH := $(shell git rev-parse --abbrev-ref HEAD) -COMMIT := $(shell git log -1 --format='%H') VERSION := $(shell echo $(shell git describe --tags) | sed 's/^v//') -BINDIR ?= $(GOPATH)/bin -APP = ./app +COMMIT := $(shell git log -1 --format='%H') + +LEDGER_ENABLED ?= true +SDK_PACK := $(shell go list -m github.com/cosmos/cosmos-sdk | sed 's/ /\@/g') +BUILDDIR ?= $(CURDIR)/build +DOCKER := $(shell which docker) +E2E_UPGRADE_VERSION := "v4" + + + +DOCKER_BUF := $(DOCKER) run --rm -v $(CURDIR):/workspace --workdir /workspace $(BUF_IMAGE) +PACKAGES_SIMTEST=$(shell go list ./... | grep '/simulation') +BUF_IMAGE=bufbuild/buf@sha256:3cb1f8a4b48bd5ad8f09168f10f607ddc318af202f5c057d52a45216793d85e5 #v1.4.0 +SDK_PACK := $(shell go list -m github.com/cosmos/cosmos-sdk | sed 's/ /\@/g') +HTTPS_GIT := https://github.com/terpnetwork/terp-core.git + + +GO_MODULE := $(shell cat go.mod | grep "module " | cut -d ' ' -f 2) +GO_VERSION := $(shell cat go.mod | grep -E 'go [0-9].[0-9]+' | cut -d ' ' -f 2) +GO_MAJOR_VERSION = $(shell go version | cut -c 14- | cut -d' ' -f1 | cut -d'.' -f1) +GO_MINOR_VERSION = $(shell go version | cut -c 14- | cut -d' ' -f1 | cut -d'.' -f2) +GO_MINIMUM_MAJOR_VERSION = $(shell cat go.mod | grep -E 'go [0-9].[0-9]+' | cut -d ' ' -f2 | cut -d'.' -f1) +GO_MINIMUM_MINOR_VERSION = $(shell cat go.mod | grep -E 'go [0-9].[0-9]+' | cut -d ' ' -f2 | cut -d'.' -f2) +# message to be printed if Go does not meet the minimum required version +GO_VERSION_ERR_MSG = "ERROR: Go version $(GO_MINIMUM_MAJOR_VERSION).$(GO_MINIMUM_MINOR_VERSION)+ is required" + + +export GO111MODULE = on # don't override user values ifeq (,$(VERSION)) @@ -15,10 +72,6 @@ ifeq (,$(VERSION)) endif endif -PACKAGES_SIMTEST=$(shell go list ./... | grep '/simulation') -LEDGER_ENABLED ?= true -SDK_PACK := $(shell go list -m github.com/cosmos/cosmos-sdk | sed 's/ /\@/g') - # don't override user values ifeq (,$(VERSION)) VERSION := $(shell git describe --tags) @@ -28,12 +81,6 @@ ifeq (,$(VERSION)) endif endif -# for dockerized protobuf tools -DOCKER := $(shell which docker) -BUF_IMAGE=bufbuild/buf@sha256:3cb1f8a4b48bd5ad8f09168f10f607ddc318af202f5c057d52a45216793d85e5 #v1.4.0 -DOCKER_BUF := $(DOCKER) run --rm -v $(CURDIR):/workspace --workdir /workspace $(BUF_IMAGE) -HTTPS_GIT := https://github.com/terpnetwork/terp-core.git - export GO111MODULE = on # process build tags @@ -69,9 +116,9 @@ build_tags += $(BUILD_TAGS) build_tags := $(strip $(build_tags)) whitespace := -empty = $(whitespace) $(whitespace) +whitespace := $(whitespace) $(whitespace) comma := , -build_tags_comma_sep := $(subst $(empty),$(comma),$(build_tags)) +build_tags_comma_sep := $(subst $(whitespace),$(comma),$(build_tags)) # process linker flags @@ -93,195 +140,20 @@ ldflags := $(strip $(ldflags)) BUILD_FLAGS := -tags "$(build_tags_comma_sep)" -ldflags '$(ldflags)' -trimpath -# The below include contains the tools and runsim targets. -include contrib/devtools/Makefile - -all: install - @echo "--> project root: go mod tidy" - @go mod tidy - @echo "--> project root: linting --fix" - @GOGC=1 golangci-lint run --fix --timeout=8m - -install: go.sum - go install -mod=readonly $(BUILD_FLAGS) ./cmd/terpd - -build: go.sum -ifeq ($(OS),Windows_NT) - $(error terpd server not supported. Use "make build-windows-client" for client) - exit 1 -else - go build -mod=readonly $(BUILD_FLAGS) -o build/terpd ./cmd/terpd -endif - -build-windows-client: go.sum - GOOS=windows GOARCH=amd64 go build -mod=readonly $(BUILD_FLAGS) -o build/terpd.exe ./cmd/terpd - -build-contract-tests-hooks: -ifeq ($(OS),Windows_NT) - go build -mod=readonly $(BUILD_FLAGS) -o build/contract_tests.exe ./cmd/contract_tests -else - go build -mod=readonly $(BUILD_FLAGS) -o build/contract_tests ./cmd/contract_tests -endif - -test-node: - CHAIN_ID="local-1" HOME_DIR="~/.terp1" TIMEOUT_COMMIT="500ms" CLEAN=true sh scripts/test_node.sh - ############################################################################### -### Testing ### +### Build & Install ### ############################################################################### -test: test-unit -test-all: check test-race test-cover - -test-unit: - @VERSION=$(VERSION) go test -mod=readonly -tags='ledger test_ledger_mock' ./... - -benchmark: - @go test -mod=readonly -bench=. ./... +build: build-check-version go.sum + mkdir -p $(BUILDDIR)/ + GOWORK=off go build -mod=readonly $(BUILD_FLAGS) -o $(BUILDDIR)/ $(GO_MODULE)/cmd/terpd -test-sim-multi-seed-short: runsim - @echo "Running short multi-seed application simulation. This may take awhile!" - @$(BINDIR)/runsim -Jobs=4 -SimAppPkg=$(APP) -ExitOnFail 50 5 TestFullAppSimulation - -test-sim-deterministic: runsim - @echo "Running short multi-seed application simulation. This may take awhile!" - @$(BINDIR)/runsim -Jobs=4 -SimAppPkg=$(APP) -ExitOnFail 1 1 TestAppStateDeterminism - -############################################################################### -### Tools & dependencies ### -############################################################################### - -go-mod-cache: go.sum - @echo "--> Download go modules to local cache" - @go mod download - -go.sum: go.mod - @echo "--> Ensure dependencies have not been modified" - @go mod verify - -draw-deps: - @# requires brew install graphviz or apt-get install graphviz - go install github.com/RobotsAndPencils/goviz@latest - @goviz -i ./cmd/terpd -d 2 | dot -Tpng -o dependency-graph.png - -clean: - rm -rf snapcraft-local.yaml build/ - -distclean: clean - rm -rf vendor/ - -############################################################################### -### Linting ### -############################################################################### - -format-tools: - go install mvdan.cc/gofumpt@v0.4.0 - go install github.com/client9/misspell/cmd/misspell@v0.3.4 - go install golang.org/x/tools/cmd/goimports@latest - -lint: format-tools - golangci-lint run --tests=false - find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "*_test.go" | xargs gofumpt -d -format: format-tools - find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "./client/lcd/statik/statik.go" | xargs gofumpt -w -s - find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "./client/lcd/statik/statik.go" | xargs gofumpt -w - find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "./client/lcd/statik/statik.go" | xargs goimports -w -local github.com/terpnetwork/terp-core - -############################################################################### -### e2e interchain test ### -############################################################################### - - # Executes basic chain tests via interchaintest -ictest-basic: rm-testcache - cd interchaintest && go test -race -v -run TestBasicTerpStart . - -ictest-statesync: rm-testcache - cd interchaintest && go test -race -v -run TestTerpStateSync . - -ictest-ibchooks: rm-testcache - cd interchaintest && go test -race -v -run TestTerpIBCHooks . - -ictest-pfm: rm-testcache - cd interchaintest && go test -race -v -run TestPacketForwardMiddlewareRouter . - -ictest-tokenfactory: rm-testcache - cd interchaintest && go test -race -v -run TestTerpTokenFactory . - -# ictest-clock: rm-testcache -# cd interchaintest && go test -race -v -run TestTerpClock . - -ictest-feeshare: rm-testcache - cd interchaintest && go test -race -v -run TestTerpFeeShare . - -# Executes a basic chain upgrade test via interchaintest -ictest-upgrade: rm-testcache - cd interchaintest && go test -race -v -run TestBasicTerpUpgrade . - -# Executes a basic chain upgrade locally via interchaintest after compiling a local image as terpnetwork:local -ictest-upgrade-local: local-image ictest-upgrade - -# Executes IBC tests via interchaintest -ictest-ibc: rm-testcache - cd interchaintest && go test -race -v -run TestTerpGaiaIBCTransfer . - -rm-testcache: - go clean -testcache - -.PHONY: test-mutation ictest-basic ictest-upgrade ictest-ibc - -############################################################################### -### heighliner ### -############################################################################### - -get-heighliner: - git clone https://github.com/strangelove-ventures/heighliner.git - cd heighliner && go install - -local-image: -ifeq (,$(shell which heighliner)) - echo 'heighliner' binary not found. Consider running `make get-heighliner` -else - heighliner build -c terpnetwork --local -f ./chains.yaml -endif - -.PHONY: get-heighliner local-image -############################################################################### -### Protobuf ### -############################################################################### -protoVer=0.13.1 -protoImageName=ghcr.io/cosmos/proto-builder:$(protoVer) -protoImage=$(DOCKER) run --rm -v $(CURDIR):/workspace --workdir /workspace $(protoImageName) - -proto-all: proto-format proto-lint proto-gen format - -proto-gen: - @echo "Generating Protobuf files" - @$(protoImage) sh ./scripts/protocgen.sh - -proto-swagger-gen: - @echo "Generating Protobuf Swagger" - @$(protoImage) sh ./scripts/protoc_swagger_openapi_gen.sh - $(MAKE) update-swagger-docs - -proto-format: - @echo "Formatting Protobuf files" - @$(protoImage) find ./ -name "*.proto" -exec clang-format -i {} \; - -proto-lint: - @$(DOCKER_BUF) lint --error-format=json - -proto-check-breaking: - @$(DOCKER_BUF) breaking --against $(HTTPS_GIT)#branch=main - -.PHONY: all install install-debug \ - go-mod-cache draw-deps clean build format \ - test test-all test-build test-cover test-unit test-race \ - test-sim-import-export build-windows-client \ +install: build-check-version go.sum + GOWORK=off go install -mod=readonly $(BUILD_FLAGS) $(GO_MODULE)/cmd/terpd ############################################################################### ### Release ### ############################################################################### - GORELEASER_IMAGE := ghcr.io/goreleaser/goreleaser-cross:v$(GO_VERSION) COSMWASM_VERSION := $(shell go list -m github.com/CosmWasm/wasmvm | sed 's/.* //') @@ -300,33 +172,4 @@ release: else release: @echo "Error: GITHUB_TOKEN is not defined. Please define it before running 'make release'." -endif - -release-dry-run: - docker run \ - --rm \ - -e COSMWASM_VERSION=$(COSMWASM_VERSION) \ - -v /var/run/docker.sock:/var/run/docker.sock \ - -v `pwd`:/go/src/terpd \ - -w /go/src/terpd \ - $(GORELEASER_IMAGE) \ - release \ - --clean \ - --skip-publish - -release-snapshot: - docker run \ - --rm \ - -e COSMWASM_VERSION=$(COSMWASM_VERSION) \ - -v /var/run/docker.sock:/var/run/docker.sock \ - -v `pwd`:/go/src/terpd \ - -w /go/src/terpd \ - $(GORELEASER_IMAGE) \ - release \ - --clean \ - --snapshot \ - --skip-validate \ - --skip-publish - -create-binaries: - \ No newline at end of file +endif \ No newline at end of file diff --git a/README.md b/README.md index dd0ef659..68b71dd5 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ For issues & disclosure, see [SECURITY.md](SECURITY.md) ## Stability **This is beta software** It is run in some production systems, but we cannot yet provide a stability guarantee -and have not yet gone through and audit of this codebase. +and have not yet gone through and audit of this codebase. Thank you to all projects who have run this code in your mainnets and testnets and given feedback to improve stability. @@ -21,6 +21,7 @@ make test ``` ## Protobuf + ``` make proto-gen ``` @@ -29,26 +30,33 @@ make proto-gen ### Dev server - ### CI -#### Github + +#### Github + Some pre-commit scripts to help with quality code practices: **Linter** + ```sh sh scripts/git/linter.sh ``` + **Markdown Linter** + ```sh sh scripts/git/markdown_lint.sh ``` + **Tidy** + ```sh sh scripts/git/markdown_lint.sh ``` ## Contributors + This framework is like a craft genetics lineage, one that has been fine tuned with love, trial and error, patience, and iterations. The following is a list of teams, companies, and contributors that are impactful to Terp Network's creation, massive respect! - CosmosSDK Contributors @@ -60,7 +68,8 @@ This framework is like a craft genetics lineage, one that has been fine tuned wi If we forgot you in this list, let us know or open a PR ::) - ## DISCLAIMER + # Disclaimer -TERP-CORE SOFTWARE IS PROVIDED “AS IS”, AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND. No developer or entity involved in running terp-core software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of Stargaze, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value. Although Discover Decentralization, LLC and it's affiliates developed the initial code for Terp-Core, it does not own or control the Terp Network, which is run by a decentralized validator set. \ No newline at end of file + +TERP-CORE SOFTWARE IS PROVIDED “AS IS”, AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND. No developer or entity involved in running terp-core software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of Stargaze, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value. Although Discover Decentralization, LLC and it's affiliates developed the initial code for Terp-Core, it does not own or control the Terp Network, which is run by a decentralized validator set. diff --git a/SECURITY.md b/SECURITY.md index 1cc01ada..f3326aa8 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -47,4 +47,3 @@ Please assist the Terp Network Security team by following these guidelines: - Demonstrate good faith by not disrupting the Terp Network's networks, data, services or communities; _Every effort will be made to handle and address security issues as quickly and efficiently as possible._ - diff --git a/contrib/devtools/README.md b/contrib/devtools/README.md index b005dc25..e5415df6 100644 --- a/contrib/devtools/README.md +++ b/contrib/devtools/README.md @@ -3,4 +3,4 @@ Thanks to the entire Cosmos SDK team and the contributors who put their efforts into making simulation testing easier to implement. 🤗 - \ No newline at end of file + diff --git a/contrib/relayer-tests/README.md b/contrib/relayer-tests/README.md index cdeeadb5..60530133 100644 --- a/contrib/relayer-tests/README.md +++ b/contrib/relayer-tests/README.md @@ -8,7 +8,6 @@ Make sure you run below scripts under `terpd/contrib/relayer-tests` directory. - `./test_ibc_transfer.sh` will setup a path between chains and send tokens between chains. ## Thank you + The setup scripts here are taken from [cosmos/relayer](https://github.com/cosmos/relayer) Thank your relayer team for these scripts. - - diff --git a/docs/README.md b/docs/README.md index 8beace18..b9d7f985 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,3 +1,3 @@ # Generated doc only -Tutorials and project doc is available on https://docs.cosmwasm.com/ +Tutorials and project doc is available on diff --git a/docs/static/openapi.yml b/docs/static/openapi.yml deleted file mode 100644 index e69de29b..00000000 diff --git a/proto/Dockerfile b/proto/Dockerfile new file mode 100644 index 00000000..1f6860bd --- /dev/null +++ b/proto/Dockerfile @@ -0,0 +1,39 @@ +# This Dockerfile is used for proto generation +# To build, run `make proto-image-build` + +FROM bufbuild/buf:1.7.0 as BUILDER + +FROM golang:1.21-alpine + + +RUN apk add --no-cache \ + nodejs \ + npm \ + git \ + make + +ENV GOLANG_PROTOBUF_VERSION=1.28.0 \ + GOGO_PROTOBUF_VERSION=1.3.2 \ + GRPC_GATEWAY_VERSION=1.16.0 + + +RUN go install github.com/cosmos/cosmos-proto/cmd/protoc-gen-go-pulsar@latest +RUN go install google.golang.org/protobuf/cmd/protoc-gen-go@v${GOLANG_PROTOBUF_VERSION} +RUN go install github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway@v${GRPC_GATEWAY_VERSION} \ + github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger@v${GRPC_GATEWAY_VERSION} + +# install all gogo protobuf binaries +RUN git clone https://github.com/regen-network/protobuf.git; \ + cd protobuf; \ + go mod download; \ + make install + +# we need to use git clone because we use 'replace' directive in go.mod +# protoc-gen-gocosmos was moved to to in cosmos/gogoproto but pending a migration there. +RUN git clone https://github.com/regen-network/cosmos-proto.git; \ + cd cosmos-proto/protoc-gen-gocosmos; \ + go install . + +RUN npm install -g swagger-combine + +COPY --from=BUILDER /usr/local/bin /usr/local/bin \ No newline at end of file diff --git a/proto/buf.gen.gogo.yaml b/proto/buf.gen.gogo.yaml index 4e8fb72d..855ea251 100644 --- a/proto/buf.gen.gogo.yaml +++ b/proto/buf.gen.gogo.yaml @@ -2,7 +2,7 @@ version: v1 plugins: - name: gocosmos out: .. - opt: plugins=grpc,Mgoogle/protobuf/duration.proto=github.com/gogo/protobuf/types,Mgoogle/protobuf/struct.proto=github.com/gogo/protobuf/types,Mgoogle/protobuf/timestamp.proto=github.com/gogo/protobuf/types,Mgoogle/protobuf/wrappers.proto=github.com/gogo/protobuf/types,Mgoogle/protobuf/any.proto=github.com/cosmos/cosmos-sdk/codec/types,Mcosmos/orm/v1alpha1/orm.proto=github.com/cosmos/cosmos-sdk/api/cosmos/orm/v1alpha1 + opt: plugins=grpc,Mgoogle/protobuf/any.proto=github.com/cosmos/cosmos-sdk/codec/types - name: grpc-gateway out: .. - opt: logtostderr=true,allow_colon_final_segments=true + opt: logtostderr=true,allow_colon_final_segments=true \ No newline at end of file diff --git a/proto/buf.lock b/proto/buf.lock index f802501e..7906031c 100644 --- a/proto/buf.lock +++ b/proto/buf.lock @@ -14,10 +14,15 @@ deps: - remote: buf.build owner: cosmos repository: gogo-proto - commit: 5e5b9fdd01804356895f8f79a6f1ddc1 - digest: shake256:0b85da49e2e5f9ebc4806eae058e2f56096ff3b1c59d1fb7c190413dd15f45dd456f0b69ced9059341c80795d2b6c943de15b120a9e0308b499e43e4b5fc2952 + commit: 34d970b699f84aa382f3c29773a60836 + digest: shake256:3d3bee5229ba579e7d19ffe6e140986a228b48a8c7fe74348f308537ab95e9135210e81812489d42cd8941d33ff71f11583174ccc5972e86e6112924b6ce9f04 + - remote: buf.build + owner: cosmos + repository: ics23 + commit: 55085f7c710a45f58fa09947208eb70b + digest: shake256:9bf0bc495b5a11c88d163d39ef521bc4b00bc1374a05758c91d82821bdc61f09e8c2c51dda8452529bf80137f34d852561eacbe9550a59015d51cecb0dacb628 - remote: buf.build owner: googleapis repository: googleapis - commit: 28151c0d0a1641bf938a7672c500e01d - digest: shake256:49215edf8ef57f7863004539deff8834cfb2195113f0b890dd1f67815d9353e28e668019165b9d872395871eeafcbab3ccfdb2b5f11734d3cca95be9e8d139de + commit: 8d7204855ec14631a499bd7393ce1970 + digest: shake256:40bf4112960cad01281930beed85829910768e32e80e986791596853eccd42c0cbd9d96690b918f658020d2d427e16f8b6514e2ac7f4a10306fd32e77be44329 diff --git a/proto/gaia/globalfee/v1beta1/query.proto b/proto/gaia/globalfee/v1beta1/query.proto index 6d2cc114..b68ee6a6 100644 --- a/proto/gaia/globalfee/v1beta1/query.proto +++ b/proto/gaia/globalfee/v1beta1/query.proto @@ -9,11 +9,10 @@ option go_package = "github.com/cosmos/gaia/x/globalfee/types"; // Query defines the gRPC querier service. service Query { - // MinimumGasPrices returns the minimum gas prices. + // MinimumGasPrices returns the minimum gas prices. rpc MinimumGasPrices(QueryMinimumGasPricesRequest) returns (QueryMinimumGasPricesResponse) { - option (google.api.http).get = - "/gaia/globalfee/v1beta1/minimum_gas_prices"; + option (google.api.http).get = "/gaia/globalfee/v1beta1/minimum_gas_prices"; } } diff --git a/proto/gaia/globalfee/v1beta1/tx.proto b/proto/gaia/globalfee/v1beta1/tx.proto index 3db2354e..da6e37d5 100644 --- a/proto/gaia/globalfee/v1beta1/tx.proto +++ b/proto/gaia/globalfee/v1beta1/tx.proto @@ -24,12 +24,12 @@ message MsgUpdateParams { option (cosmos.msg.v1.signer) = "authority"; // authority is the address of the governance account. - string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + string authority = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; // params defines the x/mint parameters to update. // // NOTE: All parameters must be supplied. - Params params = 2 [(gogoproto.nullable) = false]; + Params params = 2 [ (gogoproto.nullable) = false ]; } // MsgUpdateParamsResponse defines the response structure for executing a @@ -37,4 +37,3 @@ message MsgUpdateParams { // // Since: cosmos-sdk 0.47 message MsgUpdateParamsResponse {} - \ No newline at end of file diff --git a/proto/osmosis/tokenfactory/v1beta1/params.proto b/proto/osmosis/tokenfactory/v1beta1/params.proto index 0e82a242..0131c116 100644 --- a/proto/osmosis/tokenfactory/v1beta1/params.proto +++ b/proto/osmosis/tokenfactory/v1beta1/params.proto @@ -16,10 +16,10 @@ message Params { (gogoproto.nullable) = false ]; - // if denom_creation_fee is an empty array, then this field is used to add more gas consumption - // to the base cost. + // if denom_creation_fee is an empty array, then this field is used to add + // more gas consumption to the base cost. // https://github.com/CosmWasm/token-factory/issues/11 - uint64 denom_creation_gas_consume = 2 [ + uint64 denom_creation_gas_consume = 2 [ (gogoproto.moretags) = "yaml:\"denom_creation_gas_consume\"", (gogoproto.nullable) = true ]; diff --git a/proto/osmosis/tokenfactory/v1beta1/tx.proto b/proto/osmosis/tokenfactory/v1beta1/tx.proto index b859f42c..758de60d 100644 --- a/proto/osmosis/tokenfactory/v1beta1/tx.proto +++ b/proto/osmosis/tokenfactory/v1beta1/tx.proto @@ -124,12 +124,12 @@ message MsgUpdateParams { option (cosmos.msg.v1.signer) = "authority"; // authority is the address of the governance account. - string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + string authority = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; // params defines the x/mint parameters to update. // // NOTE: All parameters must be supplied. - Params params = 2 [(gogoproto.nullable) = false]; + Params params = 2 [ (gogoproto.nullable) = false ]; } // MsgUpdateParamsResponse defines the response structure for executing a diff --git a/proto/terp/clock/v1/genesis.proto b/proto/terp/clock/v1/genesis.proto index 7e661371..0b6d678d 100644 --- a/proto/terp/clock/v1/genesis.proto +++ b/proto/terp/clock/v1/genesis.proto @@ -17,8 +17,9 @@ message GenesisState { // Params defines the set of module parameters. message Params { - // contract_addresses stores the list of executable contracts to be ticked on every block. - repeated string contract_addresses = 1 [ + // contract_addresses stores the list of executable contracts to be ticked on + // every block. + repeated string contract_addresses = 1 [ (gogoproto.jsontag) = "contract_addresses,omitempty", (gogoproto.moretags) = "yaml:\"contract_addresses\"" ]; diff --git a/proto/terp/clock/v1/query.proto b/proto/terp/clock/v1/query.proto index db0485a1..02190054 100644 --- a/proto/terp/clock/v1/query.proto +++ b/proto/terp/clock/v1/query.proto @@ -13,8 +13,7 @@ service Query { // ClockContracts rpc ClockContracts(QueryClockContracts) returns (QueryClockContractsResponse) { - option (google.api.http).get = - "/terp/clock/v1/contracts"; + option (google.api.http).get = "/terp/clock/v1/contracts"; } // Params rpc Params(QueryParamsRequest) returns (QueryParamsResponse) { @@ -25,9 +24,10 @@ service Query { // QueryClockContracts is the request type to get all contracts. message QueryClockContracts {} -// QueryClockContractsResponse is the response type for the Query/ClockContracts RPC method. +// QueryClockContractsResponse is the response type for the Query/ClockContracts +// RPC method. message QueryClockContractsResponse { - repeated string contract_addresses = 1 [ + repeated string contract_addresses = 1 [ (gogoproto.jsontag) = "contract_addresses,omitempty", (gogoproto.moretags) = "yaml:\"contract_addresses\"" ]; @@ -36,7 +36,11 @@ message QueryClockContractsResponse { // QueryParams is the request type to get all module params. message QueryParamsRequest {} -// QueryClockContractsResponse is the response type for the Query/ClockContracts RPC method. +// QueryClockContractsResponse is the response type for the Query/ClockContracts +// RPC method. message QueryParamsResponse { - Params params = 1 [(gogoproto.jsontag) = "params", (gogoproto.moretags) = "yaml:\"params\""]; + Params params = 1 [ + (gogoproto.jsontag) = "params", + (gogoproto.moretags) = "yaml:\"params\"" + ]; } diff --git a/proto/terp/clock/v1/tx.proto b/proto/terp/clock/v1/tx.proto index 6b1bf027..8dade155 100644 --- a/proto/terp/clock/v1/tx.proto +++ b/proto/terp/clock/v1/tx.proto @@ -25,12 +25,12 @@ message MsgUpdateParams { option (cosmos.msg.v1.signer) = "authority"; // authority is the address of the governance account. - string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + string authority = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; // params defines the x/clock parameters to update. // // NOTE: All parameters must be supplied. - Params params = 2 [(gogoproto.nullable) = false]; + Params params = 2 [ (gogoproto.nullable) = false ]; } // MsgUpdateParamsResponse defines the response structure for executing a diff --git a/proto/terp/drip/v1/genesis.proto b/proto/terp/drip/v1/genesis.proto index 4075e137..1a6fd5be 100644 --- a/proto/terp/drip/v1/genesis.proto +++ b/proto/terp/drip/v1/genesis.proto @@ -15,6 +15,8 @@ message Params { // enable_drip defines a parameter to enable the drip module bool enable_drip = 1; - // allowed_addresses defines the list of addresses authorized to use the module - repeated string allowed_addresses = 3 [ (gogoproto.moretags) = "yaml:\"addresses\"" ]; + // allowed_addresses defines the list of addresses authorized to use the + // module + repeated string allowed_addresses = 3 + [ (gogoproto.moretags) = "yaml:\"addresses\"" ]; } diff --git a/proto/terp/drip/v1/query.proto b/proto/terp/drip/v1/query.proto index 4a901d99..890fbf85 100644 --- a/proto/terp/drip/v1/query.proto +++ b/proto/terp/drip/v1/query.proto @@ -15,7 +15,6 @@ service Query { rpc Params(QueryParamsRequest) returns (QueryParamsResponse) { option (google.api.http).get = "/terp/drip/v1/params"; } - } // QueryParamsRequest is the request type for the Query/Params RPC method. message QueryParamsRequest {} diff --git a/proto/terp/drip/v1/tx.proto b/proto/terp/drip/v1/tx.proto index 0f305bf3..3a928a93 100644 --- a/proto/terp/drip/v1/tx.proto +++ b/proto/terp/drip/v1/tx.proto @@ -13,7 +13,8 @@ option go_package = "github.com/terpnetwork/terp-core/x/drip/types"; // Msg defines the fees Msg service. service Msg { - // DistributeTokens distribute the sent tokens to all stakers in the next block + // DistributeTokens distribute the sent tokens to all stakers in the next + // block rpc DistributeTokens(MsgDistributeTokens) returns (MsgDistributeTokensResponse) { option (google.api.http).post = "/terp/drip/v1/tx/distribute_tokens"; @@ -22,17 +23,18 @@ service Msg { rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse); } -// MsgDistributeTokens defines a message that registers a Distribution of tokens. +// MsgDistributeTokens defines a message that registers a Distribution of +// tokens. message MsgDistributeTokens { option (gogoproto.equal) = false; - // sender_address is the bech32 address of message sender. + // sender_address is the bech32 address of message sender. string sender_address = 1; - + // amount is the amount being airdropped to stakers repeated cosmos.base.v1beta1.Coin amount = 2 [ - (gogoproto.nullable) = false, - (amino.dont_omitempty) = true, - (amino.encoding) = "legacy_coins", + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true, + (amino.encoding) = "legacy_coins", (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" ]; } @@ -45,15 +47,17 @@ message MsgDistributeTokensResponse {} // Since: cosmos-sdk 0.47 message MsgUpdateParams { option (cosmos.msg.v1.signer) = "authority"; - option (amino.name) = "cosmos-sdk/x/auth/MsgUpdateParams"; + option (amino.name) = "cosmos-sdk/x/auth/MsgUpdateParams"; - // authority is the address that controls the module (defaults to x/gov unless overwritten). - string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + // authority is the address that controls the module (defaults to x/gov unless + // overwritten). + string authority = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; // params defines the x/auth parameters to update. // // NOTE: All parameters must be supplied. - Params params = 2 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; + Params params = 2 + [ (gogoproto.nullable) = false, (amino.dont_omitempty) = true ]; } message MsgUpdateParamsResponse {} diff --git a/proto/terp/feeshare/v1/tx.proto b/proto/terp/feeshare/v1/tx.proto index e8b51ae5..830d09a7 100644 --- a/proto/terp/feeshare/v1/tx.proto +++ b/proto/terp/feeshare/v1/tx.proto @@ -79,15 +79,16 @@ message MsgCancelFeeShareResponse {} // // Since: cosmos-sdk 0.47 message MsgUpdateParams { - option (cosmos.msg.v1.signer) = "authority"; + option (cosmos.msg.v1.signer) = "authority"; - // authority is the address that controls the module (defaults to x/gov unless overwritten). - string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + // authority is the address that controls the module (defaults to x/gov unless + // overwritten). + string authority = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; // params defines the x/feeshare parameters to update. // // NOTE: All parameters must be supplied. - Params params = 2 [(gogoproto.nullable) = false]; + Params params = 2 [ (gogoproto.nullable) = false ]; } // MsgUpdateParamsResponse defines the response structure for executing a diff --git a/scripts/README.md b/scripts/README.md index c0aba168..948fa379 100644 --- a/scripts/README.md +++ b/scripts/README.md @@ -1,7 +1,7 @@ # Scripts -These scripts are copied from the [Cosmos-SDK](https://github.com/cosmos/cosmos-sdk/tree/v0.42.1/scripts) respository +These scripts are copied from the [Cosmos-SDK](https://github.com/cosmos/cosmos-sdk/tree/v0.42.1/scripts) respository with minor modifications. All credits and big thanks go to the original authors. Please note that a custom [fork](github.com/regen-network/protobuf) by the Regen network team is used. -See [`go.mod`](../go.mod) for version. \ No newline at end of file +See [`go.mod`](../go.mod) for version. diff --git a/scripts/generate-docs.sh b/scripts/generate-docs.sh new file mode 100644 index 00000000..de993524 --- /dev/null +++ b/scripts/generate-docs.sh @@ -0,0 +1,40 @@ +#!/usr/bin/env bash +SWAGGER_DIR=./swagger-proto + +set -eo pipefail + +# prepare swagger generation +mkdir -p "$SWAGGER_DIR/proto" +printf "version: v1\ndirectories:\n - proto\n \n" > "$SWAGGER_DIR/buf.work.yaml" +printf "version: v1\nname: buf.build/terpnetwork/terp-core\n" > "$SWAGGER_DIR/proto/buf.yaml" +cp ./proto/buf.gen.swagger.yaml "$SWAGGER_DIR/proto/buf.gen.swagger.yaml" + +# copy existing proto files +cp -r ./proto/ "$SWAGGER_DIR/proto" + +# create temporary folder to store intermediate results from `buf generate` +mkdir -p ./tmp-swagger-gen + +# step into swagger folder +cd "$SWAGGER_DIR" + +# create swagger files on an individual basis w/ `buf build` and `buf generate` (needed for `swagger-combine`) +proto_dirs=$(find ./proto -path -prune -o -name '*.proto' -print0 | xargs -0 -n1 dirname | sort | uniq) +for dir in $proto_dirs; do + # generate swagger files (filter query files) + query_file=$(find "${dir}" -maxdepth 1 \( -name 'query.proto' -o -name 'service.proto' \)) + if [[ -n "$query_file" ]]; then + buf generate --template proto/buf.gen.swagger.yaml "$query_file" + fi +done + +cd .. + +# combine swagger files +# uses nodejs package `swagger-combine`. +# all the individual swagger files need to be configured in `config.json` for merging +swagger-combine ./client/docs/config.json -o ./client/docs/static/swagger/swagger.yaml -f yaml --continueOnConflictingPaths true --includeDefinitions true + +# clean swagger files +rm -rf ./tmp-swagger-gen +rm -rf "$SWAGGER_DIR" \ No newline at end of file diff --git a/scripts/makefiles/build.mk b/scripts/makefiles/build.mk new file mode 100644 index 00000000..f5007aab --- /dev/null +++ b/scripts/makefiles/build.mk @@ -0,0 +1,144 @@ +############################################################################### +### Build & Install ### +############################################################################### + +build-help: + @echo "build subcommands" + @echo "" + @echo "Usage:" + @echo " make build-[command]" + @echo "" + @echo "Available Commands:" + @echo " all Build all targets" + @echo " check-version Check Go version" + @echo " dev-build Build development version" + @echo " dev-install Install development build" + @echo " linux Build for Linux" + @echo " windows Build for Windows" + @echo " reproducible Build reproducible binaries" + @echo " reproducible-amd64 Build reproducible amd64 binary" + @echo " reproducible-arm64 Build reproducible arm64 binary" + +build-check-version: + @echo "Go version: $(GO_MAJOR_VERSION).$(GO_MINOR_VERSION)" + @if [ $(GO_MAJOR_VERSION) -gt $(GO_MINIMUM_MAJOR_VERSION) ]; then \ + echo "Go version is sufficient"; \ + exit 0; \ + elif [ $(GO_MAJOR_VERSION) -lt $(GO_MINIMUM_MAJOR_VERSION) ]; then \ + echo '$(GO_VERSION_ERR_MSG)'; \ + exit 1; \ + elif [ $(GO_MINOR_VERSION) -lt $(GO_MINIMUM_MINOR_VERSION) ]; then \ + echo '$(GO_VERSION_ERR_MSG)'; \ + exit 1; \ + fi + +all: install + @echo "--> project root: go mod tidy" + @go mod tidy + @echo "--> project root: linting --fix" + @GOGC=1 golangci-lint run --fix --timeout=8m + +install: go.sum + go install -mod=readonly $(BUILD_FLAGS) ./cmd/terpd + +build: go.sum +ifeq ($(OS),Windows_NT) + $(error terpd server not supported. Use "make build-windows" for client) + exit 1 +else + go build -mod=readonly $(BUILD_FLAGS) -o build/terpd ./cmd/terpd +endif + +build-windows: go.sum + GOOS=windows GOARCH=amd64 go build -mod=readonly $(BUILD_FLAGS) -o build/terpd.exe ./cmd/terpd + +build-dev-install: go.sum + GOWORK=off go install $(DEBUG_BUILD_FLAGS) $(GC_FLAGS) $(GO_MODULE)/cmd/terpd + +build-dev-build: + mkdir -p $(BUILDDIR)/ + GOWORK=off go build $(GC_FLAGS) -mod=readonly -ldflags '$(DEBUG_LDFLAGS)' -gcflags "all=-N -l" -trimpath -o $(BUILDDIR) ./...; + +# Cross-building for arm64 from amd64 (or vice-versa) takes +# a lot of time due to QEMU virtualization but it's the only way (afaik) +# to get a statically linked binary with CosmWasm + +build-reproducible: build-reproducible-amd64 build-reproducible-arm64 + +build-reproducible-amd64: go.sum + mkdir -p $(BUILDDIR) + $(DOCKER) buildx create --name terpbuilder || true + $(DOCKER) buildx use terpbuilder + $(DOCKER) buildx build \ + --build-arg GO_VERSION=$(GO_VERSION) \ + --build-arg GIT_VERSION=$(VERSION) \ + --build-arg GIT_COMMIT=$(COMMIT) \ + --build-arg RUNNER_IMAGE=alpine:3.17 \ + --platform linux/amd64 \ + -t terp-core:local-amd64 \ + --load \ + -f Dockerfile . + $(DOCKER) rm -f terpbinary || true + $(DOCKER) create -ti --name terpbinary terpn-core:local-amd64 + $(DOCKER) cp terpbinary:/bin/terpd $(BUILDDIR)/terpd-linux-amd64 + $(DOCKER) rm -f terpbinary + +build-reproducible-arm64: go.sum + mkdir -p $(BUILDDIR) + $(DOCKER) buildx create --name terpbuilder || true + $(DOCKER) buildx use terpbuilder + $(DOCKER) buildx build \ + --build-arg GO_VERSION=$(GO_VERSION) \ + --build-arg GIT_VERSION=$(VERSION) \ + --build-arg GIT_COMMIT=$(COMMIT) \ + --build-arg RUNNER_IMAGE=alpine:3.17 \ + --platform linux/arm64 \ + -t terp-core:local-arm64 \ + --load \ + -f Dockerfile . + $(DOCKER) rm -f terpbinary || true + $(DOCKER) create -ti --name terpbinary terp-core:local-arm64 + $(DOCKER) cp osmobinary:/bin/terpd $(BUILDDIR)/terpd-linux-arm64 + $(DOCKER) rm -f terpbinary + +build-linux: go.sum + LEDGER_ENABLED=false GOOS=linux GOARCH=amd64 $(MAKE) build + + +# build-install-with-autocomplete: build-check-version go.sum +# GOWORK=off go install -mod=readonly $(BUILD_FLAGS) $(GO_MODULE)/cmd/terpd +# @PARENT_SHELL=$$(ps -o ppid= -p $$PPID | xargs ps -o comm= -p); \ +# if echo "$$PARENT_SHELL" | grep -q "zsh"; then \ +# if ! grep -q ". <(terpd enable-cli-autocomplete zsh)" ~/.zshrc; then \ +# echo ". <(terpd enable-cli-autocomplete zsh)" >> ~/.zshrc; \ +# echo; \ +# echo "Autocomplete enabled. Run 'source ~/.zshrc' to complete installation."; \ +# else \ +# echo; \ +# echo "Autocomplete already enabled in ~/.zshrc"; \ +# fi \ +# elif echo "$$PARENT_SHELL" | grep -q "bash" && [ "$$(uname)" = "Darwin" ]; then \ +# if ! grep -q -e "\. <(terpd enable-cli-autocomplete bash)" -e '\[\[ -r "/opt/homebrew/etc/profile.d/bash_completion.sh" \]\] && \. "/opt/homebrew/etc/profile.d/bash_completion.sh"' ~/.bash_profile; then \ +# brew install bash-completion; \ +# echo '[ -r "/opt/homebrew/etc/profile.d/bash_completion.sh" ] && . "/opt/homebrew/etc/profile.d/bash_completion.sh"' >> ~/.bash_profile; \ +# echo ". <(terpd enable-cli-autocomplete bash)" >> ~/.bash_profile; \ +# echo; \ +# echo; \ +# echo "Autocomplete enabled. Run 'source ~/.bash_profile' to complete installation."; \ +# else \ +# echo "Autocomplete already enabled in ~/.bash_profile"; \ +# fi \ +# elif echo "$$PARENT_SHELL" | grep -q "bash" && [ "$$(uname)" = "Linux" ]; then \ +# if ! grep -q ". <(terpd enable-cli-autocomplete bash)" ~/.bash_profile; then \ +# sudo apt-get install -y bash-completion; \ +# echo '[ -r "/etc/bash_completion" ] && . "/etc/bash_completion"' >> ~/.bash_profile; \ +# echo ". <(terpd enable-cli-autocomplete bash)" >> ~/.bash_profile; \ +# echo; \ +# echo "Autocomplete enabled. Run 'source ~/.bash_profile' to complete installation."; \ +# else \ +# echo; \ +# echo "Autocomplete already enabled in ~/.bash_profile"; \ +# fi \ +# else \ +# echo "Shell or OS not recognized. Skipping autocomplete setup."; \ +# fi \ No newline at end of file diff --git a/scripts/makefiles/deps.mk b/scripts/makefiles/deps.mk new file mode 100644 index 00000000..af1b7bc4 --- /dev/null +++ b/scripts/makefiles/deps.mk @@ -0,0 +1,45 @@ +############################################################################### +### Dependency Updates ### +############################################################################### +deps-help: + @echo "Dependency Update subcommands" + @echo "" + @echo "Usage:" + @echo " make deps-[command]" + @echo "" + @echo "Available Commands:" + @echo " clean Remove artifacts" + @echo " distclean Remove vendor directory" + @echo " draw Create a dependency graph" + @echo " go-mod-cache Download go modules to local cache" + @echo " go.sum Ensure dependencies have not been modified" + @echo " tidy-workspace Tidy workspace" + @echo " update-sdk-version Update SDK version" + + +go-mod-cache: go.sum + @echo "--> Download go modules to local cache" + @go mod download + +go.sum: go.mod + @echo "--> Ensure dependencies have not been modified" + @go mod verify + +draw-deps: + @# requires brew install graphviz or apt-get install graphviz + go install github.com/RobotsAndPencils/goviz@latest + @goviz -i ./cmd/terpd -d 2 | dot -Tpng -o dependency-graph.png + +deps-clean: + rm -rf $(CURDIR)/artifacts/ + +deps-distclean: clean + rm -rf vendor/ + +MODFILES := ./go.mod ./interchaintest/go.mod +# run with VERSION argument specified +# e.g) make update-sdk-version VERSION=v0.45.1-0.20230523200430-193959b898ec +# This will change sdk dependencyu version for go.mod in root directory + all sub-modules in this rep + +deps-tidy-workspace: + @./scripts/tidy_workspace.sh \ No newline at end of file diff --git a/scripts/makefiles/e2e.mk b/scripts/makefiles/e2e.mk new file mode 100644 index 00000000..33a4eab3 --- /dev/null +++ b/scripts/makefiles/e2e.mk @@ -0,0 +1,66 @@ +############################################################################### +### e2e interchain test ### +############################################################################### + +e2e-help: + @echo "e2e subcommands" + @echo "" + @echo "Usage:" + @echo " make e2e-[command]" + @echo "" + @echo "Available Commands:" + @echo " build-script Build e2e script" + @echo " check-image-sha Check e2e image SHA" + @echo " docker-build-debug Build e2e debug Docker image" + @echo " docker-build-e2e-init-chain Build e2e init chain Docker image" + @echo " docker-build-e2e-init-node Build e2e init node Docker image" + @echo " remove-resources Remove e2e resources" + @echo " setup Set up e2e environment" + @echo " ictest-basic Run basic test" + @echo " ictest-upgrade Run basic planned upgrade test" + @echo " ictest-upgrade-local Run basic upgrade locally after compiling a local image as terpnetwork:local" + @echo " ictest-statesync Run basic test on node statesync capabilities" + @echo " ictest-ibc Run basic ibc test" + @echo " ictest-pfm Run basic packet-forward-middleware test" + @echo " ictest-ibchooks Run basic ibc-hooks test" + @echo " ictest-tokenfactory Run basic x/tokenfactory test" + @echo " ictest-feeshare Run basic x/feeshare test" + +e2e: e2e-help + + + # Executes basic chain tests via interchaintest +ictest-basic: rm-testcache + cd interchaintest && go test -race -v -run TestBasicTerpStart . + +ictest-statesync: rm-testcache + cd interchaintest && go test -race -v -run TestTerpStateSync . + +ictest-ibchooks: rm-testcache + cd interchaintest && go test -race -v -run TestTerpIBCHooks . + +ictest-pfm: rm-testcache + cd interchaintest && go test -race -v -run TestPacketForwardMiddlewareRouter . + +ictest-tokenfactory: rm-testcache + cd interchaintest && go test -race -v -run TestTerpTokenFactory . + +# ictest-clock: rm-testcache +# cd interchaintest && go test -race -v -run TestTerpClock . + +ictest-feeshare: rm-testcache + cd interchaintest && go test -race -v -run TestTerpFeeShare . + +ictest-upgrade: rm-testcache + cd interchaintest && go test -race -v -run TestBasicTerpUpgrade . + +ictest-upgrade-local: local-image ictest-upgrade + +# Executes IBC tests via interchaintest +ictest-ibc: rm-testcache + cd interchaintest && go test -race -v -run TestTerpGaiaIBCTransfer . + +rm-testcache: + go clean -testcache + +.PHONY: test-mutation ictest-basic ictest-upgrade ictest-ibc \ No newline at end of file diff --git a/scripts/makefiles/lint.mk b/scripts/makefiles/lint.mk new file mode 100644 index 00000000..85d200fa --- /dev/null +++ b/scripts/makefiles/lint.mk @@ -0,0 +1,38 @@ +############################################################################### +### Linting ### +############################################################################### + +lint-help: + @echo "" + @echo "" + @echo "lint subcommands" + @echo "" + @echo "Usage:" + @echo " make lint-[command]" + @echo "" + @echo "Available Commands:" + @echo " format-tools Run linters with auto-fix" + @echo " markdown Run markdown linter with auto-fix" + @echo " mdlint Run markdown linter" + @echo "" +# lint: lint-help + +lint-format-tools: + go install mvdan.cc/gofumpt@v0.4.0 + go install github.com/client9/misspell/cmd/misspell@v0.3.4 + go install golang.org/x/tools/cmd/goimports@latest + +lint: lint-format-tools + golangci-lint run --tests=false + find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "*_test.go" | xargs gofumpt -d +format: format-tools + find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "./client/lcd/statik/statik.go" | xargs gofumpt -w -s + find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "./client/lcd/statik/statik.go" | xargs gofumpt -w + find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "./client/lcd/statik/statik.go" | xargs goimports -w -local github.com/terpnetwork/terp-core + +lint-mdlint: + @echo "--> Running markdown linter" + @docker run -v $(PWD):/workdir ghcr.io/igorshubovych/markdownlint-cli:latest "**/*.md" + +lint-markdown: + @docker run -v $(PWD):/workdir ghcr.io/igorshubovych/markdownlint-cli:latest "**/*.md" --fix \ No newline at end of file diff --git a/scripts/makefiles/proto.mk b/scripts/makefiles/proto.mk new file mode 100644 index 00000000..8e2fb247 --- /dev/null +++ b/scripts/makefiles/proto.mk @@ -0,0 +1,101 @@ +############################################################################### +### Proto ### +############################################################################### + +proto-help: + @echo "proto subcommands" + @echo "" + @echo "Usage:" + @echo " make proto-[command]" + @echo "" + @echo "Available Commands:" + @echo " all Run proto-format and proto-gen" + @echo " format Format Protobuf files" + @echo " gen Generate Protobuf files" + @echo " image-build Build the protobuf Docker image" + @echo " image-push Push the protobuf Docker image" + +proto: proto-help +proto-all: proto-format proto-gen + +PROTO_BUILDER_IMAGE=ghcr.io/cosmos/proto-builder:0.14.0 +protoImage=$(DOCKER) run --rm -v $(CURDIR):/workspace --workdir /workspace $(PROTO_BUILDER_IMAGE) + +proto-all: proto-format proto-gen + +proto-gen: + @echo "Generating Protobuf files" + @$(DOCKER) run --rm -u 0 -v $(CURDIR):/workspace --workdir /workspace $(PROTO_BUILDER_IMAGE) sh ./scripts/protocgen.sh + +proto-format: + @echo "Formatting Protobuf files" + @$(DOCKER) run --rm -v $(CURDIR):/workspace --workdir /workspace tendermintdev/docker-build-proto \ + find ./proto -name "*.proto" -exec clang-format -i {} \; + + +SWAGGER_DIR=./swagger-proto +THIRD_PARTY_DIR=$(SWAGGER_DIR)/third_party + +proto-download-deps: + mkdir -p "$(THIRD_PARTY_DIR)/cosmos_tmp" && \ + cd "$(THIRD_PARTY_DIR)/cosmos_tmp" && \ + git init && \ + git remote add origin "https://github.com/cosmos/cosmos-sdk.git" && \ + git config core.sparseCheckout true && \ + printf "proto\nthird_party\n" > .git/info/sparse-checkout && \ + git pull origin main && \ + rm -f ./proto/buf.* && \ + mv ./proto/* .. + rm -rf "$(THIRD_PARTY_DIR)/cosmos_tmp" + + mkdir -p "$(THIRD_PARTY_DIR)/ibc_tmp" && \ + cd "$(THIRD_PARTY_DIR)/ibc_tmp" && \ + git init && \ + git remote add origin "https://github.com/cosmos/ibc-go.git" && \ + git config core.sparseCheckout true && \ + printf "proto\n" > .git/info/sparse-checkout && \ + git pull origin main && \ + rm -f ./proto/buf.* && \ + mv ./proto/* .. + rm -rf "$(THIRD_PARTY_DIR)/ibc_tmp" + + mkdir -p "$(THIRD_PARTY_DIR)/cosmos_proto_tmp" && \ + cd "$(THIRD_PARTY_DIR)/cosmos_proto_tmp" && \ + git init && \ + git remote add origin "https://github.com/cosmos/cosmos-proto.git" && \ + git config core.sparseCheckout true && \ + printf "proto\n" > .git/info/sparse-checkout && \ + git pull origin main && \ + rm -f ./proto/buf.* && \ + mv ./proto/* .. + rm -rf "$(THIRD_PARTY_DIR)/cosmos_proto_tmp" + + mkdir -p "$(THIRD_PARTY_DIR)/gogoproto" && \ + curl -SSL https://raw.githubusercontent.com/cosmos/gogoproto/main/gogoproto/gogo.proto > "$(THIRD_PARTY_DIR)/gogoproto/gogo.proto" + + mkdir -p "$(THIRD_PARTY_DIR)/google/api" && \ + curl -sSL https://raw.githubusercontent.com/googleapis/googleapis/master/google/api/annotations.proto > "$(THIRD_PARTY_DIR)/google/api/annotations.proto" + curl -sSL https://raw.githubusercontent.com/googleapis/googleapis/master/google/api/http.proto > "$(THIRD_PARTY_DIR)/google/api/http.proto" + + mkdir -p "$(THIRD_PARTY_DIR)/cosmos/ics23/v1" && \ + curl -sSL https://raw.githubusercontent.com/cosmos/ics23/master/proto/cosmos/ics23/v1/proofs.proto > "$(THIRD_PARTY_DIR)/cosmos/ics23/v1/proofs.proto" + + +docs: + @echo + @echo "=========== Generate Message ============" + @echo + @make proto-download-deps + ./scripts/generate-docs.sh + + statik -src=client/docs/static -dest=client/docs -f -m + @if [ -n "$(git status --porcelain)" ]; then \ + echo "\033[91mSwagger docs are out of sync!!!\033[0m";\ + exit 1;\ + else \ + echo "\033[92mSwagger docs are in sync\033[0m";\ + fi + @echo + @echo "=========== Generate Complete ============" + @echo +.PHONY: docs \ No newline at end of file diff --git a/scripts/makefiles/release.mk b/scripts/makefiles/release.mk new file mode 100644 index 00000000..d041c423 --- /dev/null +++ b/scripts/makefiles/release.mk @@ -0,0 +1,52 @@ +############################################################################### +### Release ### +############################################################################### + +GORELEASER_IMAGE := ghcr.io/goreleaser/goreleaser-cross:v$(GO_VERSION) +COSMWASM_VERSION := $(shell go list -m github.com/CosmWasm/wasmvm | sed 's/.* //') + +ifdef GITHUB_TOKEN +release: + docker run \ + --rm \ + -e GITHUB_TOKEN=$(GITHUB_TOKEN) \ + -e COSMWASM_VERSION=$(COSMWASM_VERSION) \ + -v /var/run/docker.sock:/var/run/docker.sock \ + -v `pwd`:/go/src/terpd \ + -w /go/src/terpd \ + $(GORELEASER_IMAGE) \ + release \ + --clean +else +release: + @echo "Error: GITHUB_TOKEN is not defined. Please define it before running 'make release'." +endif + +release-dry-run: + docker run \ + --rm \ + -e COSMWASM_VERSION=$(COSMWASM_VERSION) \ + -v /var/run/docker.sock:/var/run/docker.sock \ + -v `pwd`:/go/src/terpd \ + -w /go/src/terpd \ + $(GORELEASER_IMAGE) \ + release \ + --clean \ + --skip-publish + +release-snapshot: + docker run \ + --rm \ + -e COSMWASM_VERSION=$(COSMWASM_VERSION) \ + -v /var/run/docker.sock:/var/run/docker.sock \ + -v `pwd`:/go/src/terpd \ + -w /go/src/terpd \ + $(GORELEASER_IMAGE) \ + release \ + --clean \ + --snapshot \ + --skip-validate \ + --skip-publish + +create-binaries: + \ No newline at end of file diff --git a/scripts/makefiles/tests.mk b/scripts/makefiles/tests.mk new file mode 100644 index 00000000..55b9afe9 --- /dev/null +++ b/scripts/makefiles/tests.mk @@ -0,0 +1,29 @@ +############################################################################### +### Testing ### +############################################################################### + +APP = ./app +BINDIR ?= $(GOPATH)/bin + +# The below include contains the tools and runsim targets. +include contrib/devtools/Makefile + +test: test-unit +test-all: check test-race test-cover + +test-node: + CHAIN_ID="local-1" HOME_DIR="~/.terp1" TIMEOUT_COMMIT="500ms" CLEAN=true sh scripts/test_node.sh + +test-unit: + @VERSION=$(VERSION) go test -mod=readonly -tags='ledger test_ledger_mock' ./... + +benchmark: + @go test -mod=readonly -bench=. ./... + +test-sim-multi-seed-short: runsim + @echo "Running short multi-seed application simulation. This may take awhile!" + @$(BINDIR)/runsim -Jobs=4 -SimAppPkg=$(APP) -ExitOnFail 50 5 TestFullAppSimulation + +test-sim-deterministic: runsim + @echo "Running short multi-seed application simulation. This may take awhile!" + @$(BINDIR)/runsim -Jobs=4 -SimAppPkg=$(APP) -ExitOnFail 1 1 TestAppStateDeterminism \ No newline at end of file diff --git a/scripts/release/create_upgrade_guide/UPGRADE_TEMPLATE.md b/scripts/release/create_upgrade_guide/UPGRADE_TEMPLATE.md index 97147d2c..a84f4c8c 100644 --- a/scripts/release/create_upgrade_guide/UPGRADE_TEMPLATE.md +++ b/scripts/release/create_upgrade_guide/UPGRADE_TEMPLATE.md @@ -113,4 +113,4 @@ make install ## Additional Resources - Terp Network Documentation: [Website](https://docs.terp.network) -- Community Support: [Discord](https://discord.gg/pAxjcFnAFH) \ No newline at end of file +- Community Support: [Discord](https://discord.gg/pAxjcFnAFH) diff --git a/scripts/replace_import_paths.sh b/scripts/replace_import_paths.sh new file mode 100644 index 00000000..6b850767 --- /dev/null +++ b/scripts/replace_import_paths.sh @@ -0,0 +1,61 @@ +#!/bin/bash + +set -euo pipefail + +NEXT_MAJOR_VERSION=$1 +import_path_to_replace=$(go list -m) + +version_to_replace=$(echo $import_path_to_replace | sed -n 's/.*v\([0-9]*\).*/\1/p') + +echo $version_to_replace +echo Current import paths are $version_to_replace, replacing with $NEXT_MAJOR_VERSION + +# list all folders containing Go modules. +modules=$(go list -tags e2e ./... | sed "s/g.*v${version_to_replace}\///") + +while IFS= read -r line; do + modules_to_upgrade_manually+=("$line") +done < <(find . -name go.mod -exec grep -l "github.com/terpnetwork/terp-core/v4" {} \; | grep -v "^./go.mod$" | sed 's|/go.mod||' | sed 's|^./||') + +replace_paths() { + file="${1}" + sed -i "s/github.com\/terpnetwork\/terp-core/v4\/v${version_to_replace}/github.com\/terpnetwork\/terp-core/v4\/v${NEXT_MAJOR_VERSION}/g" ${file} +} + +echo "Replacing import paths in all files" + +while IFS= read -r line; do + files+=("$line") +done < <(find ./ -type f -not \( -path "./vendor*" -or -path "./.git*" -or -name "*.md" \)) + +echo "Updating all files" + +for file in "${files[@]}"; do + if test -f "$file"; then + # skip files that need manual upgrading + for excluded_file in "${modules_to_upgrade_manually[@]}"; do + if [[ "$file" == *"$excluded_file"* ]]; then + continue 2 + fi + done + replace_paths $file + fi +done + +exit 0 + +echo "Updating go.mod and vendoring" +# go.mod +replace_paths "go.mod" +go mod vendor >/dev/null + +# ensure that generated files are updated. +# N.B.: This must be run after go mod vendor. +echo "running make proto-gen" +make proto-gen >/dev/null + +echo "Run go mod vendor after proto-gen to avoid vendoring issues" +go mod vendor >/dev/null + +echo "running make run-querygen" +make run-querygen >/dev/null \ No newline at end of file diff --git a/x/clock/types/genesis.pb.go b/x/clock/types/genesis.pb.go index c3c51227..535883e2 100644 --- a/x/clock/types/genesis.pb.go +++ b/x/clock/types/genesis.pb.go @@ -72,7 +72,8 @@ func (m *GenesisState) GetParams() Params { // Params defines the set of module parameters. type Params struct { - // contract_addresses stores the list of executable contracts to be ticked on every block. + // contract_addresses stores the list of executable contracts to be ticked on + // every block. ContractAddresses []string `protobuf:"bytes,1,rep,name=contract_addresses,json=contractAddresses,proto3" json:"contract_addresses,omitempty" yaml:"contract_addresses"` ContractGasLimit uint64 `protobuf:"varint,2,opt,name=contract_gas_limit,json=contractGasLimit,proto3" json:"contract_gas_limit,omitempty" yaml:"contract_gas_limit"` } diff --git a/x/clock/types/query.pb.go b/x/clock/types/query.pb.go index 2d92ef01..739d83ee 100644 --- a/x/clock/types/query.pb.go +++ b/x/clock/types/query.pb.go @@ -67,7 +67,8 @@ func (m *QueryClockContracts) XXX_DiscardUnknown() { var xxx_messageInfo_QueryClockContracts proto.InternalMessageInfo -// QueryClockContractsResponse is the response type for the Query/ClockContracts RPC method. +// QueryClockContractsResponse is the response type for the Query/ClockContracts +// RPC method. type QueryClockContractsResponse struct { ContractAddresses []string `protobuf:"bytes,1,rep,name=contract_addresses,json=contractAddresses,proto3" json:"contract_addresses,omitempty" yaml:"contract_addresses"` } @@ -149,7 +150,8 @@ func (m *QueryParamsRequest) XXX_DiscardUnknown() { var xxx_messageInfo_QueryParamsRequest proto.InternalMessageInfo -// QueryClockContractsResponse is the response type for the Query/ClockContracts RPC method. +// QueryClockContractsResponse is the response type for the Query/ClockContracts +// RPC method. type QueryParamsResponse struct { Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params" yaml:"params"` } diff --git a/x/drip/spec/01_authorization.md b/x/drip/spec/01_authorization.md index b447c9f2..c6163c11 100644 --- a/x/drip/spec/01_authorization.md +++ b/x/drip/spec/01_authorization.md @@ -4,7 +4,7 @@ order: 1 # Authorization -For security reasons, only specific addresses can distribute tokens to $JUNO stakers. We accept any kind of address: multisig, smart contracts, regular and [https://daodao.zone](DAODAO) DAOs. +For security reasons, only specific addresses can distribute tokens to $JUNO stakers. We accept any kind of address: multisig, smart contracts, regular and [https://daodao.zone](DAODAO) DAOs. Governance can decide wether to approve or deny a new address to be added to the authorized list. diff --git a/x/drip/spec/02_distribute_tokens.md b/x/drip/spec/02_distribute_tokens.md index f7fd29f9..b32c051d 100644 --- a/x/drip/spec/02_distribute_tokens.md +++ b/x/drip/spec/02_distribute_tokens.md @@ -4,7 +4,7 @@ order: 2 # Distributing Tokens -Once an address is authorized, at any time it can use the `MsgDistributToken` message to distribute all the attached funds at the next block. +Once an address is authorized, at any time it can use the `MsgDistributToken` message to distribute all the attached funds at the next block. From command line is as easy as running the follwing instruction @@ -12,6 +12,6 @@ From command line is as easy as running the follwing instruction terpd tx drip distribute-tokens 100000tf/yourcontract/yourtoken ``` -Only native tokens and the ones made with tokenfactory are allowed. +Only native tokens and the ones made with tokenfactory are allowed. -If you have a CW-20 token, you can wrap it to native using [https://github.com/CosmosContracts/tokenfactory-contracts/tree/main/contracts/migrate](this contract). \ No newline at end of file +If you have a CW-20 token, you can wrap it to native using [https://github.com/CosmosContracts/tokenfactory-contracts/tree/main/contracts/migrate](this contract). diff --git a/x/drip/spec/03_example.md b/x/drip/spec/03_example.md index 340d70ed..d14f008d 100644 --- a/x/drip/spec/03_example.md +++ b/x/drip/spec/03_example.md @@ -30,4 +30,4 @@ fn encode_msg_create_vesting_acct(vest_to: &Addr, env: Env) -> Result Date: Tue, 19 Mar 2024 19:57:53 -0400 Subject: [PATCH 4/5] update release workflow --- .github/workflows/release.yml | 54 +++++++++++++++++------------------ 1 file changed, 26 insertions(+), 28 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5e09014f..d5ec48a1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,35 +1,33 @@ ---- -name: release binary +# This workflow creates a release using goreleaser +# via the 'make release' command. + +name: Create release on: - release: - types: [created] + workflow_dispatch: + inputs: + release_tag: + description: "The desired tag for the release (e.g. v0.1.0)." + required: true + +permissions: + contents: write jobs: - release-alpine-static: - permissions: write-all - runs-on: ubuntu-latest + release: + name: Create release + runs-on: buildjet-4vcpu-ubuntu-2204 steps: - - name: Checkout + - name: Check out repository code uses: actions/checkout@v4 - - - name: Docker compose - run: STAKE_TOKEN="uterp" TIMEOUT_COMMIT=500ms docker-compose up -d - - - name: Copy binary - run: docker cp terpd_node_1:/usr/bin/terpd ./terpd - - - name: Save sha256 sum - run: sha256sum ./terpd > ./terpd_sha256.txt - - - name: Release - uses: softprops/action-gh-release@v1 with: - token: ${{ github.token }} - files: | - terpd - terpd_sha256.txt - - - name: Dump docker logs on failure - if: failure() - uses: jwalton/gh-docker-logs@v2 + fetch-depth: 0 + ref: ${{ github.event.inputs.release_tag }} + - name: Make release + run: | + make release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: 🧹 Clean release folder + run: | + sudo rm -rf dist \ No newline at end of file From 7f2b9672704a4a26be09b6f0aa7cfae528ae8c6f Mon Sep 17 00:00:00 2001 From: hard-nett Date: Fri, 29 Mar 2024 17:06:36 -0400 Subject: [PATCH 5/5] updates --- app/app.go | 2 +- client/docs/config.json | 9 + {docs => client/docs}/docs.go | 0 client/docs/package.json | 16 ++ client/docs/static/swagger/swagger.yaml | 5 + contrib/devtools/Makefile | 19 +- docs/README.md | 3 - proto/buf.gen.gogo.yaml | 2 +- proto/buf.gen.pulsar.yaml | 8 + scripts/makefiles/proto.mk | 12 +- scripts/protocgen.sh | 69 +++--- scripts/protocgen2.sh | 19 -- x/feeshare/types/feeshare.pb.go | 32 +-- x/feeshare/types/genesis.pb.go | 76 +++--- x/feeshare/types/query.pb.go | 182 +++++--------- x/feeshare/types/query.pb.gw.go | 48 +++- x/feeshare/types/tx.pb.go | 166 +++++-------- x/feeshare/types/tx.pb.gw.go | 40 ++- x/tokenfactory/types/authorityMetadata.pb.go | 37 +-- x/tokenfactory/types/genesis.pb.go | 41 +--- x/tokenfactory/types/params.pb.go | 76 +++--- x/tokenfactory/types/query.pb.go | 143 ++++------- x/tokenfactory/types/query.pb.gw.go | 30 ++- x/tokenfactory/types/tx.pb.go | 243 ++++++------------- 24 files changed, 526 insertions(+), 752 deletions(-) create mode 100644 client/docs/config.json rename {docs => client/docs}/docs.go (100%) create mode 100644 client/docs/package.json create mode 100644 client/docs/static/swagger/swagger.yaml delete mode 100644 docs/README.md create mode 100644 proto/buf.gen.pulsar.yaml delete mode 100644 scripts/protocgen2.sh diff --git a/app/app.go b/app/app.go index dfbcad80..165d3a60 100644 --- a/app/app.go +++ b/app/app.go @@ -66,7 +66,7 @@ import ( v2 "github.com/terpnetwork/terp-core/v4/app/upgrades/v2" v3 "github.com/terpnetwork/terp-core/v4/app/upgrades/v3" "github.com/terpnetwork/terp-core/v4/app/upgrades/v4_1" - "github.com/terpnetwork/terp-core/v4/docs" + "github.com/terpnetwork/terp-core/v4/client/docs" "github.com/CosmWasm/wasmd/x/wasm" wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper" diff --git a/client/docs/config.json b/client/docs/config.json new file mode 100644 index 00000000..84154bc9 --- /dev/null +++ b/client/docs/config.json @@ -0,0 +1,9 @@ +{ + "swagger": "2.0", + "info": { + "title": "Terp Network - gRPC Gateway docs", + "description": "A REST interface for state queries, legacy transactions", + "version": "1.0.0" + }, + "apis": [] + } \ No newline at end of file diff --git a/docs/docs.go b/client/docs/docs.go similarity index 100% rename from docs/docs.go rename to client/docs/docs.go diff --git a/client/docs/package.json b/client/docs/package.json new file mode 100644 index 00000000..05b9ca22 --- /dev/null +++ b/client/docs/package.json @@ -0,0 +1,16 @@ +{ + "name": "docs", + "version": "1.0.0", + "main": "index.js", + "license": "MIT", + "scripts": { + "combine": "swagger-combine ./config.json -o static/swagger/swagger.yaml -f yaml --continueOnConflictingPaths --includeDefinitions", + "convert": "swagger2openapi static/swagger/swagger.yaml --outfile static/openapi/openapi.yaml --yaml", + "build": "redoc-cli bundle static/openapi/openapi.yaml --output ./static/openapi/index.html" + }, + "dependencies": { + "redoc-cli": "^0.9.12", + "swagger-combine": "^1.4.0", + "swagger2openapi": "^7.0.3" + } + } \ No newline at end of file diff --git a/client/docs/static/swagger/swagger.yaml b/client/docs/static/swagger/swagger.yaml new file mode 100644 index 00000000..6fd8971c --- /dev/null +++ b/client/docs/static/swagger/swagger.yaml @@ -0,0 +1,5 @@ +swagger: '2.0' +info: + title: Terp Network - gRPC Gateway docs + description: A REST interface for state queries, legacy transactions + version: 1.0.0 diff --git a/contrib/devtools/Makefile b/contrib/devtools/Makefile index f8a5de4e..0ba33158 100644 --- a/contrib/devtools/Makefile +++ b/contrib/devtools/Makefile @@ -49,25 +49,34 @@ BUF_VERSION ?= 0.11.0 TOOLS_DESTDIR ?= $(GOPATH)/bin STATIK = $(TOOLS_DESTDIR)/statik RUNSIM = $(TOOLS_DESTDIR)/runsim +GOLANGCI_LINT = $(TOOLS_DESTDIR)/golangci-lint tools: tools-stamp -tools-stamp: statik runsim +tools-stamp: statik runsim golangci-lint # Create dummy file to satisfy dependency and avoid # rebuilding when this Makefile target is hit twice # in a row. touch $@ -# Install the runsim binary statik: $(STATIK) $(STATIK): @echo "Installing statik..." - @go install github.com/rakyll/statik@v0.1.6 + @(cd /tmp && go install github.com/rakyll/statik@v0.1.6) -# Install the runsim binary +# Install the runsim binary with a temporary workaround of entering an outside +# directory as the "go get" command ignores the -mod option and will polute the +# go.{mod, sum} files. +# +# ref: https://github.com/golang/go/issues/30515 runsim: $(RUNSIM) $(RUNSIM): @echo "Installing runsim..." - @go install github.com/cosmos/tools/cmd/runsim@v1.0.0 + @(cd /tmp && go install github.com/cosmos/tools/cmd/runsim@v1.0.0) + +golangci-lint: $(GOLANGCI_LINT) +$(GOLANGCI_LINT): + @echo "Installing golangci-lint..." + @(cd /tmp && go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.47.0) tools-clean: rm -f $(STATIK) $(GOLANGCI_LINT) $(RUNSIM) diff --git a/docs/README.md b/docs/README.md deleted file mode 100644 index b9d7f985..00000000 --- a/docs/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# Generated doc only - -Tutorials and project doc is available on diff --git a/proto/buf.gen.gogo.yaml b/proto/buf.gen.gogo.yaml index 855ea251..88ead2fb 100644 --- a/proto/buf.gen.gogo.yaml +++ b/proto/buf.gen.gogo.yaml @@ -2,7 +2,7 @@ version: v1 plugins: - name: gocosmos out: .. - opt: plugins=grpc,Mgoogle/protobuf/any.proto=github.com/cosmos/cosmos-sdk/codec/types + opt: plugins=grpc,Mgoogle/protobuf/any.proto=github.com/cosmos/cosmos-sdk/codec/types,Mcosmos/orm/v1/orm.proto=cosmossdk.io/orm - name: grpc-gateway out: .. opt: logtostderr=true,allow_colon_final_segments=true \ No newline at end of file diff --git a/proto/buf.gen.pulsar.yaml b/proto/buf.gen.pulsar.yaml new file mode 100644 index 00000000..88ead2fb --- /dev/null +++ b/proto/buf.gen.pulsar.yaml @@ -0,0 +1,8 @@ +version: v1 +plugins: + - name: gocosmos + out: .. + opt: plugins=grpc,Mgoogle/protobuf/any.proto=github.com/cosmos/cosmos-sdk/codec/types,Mcosmos/orm/v1/orm.proto=cosmossdk.io/orm + - name: grpc-gateway + out: .. + opt: logtostderr=true,allow_colon_final_segments=true \ No newline at end of file diff --git a/scripts/makefiles/proto.mk b/scripts/makefiles/proto.mk index 8e2fb247..4ea7a1f5 100644 --- a/scripts/makefiles/proto.mk +++ b/scripts/makefiles/proto.mk @@ -25,13 +25,23 @@ proto-all: proto-format proto-gen proto-gen: @echo "Generating Protobuf files" - @$(DOCKER) run --rm -u 0 -v $(CURDIR):/workspace --workdir /workspace $(PROTO_BUILDER_IMAGE) sh ./scripts/protocgen.sh + @$(protoImage) sh ./scripts/protocgen.sh +# generate the stubs for the proto files from the proto directory + spawn stub-gen + +proto-swagger-gen: + @$(protoImage) sh ./scripts/protoc_swagger_openapi_gen.sh + +proto-lint: + @$(protoImage) buf lint --error-format=json proto-format: @echo "Formatting Protobuf files" @$(DOCKER) run --rm -v $(CURDIR):/workspace --workdir /workspace tendermintdev/docker-build-proto \ find ./proto -name "*.proto" -exec clang-format -i {} \; +proto-check-breaking: + @$(CURDIR) $(protoImage) buf breaking --against $(HTTPS_GIT)#branch=main SWAGGER_DIR=./swagger-proto THIRD_PARTY_DIR=$(SWAGGER_DIR)/third_party diff --git a/scripts/protocgen.sh b/scripts/protocgen.sh index ff826ba0..7776abc0 100755 --- a/scripts/protocgen.sh +++ b/scripts/protocgen.sh @@ -1,37 +1,50 @@ #!/usr/bin/env bash -#== Legacy Requirements (<= SDK v45) == -# -## make sure your `go env GOPATH` is in the `$PATH` -## Install: -## + latest buf (v1.0.0-rc11 or later) -## + protobuf v3 -# -## All protoc dependencies must be installed not in the module scope -## currently we must use grpc-gateway v1 -# cd ~ -# go install google.golang.org/protobuf/cmd/protoc-gen-go@latest -# go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest -# go install github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway@v1.16.0 -# go install github.com/cosmos/cosmos-proto/cmd/protoc-gen-go-pulsar@latest -# go get github.com/regen-network/cosmos-proto@latest # doesn't work in install mode -# go get github.com/regen-network/cosmos-proto/protoc-gen-gocosmos@v0.3.1 - -# Updated - How to run manually: -# docker build --pull --rm -f "contrib/devtools/Dockerfile" -t cosmossdk-proto:latest "contrib/devtools" -# docker run --rm -v $(pwd):/workspace --workdir /workspace cosmossdk-proto sh ./scripts/protocgen.sh - -set -eo pipefail +set -e + +GO_MOD_PACKAGE="github.com/terpnetwork/terp-core" echo "Generating gogo proto code" cd proto -buf mod update +proto_dirs=$(find . -path -prune -o -name '*.proto' -print0 | xargs -0 -n1 dirname | sort | uniq) +for dir in $proto_dirs; do + for file in $(find "${dir}" -maxdepth 1 -name '*.proto'); do + # this regex checks if a proto file has its go_package set to github.com/strangelove-ventures/poa/... + # gogo proto files SHOULD ONLY be generated if this is false + # we don't want gogo proto to run for proto files which are natively built for google.golang.org/protobuf + if grep -q "option go_package" "$file" && grep -H -o -c "option go_package.*$GO_MOD_PACKAGE/api" "$file" | grep -q ':0$'; then + buf generate --template buf.gen.gogo.yaml $file + fi + done +done + +echo "Generating pulsar proto code" +buf generate --template buf.gen.pulsar.yaml + cd .. -buf generate -# move proto files to the right places -cp -r ./github.com/terpnetwork/terp-core/x/* x/ -cp -r ./github.com/cosmos/gaia/x/* x/ +cp -r $GO_MOD_PACKAGE/* ./ +rm -rf github.com + +# Copy files over for dep injection +rm -rf api && mkdir api +custom_modules=$(find . -name 'module' -type d -not -path "./proto/*") + +# get the 1 up directory (so ./cosmos/mint/module becomes ./cosmos/mint) +# remove the relative path starter from base namespaces. so ./cosmos/mint becomes cosmos/mint +base_namespace=$(echo $custom_modules | sed -e 's|/module||g' | sed -e 's|\./||g') + +# echo "Base namespace: $base_namespace" +for module in $base_namespace; do + echo " [+] Moving: ./$module to ./api/$module" + + mkdir -p api/$module + + mv $module/* ./api/$module/ + # # incorrect reference to the module for coins + find api/$module -type f -name '*.go' -exec sed -i -e 's|types "github.com/cosmos/cosmos-sdk/types"|types "cosmossdk.io/api/cosmos/base/v1beta1"|g' {} \; + find api/$module -type f -name '*.go' -exec sed -i -e 's|types1 "github.com/cosmos/cosmos-sdk/x/bank/types"|types1 "cosmossdk.io/api/cosmos/bank/v1beta1"|g' {} \; -rm -rf ./github.com \ No newline at end of file + rm -rf $module +done \ No newline at end of file diff --git a/scripts/protocgen2.sh b/scripts/protocgen2.sh deleted file mode 100644 index 77ad9c79..00000000 --- a/scripts/protocgen2.sh +++ /dev/null @@ -1,19 +0,0 @@ -# this script is for generating protobuf files for the new google.golang.org/protobuf API - -set -eo pipefail - -protoc_install_gopulsar() { - go install github.com/cosmos/cosmos-proto/cmd/protoc-gen-go-pulsar@latest - go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest -} - -protoc_install_gopulsar - -echo "Cleaning API directory" -(cd api; find ./ -type f \( -iname \*.pulsar.go -o -iname \*.pb.go -o -iname \*.cosmos_orm.go -o -iname \*.pb.gw.go \) -delete; find . -empty -type d -delete; cd ..) - -echo "Generating API module" -(cd proto; buf generate --template buf.gen.pulsar.yaml) - -echo "Generate Pulsar Test Data" -(cd testutil/testdata; buf generate --template buf.gen.pulsar.yaml) \ No newline at end of file diff --git a/x/feeshare/types/feeshare.pb.go b/x/feeshare/types/feeshare.pb.go index 2672f7cd..460c948d 100644 --- a/x/feeshare/types/feeshare.pb.go +++ b/x/feeshare/types/feeshare.pb.go @@ -5,19 +5,16 @@ package types import ( fmt "fmt" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" - - proto "github.com/cosmos/gogoproto/proto" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. @@ -45,11 +42,9 @@ func (*FeeShare) ProtoMessage() {} func (*FeeShare) Descriptor() ([]byte, []int) { return fileDescriptor_3fd5d33ef9423a38, []int{0} } - func (m *FeeShare) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *FeeShare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_FeeShare.Marshal(b, m, deterministic) @@ -62,15 +57,12 @@ func (m *FeeShare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return b[:n], nil } } - func (m *FeeShare) XXX_Merge(src proto.Message) { xxx_messageInfo_FeeShare.Merge(m, src) } - func (m *FeeShare) XXX_Size() int { return m.Size() } - func (m *FeeShare) XXX_DiscardUnknown() { xxx_messageInfo_FeeShare.DiscardUnknown(m) } @@ -105,7 +97,7 @@ func init() { func init() { proto.RegisterFile("terp/feeshare/v1/feeshare.proto", fileDescriptor_3fd5d33ef9423a38) } var fileDescriptor_3fd5d33ef9423a38 = []byte{ - // 213 bytes of a gzipped FileDescriptorProto + // 214 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2f, 0x49, 0x2d, 0x2a, 0xd0, 0x4f, 0x4b, 0x4d, 0x2d, 0xce, 0x48, 0x2c, 0x4a, 0xd5, 0x2f, 0x33, 0x84, 0xb3, 0xf5, 0x0a, 0x8a, 0xf2, 0x4b, 0xf2, 0x85, 0x04, 0x40, 0x0a, 0xf4, 0xe0, 0x82, 0x65, 0x86, 0x4a, 0xfd, 0x8c, @@ -114,12 +106,12 @@ var fileDescriptor_3fd5d33ef9423a38 = []byte{ 0x06, 0x67, 0x10, 0x3f, 0x4c, 0xdc, 0x11, 0x22, 0x0c, 0x52, 0x9a, 0x92, 0x5a, 0x90, 0x93, 0x5f, 0x99, 0x5a, 0x04, 0x57, 0xca, 0x04, 0x51, 0x0a, 0x13, 0x87, 0x29, 0xd5, 0xe5, 0x12, 0x2a, 0xcf, 0x2c, 0xc9, 0x48, 0x29, 0x4a, 0x2c, 0x47, 0x52, 0xcc, 0x0c, 0x56, 0x2c, 0x88, 0x90, 0x81, 0x2a, - 0x77, 0xf2, 0x3e, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0x27, - 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, 0x86, 0x28, 0xc3, 0xf4, 0xcc, + 0x77, 0xf2, 0x3b, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0x27, + 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, 0x86, 0x28, 0x93, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0x7d, 0x90, 0x47, 0xf2, 0x52, 0x4b, 0xca, 0xf3, - 0x8b, 0xb2, 0xc1, 0x6c, 0xdd, 0xe4, 0xfc, 0xa2, 0x54, 0xfd, 0x0a, 0x84, 0xe7, 0x4b, 0x2a, 0x0b, - 0x52, 0x8b, 0x93, 0xd8, 0xc0, 0xfe, 0x36, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x68, 0x11, 0x65, - 0x11, 0x1a, 0x01, 0x00, 0x00, + 0x8b, 0xb2, 0xc1, 0x6c, 0xdd, 0xe4, 0x7c, 0x90, 0x8f, 0x4d, 0xf4, 0x2b, 0x10, 0xfe, 0x2f, 0xa9, + 0x2c, 0x48, 0x2d, 0x4e, 0x62, 0x03, 0x7b, 0xdd, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0xa0, 0xf8, + 0x1e, 0x9a, 0x1d, 0x01, 0x00, 0x00, } func (m *FeeShare) Marshal() (dAtA []byte, err error) { @@ -177,7 +169,6 @@ func encodeVarintFeeshare(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } - func (m *FeeShare) Size() (n int) { if m == nil { return 0 @@ -202,11 +193,9 @@ func (m *FeeShare) Size() (n int) { func sovFeeshare(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } - func sozFeeshare(x uint64) (n int) { return sovFeeshare(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } - func (m *FeeShare) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -353,7 +342,6 @@ func (m *FeeShare) Unmarshal(dAtA []byte) error { } return nil } - func skipFeeshare(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/x/feeshare/types/genesis.pb.go b/x/feeshare/types/genesis.pb.go index 25f796f2..3ee99b77 100644 --- a/x/feeshare/types/genesis.pb.go +++ b/x/feeshare/types/genesis.pb.go @@ -5,21 +5,18 @@ package types import ( fmt "fmt" - io "io" - math "math" - math_bits "math/bits" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" _ "github.com/cosmos/gogoproto/gogoproto" proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. @@ -41,11 +38,9 @@ func (*GenesisState) ProtoMessage() {} func (*GenesisState) Descriptor() ([]byte, []int) { return fileDescriptor_7f942c377ec7c32d, []int{0} } - func (m *GenesisState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_GenesisState.Marshal(b, m, deterministic) @@ -58,15 +53,12 @@ func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return b[:n], nil } } - func (m *GenesisState) XXX_Merge(src proto.Message) { xxx_messageInfo_GenesisState.Merge(m, src) } - func (m *GenesisState) XXX_Size() int { return m.Size() } - func (m *GenesisState) XXX_DiscardUnknown() { xxx_messageInfo_GenesisState.DiscardUnknown(m) } @@ -107,11 +99,9 @@ func (*Params) ProtoMessage() {} func (*Params) Descriptor() ([]byte, []int) { return fileDescriptor_7f942c377ec7c32d, []int{1} } - func (m *Params) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_Params.Marshal(b, m, deterministic) @@ -124,15 +114,12 @@ func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return b[:n], nil } } - func (m *Params) XXX_Merge(src proto.Message) { xxx_messageInfo_Params.Merge(m, src) } - func (m *Params) XXX_Size() int { return m.Size() } - func (m *Params) XXX_DiscardUnknown() { xxx_messageInfo_Params.DiscardUnknown(m) } @@ -161,29 +148,29 @@ func init() { func init() { proto.RegisterFile("terp/feeshare/v1/genesis.proto", fileDescriptor_7f942c377ec7c32d) } var fileDescriptor_7f942c377ec7c32d = []byte{ - // 348 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x91, 0xb1, 0x4e, 0xc2, 0x40, - 0x1c, 0xc6, 0x7b, 0x60, 0x08, 0x1c, 0x8a, 0xa4, 0x71, 0x68, 0x18, 0x4a, 0x43, 0xa2, 0xe9, 0xc2, - 0x5d, 0xc0, 0xc4, 0xcd, 0x85, 0x10, 0x1d, 0x5c, 0x4c, 0x99, 0x74, 0x21, 0xa5, 0xfd, 0x53, 0x08, - 0x6d, 0xaf, 0xb9, 0x3b, 0x41, 0x1f, 0xc0, 0xdd, 0x87, 0xf1, 0x21, 0x18, 0x19, 0x8d, 0x03, 0x31, - 0xf0, 0x22, 0xa6, 0xd7, 0x02, 0x46, 0xa6, 0x7e, 0xfd, 0xbe, 0xff, 0xf7, 0xbb, 0xcb, 0xfd, 0xb1, - 0x29, 0x81, 0x27, 0x74, 0x0c, 0x20, 0x26, 0x2e, 0x07, 0x3a, 0xef, 0xd0, 0x00, 0x62, 0x10, 0x53, - 0x41, 0x12, 0xce, 0x24, 0xd3, 0xeb, 0x69, 0x4e, 0x76, 0x39, 0x99, 0x77, 0x1a, 0xcd, 0xa3, 0xc6, - 0x3e, 0x55, 0x95, 0xc6, 0x45, 0xc0, 0x02, 0xa6, 0x24, 0x4d, 0x55, 0xe6, 0xb6, 0xde, 0x11, 0x3e, - 0xbd, 0xcf, 0xd0, 0x03, 0xe9, 0x4a, 0xd0,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0x9f, 0x29, - 0xdd, 0xf6, 0x18, 0x07, 0xfa, 0x7a, 0xd8, 0x96, 0xba, 0xc8, 0xa8, 0xa4, 0x56, 0x72, 0xfd, 0x1b, - 0x00, 0x00, 0xff, 0xff, 0xfe, 0x14, 0xac, 0xac, 0xfd, 0x01, 0x00, 0x00, + // 352 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x91, 0xb1, 0x6e, 0xea, 0x30, + 0x18, 0x85, 0x63, 0xb8, 0x42, 0x60, 0xee, 0xe5, 0xa2, 0xa8, 0x43, 0xc4, 0x10, 0x22, 0xa4, 0x56, + 0x59, 0xb0, 0x05, 0x45, 0xdd, 0xba, 0x20, 0xd4, 0x6e, 0x55, 0x15, 0xa6, 0x76, 0x41, 0x21, 0xf9, + 0x09, 0x88, 0x24, 0x8e, 0x62, 0x17, 0xda, 0x07, 0xe8, 0xde, 0x87, 0xe9, 0x43, 0x30, 0x32, 0x56, + 0x1d, 0x50, 0x05, 0x2f, 0x52, 0xd9, 0x09, 0x50, 0x95, 0x29, 0x27, 0xe7, 0xfc, 0xe7, 0xb3, 0xe5, + 0x1f, 0x9b, 0x02, 0xd2, 0x84, 0x4e, 0x00, 0xf8, 0xd4, 0x4d, 0x81, 0x2e, 0x3a, 0x34, 0x80, 0x18, + 0xf8, 0x8c, 0x93, 0x24, 0x65, 0x82, 0xe9, 0x75, 0x99, 0x93, 0x7d, 0x4e, 0x16, 0x9d, 0x46, 0xf3, + 0xa4, 0x71, 0x48, 0x55, 0xa5, 0x71, 0x16, 0xb0, 0x80, 0x29, 0x49, 0xa5, 0xca, 0xdc, 0xd6, 0x2b, + 0xc2, 0x7f, 0x6f, 0x33, 0xf4, 0x50, 0xb8, 0x02, 0xf4, 0x2b, 0x5c, 0x4a, 0xdc, 0xd4, 0x8d, 0xb8, + 0x81, 0x2c, 0x64, 0x57, 0xbb, 0x06, 0xf9, 0x7d,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x2e, 0xa9, + 0xad, 0x5c, 0x7e, 0x07, 0x00, 0x00, 0xff, 0xff, 0x0e, 0xb2, 0x4f, 0xfc, 0x00, 0x02, 0x00, 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { @@ -296,7 +283,6 @@ func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } - func (m *GenesisState) Size() (n int) { if m == nil { return 0 @@ -337,11 +323,9 @@ func (m *Params) Size() (n int) { func sovGenesis(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } - func sozGenesis(x uint64) (n int) { return sovGenesis(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } - func (m *GenesisState) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -459,7 +443,6 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { } return nil } - func (m *Params) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -596,7 +579,6 @@ func (m *Params) Unmarshal(dAtA []byte) error { } return nil } - func skipGenesis(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/x/feeshare/types/query.pb.go b/x/feeshare/types/query.pb.go index 6c55c74b..da6016ed 100644 --- a/x/feeshare/types/query.pb.go +++ b/x/feeshare/types/query.pb.go @@ -6,10 +6,6 @@ package types import ( context "context" fmt "fmt" - io "io" - math "math" - math_bits "math/bits" - query "github.com/cosmos/cosmos-sdk/types/query" _ "github.com/cosmos/gogoproto/gogoproto" grpc1 "github.com/cosmos/gogoproto/grpc" @@ -18,14 +14,15 @@ import ( grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" + io "io" + math "math" + math_bits "math/bits" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. @@ -45,11 +42,9 @@ func (*QueryFeeSharesRequest) ProtoMessage() {} func (*QueryFeeSharesRequest) Descriptor() ([]byte, []int) { return fileDescriptor_e972f6890c795a75, []int{0} } - func (m *QueryFeeSharesRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *QueryFeeSharesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryFeeSharesRequest.Marshal(b, m, deterministic) @@ -62,15 +57,12 @@ func (m *QueryFeeSharesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byt return b[:n], nil } } - func (m *QueryFeeSharesRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryFeeSharesRequest.Merge(m, src) } - func (m *QueryFeeSharesRequest) XXX_Size() int { return m.Size() } - func (m *QueryFeeSharesRequest) XXX_DiscardUnknown() { xxx_messageInfo_QueryFeeSharesRequest.DiscardUnknown(m) } @@ -99,11 +91,9 @@ func (*QueryFeeSharesResponse) ProtoMessage() {} func (*QueryFeeSharesResponse) Descriptor() ([]byte, []int) { return fileDescriptor_e972f6890c795a75, []int{1} } - func (m *QueryFeeSharesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *QueryFeeSharesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryFeeSharesResponse.Marshal(b, m, deterministic) @@ -116,15 +106,12 @@ func (m *QueryFeeSharesResponse) XXX_Marshal(b []byte, deterministic bool) ([]by return b[:n], nil } } - func (m *QueryFeeSharesResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryFeeSharesResponse.Merge(m, src) } - func (m *QueryFeeSharesResponse) XXX_Size() int { return m.Size() } - func (m *QueryFeeSharesResponse) XXX_DiscardUnknown() { xxx_messageInfo_QueryFeeSharesResponse.DiscardUnknown(m) } @@ -157,11 +144,9 @@ func (*QueryFeeShareRequest) ProtoMessage() {} func (*QueryFeeShareRequest) Descriptor() ([]byte, []int) { return fileDescriptor_e972f6890c795a75, []int{2} } - func (m *QueryFeeShareRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *QueryFeeShareRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryFeeShareRequest.Marshal(b, m, deterministic) @@ -174,15 +159,12 @@ func (m *QueryFeeShareRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte return b[:n], nil } } - func (m *QueryFeeShareRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryFeeShareRequest.Merge(m, src) } - func (m *QueryFeeShareRequest) XXX_Size() int { return m.Size() } - func (m *QueryFeeShareRequest) XXX_DiscardUnknown() { xxx_messageInfo_QueryFeeShareRequest.DiscardUnknown(m) } @@ -208,11 +190,9 @@ func (*QueryFeeShareResponse) ProtoMessage() {} func (*QueryFeeShareResponse) Descriptor() ([]byte, []int) { return fileDescriptor_e972f6890c795a75, []int{3} } - func (m *QueryFeeShareResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *QueryFeeShareResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryFeeShareResponse.Marshal(b, m, deterministic) @@ -225,15 +205,12 @@ func (m *QueryFeeShareResponse) XXX_Marshal(b []byte, deterministic bool) ([]byt return b[:n], nil } } - func (m *QueryFeeShareResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryFeeShareResponse.Merge(m, src) } - func (m *QueryFeeShareResponse) XXX_Size() int { return m.Size() } - func (m *QueryFeeShareResponse) XXX_DiscardUnknown() { xxx_messageInfo_QueryFeeShareResponse.DiscardUnknown(m) } @@ -248,7 +225,8 @@ func (m *QueryFeeShareResponse) GetFeeshare() FeeShare { } // QueryParamsRequest is the request type for the Query/Params RPC method. -type QueryParamsRequest struct{} +type QueryParamsRequest struct { +} func (m *QueryParamsRequest) Reset() { *m = QueryParamsRequest{} } func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) } @@ -256,11 +234,9 @@ func (*QueryParamsRequest) ProtoMessage() {} func (*QueryParamsRequest) Descriptor() ([]byte, []int) { return fileDescriptor_e972f6890c795a75, []int{4} } - func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryParamsRequest.Marshal(b, m, deterministic) @@ -273,15 +249,12 @@ func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } - func (m *QueryParamsRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryParamsRequest.Merge(m, src) } - func (m *QueryParamsRequest) XXX_Size() int { return m.Size() } - func (m *QueryParamsRequest) XXX_DiscardUnknown() { xxx_messageInfo_QueryParamsRequest.DiscardUnknown(m) } @@ -300,11 +273,9 @@ func (*QueryParamsResponse) ProtoMessage() {} func (*QueryParamsResponse) Descriptor() ([]byte, []int) { return fileDescriptor_e972f6890c795a75, []int{5} } - func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryParamsResponse.Marshal(b, m, deterministic) @@ -317,15 +288,12 @@ func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } - func (m *QueryParamsResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryParamsResponse.Merge(m, src) } - func (m *QueryParamsResponse) XXX_Size() int { return m.Size() } - func (m *QueryParamsResponse) XXX_DiscardUnknown() { xxx_messageInfo_QueryParamsResponse.DiscardUnknown(m) } @@ -354,11 +322,9 @@ func (*QueryDeployerFeeSharesRequest) ProtoMessage() {} func (*QueryDeployerFeeSharesRequest) Descriptor() ([]byte, []int) { return fileDescriptor_e972f6890c795a75, []int{6} } - func (m *QueryDeployerFeeSharesRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *QueryDeployerFeeSharesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryDeployerFeeSharesRequest.Marshal(b, m, deterministic) @@ -371,15 +337,12 @@ func (m *QueryDeployerFeeSharesRequest) XXX_Marshal(b []byte, deterministic bool return b[:n], nil } } - func (m *QueryDeployerFeeSharesRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryDeployerFeeSharesRequest.Merge(m, src) } - func (m *QueryDeployerFeeSharesRequest) XXX_Size() int { return m.Size() } - func (m *QueryDeployerFeeSharesRequest) XXX_DiscardUnknown() { xxx_messageInfo_QueryDeployerFeeSharesRequest.DiscardUnknown(m) } @@ -416,11 +379,9 @@ func (*QueryDeployerFeeSharesResponse) ProtoMessage() {} func (*QueryDeployerFeeSharesResponse) Descriptor() ([]byte, []int) { return fileDescriptor_e972f6890c795a75, []int{7} } - func (m *QueryDeployerFeeSharesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *QueryDeployerFeeSharesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryDeployerFeeSharesResponse.Marshal(b, m, deterministic) @@ -433,15 +394,12 @@ func (m *QueryDeployerFeeSharesResponse) XXX_Marshal(b []byte, deterministic boo return b[:n], nil } } - func (m *QueryDeployerFeeSharesResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryDeployerFeeSharesResponse.Merge(m, src) } - func (m *QueryDeployerFeeSharesResponse) XXX_Size() int { return m.Size() } - func (m *QueryDeployerFeeSharesResponse) XXX_DiscardUnknown() { xxx_messageInfo_QueryDeployerFeeSharesResponse.DiscardUnknown(m) } @@ -477,11 +435,9 @@ func (*QueryWithdrawerFeeSharesRequest) ProtoMessage() {} func (*QueryWithdrawerFeeSharesRequest) Descriptor() ([]byte, []int) { return fileDescriptor_e972f6890c795a75, []int{8} } - func (m *QueryWithdrawerFeeSharesRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *QueryWithdrawerFeeSharesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryWithdrawerFeeSharesRequest.Marshal(b, m, deterministic) @@ -494,15 +450,12 @@ func (m *QueryWithdrawerFeeSharesRequest) XXX_Marshal(b []byte, deterministic bo return b[:n], nil } } - func (m *QueryWithdrawerFeeSharesRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryWithdrawerFeeSharesRequest.Merge(m, src) } - func (m *QueryWithdrawerFeeSharesRequest) XXX_Size() int { return m.Size() } - func (m *QueryWithdrawerFeeSharesRequest) XXX_DiscardUnknown() { xxx_messageInfo_QueryWithdrawerFeeSharesRequest.DiscardUnknown(m) } @@ -539,11 +492,9 @@ func (*QueryWithdrawerFeeSharesResponse) ProtoMessage() {} func (*QueryWithdrawerFeeSharesResponse) Descriptor() ([]byte, []int) { return fileDescriptor_e972f6890c795a75, []int{9} } - func (m *QueryWithdrawerFeeSharesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *QueryWithdrawerFeeSharesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryWithdrawerFeeSharesResponse.Marshal(b, m, deterministic) @@ -556,15 +507,12 @@ func (m *QueryWithdrawerFeeSharesResponse) XXX_Marshal(b []byte, deterministic b return b[:n], nil } } - func (m *QueryWithdrawerFeeSharesResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryWithdrawerFeeSharesResponse.Merge(m, src) } - func (m *QueryWithdrawerFeeSharesResponse) XXX_Size() int { return m.Size() } - func (m *QueryWithdrawerFeeSharesResponse) XXX_DiscardUnknown() { xxx_messageInfo_QueryWithdrawerFeeSharesResponse.DiscardUnknown(m) } @@ -601,57 +549,55 @@ func init() { func init() { proto.RegisterFile("terp/feeshare/v1/query.proto", fileDescriptor_e972f6890c795a75) } var fileDescriptor_e972f6890c795a75 = []byte{ - // 675 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x95, 0xcf, 0x6b, 0x13, 0x41, - 0x14, 0xc7, 0x33, 0x55, 0x43, 0xfb, 0x7a, 0xb0, 0x9d, 0x56, 0x09, 0x4b, 0xdd, 0x86, 0xa5, 0xf6, - 0x87, 0xd0, 0x1d, 0x37, 0x05, 0x45, 0xf0, 0xd2, 0x22, 0xf5, 0x20, 0x42, 0x8d, 0x88, 0xe0, 0xa5, - 0x4c, 0x92, 0xe7, 0x36, 0xd8, 0xee, 0x6c, 0x77, 0xb6, 0x8d, 0x45, 0x7a, 0x11, 0x4f, 0x9e, 0x44, - 0x3d, 0x14, 0x2f, 0xfe, 0x09, 0x1e, 0xfd, 0x17, 0x7a, 0x2c, 0x78, 0xf1, 0x24, 0xd2, 0xfa, 0x87, - 0x48, 0x66, 0x66, 0x53, 0xb3, 0x9b, 0x6d, 0x8c, 0x14, 0xbc, 0x2d, 0xf3, 0x7e, 0x7c, 0x3f, 0xef, - 0xcd, 0x9b, 0xb7, 0x30, 0x15, 0x63, 0x14, 0xb2, 0xe7, 0x88, 0x72, 0x83, 0x47, 0xc8, 0x76, 0x3d, - 0xb6, 0xbd, 0x83, 0xd1, 0x9e, 0x1b, 0x46, 0x22, 0x16, 0x74, 0xac, 0x6d, 0x75, 0x13, 0xab, 0xbb, - 0xeb, 0x59, 0x37, 0xea, 0x42, 0x6e, 0x09, 0xc9, 0x6a, 0x5c, 0xa2, 0x76, 0x65, 0xbb, 0x5e, 0x0d, - 0x63, 0xee, 0xb1, 0x90, 0xfb, 0xcd, 0x80, 0xc7, 0x4d, 0x11, 0xe8, 0x68, 0xcb, 0xce, 0xe4, 0xf6, - 0x31, 0x40, 0xd9, 0x94, 0xc6, 0x3e, 0x9d, 0xb1, 0x77, 0x94, 0xb4, 0xc3, 0xa4, 0x2f, 0x7c, 0xa1, - 0x3e, 0x59, 0xfb, 0xcb, 0x9c, 0x4e, 0xf9, 0x42, 0xf8, 0x9b, 0xc8, 0x78, 0xd8, 0x64, 0x3c, 0x08, - 0x44, 0xac, 0x34, 0x4d, 0x52, 0x67, 0x1d, 0xae, 0x3c, 0x6a, 0x63, 0xad, 0x22, 0x3e, 0x6e, 0xa7, - 0x92, 0x55, 0xdc, 0xde, 0x41, 0x19, 0xd3, 0x55, 0x80, 0x53, 0xc2, 0x12, 0x29, 0x93, 0xf9, 0xd1, - 0xca, 0xac, 0xab, 0xcb, 0x71, 0xdb, 0xe5, 0xb8, 0xba, 0x72, 0x53, 0x8e, 0xbb, 0xc6, 0x7d, 0x34, - 0xb1, 0xd5, 0x3f, 0x22, 0x9d, 0xcf, 0x04, 0xae, 0xa6, 0x15, 0x64, 0x28, 0x02, 0x89, 0xf4, 0x2e, - 0x0c, 0x27, 0x15, 0x94, 0x48, 0xf9, 0xc2, 0xfc, 0x68, 0xc5, 0x72, 0xd3, 0x1d, 0x74, 0x93, 0xb0, - 0x95, 0x8b, 0x87, 0x3f, 0xa6, 0x0b, 0xd5, 0x4e, 0x04, 0xbd, 0xdf, 0x05, 0x38, 0xa4, 0x00, 0xe7, - 0xfa, 0x02, 0x6a, 0xe9, 0x2e, 0xc2, 0x65, 0x98, 0xec, 0x02, 0x4c, 0x3a, 0xb0, 0x00, 0x63, 0x75, - 0x11, 0xc4, 0x11, 0xaf, 0xc7, 0xeb, 0xbc, 0xd1, 0x88, 0x50, 0x4a, 0xd5, 0x87, 0x91, 0xea, 0xe5, - 0xe4, 0x7c, 0x59, 0x1f, 0x3b, 0x4f, 0x52, 0x5d, 0xcc, 0x29, 0x91, 0x0c, 0x56, 0xa2, 0x33, 0x09, - 0x54, 0xa5, 0x5d, 0xe3, 0x11, 0xdf, 0x4a, 0x6e, 0xc6, 0x79, 0x08, 0x13, 0x5d, 0xa7, 0x46, 0xea, - 0x16, 0x14, 0x43, 0x75, 0x62, 0x84, 0x4a, 0x59, 0x21, 0x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0x8f, - 0x45, 0x4b, 0x59, 0x1e, 0xbd, 0x08, 0xe8, 0x17, 0x02, 0xe3, 0x99, 0xe7, 0x46, 0x59, 0x4e, 0xfa, - 0xbc, 0x6d, 0x61, 0xdd, 0xfc, 0xfb, 0x80, 0xc1, 0x5a, 0x95, 0xde, 0x41, 0xfb, 0xf4, 0x2b, 0x81, - 0x89, 0x1e, 0xa3, 0x4e, 0xbd, 0x1c, 0x84, 0xfc, 0x17, 0x6b, 0x55, 0x06, 0x09, 0x31, 0xdc, 0x77, - 0x14, 0xf7, 0x12, 0xf5, 0xce, 0xe6, 0xce, 0x6e, 0x82, 0xfd, 0x95, 0x07, 0x87, 0xc7, 0x36, 0x39, - 0x3a, 0xb6, 0xc9, 0xcf, 0x63, 0x9b, 0xbc, 0x3b, 0xb1, 0x0b, 0x47, 0x27, 0x76, 0xe1, 0xfb, 0x89, - 0x5d, 0x78, 0xe6, 0xf9, 0xcd, 0x78, 0x63, 0xa7, 0xe6, 0xd6, 0xc5, 0x96, 0x4a, 0x1b, 0x60, 0xdc, - 0x12, 0xd1, 0x0b, 0xf5, 0xbd, 0x58, 0x17, 0x11, 0xb2, 0x97, 0xa7, 0x4a, 0xf1, 0x5e, 0x88, 0xb2, - 0x56, 0x54, 0xbf, 0xf2, 0xa5, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x64, 0x9c, 0x4f, 0x2c, 0x9d, - 0x08, 0x00, 0x00, + // 676 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x95, 0xcf, 0x4f, 0xd4, 0x40, + 0x14, 0xc7, 0x77, 0x50, 0x37, 0xf0, 0x38, 0x08, 0x03, 0x9a, 0x4d, 0x83, 0x65, 0xd3, 0x20, 0x3f, + 0x4c, 0xe8, 0xd8, 0x85, 0x68, 0x4c, 0xbc, 0x40, 0x0c, 0x9e, 0x34, 0xb8, 0xc6, 0x98, 0x78, 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x80, 0xbd, 0xd3, 0xb9, 0xf3, 0x9b, 0x60, 0x6f, 0xf9, 0xe1, 0xc1, 0x91, 0x8d, 0x0e, + 0x8f, 0x6c, 0xf4, 0xf3, 0xc8, 0x46, 0xef, 0x8e, 0xed, 0xd2, 0xe1, 0xb1, 0x5d, 0xfa, 0x7e, 0x6c, + 0x97, 0x9e, 0x2d, 0xfa, 0x81, 0x5c, 0xdf, 0x6e, 0xb8, 0x4d, 0xbe, 0xa9, 0xd2, 0x86, 0x4c, 0xb6, + 0x79, 0xfc, 0x42, 0x7d, 0xcf, 0x37, 0x79, 0x92, 0x7e, 0x91, 0xbc, 0x3c, 0x11, 0x93, 0xbb, 0x11, + 0x13, 0x8d, 0xb2, 0xfa, 0x9b, 0x2f, 0xfc, 0x0e, 0x00, 0x00, 0xff, 0xff, 0x29, 0x2e, 0x92, 0xc6, + 0xa0, 0x08, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. -var ( - _ context.Context - _ grpc.ClientConn -) +var _ context.Context +var _ grpc.ClientConn // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. @@ -745,24 +691,21 @@ type QueryServer interface { } // UnimplementedQueryServer can be embedded to have forward compatible implementations. -type UnimplementedQueryServer struct{} +type UnimplementedQueryServer struct { +} func (*UnimplementedQueryServer) FeeShares(ctx context.Context, req *QueryFeeSharesRequest) (*QueryFeeSharesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method FeeShares not implemented") } - func (*UnimplementedQueryServer) FeeShare(ctx context.Context, req *QueryFeeShareRequest) (*QueryFeeShareResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method FeeShare not implemented") } - func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") } - func (*UnimplementedQueryServer) DeployerFeeShares(ctx context.Context, req *QueryDeployerFeeSharesRequest) (*QueryDeployerFeeSharesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DeployerFeeShares not implemented") } - func (*UnimplementedQueryServer) WithdrawerFeeShares(ctx context.Context, req *QueryWithdrawerFeeSharesRequest) (*QueryWithdrawerFeeSharesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method WithdrawerFeeShares not implemented") } @@ -1276,7 +1219,6 @@ func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } - func (m *QueryFeeSharesRequest) Size() (n int) { if m == nil { return 0 @@ -1428,11 +1370,9 @@ func (m *QueryWithdrawerFeeSharesResponse) Size() (n int) { func sovQuery(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } - func sozQuery(x uint64) (n int) { return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } - func (m *QueryFeeSharesRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1519,7 +1459,6 @@ func (m *QueryFeeSharesRequest) Unmarshal(dAtA []byte) error { } return nil } - func (m *QueryFeeSharesResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1640,7 +1579,6 @@ func (m *QueryFeeSharesResponse) Unmarshal(dAtA []byte) error { } return nil } - func (m *QueryFeeShareRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1723,7 +1661,6 @@ func (m *QueryFeeShareRequest) Unmarshal(dAtA []byte) error { } return nil } - func (m *QueryFeeShareResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1807,7 +1744,6 @@ func (m *QueryFeeShareResponse) Unmarshal(dAtA []byte) error { } return nil } - func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1858,7 +1794,6 @@ func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error { } return nil } - func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1942,7 +1877,6 @@ func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error { } return nil } - func (m *QueryDeployerFeeSharesRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -2061,7 +1995,6 @@ func (m *QueryDeployerFeeSharesRequest) Unmarshal(dAtA []byte) error { } return nil } - func (m *QueryDeployerFeeSharesResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -2180,7 +2113,6 @@ func (m *QueryDeployerFeeSharesResponse) Unmarshal(dAtA []byte) error { } return nil } - func (m *QueryWithdrawerFeeSharesRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -2299,7 +2231,6 @@ func (m *QueryWithdrawerFeeSharesRequest) Unmarshal(dAtA []byte) error { } return nil } - func (m *QueryWithdrawerFeeSharesResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -2418,7 +2349,6 @@ func (m *QueryWithdrawerFeeSharesResponse) Unmarshal(dAtA []byte) error { } return nil } - func skipQuery(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/x/feeshare/types/query.pb.gw.go b/x/feeshare/types/query.pb.gw.go index 15f2142a..0db12fab 100644 --- a/x/feeshare/types/query.pb.gw.go +++ b/x/feeshare/types/query.pb.gw.go @@ -25,18 +25,18 @@ import ( ) // Suppress "imported and not used" errors +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = descriptor.ForMessage +var _ = metadata.Join + var ( - _ codes.Code - _ io.Reader - _ status.Status - _ = runtime.String - _ = utilities.NewDoubleArray - _ = descriptor.ForMessage - _ = metadata.Join + filter_Query_FeeShares_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} ) -var filter_Query_FeeShares_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} - func request_Query_FeeShares_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryFeeSharesRequest var metadata runtime.ServerMetadata @@ -50,6 +50,7 @@ func request_Query_FeeShares_0(ctx context.Context, marshaler runtime.Marshaler, msg, err := client.FeeShares(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Query_FeeShares_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -65,6 +66,7 @@ func local_request_Query_FeeShares_0(ctx context.Context, marshaler runtime.Mars msg, err := server.FeeShares(ctx, &protoReq) return msg, metadata, err + } func request_Query_FeeShare_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -91,6 +93,7 @@ func request_Query_FeeShare_0(ctx context.Context, marshaler runtime.Marshaler, msg, err := client.FeeShare(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Query_FeeShare_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -117,6 +120,7 @@ func local_request_Query_FeeShare_0(ctx context.Context, marshaler runtime.Marsh msg, err := server.FeeShare(ctx, &protoReq) return msg, metadata, err + } func request_Query_Params_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -125,6 +129,7 @@ func request_Query_Params_0(ctx context.Context, marshaler runtime.Marshaler, cl msg, err := client.Params(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Query_Params_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -133,9 +138,12 @@ func local_request_Query_Params_0(ctx context.Context, marshaler runtime.Marshal msg, err := server.Params(ctx, &protoReq) return msg, metadata, err + } -var filter_Query_DeployerFeeShares_0 = &utilities.DoubleArray{Encoding: map[string]int{"deployer_address": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} +var ( + filter_Query_DeployerFeeShares_0 = &utilities.DoubleArray{Encoding: map[string]int{"deployer_address": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} +) func request_Query_DeployerFeeShares_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryDeployerFeeSharesRequest @@ -168,6 +176,7 @@ func request_Query_DeployerFeeShares_0(ctx context.Context, marshaler runtime.Ma msg, err := client.DeployerFeeShares(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Query_DeployerFeeShares_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -201,9 +210,12 @@ func local_request_Query_DeployerFeeShares_0(ctx context.Context, marshaler runt msg, err := server.DeployerFeeShares(ctx, &protoReq) return msg, metadata, err + } -var filter_Query_WithdrawerFeeShares_0 = &utilities.DoubleArray{Encoding: map[string]int{"withdrawer_address": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} +var ( + filter_Query_WithdrawerFeeShares_0 = &utilities.DoubleArray{Encoding: map[string]int{"withdrawer_address": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} +) func request_Query_WithdrawerFeeShares_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryWithdrawerFeeSharesRequest @@ -236,6 +248,7 @@ func request_Query_WithdrawerFeeShares_0(ctx context.Context, marshaler runtime. msg, err := client.WithdrawerFeeShares(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Query_WithdrawerFeeShares_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -269,6 +282,7 @@ func local_request_Query_WithdrawerFeeShares_0(ctx context.Context, marshaler ru msg, err := server.WithdrawerFeeShares(ctx, &protoReq) return msg, metadata, err + } // RegisterQueryHandlerServer registers the http handlers for service Query to "mux". @@ -276,6 +290,7 @@ func local_request_Query_WithdrawerFeeShares_0(ctx context.Context, marshaler ru // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead. func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error { + mux.Handle("GET", pattern_Query_FeeShares_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -296,6 +311,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv } forward_Query_FeeShares_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("GET", pattern_Query_FeeShare_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -318,6 +334,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv } forward_Query_FeeShare_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("GET", pattern_Query_Params_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -340,6 +357,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv } forward_Query_Params_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("GET", pattern_Query_DeployerFeeShares_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -362,6 +380,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv } forward_Query_DeployerFeeShares_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("GET", pattern_Query_WithdrawerFeeShares_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -384,6 +403,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv } forward_Query_WithdrawerFeeShares_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil @@ -426,6 +446,7 @@ func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "QueryClient" to call the correct interceptors. func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error { + mux.Handle("GET", pattern_Query_FeeShares_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -443,6 +464,7 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } forward_Query_FeeShares_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("GET", pattern_Query_FeeShare_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -462,6 +484,7 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } forward_Query_FeeShare_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("GET", pattern_Query_Params_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -481,6 +504,7 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } forward_Query_Params_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("GET", pattern_Query_DeployerFeeShares_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -500,6 +524,7 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } forward_Query_DeployerFeeShares_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("GET", pattern_Query_WithdrawerFeeShares_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -519,6 +544,7 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } forward_Query_WithdrawerFeeShares_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil diff --git a/x/feeshare/types/tx.pb.go b/x/feeshare/types/tx.pb.go index 6c6d1ee5..37a5014b 100644 --- a/x/feeshare/types/tx.pb.go +++ b/x/feeshare/types/tx.pb.go @@ -6,10 +6,6 @@ package types import ( context "context" fmt "fmt" - io "io" - math "math" - math_bits "math/bits" - _ "github.com/cosmos/cosmos-proto" _ "github.com/cosmos/cosmos-sdk/types/msgservice" _ "github.com/cosmos/gogoproto/gogoproto" @@ -19,14 +15,15 @@ import ( grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" + io "io" + math "math" + math_bits "math/bits" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. @@ -52,11 +49,9 @@ func (*MsgRegisterFeeShare) ProtoMessage() {} func (*MsgRegisterFeeShare) Descriptor() ([]byte, []int) { return fileDescriptor_1e1ba58fd1f48d8c, []int{0} } - func (m *MsgRegisterFeeShare) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *MsgRegisterFeeShare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_MsgRegisterFeeShare.Marshal(b, m, deterministic) @@ -69,15 +64,12 @@ func (m *MsgRegisterFeeShare) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } - func (m *MsgRegisterFeeShare) XXX_Merge(src proto.Message) { xxx_messageInfo_MsgRegisterFeeShare.Merge(m, src) } - func (m *MsgRegisterFeeShare) XXX_Size() int { return m.Size() } - func (m *MsgRegisterFeeShare) XXX_DiscardUnknown() { xxx_messageInfo_MsgRegisterFeeShare.DiscardUnknown(m) } @@ -106,7 +98,8 @@ func (m *MsgRegisterFeeShare) GetWithdrawerAddress() string { } // MsgRegisterFeeShareResponse defines the MsgRegisterFeeShare response type -type MsgRegisterFeeShareResponse struct{} +type MsgRegisterFeeShareResponse struct { +} func (m *MsgRegisterFeeShareResponse) Reset() { *m = MsgRegisterFeeShareResponse{} } func (m *MsgRegisterFeeShareResponse) String() string { return proto.CompactTextString(m) } @@ -114,11 +107,9 @@ func (*MsgRegisterFeeShareResponse) ProtoMessage() {} func (*MsgRegisterFeeShareResponse) Descriptor() ([]byte, []int) { return fileDescriptor_1e1ba58fd1f48d8c, []int{1} } - func (m *MsgRegisterFeeShareResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *MsgRegisterFeeShareResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_MsgRegisterFeeShareResponse.Marshal(b, m, deterministic) @@ -131,15 +122,12 @@ func (m *MsgRegisterFeeShareResponse) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } - func (m *MsgRegisterFeeShareResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_MsgRegisterFeeShareResponse.Merge(m, src) } - func (m *MsgRegisterFeeShareResponse) XXX_Size() int { return m.Size() } - func (m *MsgRegisterFeeShareResponse) XXX_DiscardUnknown() { xxx_messageInfo_MsgRegisterFeeShareResponse.DiscardUnknown(m) } @@ -165,11 +153,9 @@ func (*MsgUpdateFeeShare) ProtoMessage() {} func (*MsgUpdateFeeShare) Descriptor() ([]byte, []int) { return fileDescriptor_1e1ba58fd1f48d8c, []int{2} } - func (m *MsgUpdateFeeShare) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *MsgUpdateFeeShare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_MsgUpdateFeeShare.Marshal(b, m, deterministic) @@ -182,15 +168,12 @@ func (m *MsgUpdateFeeShare) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return b[:n], nil } } - func (m *MsgUpdateFeeShare) XXX_Merge(src proto.Message) { xxx_messageInfo_MsgUpdateFeeShare.Merge(m, src) } - func (m *MsgUpdateFeeShare) XXX_Size() int { return m.Size() } - func (m *MsgUpdateFeeShare) XXX_DiscardUnknown() { xxx_messageInfo_MsgUpdateFeeShare.DiscardUnknown(m) } @@ -219,7 +202,8 @@ func (m *MsgUpdateFeeShare) GetWithdrawerAddress() string { } // MsgUpdateFeeShareResponse defines the MsgUpdateFeeShare response type -type MsgUpdateFeeShareResponse struct{} +type MsgUpdateFeeShareResponse struct { +} func (m *MsgUpdateFeeShareResponse) Reset() { *m = MsgUpdateFeeShareResponse{} } func (m *MsgUpdateFeeShareResponse) String() string { return proto.CompactTextString(m) } @@ -227,11 +211,9 @@ func (*MsgUpdateFeeShareResponse) ProtoMessage() {} func (*MsgUpdateFeeShareResponse) Descriptor() ([]byte, []int) { return fileDescriptor_1e1ba58fd1f48d8c, []int{3} } - func (m *MsgUpdateFeeShareResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *MsgUpdateFeeShareResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_MsgUpdateFeeShareResponse.Marshal(b, m, deterministic) @@ -244,15 +226,12 @@ func (m *MsgUpdateFeeShareResponse) XXX_Marshal(b []byte, deterministic bool) ([ return b[:n], nil } } - func (m *MsgUpdateFeeShareResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_MsgUpdateFeeShareResponse.Merge(m, src) } - func (m *MsgUpdateFeeShareResponse) XXX_Size() int { return m.Size() } - func (m *MsgUpdateFeeShareResponse) XXX_DiscardUnknown() { xxx_messageInfo_MsgUpdateFeeShareResponse.DiscardUnknown(m) } @@ -274,11 +253,9 @@ func (*MsgCancelFeeShare) ProtoMessage() {} func (*MsgCancelFeeShare) Descriptor() ([]byte, []int) { return fileDescriptor_1e1ba58fd1f48d8c, []int{4} } - func (m *MsgCancelFeeShare) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *MsgCancelFeeShare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_MsgCancelFeeShare.Marshal(b, m, deterministic) @@ -291,15 +268,12 @@ func (m *MsgCancelFeeShare) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return b[:n], nil } } - func (m *MsgCancelFeeShare) XXX_Merge(src proto.Message) { xxx_messageInfo_MsgCancelFeeShare.Merge(m, src) } - func (m *MsgCancelFeeShare) XXX_Size() int { return m.Size() } - func (m *MsgCancelFeeShare) XXX_DiscardUnknown() { xxx_messageInfo_MsgCancelFeeShare.DiscardUnknown(m) } @@ -321,7 +295,8 @@ func (m *MsgCancelFeeShare) GetDeployerAddress() string { } // MsgCancelFeeShareResponse defines the MsgCancelFeeShare response type -type MsgCancelFeeShareResponse struct{} +type MsgCancelFeeShareResponse struct { +} func (m *MsgCancelFeeShareResponse) Reset() { *m = MsgCancelFeeShareResponse{} } func (m *MsgCancelFeeShareResponse) String() string { return proto.CompactTextString(m) } @@ -329,11 +304,9 @@ func (*MsgCancelFeeShareResponse) ProtoMessage() {} func (*MsgCancelFeeShareResponse) Descriptor() ([]byte, []int) { return fileDescriptor_1e1ba58fd1f48d8c, []int{5} } - func (m *MsgCancelFeeShareResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *MsgCancelFeeShareResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_MsgCancelFeeShareResponse.Marshal(b, m, deterministic) @@ -346,15 +319,12 @@ func (m *MsgCancelFeeShareResponse) XXX_Marshal(b []byte, deterministic bool) ([ return b[:n], nil } } - func (m *MsgCancelFeeShareResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_MsgCancelFeeShareResponse.Merge(m, src) } - func (m *MsgCancelFeeShareResponse) XXX_Size() int { return m.Size() } - func (m *MsgCancelFeeShareResponse) XXX_DiscardUnknown() { xxx_messageInfo_MsgCancelFeeShareResponse.DiscardUnknown(m) } @@ -365,7 +335,8 @@ var xxx_messageInfo_MsgCancelFeeShareResponse proto.InternalMessageInfo // // Since: cosmos-sdk 0.47 type MsgUpdateParams struct { - // authority is the address that controls the module (defaults to x/gov unless overwritten). + // authority is the address that controls the module (defaults to x/gov unless + // overwritten). Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // params defines the x/feeshare parameters to update. // @@ -379,11 +350,9 @@ func (*MsgUpdateParams) ProtoMessage() {} func (*MsgUpdateParams) Descriptor() ([]byte, []int) { return fileDescriptor_1e1ba58fd1f48d8c, []int{6} } - func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_MsgUpdateParams.Marshal(b, m, deterministic) @@ -396,15 +365,12 @@ func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, err return b[:n], nil } } - func (m *MsgUpdateParams) XXX_Merge(src proto.Message) { xxx_messageInfo_MsgUpdateParams.Merge(m, src) } - func (m *MsgUpdateParams) XXX_Size() int { return m.Size() } - func (m *MsgUpdateParams) XXX_DiscardUnknown() { xxx_messageInfo_MsgUpdateParams.DiscardUnknown(m) } @@ -429,7 +395,8 @@ func (m *MsgUpdateParams) GetParams() Params { // MsgUpdateParams message. // // Since: cosmos-sdk 0.47 -type MsgUpdateParamsResponse struct{} +type MsgUpdateParamsResponse struct { +} func (m *MsgUpdateParamsResponse) Reset() { *m = MsgUpdateParamsResponse{} } func (m *MsgUpdateParamsResponse) String() string { return proto.CompactTextString(m) } @@ -437,11 +404,9 @@ func (*MsgUpdateParamsResponse) ProtoMessage() {} func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) { return fileDescriptor_1e1ba58fd1f48d8c, []int{7} } - func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_MsgUpdateParamsResponse.Marshal(b, m, deterministic) @@ -454,15 +419,12 @@ func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]b return b[:n], nil } } - func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_MsgUpdateParamsResponse.Merge(m, src) } - func (m *MsgUpdateParamsResponse) XXX_Size() int { return m.Size() } - func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown() { xxx_messageInfo_MsgUpdateParamsResponse.DiscardUnknown(m) } @@ -483,49 +445,48 @@ func init() { func init() { proto.RegisterFile("terp/feeshare/v1/tx.proto", fileDescriptor_1e1ba58fd1f48d8c) } var fileDescriptor_1e1ba58fd1f48d8c = []byte{ - // 560 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x94, 0x4f, 0x6b, 0x13, 0x41, - 0x18, 0x87, 0x33, 0x6d, 0x29, 0x74, 0x94, 0x36, 0x5d, 0x0b, 0x4d, 0x52, 0xdd, 0xea, 0xaa, 0xa5, - 0x55, 0xb3, 0x43, 0x2a, 0xf4, 0xd0, 0x9b, 0x11, 0xbc, 0x48, 0x40, 0x52, 0xbc, 0x88, 0x10, 0xa6, - 0x9b, 0xd7, 0xc9, 0x62, 0xb2, 0xb3, 0xcc, 0x4c, 0x9a, 0xe6, 0xda, 0x4f, 0x50, 0xf1, 0xe2, 0x49, - 0x7a, 0xf0, 0x03, 0x78, 0xf0, 0x43, 0xf4, 0x58, 0xf4, 0xe2, 0x49, 0x24, 0x11, 0xf4, 0x63, 0xc8, - 0xce, 0xfe, 0x73, 0x93, 0x6d, 0xed, 0x45, 0xf0, 0x36, 0x3b, 0xbf, 0x67, 0xde, 0xf7, 0xd9, 0xe5, - 0x9d, 0xc5, 0x65, 0x05, 0xc2, 0x27, 0xaf, 0x00, 0x64, 0x87, 0x0a, 0x20, 0x07, 0x35, 0xa2, 0x0e, - 0x6d, 0x5f, 0x70, 0xc5, 0x8d, 0x62, 0x10, 0xd9, 0x71, 0x64, 0x1f, 0xd4, 0x2a, 0x2b, 0x8c, 0x33, - 0xae, 0x43, 0x12, 0xac, 0x42, 0xae, 0x72, 0x9d, 0x71, 0xce, 0xba, 0x40, 0xa8, 0xef, 0x12, 0xea, - 0x79, 0x5c, 0x51, 0xe5, 0x72, 0x4f, 0x46, 0xe9, 0xaa, 0xc3, 0x65, 0x8f, 0x4b, 0xd2, 0x93, 0x2c, - 0xa8, 0xde, 0x93, 0x2c, 0x0a, 0xca, 0x61, 0xd0, 0x0a, 0xeb, 0x85, 0x0f, 0x51, 0x64, 0x4e, 0x49, - 0x31, 0xf0, 0x40, 0xba, 0x51, 0x6e, 0x9d, 0x20, 0x7c, 0xad, 0x21, 0x59, 0x13, 0x98, 0x2b, 0x15, - 0x88, 0x27, 0x00, 0x7b, 0x01, 0x68, 0x6c, 0xe1, 0xa2, 0xc3, 0x3d, 0x25, 0xa8, 0xa3, 0x5a, 0xb4, - 0xdd, 0x16, 0x20, 0x65, 0x09, 0xdd, 0x44, 0x9b, 0x0b, 0xcd, 0xa5, 0x78, 0xff, 0x51, 0xb8, 0x1d, - 0xa0, 0x6d, 0xf0, 0xbb, 0x7c, 0x08, 0x22, 0x41, 0x67, 0x42, 0x34, 0xde, 0x8f, 0xd1, 0x2a, 0x36, - 0x06, 0xae, 0xea, 0xb4, 0x05, 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71, 0x8c, 0xf0, 0xe2, 0xc4, - 0x68, 0xde, 0xce, 0xed, 0x98, 0x85, 0x2a, 0xf7, 0x2f, 0x01, 0x25, 0x52, 0x0f, 0xb4, 0xd4, 0x86, - 0x75, 0x27, 0x57, 0xaa, 0xaf, 0x0f, 0x65, 0x95, 0x26, 0x06, 0x2e, 0x5f, 0x29, 0x0b, 0x9d, 0xa3, - 0x74, 0xce, 0x24, 0x5d, 0xac, 0xe4, 0xe8, 0x43, 0xa9, 0xd2, 0x4b, 0x7c, 0x35, 0x33, 0x73, 0xb7, - 0x2e, 0x78, 0xfb, 0x10, 0xa9, 0x6c, 0xfd, 0x15, 0x89, 0x5d, 0xea, 0x4f, 0x4f, 0x47, 0x26, 0x3a, - 0x1b, 0x99, 0xe8, 0xfb, 0xc8, 0x44, 0xc7, 0x63, 0xb3, 0x70, 0x36, 0x36, 0x0b, 0x5f, 0xc7, 0x66, - 0xe1, 0x45, 0x8d, 0xb9, 0xaa, 0xd3, 0xdf, 0xb7, 0x1d, 0xde, 0xd3, 0x9e, 0x1e, 0xa8, 0x01, 0x17, - 0xaf, 0xf5, 0xba, 0xea, 0x70, 0x01, 0xe4, 0x30, 0x55, 0x57, 0x43, 0x1f, 0xe4, 0xfe, 0xbc, 0xfe, - 0x6f, 0x3e, 0xfc, 0x1d, 0x00, 0x00, 0xff, 0xff, 0x91, 0xb5, 0xe7, 0x28, 0xee, 0x05, 0x00, 0x00, + // 562 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x94, 0x4f, 0x4f, 0x13, 0x41, + 0x18, 0x87, 0x3b, 0x40, 0x48, 0x18, 0x0d, 0x94, 0x95, 0x84, 0xb6, 0xe8, 0xa2, 0xab, 0x12, 0x50, + 0xbb, 0x13, 0x90, 0x70, 0xe0, 0x66, 0x4d, 0xbc, 0xd5, 0x98, 0x12, 0x2f, 0xc6, 0xa4, 0x19, 0xb6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, 0xfc, 0x78, 0x3b, 0xb5, + 0x6e, 0xad, 0x91, 0x9c, 0xdb, 0x4e, 0x44, 0x74, 0xac, 0x99, 0x58, 0x1c, 0x23, 0x3c, 0x3f, 0x36, + 0x9a, 0xb7, 0x73, 0x3b, 0x66, 0xa1, 0xca, 0xfd, 0x4b, 0x40, 0x89, 0xd4, 0x03, 0x2d, 0xb5, 0x66, + 0xdd, 0xc9, 0x95, 0xea, 0xe9, 0x43, 0x59, 0xa5, 0xb1, 0x81, 0xcb, 0x57, 0xca, 0x42, 0xe7, 0x28, + 0x9d, 0x33, 0x49, 0x17, 0x2b, 0x39, 0xfa, 0x50, 0xaa, 0xf4, 0x12, 0x5f, 0xcd, 0xcc, 0xdc, 0xad, + 0x0b, 0xde, 0x3e, 0x44, 0x2a, 0x1b, 0x7f, 0x45, 0x62, 0x97, 0xda, 0xd3, 0xd3, 0xa1, 0x89, 0xce, + 0x86, 0x26, 0xfa, 0x3e, 0x34, 0xd1, 0xf1, 0xc8, 0x2c, 0x9c, 0x8d, 0xcc, 0xc2, 0xd7, 0x91, 0x59, + 0x78, 0xb1, 0xcd, 0x5c, 0xd5, 0xee, 0xed, 0xdb, 0x0e, 0xef, 0x6a, 0x4f, 0x0f, 0x54, 0x9f, 0x8b, + 0xd7, 0x7a, 0x5d, 0x75, 0x78, 0xe0, 0xbb, 0x4d, 0x0e, 0x53, 0x7b, 0x35, 0xf0, 0x41, 0xee, 0xcf, + 0xea, 0x5f, 0xe7, 0xc3, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x27, 0x2b, 0xd6, 0xe9, 0xf1, 0x05, + 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. -var ( - _ context.Context - _ grpc.ClientConn -) +var _ context.Context +var _ grpc.ClientConn // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. @@ -604,20 +565,18 @@ type MsgServer interface { } // UnimplementedMsgServer can be embedded to have forward compatible implementations. -type UnimplementedMsgServer struct{} +type UnimplementedMsgServer struct { +} func (*UnimplementedMsgServer) RegisterFeeShare(ctx context.Context, req *MsgRegisterFeeShare) (*MsgRegisterFeeShareResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method RegisterFeeShare not implemented") } - func (*UnimplementedMsgServer) UpdateFeeShare(ctx context.Context, req *MsgUpdateFeeShare) (*MsgUpdateFeeShareResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateFeeShare not implemented") } - func (*UnimplementedMsgServer) CancelFeeShare(ctx context.Context, req *MsgCancelFeeShare) (*MsgCancelFeeShareResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CancelFeeShare not implemented") } - func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateParams not implemented") } @@ -991,7 +950,6 @@ func encodeVarintTx(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } - func (m *MsgRegisterFeeShare) Size() (n int) { if m == nil { return 0 @@ -1105,11 +1063,9 @@ func (m *MsgUpdateParamsResponse) Size() (n int) { func sovTx(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } - func sozTx(x uint64) (n int) { return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } - func (m *MsgRegisterFeeShare) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1256,7 +1212,6 @@ func (m *MsgRegisterFeeShare) Unmarshal(dAtA []byte) error { } return nil } - func (m *MsgRegisterFeeShareResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1307,7 +1262,6 @@ func (m *MsgRegisterFeeShareResponse) Unmarshal(dAtA []byte) error { } return nil } - func (m *MsgUpdateFeeShare) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1454,7 +1408,6 @@ func (m *MsgUpdateFeeShare) Unmarshal(dAtA []byte) error { } return nil } - func (m *MsgUpdateFeeShareResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1505,7 +1458,6 @@ func (m *MsgUpdateFeeShareResponse) Unmarshal(dAtA []byte) error { } return nil } - func (m *MsgCancelFeeShare) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1620,7 +1572,6 @@ func (m *MsgCancelFeeShare) Unmarshal(dAtA []byte) error { } return nil } - func (m *MsgCancelFeeShareResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1671,7 +1622,6 @@ func (m *MsgCancelFeeShareResponse) Unmarshal(dAtA []byte) error { } return nil } - func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1787,7 +1737,6 @@ func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error { } return nil } - func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1838,7 +1787,6 @@ func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error { } return nil } - func skipTx(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/x/feeshare/types/tx.pb.gw.go b/x/feeshare/types/tx.pb.gw.go index e87ddbd8..55822b35 100644 --- a/x/feeshare/types/tx.pb.gw.go +++ b/x/feeshare/types/tx.pb.gw.go @@ -25,18 +25,18 @@ import ( ) // Suppress "imported and not used" errors +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = descriptor.ForMessage +var _ = metadata.Join + var ( - _ codes.Code - _ io.Reader - _ status.Status - _ = runtime.String - _ = utilities.NewDoubleArray - _ = descriptor.ForMessage - _ = metadata.Join + filter_Msg_RegisterFeeShare_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} ) -var filter_Msg_RegisterFeeShare_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} - func request_Msg_RegisterFeeShare_0(ctx context.Context, marshaler runtime.Marshaler, client MsgClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq MsgRegisterFeeShare var metadata runtime.ServerMetadata @@ -50,6 +50,7 @@ func request_Msg_RegisterFeeShare_0(ctx context.Context, marshaler runtime.Marsh msg, err := client.RegisterFeeShare(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Msg_RegisterFeeShare_0(ctx context.Context, marshaler runtime.Marshaler, server MsgServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -65,9 +66,12 @@ func local_request_Msg_RegisterFeeShare_0(ctx context.Context, marshaler runtime msg, err := server.RegisterFeeShare(ctx, &protoReq) return msg, metadata, err + } -var filter_Msg_UpdateFeeShare_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +var ( + filter_Msg_UpdateFeeShare_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) func request_Msg_UpdateFeeShare_0(ctx context.Context, marshaler runtime.Marshaler, client MsgClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq MsgUpdateFeeShare @@ -82,6 +86,7 @@ func request_Msg_UpdateFeeShare_0(ctx context.Context, marshaler runtime.Marshal msg, err := client.UpdateFeeShare(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Msg_UpdateFeeShare_0(ctx context.Context, marshaler runtime.Marshaler, server MsgServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -97,9 +102,12 @@ func local_request_Msg_UpdateFeeShare_0(ctx context.Context, marshaler runtime.M msg, err := server.UpdateFeeShare(ctx, &protoReq) return msg, metadata, err + } -var filter_Msg_CancelFeeShare_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +var ( + filter_Msg_CancelFeeShare_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) func request_Msg_CancelFeeShare_0(ctx context.Context, marshaler runtime.Marshaler, client MsgClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq MsgCancelFeeShare @@ -114,6 +122,7 @@ func request_Msg_CancelFeeShare_0(ctx context.Context, marshaler runtime.Marshal msg, err := client.CancelFeeShare(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Msg_CancelFeeShare_0(ctx context.Context, marshaler runtime.Marshaler, server MsgServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -129,6 +138,7 @@ func local_request_Msg_CancelFeeShare_0(ctx context.Context, marshaler runtime.M msg, err := server.CancelFeeShare(ctx, &protoReq) return msg, metadata, err + } // RegisterMsgHandlerServer registers the http handlers for service Msg to "mux". @@ -136,6 +146,7 @@ func local_request_Msg_CancelFeeShare_0(ctx context.Context, marshaler runtime.M // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterMsgHandlerFromEndpoint instead. func RegisterMsgHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MsgServer) error { + mux.Handle("POST", pattern_Msg_RegisterFeeShare_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -156,6 +167,7 @@ func RegisterMsgHandlerServer(ctx context.Context, mux *runtime.ServeMux, server } forward_Msg_RegisterFeeShare_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Msg_UpdateFeeShare_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -178,6 +190,7 @@ func RegisterMsgHandlerServer(ctx context.Context, mux *runtime.ServeMux, server } forward_Msg_UpdateFeeShare_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Msg_CancelFeeShare_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -200,6 +213,7 @@ func RegisterMsgHandlerServer(ctx context.Context, mux *runtime.ServeMux, server } forward_Msg_CancelFeeShare_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil @@ -242,6 +256,7 @@ func RegisterMsgHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.C // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "MsgClient" to call the correct interceptors. func RegisterMsgHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MsgClient) error { + mux.Handle("POST", pattern_Msg_RegisterFeeShare_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -259,6 +274,7 @@ func RegisterMsgHandlerClient(ctx context.Context, mux *runtime.ServeMux, client } forward_Msg_RegisterFeeShare_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Msg_UpdateFeeShare_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -278,6 +294,7 @@ func RegisterMsgHandlerClient(ctx context.Context, mux *runtime.ServeMux, client } forward_Msg_UpdateFeeShare_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Msg_CancelFeeShare_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -297,6 +314,7 @@ func RegisterMsgHandlerClient(ctx context.Context, mux *runtime.ServeMux, client } forward_Msg_CancelFeeShare_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil diff --git a/x/tokenfactory/types/authorityMetadata.pb.go b/x/tokenfactory/types/authorityMetadata.pb.go index eba78530..122c1dad 100644 --- a/x/tokenfactory/types/authorityMetadata.pb.go +++ b/x/tokenfactory/types/authorityMetadata.pb.go @@ -5,21 +5,18 @@ package types import ( fmt "fmt" - io "io" - math "math" - math_bits "math/bits" - _ "github.com/cosmos/cosmos-sdk/types" _ "github.com/cosmos/gogoproto/gogoproto" proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. @@ -41,11 +38,9 @@ func (*DenomAuthorityMetadata) ProtoMessage() {} func (*DenomAuthorityMetadata) Descriptor() ([]byte, []int) { return fileDescriptor_99435de88ae175f7, []int{0} } - func (m *DenomAuthorityMetadata) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *DenomAuthorityMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_DenomAuthorityMetadata.Marshal(b, m, deterministic) @@ -58,15 +53,12 @@ func (m *DenomAuthorityMetadata) XXX_Marshal(b []byte, deterministic bool) ([]by return b[:n], nil } } - func (m *DenomAuthorityMetadata) XXX_Merge(src proto.Message) { xxx_messageInfo_DenomAuthorityMetadata.Merge(m, src) } - func (m *DenomAuthorityMetadata) XXX_Size() int { return m.Size() } - func (m *DenomAuthorityMetadata) XXX_DiscardUnknown() { xxx_messageInfo_DenomAuthorityMetadata.DiscardUnknown(m) } @@ -89,7 +81,7 @@ func init() { } var fileDescriptor_99435de88ae175f7 = []byte{ - // 243 bytes of a gzipped FileDescriptorProto + // 246 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x32, 0xc9, 0x2f, 0xce, 0xcd, 0x2f, 0xce, 0x2c, 0xd6, 0x2f, 0xc9, 0xcf, 0x4e, 0xcd, 0x4b, 0x4b, 0x4c, 0x2e, 0xc9, 0x2f, 0xaa, 0xd4, 0x2f, 0x33, 0x4c, 0x4a, 0x2d, 0x49, 0x34, 0xd4, 0x4f, 0x2c, 0x2d, 0xc9, 0xc8, 0x2f, 0xca, @@ -99,13 +91,13 @@ var fileDescriptor_99435de88ae175f7 = []byte{ 0xa7, 0xc2, 0x2d, 0x48, 0xce, 0xcf, 0xcc, 0x83, 0xc8, 0x2b, 0xb9, 0x71, 0x89, 0xb9, 0xa4, 0xe6, 0xe5, 0xe7, 0x3a, 0xa2, 0xdb, 0x29, 0xa4, 0xc6, 0xc5, 0x9a, 0x98, 0x92, 0x9b, 0x99, 0x27, 0xc1, 0xa8, 0xc0, 0xa8, 0xc1, 0xe9, 0x24, 0xf0, 0xe9, 0x9e, 0x3c, 0x4f, 0x65, 0x62, 0x6e, 0x8e, 0x95, - 0x12, 0x58, 0x58, 0x29, 0x08, 0x22, 0x6d, 0xc5, 0xf2, 0x62, 0x81, 0x3c, 0xa3, 0x93, 0xff, 0x89, + 0x12, 0x58, 0x58, 0x29, 0x08, 0x22, 0x6d, 0xc5, 0xf2, 0x62, 0x81, 0x3c, 0xa3, 0x53, 0xd0, 0x89, 0x47, 0x72, 0x8c, 0x17, 0x1e, 0xc9, 0x31, 0x3e, 0x78, 0x24, 0xc7, 0x38, 0xe1, 0xb1, 0x1c, 0xc3, - 0x85, 0xc7, 0x72, 0x0c, 0x37, 0x1e, 0xcb, 0x31, 0x44, 0x99, 0xa6, 0x67, 0x96, 0x64, 0x94, 0x26, + 0x85, 0xc7, 0x72, 0x0c, 0x37, 0x1e, 0xcb, 0x31, 0x44, 0x59, 0xa4, 0x67, 0x96, 0x64, 0x94, 0x26, 0xe9, 0x25, 0xe7, 0xe7, 0xea, 0x97, 0xa4, 0x16, 0x15, 0xe4, 0xa5, 0x96, 0x94, 0xe7, 0x17, 0x65, - 0x83, 0xd9, 0xba, 0xc9, 0xf9, 0x45, 0xa9, 0xfa, 0x15, 0xa8, 0xc1, 0x50, 0x52, 0x59, 0x90, 0x5a, - 0x9c, 0xc4, 0x06, 0x76, 0x9f, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0xf0, 0x70, 0xbc, 0xef, 0x2b, - 0x01, 0x00, 0x00, + 0x83, 0xd9, 0xba, 0xc9, 0xf9, 0x45, 0xa9, 0xfa, 0x65, 0x26, 0xfa, 0x15, 0xa8, 0x21, 0x51, 0x52, + 0x59, 0x90, 0x5a, 0x9c, 0xc4, 0x06, 0x76, 0xa2, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0x51, 0xd9, + 0xcd, 0xd9, 0x2e, 0x01, 0x00, 0x00, } func (this *DenomAuthorityMetadata) Equal(that interface{}) bool { @@ -132,7 +124,6 @@ func (this *DenomAuthorityMetadata) Equal(that interface{}) bool { } return true } - func (m *DenomAuthorityMetadata) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -174,7 +165,6 @@ func encodeVarintAuthorityMetadata(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } - func (m *DenomAuthorityMetadata) Size() (n int) { if m == nil { return 0 @@ -191,11 +181,9 @@ func (m *DenomAuthorityMetadata) Size() (n int) { func sovAuthorityMetadata(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } - func sozAuthorityMetadata(x uint64) (n int) { return sovAuthorityMetadata(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } - func (m *DenomAuthorityMetadata) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -278,7 +266,6 @@ func (m *DenomAuthorityMetadata) Unmarshal(dAtA []byte) error { } return nil } - func skipAuthorityMetadata(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/x/tokenfactory/types/genesis.pb.go b/x/tokenfactory/types/genesis.pb.go index 5915af85..445c32cb 100644 --- a/x/tokenfactory/types/genesis.pb.go +++ b/x/tokenfactory/types/genesis.pb.go @@ -5,20 +5,17 @@ package types import ( fmt "fmt" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" - - _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/cosmos/gogoproto/proto" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. @@ -39,11 +36,9 @@ func (*GenesisState) ProtoMessage() {} func (*GenesisState) Descriptor() ([]byte, []int) { return fileDescriptor_5749c3f71850298b, []int{0} } - func (m *GenesisState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_GenesisState.Marshal(b, m, deterministic) @@ -56,15 +51,12 @@ func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return b[:n], nil } } - func (m *GenesisState) XXX_Merge(src proto.Message) { xxx_messageInfo_GenesisState.Merge(m, src) } - func (m *GenesisState) XXX_Size() int { return m.Size() } - func (m *GenesisState) XXX_DiscardUnknown() { xxx_messageInfo_GenesisState.DiscardUnknown(m) } @@ -99,11 +91,9 @@ func (*GenesisDenom) ProtoMessage() {} func (*GenesisDenom) Descriptor() ([]byte, []int) { return fileDescriptor_5749c3f71850298b, []int{1} } - func (m *GenesisDenom) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *GenesisDenom) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_GenesisDenom.Marshal(b, m, deterministic) @@ -116,15 +106,12 @@ func (m *GenesisDenom) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return b[:n], nil } } - func (m *GenesisDenom) XXX_Merge(src proto.Message) { xxx_messageInfo_GenesisDenom.Merge(m, src) } - func (m *GenesisDenom) XXX_Size() int { return m.Size() } - func (m *GenesisDenom) XXX_DiscardUnknown() { xxx_messageInfo_GenesisDenom.DiscardUnknown(m) } @@ -155,7 +142,7 @@ func init() { } var fileDescriptor_5749c3f71850298b = []byte{ - // 370 bytes of a gzipped FileDescriptorProto + // 373 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0xca, 0x2f, 0xce, 0xcd, 0x2f, 0xce, 0x2c, 0xd6, 0x2f, 0xc9, 0xcf, 0x4e, 0xcd, 0x4b, 0x4b, 0x4c, 0x2e, 0xc9, 0x2f, 0xaa, 0xd4, 0x2f, 0x33, 0x4c, 0x4a, 0x2d, 0x49, 0x34, 0xd4, 0x4f, 0x4f, 0xcd, 0x4b, 0x2d, 0xce, 0x2c, @@ -173,13 +160,13 @@ var fileDescriptor_5749c3f71850298b = []byte{ 0xe0, 0xd3, 0x3d, 0x79, 0x1e, 0x88, 0x49, 0x60, 0x61, 0xa5, 0x20, 0x88, 0xb4, 0x50, 0x1b, 0x23, 0x97, 0x10, 0x3c, 0x18, 0xe3, 0x73, 0xa1, 0xe1, 0x28, 0xc1, 0x04, 0xf6, 0xbb, 0x09, 0x7e, 0xf7, 0x82, 0x6d, 0x72, 0x44, 0x8f, 0x03, 0x27, 0x45, 0xa8, 0xcb, 0x25, 0x21, 0xf6, 0x61, 0x9a, 0xae, - 0x14, 0x24, 0x88, 0x11, 0x73, 0x56, 0x2c, 0x2f, 0x16, 0xc8, 0x33, 0x3a, 0xf9, 0x9f, 0x78, 0x24, + 0x14, 0x24, 0x88, 0x11, 0x73, 0x56, 0x2c, 0x2f, 0x16, 0xc8, 0x33, 0x3a, 0x05, 0x9d, 0x78, 0x24, 0xc7, 0x78, 0xe1, 0x91, 0x1c, 0xe3, 0x83, 0x47, 0x72, 0x8c, 0x13, 0x1e, 0xcb, 0x31, 0x5c, 0x78, - 0x2c, 0xc7, 0x70, 0xe3, 0xb1, 0x1c, 0x43, 0x94, 0x69, 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, + 0x2c, 0xc7, 0x70, 0xe3, 0xb1, 0x1c, 0x43, 0x94, 0x45, 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0xae, 0x7e, 0x49, 0x6a, 0x51, 0x41, 0x5e, 0x6a, 0x49, 0x79, 0x7e, 0x51, 0x36, 0x98, - 0xad, 0x9b, 0x9c, 0x5f, 0x94, 0xaa, 0x5f, 0x81, 0x1a, 0xdd, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0x49, - 0x6c, 0xe0, 0x68, 0x36, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x20, 0x30, 0xa0, 0x86, 0xa9, 0x02, - 0x00, 0x00, + 0xad, 0x9b, 0x9c, 0x5f, 0x94, 0xaa, 0x5f, 0x66, 0xa2, 0x5f, 0x81, 0x1a, 0xe3, 0x25, 0x95, 0x05, + 0xa9, 0xc5, 0x49, 0x6c, 0xe0, 0x98, 0x36, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x42, 0xff, 0x3c, + 0xb0, 0xac, 0x02, 0x00, 0x00, } func (this *GenesisDenom) Equal(that interface{}) bool { @@ -209,7 +196,6 @@ func (this *GenesisDenom) Equal(that interface{}) bool { } return true } - func (m *GenesisState) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -308,7 +294,6 @@ func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } - func (m *GenesisState) Size() (n int) { if m == nil { return 0 @@ -344,11 +329,9 @@ func (m *GenesisDenom) Size() (n int) { func sovGenesis(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } - func sozGenesis(x uint64) (n int) { return sovGenesis(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } - func (m *GenesisState) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -466,7 +449,6 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { } return nil } - func (m *GenesisDenom) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -582,7 +564,6 @@ func (m *GenesisDenom) Unmarshal(dAtA []byte) error { } return nil } - func skipGenesis(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/x/tokenfactory/types/params.pb.go b/x/tokenfactory/types/params.pb.go index 7916f41e..d65296d2 100644 --- a/x/tokenfactory/types/params.pb.go +++ b/x/tokenfactory/types/params.pb.go @@ -5,23 +5,20 @@ package types import ( fmt "fmt" - io "io" - math "math" - math_bits "math/bits" - _ "github.com/cosmos/cosmos-proto" github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" types "github.com/cosmos/cosmos-sdk/types" _ "github.com/cosmos/gogoproto/gogoproto" proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. @@ -32,8 +29,8 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // Params defines the parameters for the tokenfactory module. type Params struct { DenomCreationFee github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=denom_creation_fee,json=denomCreationFee,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"denom_creation_fee" yaml:"denom_creation_fee"` - // if denom_creation_fee is an empty array, then this field is used to add more gas consumption - // to the base cost. + // if denom_creation_fee is an empty array, then this field is used to add + // more gas consumption to the base cost. // https://github.com/CosmWasm/token-factory/issues/11 DenomCreationGasConsume uint64 `protobuf:"varint,2,opt,name=denom_creation_gas_consume,json=denomCreationGasConsume,proto3" json:"denom_creation_gas_consume,omitempty" yaml:"denom_creation_gas_consume"` } @@ -44,11 +41,9 @@ func (*Params) ProtoMessage() {} func (*Params) Descriptor() ([]byte, []int) { return fileDescriptor_cc8299d306f3ff47, []int{0} } - func (m *Params) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_Params.Marshal(b, m, deterministic) @@ -61,15 +56,12 @@ func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return b[:n], nil } } - func (m *Params) XXX_Merge(src proto.Message) { xxx_messageInfo_Params.Merge(m, src) } - func (m *Params) XXX_Size() int { return m.Size() } - func (m *Params) XXX_DiscardUnknown() { xxx_messageInfo_Params.DiscardUnknown(m) } @@ -99,30 +91,30 @@ func init() { } var fileDescriptor_cc8299d306f3ff47 = []byte{ - // 357 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x91, 0xcf, 0x4e, 0xea, 0x40, - 0x14, 0xc6, 0x5b, 0xee, 0x0d, 0x8b, 0xde, 0xcd, 0x4d, 0x63, 0x22, 0x10, 0xd3, 0x62, 0x57, 0xb0, - 0xa0, 0x0d, 0xfe, 0xd9, 0xb8, 0x84, 0x44, 0x57, 0x44, 0xc3, 0xd2, 0x4d, 0x33, 0x1d, 0x0e, 0xa5, - 0xc1, 0xce, 0x69, 0x66, 0x06, 0xb5, 0x8f, 0xe0, 0xce, 0x95, 0x0f, 0xe1, 0x93, 0xb0, 0x64, 0xe9, - 0xaa, 0x1a, 0x78, 0x03, 0x9e, 0xc0, 0x30, 0x1d, 0x0d, 0xa8, 0x71, 0x35, 0xe7, 0xe4, 0x7c, 0xdf, - 0x6f, 0xbe, 0x33, 0x63, 0xb5, 0x51, 0xa4, 0x28, 0x12, 0x11, 0x48, 0x9c, 0x02, 0x1b, 0x13, 0x2a, - 0x91, 0xe7, 0xc1, 0x6d, 0x37, 0x02, 0x49, 0xba, 0x41, 0x46, 0x38, 0x49, 0x85, 0x9f, 0x71, 0x94, - 0x68, 0x1f, 0x68, 0xa9, 0xbf, 0x2d, 0xf5, 0xb5, 0xb4, 0xb1, 0x17, 0x63, 0x8c, 0x4a, 0x18, 0x6c, - 0xaa, 0xd2, 0xd3, 0x38, 0xf9, 0x15, 0x4f, 0x66, 0x72, 0x82, 0x3c, 0x91, 0xf9, 0x00, 0x24, 0x19, - 0x11, 0x49, 0xb4, 0xab, 0x4e, 0x95, 0x2d, 0x2c, 0x71, 0x65, 0xa3, 0x47, 0x4e, 0xd9, 0x05, 0x11, - 0x11, 0xf0, 0xc9, 0xa1, 0x98, 0xb0, 0x72, 0xee, 0x3d, 0x54, 0xac, 0xea, 0x95, 0x4a, 0x6d, 0x3f, - 0x99, 0x96, 0x3d, 0x02, 0x86, 0x69, 0x48, 0x39, 0x10, 0x99, 0x20, 0x0b, 0xc7, 0x00, 0x35, 0xb3, - 0xf9, 0xa7, 0xf5, 0xef, 0xa8, 0xee, 0x6b, 0xec, 0x06, 0xf4, 0xb1, 0x84, 0xdf, 0xc7, 0x84, 0xf5, - 0x06, 0xf3, 0xc2, 0x35, 0xd6, 0x85, 0x5b, 0xcf, 0x49, 0x7a, 0x73, 0xe6, 0x7d, 0x47, 0x78, 0xcf, - 0xaf, 0x6e, 0x2b, 0x4e, 0xe4, 0x64, 0x16, 0xf9, 0x14, 0x53, 0x1d, 0x50, 0x1f, 0x1d, 0x31, 0x9a, - 0x06, 0x32, 0xcf, 0x40, 0x28, 0x9a, 0x18, 0xfe, 0x57, 0x80, 0xbe, 0xf6, 0x9f, 0x03, 0xd8, 0x63, - 0xab, 0xf1, 0x05, 0x1a, 0x13, 0x11, 0x52, 0x64, 0x62, 0x96, 0x42, 0xad, 0xd2, 0x34, 0x5b, 0x7f, - 0x7b, 0xed, 0x79, 0xe1, 0x9a, 0xeb, 0xc2, 0x3d, 0xfc, 0x31, 0xc4, 0x96, 0xde, 0x1b, 0xee, 0xef, - 0x5c, 0x70, 0x41, 0x44, 0xbf, 0x9c, 0xf4, 0x2e, 0xe7, 0x4b, 0xc7, 0x5c, 0x2c, 0x1d, 0xf3, 0x6d, - 0xe9, 0x98, 0x8f, 0x2b, 0xc7, 0x58, 0xac, 0x1c, 0xe3, 0x65, 0xe5, 0x18, 0xd7, 0xa7, 0x5b, 0xe9, - 0x25, 0xf0, 0x8c, 0x81, 0xbc, 0x43, 0x3e, 0x55, 0x75, 0x87, 0x22, 0x87, 0xe0, 0x7e, 0xf7, 0xc7, - 0xd4, 0x42, 0x51, 0x55, 0xbd, 0xf1, 0xf1, 0x7b, 0x00, 0x00, 0x00, 0xff, 0xff, 0x6f, 0xe7, 0xf3, - 0xf7, 0x35, 0x02, 0x00, 0x00, + // 360 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x91, 0xc1, 0x4e, 0xea, 0x40, + 0x14, 0x86, 0x5b, 0xee, 0x0d, 0x8b, 0xde, 0xcd, 0x4d, 0x73, 0x93, 0x0b, 0xc4, 0xb4, 0xd8, 0x15, + 0x2c, 0xe8, 0x04, 0x65, 0x61, 0x5c, 0x42, 0xa2, 0x2b, 0x12, 0xc3, 0xd2, 0x4d, 0x33, 0x2d, 0x87, + 0xd2, 0x60, 0xe7, 0x34, 0x33, 0x03, 0xda, 0x47, 0x70, 0xe7, 0xca, 0x87, 0xf0, 0x49, 0x58, 0xb2, + 0x74, 0x55, 0x0d, 0xbc, 0x01, 0x4f, 0x60, 0x98, 0x8e, 0x06, 0xd4, 0xb8, 0x9a, 0x73, 0x72, 0xfe, + 0xff, 0x9b, 0xff, 0xcc, 0x58, 0x6d, 0x14, 0x29, 0x8a, 0x44, 0x10, 0x89, 0x33, 0x60, 0x13, 0x1a, + 0x49, 0xe4, 0x39, 0x59, 0x74, 0x43, 0x90, 0xb4, 0x4b, 0x32, 0xca, 0x69, 0x2a, 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, 0x31, 0x28, 0x27, 0xfd, 0xd1, 0x72, 0xed, 0x98, 0xab, 0xb5, 0x63, 0xbe, + 0xae, 0x1d, 0xf3, 0x61, 0xe3, 0x18, 0xab, 0x8d, 0x63, 0x3c, 0x6f, 0x1c, 0xe3, 0xfa, 0x6c, 0x2f, + 0xbd, 0x04, 0x9e, 0x31, 0x90, 0xb7, 0xc8, 0x67, 0xaa, 0xee, 0x44, 0xc8, 0x81, 0x2c, 0x7a, 0xe4, + 0xee, 0xf0, 0xd3, 0xd4, 0x4e, 0x61, 0x55, 0x3d, 0xf3, 0xe9, 0x5b, 0x00, 0x00, 0x00, 0xff, 0xff, + 0x58, 0x66, 0xe1, 0xf7, 0x38, 0x02, 0x00, 0x00, } func (m *Params) Marshal() (dAtA []byte, err error) { @@ -178,7 +170,6 @@ func encodeVarintParams(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } - func (m *Params) Size() (n int) { if m == nil { return 0 @@ -200,11 +191,9 @@ func (m *Params) Size() (n int) { func sovParams(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } - func sozParams(x uint64) (n int) { return sovParams(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } - func (m *Params) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -308,7 +297,6 @@ func (m *Params) Unmarshal(dAtA []byte) error { } return nil } - func skipParams(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/x/tokenfactory/types/query.pb.go b/x/tokenfactory/types/query.pb.go index cbb4cd73..cbb6c1f5 100644 --- a/x/tokenfactory/types/query.pb.go +++ b/x/tokenfactory/types/query.pb.go @@ -6,10 +6,6 @@ package types import ( context "context" fmt "fmt" - io "io" - math "math" - math_bits "math/bits" - _ "github.com/cosmos/cosmos-sdk/types/query" _ "github.com/cosmos/gogoproto/gogoproto" grpc1 "github.com/cosmos/gogoproto/grpc" @@ -18,14 +14,15 @@ import ( grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" + io "io" + math "math" + math_bits "math/bits" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. @@ -34,7 +31,8 @@ var ( const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // QueryParamsRequest is the request type for the Query/Params RPC method. -type QueryParamsRequest struct{} +type QueryParamsRequest struct { +} func (m *QueryParamsRequest) Reset() { *m = QueryParamsRequest{} } func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) } @@ -42,11 +40,9 @@ func (*QueryParamsRequest) ProtoMessage() {} func (*QueryParamsRequest) Descriptor() ([]byte, []int) { return fileDescriptor_6f22013ad0f72e3f, []int{0} } - func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryParamsRequest.Marshal(b, m, deterministic) @@ -59,15 +55,12 @@ func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } - func (m *QueryParamsRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryParamsRequest.Merge(m, src) } - func (m *QueryParamsRequest) XXX_Size() int { return m.Size() } - func (m *QueryParamsRequest) XXX_DiscardUnknown() { xxx_messageInfo_QueryParamsRequest.DiscardUnknown(m) } @@ -86,11 +79,9 @@ func (*QueryParamsResponse) ProtoMessage() {} func (*QueryParamsResponse) Descriptor() ([]byte, []int) { return fileDescriptor_6f22013ad0f72e3f, []int{1} } - func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryParamsResponse.Marshal(b, m, deterministic) @@ -103,15 +94,12 @@ func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } - func (m *QueryParamsResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryParamsResponse.Merge(m, src) } - func (m *QueryParamsResponse) XXX_Size() int { return m.Size() } - func (m *QueryParamsResponse) XXX_DiscardUnknown() { xxx_messageInfo_QueryParamsResponse.DiscardUnknown(m) } @@ -137,11 +125,9 @@ func (*QueryDenomAuthorityMetadataRequest) ProtoMessage() {} func (*QueryDenomAuthorityMetadataRequest) Descriptor() ([]byte, []int) { return fileDescriptor_6f22013ad0f72e3f, []int{2} } - func (m *QueryDenomAuthorityMetadataRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *QueryDenomAuthorityMetadataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryDenomAuthorityMetadataRequest.Marshal(b, m, deterministic) @@ -154,15 +140,12 @@ func (m *QueryDenomAuthorityMetadataRequest) XXX_Marshal(b []byte, deterministic return b[:n], nil } } - func (m *QueryDenomAuthorityMetadataRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryDenomAuthorityMetadataRequest.Merge(m, src) } - func (m *QueryDenomAuthorityMetadataRequest) XXX_Size() int { return m.Size() } - func (m *QueryDenomAuthorityMetadataRequest) XXX_DiscardUnknown() { xxx_messageInfo_QueryDenomAuthorityMetadataRequest.DiscardUnknown(m) } @@ -188,11 +171,9 @@ func (*QueryDenomAuthorityMetadataResponse) ProtoMessage() {} func (*QueryDenomAuthorityMetadataResponse) Descriptor() ([]byte, []int) { return fileDescriptor_6f22013ad0f72e3f, []int{3} } - func (m *QueryDenomAuthorityMetadataResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *QueryDenomAuthorityMetadataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryDenomAuthorityMetadataResponse.Marshal(b, m, deterministic) @@ -205,15 +186,12 @@ func (m *QueryDenomAuthorityMetadataResponse) XXX_Marshal(b []byte, deterministi return b[:n], nil } } - func (m *QueryDenomAuthorityMetadataResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryDenomAuthorityMetadataResponse.Merge(m, src) } - func (m *QueryDenomAuthorityMetadataResponse) XXX_Size() int { return m.Size() } - func (m *QueryDenomAuthorityMetadataResponse) XXX_DiscardUnknown() { xxx_messageInfo_QueryDenomAuthorityMetadataResponse.DiscardUnknown(m) } @@ -239,11 +217,9 @@ func (*QueryDenomsFromCreatorRequest) ProtoMessage() {} func (*QueryDenomsFromCreatorRequest) Descriptor() ([]byte, []int) { return fileDescriptor_6f22013ad0f72e3f, []int{4} } - func (m *QueryDenomsFromCreatorRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *QueryDenomsFromCreatorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryDenomsFromCreatorRequest.Marshal(b, m, deterministic) @@ -256,15 +232,12 @@ func (m *QueryDenomsFromCreatorRequest) XXX_Marshal(b []byte, deterministic bool return b[:n], nil } } - func (m *QueryDenomsFromCreatorRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryDenomsFromCreatorRequest.Merge(m, src) } - func (m *QueryDenomsFromCreatorRequest) XXX_Size() int { return m.Size() } - func (m *QueryDenomsFromCreatorRequest) XXX_DiscardUnknown() { xxx_messageInfo_QueryDenomsFromCreatorRequest.DiscardUnknown(m) } @@ -290,11 +263,9 @@ func (*QueryDenomsFromCreatorResponse) ProtoMessage() {} func (*QueryDenomsFromCreatorResponse) Descriptor() ([]byte, []int) { return fileDescriptor_6f22013ad0f72e3f, []int{5} } - func (m *QueryDenomsFromCreatorResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *QueryDenomsFromCreatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryDenomsFromCreatorResponse.Marshal(b, m, deterministic) @@ -307,15 +278,12 @@ func (m *QueryDenomsFromCreatorResponse) XXX_Marshal(b []byte, deterministic boo return b[:n], nil } } - func (m *QueryDenomsFromCreatorResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryDenomsFromCreatorResponse.Merge(m, src) } - func (m *QueryDenomsFromCreatorResponse) XXX_Size() int { return m.Size() } - func (m *QueryDenomsFromCreatorResponse) XXX_DiscardUnknown() { xxx_messageInfo_QueryDenomsFromCreatorResponse.DiscardUnknown(m) } @@ -343,50 +311,49 @@ func init() { } var fileDescriptor_6f22013ad0f72e3f = []byte{ - // 576 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x54, 0xcf, 0x4f, 0x13, 0x41, - 0x14, 0xee, 0x2a, 0xd4, 0x30, 0xfe, 0x88, 0x1d, 0x89, 0xd1, 0x06, 0xb7, 0x3a, 0x12, 0x52, 0x0c, - 0xee, 0x58, 0xc4, 0x8b, 0x68, 0xb4, 0x8b, 0xd1, 0x83, 0x12, 0x75, 0x6f, 0x7a, 0x69, 0xa6, 0x65, - 0x58, 0x36, 0xb0, 0xfb, 0x96, 0x99, 0xa9, 0xda, 0x10, 0x2e, 0x1e, 0x3c, 0x9b, 0x78, 0xf4, 0x7f, - 0xf0, 0xef, 0xe0, 0x48, 0xc2, 0xc5, 0x53, 0x63, 0x5a, 0xe2, 0x1f, 0xd0, 0xbf, 0xc0, 0x74, 0x66, - 0x40, 0xb0, 0x75, 0x53, 0xe5, 0xb4, 0x93, 0x99, 0xef, 0xfb, 0xde, 0xf7, 0xbd, 0xf7, 0xb2, 0xa8, - 0x0c, 0x32, 0x06, 0x19, 0x49, 0xaa, 0x60, 0x9d, 0x27, 0xab, 0xac, 0xa1, 0x40, 0xb4, 0xe8, 0xbb, - 0x4a, 0x9d, 0x2b, 0x56, 0xa1, 0x9b, 0x4d, 0x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 0x4b, 0x3a, 0xd9, 0x43, 0xbc, 0x38, 0x4a, 0xb2, 0xda, 0xaa, 0x80, 0xb8, - 0x66, 0x37, 0x95, 0x6e, 0xd9, 0xc3, 0xb6, 0xff, 0x72, 0xa7, 0xe3, 0x3a, 0xbb, 0x1d, 0xd7, 0xf9, - 0xd1, 0x71, 0x9d, 0xcf, 0x5d, 0x37, 0xb7, 0xdb, 0x75, 0x73, 0xdf, 0xbb, 0x6e, 0xee, 0xed, 0xbd, - 0x30, 0x52, 0x6b, 0xcd, 0xba, 0xd7, 0x80, 0x98, 0x2a, 0x2e, 0xd2, 0x84, 0xab, 0xf7, 0x20, 0xd6, - 0xf5, 0xf9, 0x76, 0x03, 0x04, 0xa7, 0x1f, 0x8e, 0x17, 0x54, 0xad, 0x94, 0xcb, 0x7a, 0x5e, 0xff, - 0xca, 0xee, 0xfe, 0x0a, 0x00, 0x00, 0xff, 0xff, 0xbd, 0x78, 0xed, 0x18, 0xd5, 0x05, 0x00, 0x00, + // 580 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x54, 0xcd, 0x6e, 0x13, 0x3d, + 0x14, 0xcd, 0x7c, 0x5f, 0x1b, 0x54, 0xf3, 0x23, 0x62, 0x2a, 0x04, 0x51, 0x99, 0x80, 0xa9, 0xaa, + 0x14, 0x95, 0x31, 0x29, 0x59, 0x20, 0x0a, 0x82, 0x4c, 0x11, 0x2c, 0xa0, 0x12, 0xcc, 0x0e, 0x36, + 0x91, 0x93, 0xba, 0xd3, 0x51, 0x3b, 0x73, 0xa7, 0xb6, 0x53, 0x88, 0xaa, 0x6e, 0x58, 0xb0, 0x46, + 0x62, 0xc9, 0x3b, 0xf0, 0x1c, 0x5d, 0x56, 0xea, 0x86, 0x55, 0x84, 0x92, 0x8a, 0x07, 0xc8, 0x13, + 0xa0, 0xd8, 0x6e, 0x69, 0x49, 0x18, 0x05, 0x58, 0x8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, 0x4d, 0x0d, 0x3f, 0xca, 0x4e, 0x63, 0xba, 0x4e, 0x77, 0xf4, 0x77, 0x97, + 0x0e, 0x2f, 0x10, 0x3e, 0x70, 0x50, 0x61, 0x68, 0xb2, 0x78, 0x69, 0x5c, 0x87, 0x23, 0xd6, 0xab, + 0xf8, 0xe0, 0xef, 0xc8, 0x36, 0xd9, 0xb2, 0x4e, 0xf6, 0x10, 0x2f, 0x8d, 0x93, 0xac, 0xbe, 0x26, + 0x20, 0xae, 0xdb, 0x4d, 0xa5, 0x3b, 0xf6, 0xb0, 0xeb, 0x07, 0x7b, 0x5d, 0xd7, 0xd9, 0xef, 0xba, + 0xce, 0xb7, 0xae, 0xeb, 0x7c, 0xec, 0xb9, 0xb9, 0xfd, 0x9e, 0x9b, 0xfb, 0xda, 0x73, 0x73, 0x6f, + 0xee, 0x85, 0x91, 0x5a, 0x6f, 0x35, 0xbc, 0x26, 0xc4, 0x54, 0x71, 0x91, 0x26, 0x5c, 0xbd, 0x05, + 0xb1, 0xa1, 0xcf, 0xb7, 0x9b, 0x20, 0x38, 0xdd, 0xae, 0xd2, 0x77, 0xa7, 0x6b, 0xaa, 0x76, 0xca, + 0x65, 0x23, 0xaf, 0xff, 0x66, 0x77, 0x7f, 0x04, 0x00, 0x00, 0xff, 0xff, 0x5f, 0x2c, 0x3a, 0x75, + 0xd8, 0x05, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. -var ( - _ context.Context - _ grpc.ClientConn -) +var _ context.Context +var _ grpc.ClientConn // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. @@ -456,16 +423,15 @@ type QueryServer interface { } // UnimplementedQueryServer can be embedded to have forward compatible implementations. -type UnimplementedQueryServer struct{} +type UnimplementedQueryServer struct { +} func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") } - func (*UnimplementedQueryServer) DenomAuthorityMetadata(ctx context.Context, req *QueryDenomAuthorityMetadataRequest) (*QueryDenomAuthorityMetadataResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DenomAuthorityMetadata not implemented") } - func (*UnimplementedQueryServer) DenomsFromCreator(ctx context.Context, req *QueryDenomsFromCreatorRequest) (*QueryDenomsFromCreatorResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DenomsFromCreator not implemented") } @@ -741,7 +707,6 @@ func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } - func (m *QueryParamsRequest) Size() (n int) { if m == nil { return 0 @@ -817,11 +782,9 @@ func (m *QueryDenomsFromCreatorResponse) Size() (n int) { func sovQuery(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } - func sozQuery(x uint64) (n int) { return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } - func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -872,7 +835,6 @@ func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error { } return nil } - func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -956,7 +918,6 @@ func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error { } return nil } - func (m *QueryDenomAuthorityMetadataRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1039,7 +1000,6 @@ func (m *QueryDenomAuthorityMetadataRequest) Unmarshal(dAtA []byte) error { } return nil } - func (m *QueryDenomAuthorityMetadataResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1123,7 +1083,6 @@ func (m *QueryDenomAuthorityMetadataResponse) Unmarshal(dAtA []byte) error { } return nil } - func (m *QueryDenomsFromCreatorRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1206,7 +1165,6 @@ func (m *QueryDenomsFromCreatorRequest) Unmarshal(dAtA []byte) error { } return nil } - func (m *QueryDenomsFromCreatorResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1289,7 +1247,6 @@ func (m *QueryDenomsFromCreatorResponse) Unmarshal(dAtA []byte) error { } return nil } - func skipQuery(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/x/tokenfactory/types/query.pb.gw.go b/x/tokenfactory/types/query.pb.gw.go index 39c5471d..0b895e70 100644 --- a/x/tokenfactory/types/query.pb.gw.go +++ b/x/tokenfactory/types/query.pb.gw.go @@ -25,15 +25,13 @@ import ( ) // Suppress "imported and not used" errors -var ( - _ codes.Code - _ io.Reader - _ status.Status - _ = runtime.String - _ = utilities.NewDoubleArray - _ = descriptor.ForMessage - _ = metadata.Join -) +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = descriptor.ForMessage +var _ = metadata.Join func request_Query_Params_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryParamsRequest @@ -41,6 +39,7 @@ func request_Query_Params_0(ctx context.Context, marshaler runtime.Marshaler, cl msg, err := client.Params(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Query_Params_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -49,6 +48,7 @@ func local_request_Query_Params_0(ctx context.Context, marshaler runtime.Marshal msg, err := server.Params(ctx, &protoReq) return msg, metadata, err + } func request_Query_DenomAuthorityMetadata_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -75,6 +75,7 @@ func request_Query_DenomAuthorityMetadata_0(ctx context.Context, marshaler runti msg, err := client.DenomAuthorityMetadata(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Query_DenomAuthorityMetadata_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -101,6 +102,7 @@ func local_request_Query_DenomAuthorityMetadata_0(ctx context.Context, marshaler msg, err := server.DenomAuthorityMetadata(ctx, &protoReq) return msg, metadata, err + } func request_Query_DenomsFromCreator_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -127,6 +129,7 @@ func request_Query_DenomsFromCreator_0(ctx context.Context, marshaler runtime.Ma msg, err := client.DenomsFromCreator(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Query_DenomsFromCreator_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -153,6 +156,7 @@ func local_request_Query_DenomsFromCreator_0(ctx context.Context, marshaler runt msg, err := server.DenomsFromCreator(ctx, &protoReq) return msg, metadata, err + } // RegisterQueryHandlerServer registers the http handlers for service Query to "mux". @@ -160,6 +164,7 @@ func local_request_Query_DenomsFromCreator_0(ctx context.Context, marshaler runt // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead. func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error { + mux.Handle("GET", pattern_Query_Params_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -180,6 +185,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv } forward_Query_Params_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("GET", pattern_Query_DenomAuthorityMetadata_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -202,6 +208,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv } forward_Query_DenomAuthorityMetadata_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("GET", pattern_Query_DenomsFromCreator_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -224,6 +231,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv } forward_Query_DenomsFromCreator_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil @@ -266,6 +274,7 @@ func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "QueryClient" to call the correct interceptors. func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error { + mux.Handle("GET", pattern_Query_Params_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -283,6 +292,7 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } forward_Query_Params_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("GET", pattern_Query_DenomAuthorityMetadata_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -302,6 +312,7 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } forward_Query_DenomAuthorityMetadata_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("GET", pattern_Query_DenomsFromCreator_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -321,6 +332,7 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } forward_Query_DenomsFromCreator_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil diff --git a/x/tokenfactory/types/tx.pb.go b/x/tokenfactory/types/tx.pb.go index 25771168..5f4d4c99 100644 --- a/x/tokenfactory/types/tx.pb.go +++ b/x/tokenfactory/types/tx.pb.go @@ -6,10 +6,6 @@ package types import ( context "context" fmt "fmt" - io "io" - math "math" - math_bits "math/bits" - _ "github.com/cosmos/cosmos-proto" types "github.com/cosmos/cosmos-sdk/types" _ "github.com/cosmos/cosmos-sdk/types/msgservice" @@ -20,14 +16,15 @@ import ( grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" + io "io" + math "math" + math_bits "math/bits" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. @@ -56,11 +53,9 @@ func (*MsgCreateDenom) ProtoMessage() {} func (*MsgCreateDenom) Descriptor() ([]byte, []int) { return fileDescriptor_283b6c9a90a846b4, []int{0} } - func (m *MsgCreateDenom) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *MsgCreateDenom) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_MsgCreateDenom.Marshal(b, m, deterministic) @@ -73,15 +68,12 @@ func (m *MsgCreateDenom) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return b[:n], nil } } - func (m *MsgCreateDenom) XXX_Merge(src proto.Message) { xxx_messageInfo_MsgCreateDenom.Merge(m, src) } - func (m *MsgCreateDenom) XXX_Size() int { return m.Size() } - func (m *MsgCreateDenom) XXX_DiscardUnknown() { xxx_messageInfo_MsgCreateDenom.DiscardUnknown(m) } @@ -114,11 +106,9 @@ func (*MsgCreateDenomResponse) ProtoMessage() {} func (*MsgCreateDenomResponse) Descriptor() ([]byte, []int) { return fileDescriptor_283b6c9a90a846b4, []int{1} } - func (m *MsgCreateDenomResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *MsgCreateDenomResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_MsgCreateDenomResponse.Marshal(b, m, deterministic) @@ -131,15 +121,12 @@ func (m *MsgCreateDenomResponse) XXX_Marshal(b []byte, deterministic bool) ([]by return b[:n], nil } } - func (m *MsgCreateDenomResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_MsgCreateDenomResponse.Merge(m, src) } - func (m *MsgCreateDenomResponse) XXX_Size() int { return m.Size() } - func (m *MsgCreateDenomResponse) XXX_DiscardUnknown() { xxx_messageInfo_MsgCreateDenomResponse.DiscardUnknown(m) } @@ -167,11 +154,9 @@ func (*MsgMint) ProtoMessage() {} func (*MsgMint) Descriptor() ([]byte, []int) { return fileDescriptor_283b6c9a90a846b4, []int{2} } - func (m *MsgMint) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *MsgMint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_MsgMint.Marshal(b, m, deterministic) @@ -184,15 +169,12 @@ func (m *MsgMint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return b[:n], nil } } - func (m *MsgMint) XXX_Merge(src proto.Message) { xxx_messageInfo_MsgMint.Merge(m, src) } - func (m *MsgMint) XXX_Size() int { return m.Size() } - func (m *MsgMint) XXX_DiscardUnknown() { xxx_messageInfo_MsgMint.DiscardUnknown(m) } @@ -220,7 +202,8 @@ func (m *MsgMint) GetMintToAddress() string { return "" } -type MsgMintResponse struct{} +type MsgMintResponse struct { +} func (m *MsgMintResponse) Reset() { *m = MsgMintResponse{} } func (m *MsgMintResponse) String() string { return proto.CompactTextString(m) } @@ -228,11 +211,9 @@ func (*MsgMintResponse) ProtoMessage() {} func (*MsgMintResponse) Descriptor() ([]byte, []int) { return fileDescriptor_283b6c9a90a846b4, []int{3} } - func (m *MsgMintResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *MsgMintResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_MsgMintResponse.Marshal(b, m, deterministic) @@ -245,15 +226,12 @@ func (m *MsgMintResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, err return b[:n], nil } } - func (m *MsgMintResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_MsgMintResponse.Merge(m, src) } - func (m *MsgMintResponse) XXX_Size() int { return m.Size() } - func (m *MsgMintResponse) XXX_DiscardUnknown() { xxx_messageInfo_MsgMintResponse.DiscardUnknown(m) } @@ -274,11 +252,9 @@ func (*MsgBurn) ProtoMessage() {} func (*MsgBurn) Descriptor() ([]byte, []int) { return fileDescriptor_283b6c9a90a846b4, []int{4} } - func (m *MsgBurn) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *MsgBurn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_MsgBurn.Marshal(b, m, deterministic) @@ -291,15 +267,12 @@ func (m *MsgBurn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return b[:n], nil } } - func (m *MsgBurn) XXX_Merge(src proto.Message) { xxx_messageInfo_MsgBurn.Merge(m, src) } - func (m *MsgBurn) XXX_Size() int { return m.Size() } - func (m *MsgBurn) XXX_DiscardUnknown() { xxx_messageInfo_MsgBurn.DiscardUnknown(m) } @@ -327,7 +300,8 @@ func (m *MsgBurn) GetBurnFromAddress() string { return "" } -type MsgBurnResponse struct{} +type MsgBurnResponse struct { +} func (m *MsgBurnResponse) Reset() { *m = MsgBurnResponse{} } func (m *MsgBurnResponse) String() string { return proto.CompactTextString(m) } @@ -335,11 +309,9 @@ func (*MsgBurnResponse) ProtoMessage() {} func (*MsgBurnResponse) Descriptor() ([]byte, []int) { return fileDescriptor_283b6c9a90a846b4, []int{5} } - func (m *MsgBurnResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *MsgBurnResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_MsgBurnResponse.Marshal(b, m, deterministic) @@ -352,15 +324,12 @@ func (m *MsgBurnResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, err return b[:n], nil } } - func (m *MsgBurnResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_MsgBurnResponse.Merge(m, src) } - func (m *MsgBurnResponse) XXX_Size() int { return m.Size() } - func (m *MsgBurnResponse) XXX_DiscardUnknown() { xxx_messageInfo_MsgBurnResponse.DiscardUnknown(m) } @@ -381,11 +350,9 @@ func (*MsgChangeAdmin) ProtoMessage() {} func (*MsgChangeAdmin) Descriptor() ([]byte, []int) { return fileDescriptor_283b6c9a90a846b4, []int{6} } - func (m *MsgChangeAdmin) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *MsgChangeAdmin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_MsgChangeAdmin.Marshal(b, m, deterministic) @@ -398,15 +365,12 @@ func (m *MsgChangeAdmin) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return b[:n], nil } } - func (m *MsgChangeAdmin) XXX_Merge(src proto.Message) { xxx_messageInfo_MsgChangeAdmin.Merge(m, src) } - func (m *MsgChangeAdmin) XXX_Size() int { return m.Size() } - func (m *MsgChangeAdmin) XXX_DiscardUnknown() { xxx_messageInfo_MsgChangeAdmin.DiscardUnknown(m) } @@ -436,7 +400,8 @@ func (m *MsgChangeAdmin) GetNewAdmin() string { // MsgChangeAdminResponse defines the response structure for an executed // MsgChangeAdmin message. -type MsgChangeAdminResponse struct{} +type MsgChangeAdminResponse struct { +} func (m *MsgChangeAdminResponse) Reset() { *m = MsgChangeAdminResponse{} } func (m *MsgChangeAdminResponse) String() string { return proto.CompactTextString(m) } @@ -444,11 +409,9 @@ func (*MsgChangeAdminResponse) ProtoMessage() {} func (*MsgChangeAdminResponse) Descriptor() ([]byte, []int) { return fileDescriptor_283b6c9a90a846b4, []int{7} } - func (m *MsgChangeAdminResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *MsgChangeAdminResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_MsgChangeAdminResponse.Marshal(b, m, deterministic) @@ -461,15 +424,12 @@ func (m *MsgChangeAdminResponse) XXX_Marshal(b []byte, deterministic bool) ([]by return b[:n], nil } } - func (m *MsgChangeAdminResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_MsgChangeAdminResponse.Merge(m, src) } - func (m *MsgChangeAdminResponse) XXX_Size() int { return m.Size() } - func (m *MsgChangeAdminResponse) XXX_DiscardUnknown() { xxx_messageInfo_MsgChangeAdminResponse.DiscardUnknown(m) } @@ -489,11 +449,9 @@ func (*MsgSetDenomMetadata) ProtoMessage() {} func (*MsgSetDenomMetadata) Descriptor() ([]byte, []int) { return fileDescriptor_283b6c9a90a846b4, []int{8} } - func (m *MsgSetDenomMetadata) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *MsgSetDenomMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_MsgSetDenomMetadata.Marshal(b, m, deterministic) @@ -506,15 +464,12 @@ func (m *MsgSetDenomMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } - func (m *MsgSetDenomMetadata) XXX_Merge(src proto.Message) { xxx_messageInfo_MsgSetDenomMetadata.Merge(m, src) } - func (m *MsgSetDenomMetadata) XXX_Size() int { return m.Size() } - func (m *MsgSetDenomMetadata) XXX_DiscardUnknown() { xxx_messageInfo_MsgSetDenomMetadata.DiscardUnknown(m) } @@ -537,7 +492,8 @@ func (m *MsgSetDenomMetadata) GetMetadata() types1.Metadata { // MsgSetDenomMetadataResponse defines the response structure for an executed // MsgSetDenomMetadata message. -type MsgSetDenomMetadataResponse struct{} +type MsgSetDenomMetadataResponse struct { +} func (m *MsgSetDenomMetadataResponse) Reset() { *m = MsgSetDenomMetadataResponse{} } func (m *MsgSetDenomMetadataResponse) String() string { return proto.CompactTextString(m) } @@ -545,11 +501,9 @@ func (*MsgSetDenomMetadataResponse) ProtoMessage() {} func (*MsgSetDenomMetadataResponse) Descriptor() ([]byte, []int) { return fileDescriptor_283b6c9a90a846b4, []int{9} } - func (m *MsgSetDenomMetadataResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *MsgSetDenomMetadataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_MsgSetDenomMetadataResponse.Marshal(b, m, deterministic) @@ -562,15 +516,12 @@ func (m *MsgSetDenomMetadataResponse) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } - func (m *MsgSetDenomMetadataResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_MsgSetDenomMetadataResponse.Merge(m, src) } - func (m *MsgSetDenomMetadataResponse) XXX_Size() int { return m.Size() } - func (m *MsgSetDenomMetadataResponse) XXX_DiscardUnknown() { xxx_messageInfo_MsgSetDenomMetadataResponse.DiscardUnknown(m) } @@ -590,11 +541,9 @@ func (*MsgForceTransfer) ProtoMessage() {} func (*MsgForceTransfer) Descriptor() ([]byte, []int) { return fileDescriptor_283b6c9a90a846b4, []int{10} } - func (m *MsgForceTransfer) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *MsgForceTransfer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_MsgForceTransfer.Marshal(b, m, deterministic) @@ -607,15 +556,12 @@ func (m *MsgForceTransfer) XXX_Marshal(b []byte, deterministic bool) ([]byte, er return b[:n], nil } } - func (m *MsgForceTransfer) XXX_Merge(src proto.Message) { xxx_messageInfo_MsgForceTransfer.Merge(m, src) } - func (m *MsgForceTransfer) XXX_Size() int { return m.Size() } - func (m *MsgForceTransfer) XXX_DiscardUnknown() { xxx_messageInfo_MsgForceTransfer.DiscardUnknown(m) } @@ -650,7 +596,8 @@ func (m *MsgForceTransfer) GetTransferToAddress() string { return "" } -type MsgForceTransferResponse struct{} +type MsgForceTransferResponse struct { +} func (m *MsgForceTransferResponse) Reset() { *m = MsgForceTransferResponse{} } func (m *MsgForceTransferResponse) String() string { return proto.CompactTextString(m) } @@ -658,11 +605,9 @@ func (*MsgForceTransferResponse) ProtoMessage() {} func (*MsgForceTransferResponse) Descriptor() ([]byte, []int) { return fileDescriptor_283b6c9a90a846b4, []int{11} } - func (m *MsgForceTransferResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *MsgForceTransferResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_MsgForceTransferResponse.Marshal(b, m, deterministic) @@ -675,15 +620,12 @@ func (m *MsgForceTransferResponse) XXX_Marshal(b []byte, deterministic bool) ([] return b[:n], nil } } - func (m *MsgForceTransferResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_MsgForceTransferResponse.Merge(m, src) } - func (m *MsgForceTransferResponse) XXX_Size() int { return m.Size() } - func (m *MsgForceTransferResponse) XXX_DiscardUnknown() { xxx_messageInfo_MsgForceTransferResponse.DiscardUnknown(m) } @@ -708,11 +650,9 @@ func (*MsgUpdateParams) ProtoMessage() {} func (*MsgUpdateParams) Descriptor() ([]byte, []int) { return fileDescriptor_283b6c9a90a846b4, []int{12} } - func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_MsgUpdateParams.Marshal(b, m, deterministic) @@ -725,15 +665,12 @@ func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, err return b[:n], nil } } - func (m *MsgUpdateParams) XXX_Merge(src proto.Message) { xxx_messageInfo_MsgUpdateParams.Merge(m, src) } - func (m *MsgUpdateParams) XXX_Size() int { return m.Size() } - func (m *MsgUpdateParams) XXX_DiscardUnknown() { xxx_messageInfo_MsgUpdateParams.DiscardUnknown(m) } @@ -758,7 +695,8 @@ func (m *MsgUpdateParams) GetParams() Params { // MsgUpdateParams message. // // Since: cosmos-sdk 0.47 -type MsgUpdateParamsResponse struct{} +type MsgUpdateParamsResponse struct { +} func (m *MsgUpdateParamsResponse) Reset() { *m = MsgUpdateParamsResponse{} } func (m *MsgUpdateParamsResponse) String() string { return proto.CompactTextString(m) } @@ -766,11 +704,9 @@ func (*MsgUpdateParamsResponse) ProtoMessage() {} func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) { return fileDescriptor_283b6c9a90a846b4, []int{13} } - func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } - func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_MsgUpdateParamsResponse.Marshal(b, m, deterministic) @@ -783,15 +719,12 @@ func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]b return b[:n], nil } } - func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_MsgUpdateParamsResponse.Merge(m, src) } - func (m *MsgUpdateParamsResponse) XXX_Size() int { return m.Size() } - func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown() { xxx_messageInfo_MsgUpdateParamsResponse.DiscardUnknown(m) } @@ -820,69 +753,67 @@ func init() { } var fileDescriptor_283b6c9a90a846b4 = []byte{ - // 876 bytes of a gzipped FileDescriptorProto + // 879 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x56, 0x4f, 0x6f, 0xdc, 0x44, 0x14, 0x8f, 0xdb, 0xb0, 0x24, 0xd3, 0xa6, 0x49, 0x9c, 0xd0, 0x6c, 0x4c, 0x6a, 0x57, 0x23, 0x8a, - 0x28, 0x22, 0xb6, 0xb6, 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39, 0x62, 0x34, 0xae, 0xfb, 0x3a, 0x48, 0x13, 0xa7, 0xad, 0x38, 0x19, 0xa0, 0x77, 0xc2, - 0x68, 0x5c, 0x3a, 0x6b, 0x92, 0xb4, 0xb7, 0xcc, 0x47, 0xe1, 0xed, 0x67, 0x43, 0x8d, 0xdf, 0x29, - 0x22, 0x21, 0x7e, 0x34, 0x8c, 0xa3, 0xa5, 0x2c, 0xbe, 0x0f, 0xde, 0xaa, 0xce, 0xde, 0x56, 0x9a, - 0x38, 0xd7, 0x15, 0x52, 0xcf, 0x87, 0x0a, 0x9b, 0x1d, 0xb0, 0x9e, 0x8d, 0x0e, 0xca, 0xf4, 0x75, - 0xea, 0xbb, 0x69, 0xe2, 0x6c, 0x95, 0x53, 0x25, 0x43, 0x30, 0x58, 0x23, 0x78, 0x22, 0xb3, 0x80, - 0x6d, 0x35, 0xa8, 0x65, 0x5e, 0x45, 0xca, 0x3f, 0x19, 0x60, 0xa7, 0xcb, 0xc3, 0x27, 0x58, 0xc8, - 0xa1, 0xeb, 0x62, 0x81, 0x86, 0x48, 0xa0, 0x65, 0xf2, 0x0e, 0xc0, 0x5a, 0xac, 0x69, 0xba, 0x39, - 0xb7, 0xca, 0xe6, 0x90, 0xb3, 0xa2, 0x39, 0xb9, 0xb6, 0xbf, 0xa7, 0x1b, 0xa4, 0x6f, 0x56, 0x4e, - 0x86, 0x41, 0xa1, 0x03, 0x6f, 0x81, 0x77, 0x5f, 0x93, 0x55, 0x91, 0xf5, 0x6f, 0x57, 0xc0, 0x56, - 0x97, 0x87, 0x47, 0x94, 0x0d, 0xf0, 0x31, 0x43, 0x84, 0x9f, 0x60, 0xf6, 0x66, 0xa6, 0x29, 0x00, - 0x3b, 0x42, 0x27, 0x30, 0x3b, 0x51, 0xb7, 0xd3, 0xc4, 0x39, 0x50, 0xbc, 0x1c, 0xd4, 0x98, 0xaa, - 0xd7, 0x91, 0xcd, 0x2f, 0xc1, 0x76, 0xfe, 0xba, 0xbc, 0x7b,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0xd5, + 0xf1, 0x56, 0x9a, 0x38, 0xb7, 0x95, 0x62, 0x03, 0x00, 0x83, 0x35, 0x82, 0x27, 0x87, 0xd9, 0x0b, + 0xa9, 0x05, 0xff, 0x34, 0xc0, 0xdb, 0x5d, 0x1e, 0x76, 0x23, 0x22, 0x16, 0x71, 0xf1, 0x25, 0x68, + 0xa1, 0x98, 0x8e, 0x89, 0x90, 0x1e, 0x6e, 0x3c, 0xd8, 0x75, 0x75, 0x85, 0xb2, 0x96, 0xe5, 0xdd, + 0x75, 0x9f, 0xd2, 0x88, 0xf8, 0xef, 0xbc, 0x4a, 0x9c, 0xa5, 0x52, 0x49, 0xd1, 0x60, 0xa0, 0xf9, + 0xe6, 0xe7, 0x60, 0x2d, 0x8e, 0x88, 0x38, 0xa4, 0x4f, 0x86, 0x43, 0x86, 0x39, 0x6f, 0x5f, 0x6f, + 0x5a, 0xc8, 0xc2, 0x3d, 0x41, 0x7b, 0x48, 0x01, 0x60, 0x50, 0x27, 0xc0, 0x4d, 0xb0, 0xae, 0x1d, + 0xe4, 0x95, 0x81, 0x7f, 0x29, 0x57, 0xfe, 0x98, 0x91, 0xab, 0x71, 0x75, 0x00, 0xd6, 0xfb, 0x63, + 0x46, 0x0e, 0x18, 0x8d, 0xeb, 0xbe, 0xf6, 0xd2, 0xc4, 0x69, 0x2b, 0x4e, 0x06, 0xe8, 0x1d, 0x31, + 0x1a, 0x97, 0xce, 0x9a, 0x24, 0xed, 0x2d, 0xf3, 0x51, 0x78, 0xfb, 0xd9, 0x50, 0xe3, 0x77, 0x8c, + 0x48, 0x88, 0x9f, 0x0c, 0xe3, 0x68, 0x21, 0x8b, 0xef, 0x83, 0xb7, 0xaa, 0xb3, 0xb7, 0x91, 0x26, + 0xce, 0x4d, 0x85, 0xd4, 0xf3, 0xa1, 0xc2, 0x66, 0x07, 0xac, 0x66, 0xa3, 0x83, 0x32, 0x7d, 0x9d, + 0xfa, 0x76, 0x9a, 0x38, 0x1b, 0xe5, 0x54,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, 0xb1, 0x27, 0x30, 0x1b, 0x11, 0x2c, 0x26, 0x94, 0x9d, 0xc8, 0xdf, 0xfb, 0x03, 0xca, 0xb0, + 0x77, 0xfa, 0xd0, 0x7b, 0x59, 0xff, 0x38, 0x13, 0x67, 0x23, 0xcc, 0xfb, 0x2d, 0xf9, 0x81, 0xf5, + 0xf1, 0xff, 0x01, 0x00, 0x00, 0xff, 0xff, 0xfa, 0x1d, 0xd6, 0x53, 0x5c, 0x0a, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. -var ( - _ context.Context - _ grpc.ClientConn -) +var _ context.Context +var _ grpc.ClientConn // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. @@ -992,32 +923,27 @@ type MsgServer interface { } // UnimplementedMsgServer can be embedded to have forward compatible implementations. -type UnimplementedMsgServer struct{} +type UnimplementedMsgServer struct { +} func (*UnimplementedMsgServer) CreateDenom(ctx context.Context, req *MsgCreateDenom) (*MsgCreateDenomResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateDenom not implemented") } - func (*UnimplementedMsgServer) Mint(ctx context.Context, req *MsgMint) (*MsgMintResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Mint not implemented") } - func (*UnimplementedMsgServer) Burn(ctx context.Context, req *MsgBurn) (*MsgBurnResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Burn not implemented") } - func (*UnimplementedMsgServer) ChangeAdmin(ctx context.Context, req *MsgChangeAdmin) (*MsgChangeAdminResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangeAdmin not implemented") } - func (*UnimplementedMsgServer) SetDenomMetadata(ctx context.Context, req *MsgSetDenomMetadata) (*MsgSetDenomMetadataResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method SetDenomMetadata not implemented") } - func (*UnimplementedMsgServer) ForceTransfer(ctx context.Context, req *MsgForceTransfer) (*MsgForceTransferResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ForceTransfer not implemented") } - func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateParams not implemented") } @@ -1677,7 +1603,6 @@ func encodeVarintTx(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } - func (m *MsgCreateDenom) Size() (n int) { if m == nil { return 0 @@ -1877,11 +1802,9 @@ func (m *MsgUpdateParamsResponse) Size() (n int) { func sovTx(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } - func sozTx(x uint64) (n int) { return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } - func (m *MsgCreateDenom) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1996,7 +1919,6 @@ func (m *MsgCreateDenom) Unmarshal(dAtA []byte) error { } return nil } - func (m *MsgCreateDenomResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -2079,7 +2001,6 @@ func (m *MsgCreateDenomResponse) Unmarshal(dAtA []byte) error { } return nil } - func (m *MsgMint) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -2227,7 +2148,6 @@ func (m *MsgMint) Unmarshal(dAtA []byte) error { } return nil } - func (m *MsgMintResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -2278,7 +2198,6 @@ func (m *MsgMintResponse) Unmarshal(dAtA []byte) error { } return nil } - func (m *MsgBurn) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -2426,7 +2345,6 @@ func (m *MsgBurn) Unmarshal(dAtA []byte) error { } return nil } - func (m *MsgBurnResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -2477,7 +2395,6 @@ func (m *MsgBurnResponse) Unmarshal(dAtA []byte) error { } return nil } - func (m *MsgChangeAdmin) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -2624,7 +2541,6 @@ func (m *MsgChangeAdmin) Unmarshal(dAtA []byte) error { } return nil } - func (m *MsgChangeAdminResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -2675,7 +2591,6 @@ func (m *MsgChangeAdminResponse) Unmarshal(dAtA []byte) error { } return nil } - func (m *MsgSetDenomMetadata) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -2791,7 +2706,6 @@ func (m *MsgSetDenomMetadata) Unmarshal(dAtA []byte) error { } return nil } - func (m *MsgSetDenomMetadataResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -2842,7 +2756,6 @@ func (m *MsgSetDenomMetadataResponse) Unmarshal(dAtA []byte) error { } return nil } - func (m *MsgForceTransfer) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -3022,7 +2935,6 @@ func (m *MsgForceTransfer) Unmarshal(dAtA []byte) error { } return nil } - func (m *MsgForceTransferResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -3073,7 +2985,6 @@ func (m *MsgForceTransferResponse) Unmarshal(dAtA []byte) error { } return nil } - func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -3189,7 +3100,6 @@ func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error { } return nil } - func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -3240,7 +3150,6 @@ func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error { } return nil } - func skipTx(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0