diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..097f9f9
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,9 @@
+#
+# https://help.github.com/articles/dealing-with-line-endings/
+#
+# Linux start script should use lf
+/gradlew text eol=lf
+
+# These are Windows script files and should use crlf
+*.bat text eol=crlf
+
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 576b83c..13f6a74 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -17,26 +17,6 @@ jobs:
steps:
- uses: actions/checkout@v2
- - name: Build panacea-core
- env:
- OWNER_MNEMONIC: ${{ secrets.OWNER_MNEMONIC }}
- RECIPIENT_MNEMONIC: ${{ secrets.RECIPIENT_MNEMONIC }}
- DOCKER_NAME: panacea-core-${{ github.sha }}
- DOCKER_TAG: panacea-core:${{ github.sha }}
- run: |
- echo "OWNER_MNEMONIC=${OWNER_MNEMONIC}"
- echo "RECIPIENT_MNEMONIC=${RECIPIENT_MNEMONIC}"
- pwd
- ls
- ls /
- docker build -f src/test/resources/scripts/Dockerfile -t ${DOCKER_TAG} .
- docker run -d -e \
- "OWNER_MNEMONIC=${OWNER_MNEMONIC}" \
- -e "RECIPIENT_MNEMONIC=${RECIPIENT_MNEMONIC}" \
- -p 9090:9090 \
- --name ${DOCKER_NAME} \
- ${DOCKER_TAG}
-
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
diff --git a/.gitignore b/.gitignore
index 6e67d45..54a5f5d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,243 +1,7 @@
-HELP.md
+# Ignore Gradle project-specific cache directory
.gradle
-/build/
-!gradle/wrapper/gradle-wrapper.jar
-### STS ###
-.apt_generated
-.classpath
-.factorypath
-.project
-.settings
-.springBeans
-.sts4-cache
-
-### IntelliJ IDEA ###
-.idea
-*.iws
-*.iml
-*.ipr
-/out/
-
-### NetBeans ###
-/nbproject/private/
-/nbbuild/
-/dist/
-/nbdist/
-/.nb-gradle/
-
-### VS Code ###
-.vscode/
-
-
-
-
-# Created by .ignore support plugin (hsz.mobi)
-### JetBrains template
-# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
-# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
-
-# User-specific stuff
-.idea/**/workspace.xml
-.idea/**/tasks.xml
-.idea/**/usage.statistics.xml
-.idea/**/dictionaries
-.idea/**/shelf
-
-# Generated files
-.idea/**/contentModel.xml
-
-# Sensitive or high-churn files
-.idea/**/dataSources/
-.idea/**/dataSources.ids
-.idea/**/dataSources.local.xml
-.idea/**/sqlDataSources.xml
-.idea/**/dynamic.xml
-.idea/**/uiDesigner.xml
-.idea/**/dbnavigator.xml
-
-# Gradle
-.idea/**/gradle.xml
-.idea/**/libraries
-
-# Gradle and Maven with auto-import
-# When using Gradle or Maven with auto-import, you should exclude module files,
-# since they will be recreated, and may cause churn. Uncomment if using
-# auto-import.
-# .idea/modules.xml
-# .idea/*.iml
-# .idea/modules
-# *.iml
-# *.ipr
-
-# CMake
-cmake-build-*/
-
-# Mongo Explorer plugin
-.idea/**/mongoSettings.xml
-
-# File-based project format
-*.iws
-
-# IntelliJ
-out/
-
-# mpeltonen/sbt-idea plugin
-.idea_modules/
-
-# JIRA plugin
-atlassian-ide-plugin.xml
-
-# Cursive Clojure plugin
-.idea/replstate.xml
-
-# Crashlytics plugin (for Android Studio and IntelliJ)
-com_crashlytics_export_strings.xml
-crashlytics.properties
-crashlytics-build.properties
-fabric.properties
-
-# Editor-based Rest Client
-.idea/httpRequests
-
-# Android studio 3.1+ serialized cache file
-.idea/caches/build_file_checksums.ser
-
-### Maven template
-target/
-pom.xml.tag
-pom.xml.releaseBackup
-pom.xml.versionsBackup
-pom.xml.next
-release.properties
-dependency-reduced-pom.xml
-buildNumber.properties
-.mvn/timing.properties
-.mvn/wrapper/maven-wrapper.jar
-
-### macOS template
-# General
-.DS_Store
-.AppleDouble
-.LSOverride
-
-# Icon must end with two \r
-Icon
-
-# Thumbnails
-._*
-
-# Files that might appear in the root of a volume
-.DocumentRevisions-V100
-.fseventsd
-.Spotlight-V100
-.TemporaryItems
-.Trashes
-.VolumeIcon.icns
-.com.apple.timemachine.donotpresent
-
-# Directories potentially created on remote AFP share
-.AppleDB
-.AppleDesktop
-Network Trash Folder
-Temporary Items
-.apdisk
-
-### Java template
-# Compiled class file
-*.class
-
-# Log file
-*.log
-
-# BlueJ files
-*.ctxt
-
-# Mobile Tools for Java (J2ME)
-.mtj.tmp/
-
-# Package Files #
-*.jar
-*.war
-*.nar
-*.ear
-*.zip
-*.tar.gz
-*.rar
-
-# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
-hs_err_pid*
-
-### Gradle template
-.gradle
-/build/
-
-# Ignore Gradle GUI config
-gradle-app.setting
-
-# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
-!gradle-wrapper.jar
-
-# Cache of project
-.gradletasknamecache
-
-# # Work around https://youtrack.jetbrains.com/issue/IDEA-116898
-# gradle/wrapper/gradle-wrapper.properties
-
-### Eclipse template
-.metadata
-bin/
-tmp/
-*.tmp
-*.bak
-*.swp
-*~.nib
-local.properties
-.settings/
-.loadpath
-.recommenders
-
-# External tool builders
-.externalToolBuilders/
-
-# Locally stored "Eclipse launch configurations"
-*.launch
-
-# PyDev specific (Python IDE for Eclipse)
-*.pydevproject
-
-# CDT-specific (C/C++ Development Tooling)
-.cproject
-
-# CDT- autotools
-.autotools
-
-# Java annotation processor (APT)
-.factorypath
-
-# PDT-specific (PHP Development Tools)
-.buildpath
-
-# sbteclipse plugin
-.target
-
-# Tern plugin
-.tern-project
-
-# TeXlipse plugin
-.texlipse
-
-# STS (Spring Tool Suite)
-.springBeans
-
-# Code Recommenders
-.recommenders/
-
-# Annotation Processing
-.apt_generated/
-
-# Scala IDE specific (Scala & Java development for Eclipse)
-.cache-main
-.scala_dependencies
-.worksheet
+# Ignore Gradle build output directory
+build
+.idea
\ No newline at end of file
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 9e3c3ab..05a8b64 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,8 @@
TBD
+## [v2.2.0](https://github.com/medibloc/panacea-java/releases/tag/v2.2.0) - 2024-03-
+
## [v2.0.2](https://github.com/medibloc/panacea-java/releases/tag/v2.0.2) - 2022-11-10
### Features
diff --git a/CODEOWNERS b/CODEOWNERS
index 05ae593..ba4824e 100644
--- a/CODEOWNERS
+++ b/CODEOWNERS
@@ -1,3 +1,3 @@
# https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners
-* @youngjoon-lee @gyuguen @inchori @audtlr24
+* @cl9200 @gyuguen @audtlr24
diff --git a/README.md b/README.md
index b3ae04c..9a3a5a8 100644
--- a/README.md
+++ b/README.md
@@ -18,7 +18,7 @@ repositories {
}
dependencies {
- implementation 'org.medibloc.panacea:panacea-java:2.0.2'
+ implementation 'org.medibloc.panacea:panacea-java:2.2.0'
}
```
@@ -28,6 +28,7 @@ dependencies {
* Get account / balance / tx(s) / block / node
* Get aol(topic,record)
* Get did document
+ * Get denom / pnft
## Broadcast tx
### Send Coin
diff --git a/build.gradle b/build.gradle
index 791ad97..4a8adaa 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,106 +1,64 @@
-buildscript {
- repositories {
- mavenCentral()
- }
- dependencies {
- classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.8'
- }
-}
-
plugins {
- id 'idea'
- id 'java'
- id 'maven'
- id 'maven-publish'
- id 'com.google.protobuf' version '0.8.8'
+ id('java')
+ id('com.google.protobuf') version '0.9.4'
}
sourceSets {
main {
proto {
- srcDir 'src/main/resources/proto'
- }
- java {
- srcDir 'src/main/java'
- }
- }
-}
-
-protobuf {
- protoc {
- artifact = "com.google.protobuf:protoc:3.7.1"
- }
- plugins {
- grpc {
- artifact = 'io.grpc:protoc-gen-grpc-java:1.22.1'
- }
- }
- generateProtoTasks {
- all().each { task ->
- task.plugins {
- grpc {}
- }
+ srcDir "src/main/resources/proto"
}
- ofSourceSet('main')
}
- generatedFilesBaseDir = "$projectDir/src/generated"
}
-idea {
- module {
- sourceDirs += file("${projectDir}/src/generated/main/java");
- sourceDirs += file("${projectDir}/src/generated/main/grpc");
- }
-}
-
-group 'org.medibloc.panacea'
-version '2.0.2'
-
-sourceCompatibility = JavaVersion.VERSION_1_6
-targetCompatibility = JavaVersion.VERSION_1_6
-
repositories {
mavenCentral()
}
dependencies {
- implementation 'org.bitcoinj:bitcoinj-core:0.15.10'
- implementation 'org.apache.commons:commons-lang3:3.12.0'
- implementation 'org.usb4java:usb4java:1.2.0'
- implementation 'org.projectlombok:lombok:1.18.8'
- implementation 'commons-codec:commons-codec:1.12'
- implementation 'commons-net:commons-net:3.6'
- implementation 'org.apache.commons:commons-collections4:4.4'
- implementation 'com.fasterxml.jackson.core:jackson-core:2.12.3'
- implementation 'com.fasterxml.jackson.core:jackson-databind:2.12.3'
- implementation 'io.grpc:grpc-protobuf:1.22.1'
- implementation 'io.grpc:grpc-netty-shaded:1.22.1'
- implementation 'io.grpc:grpc-stub:1.22.1'
- testImplementation 'junit:junit:4.12'
-}
+ implementation("org.bitcoinj:bitcoinj-core:0.16.2") {
+ exclude group: "com.google.protobuf", module: "protobuf-javalite"
+ }
+ implementation("org.apache.commons:commons-lang3:3.14.0")
+ implementation("org.apache.commons:commons-collections4:4.4")
+ implementation("commons-codec:commons-codec:1.16.1")
+ implementation("commons-net:commons-net:3.10.0")
+ implementation("com.fasterxml.jackson.core:jackson-core:2.16.2")
+ implementation("com.fasterxml.jackson.core:jackson-databind:2.16.2")
+ compileOnly("org.projectlombok:lombok:1.18.30")
+ annotationProcessor("org.projectlombok:lombok:1.18.30")
+
+ implementation("ch.qos.logback:logback-classic:1.2.3")
-test {
- //TODO: enable this test when the panacea-core docker image is ready
- exclude 'org/medibloc/panacea/GrpcAolTest'
- exclude 'org/medibloc/panacea/GrpcBroadcastTest'
- exclude 'org/medibloc/panacea/GrpcDIDTest'
- exclude 'org/medibloc/panacea/GrpcQueryTest'
+ implementation 'io.grpc:grpc-protobuf:1.62.2'
+ implementation 'io.grpc:grpc-stub:1.62.2'
+ implementation 'io.grpc:grpc-netty-shaded:1.62.2'
+
+ testImplementation 'junit:junit:4.13.2'
}
-publishing {
- repositories {
- maven {
- url = uri("https://maven.pkg.github.com/medibloc/panacea-java")
- credentials {
- username = System.getenv("GPR_USER")
- password = System.getenv("GPR_API_KEY")
- }
+protobuf {
+ protoc {
+ // The artifact spec for the Protobuf Compiler
+ artifact = 'com.google.protobuf:protoc:3.25.3'
+ }
+ plugins {
+ // Optional: an artifact spec for a protoc plugin, with "grpc" as
+ // the identifier, which can be referred to in the "plugins"
+ // container of the "generateProtoTasks" closure.
+ grpc {
+ artifact = 'io.grpc:protoc-gen-grpc-java:1.62.2'
}
-// mavenLocal()
}
- publications {
- gpr(MavenPublication) {
- from(components.java)
+ generateProtoTasks {
+ ofSourceSet('main').configureEach {
+ plugins {
+ // Apply the "grpc" plugin whose spec is defined above, without
+ // options. Note the braces cannot be omitted, otherwise the
+ // plugin will not be added. This is because of the implicit way
+ // NamedDomainObjectContainer binds the methods.
+ grpc {}
+ }
}
}
-}
+}
\ No newline at end of file
diff --git a/gradle.properties b/gradle.properties
new file mode 100644
index 0000000..2d3b4c0
--- /dev/null
+++ b/gradle.properties
@@ -0,0 +1 @@
+org.gradle.jvmargs=-Xmx3072m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
\ No newline at end of file
diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml
new file mode 100644
index 0000000..a8d77d8
--- /dev/null
+++ b/gradle/libs.versions.toml
@@ -0,0 +1,12 @@
+# This file was generated by the Gradle 'init' task.
+# https://docs.gradle.org/current/userguide/platforms.html#sub::toml-dependencies-format
+
+[versions]
+commons-math3 = "3.6.1"
+guava = "32.1.3-jre"
+junit-jupiter = "5.10.0"
+
+[libraries]
+commons-math3 = { module = "org.apache.commons:commons-math3", version.ref = "commons-math3" }
+guava = { module = "com.google.guava:guava", version.ref = "guava" }
+junit-jupiter = { module = "org.junit.jupiter:junit-jupiter", version.ref = "junit-jupiter" }
diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar
index 94336fc..d64cd49 100644
Binary files a/gradle/wrapper/gradle-wrapper.jar and b/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
index 4a56807..a80b22c 100644
--- a/gradle/wrapper/gradle-wrapper.properties
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -1,6 +1,7 @@
-#Wed Jul 17 15:23:08 KST 2019
-distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.3-all.zip
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
-zipStorePath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
+networkTimeout=10000
+validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
diff --git a/gradlew b/gradlew
index cccdd3d..1aa94a4 100755
--- a/gradlew
+++ b/gradlew
@@ -1,78 +1,127 @@
-#!/usr/bin/env sh
+#!/bin/sh
+
+#
+# Copyright © 2015-2021 the original authors.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
##############################################################################
-##
-## Gradle start up script for UN*X
-##
+#
+# Gradle start up script for POSIX generated by Gradle.
+#
+# Important for running:
+#
+# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
+# noncompliant, but you have some other compliant shell such as ksh or
+# bash, then to run this script, type that shell name before the whole
+# command line, like:
+#
+# ksh Gradle
+#
+# Busybox and similar reduced shells will NOT work, because this script
+# requires all of these POSIX shell features:
+# * functions;
+# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
+# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
+# * compound commands having a testable exit status, especially «case»;
+# * various built-in commands including «command», «set», and «ulimit».
+#
+# Important for patching:
+#
+# (2) This script targets any POSIX shell, so it avoids extensions provided
+# by Bash, Ksh, etc; in particular arrays are avoided.
+#
+# The "traditional" practice of packing multiple parameters into a
+# space-separated string is a well documented source of bugs and security
+# problems, so this is (mostly) avoided, by progressively accumulating
+# options in "$@", and eventually passing that to Java.
+#
+# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
+# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
+# see the in-line comments for details.
+#
+# There are tweaks for specific operating systems such as AIX, CygWin,
+# Darwin, MinGW, and NonStop.
+#
+# (3) This script is generated from the Groovy template
+# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
+# within the Gradle project.
+#
+# You can find Gradle at https://github.com/gradle/gradle/.
+#
##############################################################################
# Attempt to set APP_HOME
+
# Resolve links: $0 may be a link
-PRG="$0"
-# Need this for relative symlinks.
-while [ -h "$PRG" ] ; do
- ls=`ls -ld "$PRG"`
- link=`expr "$ls" : '.*-> \(.*\)$'`
- if expr "$link" : '/.*' > /dev/null; then
- PRG="$link"
- else
- PRG=`dirname "$PRG"`"/$link"
- fi
+app_path=$0
+
+# Need this for daisy-chained symlinks.
+while
+ APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
+ [ -h "$app_path" ]
+do
+ ls=$( ls -ld "$app_path" )
+ link=${ls#*' -> '}
+ case $link in #(
+ /*) app_path=$link ;; #(
+ *) app_path=$APP_HOME$link ;;
+ esac
done
-SAVED="`pwd`"
-cd "`dirname \"$PRG\"`/" >/dev/null
-APP_HOME="`pwd -P`"
-cd "$SAVED" >/dev/null
-
-APP_NAME="Gradle"
-APP_BASE_NAME=`basename "$0"`
-# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
-DEFAULT_JVM_OPTS=""
+# This is normally unused
+# shellcheck disable=SC2034
+APP_BASE_NAME=${0##*/}
+# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
+APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
# Use the maximum available, or set MAX_FD != -1 to use that value.
-MAX_FD="maximum"
+MAX_FD=maximum
warn () {
echo "$*"
-}
+} >&2
die () {
echo
echo "$*"
echo
exit 1
-}
+} >&2
# OS specific support (must be 'true' or 'false').
cygwin=false
msys=false
darwin=false
nonstop=false
-case "`uname`" in
- CYGWIN* )
- cygwin=true
- ;;
- Darwin* )
- darwin=true
- ;;
- MINGW* )
- msys=true
- ;;
- NONSTOP* )
- nonstop=true
- ;;
+case "$( uname )" in #(
+ CYGWIN* ) cygwin=true ;; #(
+ Darwin* ) darwin=true ;; #(
+ MSYS* | MINGW* ) msys=true ;; #(
+ NONSTOP* ) nonstop=true ;;
esac
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
# Determine the Java command to use to start the JVM.
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
# IBM's JDK on AIX uses strange locations for the executables
- JAVACMD="$JAVA_HOME/jre/sh/java"
+ JAVACMD=$JAVA_HOME/jre/sh/java
else
- JAVACMD="$JAVA_HOME/bin/java"
+ JAVACMD=$JAVA_HOME/bin/java
fi
if [ ! -x "$JAVACMD" ] ; then
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
@@ -81,92 +130,120 @@ Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
else
- JAVACMD="java"
- which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+ JAVACMD=java
+ if ! command -v java >/dev/null 2>&1
+ then
+ die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
+ fi
fi
# Increase the maximum file descriptors if we can.
-if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
- MAX_FD_LIMIT=`ulimit -H -n`
- if [ $? -eq 0 ] ; then
- if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
- MAX_FD="$MAX_FD_LIMIT"
- fi
- ulimit -n $MAX_FD
- if [ $? -ne 0 ] ; then
- warn "Could not set maximum file descriptor limit: $MAX_FD"
- fi
- else
- warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
- fi
+if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
+ case $MAX_FD in #(
+ max*)
+ # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
+ # shellcheck disable=SC2039,SC3045
+ MAX_FD=$( ulimit -H -n ) ||
+ warn "Could not query maximum file descriptor limit"
+ esac
+ case $MAX_FD in #(
+ '' | soft) :;; #(
+ *)
+ # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
+ # shellcheck disable=SC2039,SC3045
+ ulimit -n "$MAX_FD" ||
+ warn "Could not set maximum file descriptor limit to $MAX_FD"
+ esac
fi
-# For Darwin, add options to specify how the application appears in the dock
-if $darwin; then
- GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
-fi
+# Collect all arguments for the java command, stacking in reverse order:
+# * args from the command line
+# * the main class name
+# * -classpath
+# * -D...appname settings
+# * --module-path (only if needed)
+# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
+
+# For Cygwin or MSYS, switch paths to Windows format before running java
+if "$cygwin" || "$msys" ; then
+ APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
+ CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
+
+ JAVACMD=$( cygpath --unix "$JAVACMD" )
-# For Cygwin, switch paths to Windows format before running java
-if $cygwin ; then
- APP_HOME=`cygpath --path --mixed "$APP_HOME"`
- CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
- JAVACMD=`cygpath --unix "$JAVACMD"`
-
- # We build the pattern for arguments to be converted via cygpath
- ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
- SEP=""
- for dir in $ROOTDIRSRAW ; do
- ROOTDIRS="$ROOTDIRS$SEP$dir"
- SEP="|"
- done
- OURCYGPATTERN="(^($ROOTDIRS))"
- # Add a user-defined pattern to the cygpath arguments
- if [ "$GRADLE_CYGPATTERN" != "" ] ; then
- OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
- fi
# Now convert the arguments - kludge to limit ourselves to /bin/sh
- i=0
- for arg in "$@" ; do
- CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
- CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
-
- if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
- eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
- else
- eval `echo args$i`="\"$arg\""
+ for arg do
+ if
+ case $arg in #(
+ -*) false ;; # don't mess with options #(
+ /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
+ [ -e "$t" ] ;; #(
+ *) false ;;
+ esac
+ then
+ arg=$( cygpath --path --ignore --mixed "$arg" )
fi
- i=$((i+1))
+ # Roll the args list around exactly as many times as the number of
+ # args, so each arg winds up back in the position where it started, but
+ # possibly modified.
+ #
+ # NB: a `for` loop captures its iteration list before it begins, so
+ # changing the positional parameters here affects neither the number of
+ # iterations, nor the values presented in `arg`.
+ shift # remove old arg
+ set -- "$@" "$arg" # push replacement arg
done
- case $i in
- (0) set -- ;;
- (1) set -- "$args0" ;;
- (2) set -- "$args0" "$args1" ;;
- (3) set -- "$args0" "$args1" "$args2" ;;
- (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
- (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
- (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
- (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
- (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
- (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
- esac
fi
-# Escape application args
-save () {
- for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
- echo " "
-}
-APP_ARGS=$(save "$@")
-
-# Collect all arguments for the java command, following the shell quoting and substitution rules
-eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
-# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
-if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
- cd "$(dirname "$0")"
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
+
+# Collect all arguments for the java command:
+# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
+# and any embedded shellness will be escaped.
+# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
+# treated as '${Hostname}' itself on the command line.
+
+set -- \
+ "-Dorg.gradle.appname=$APP_BASE_NAME" \
+ -classpath "$CLASSPATH" \
+ org.gradle.wrapper.GradleWrapperMain \
+ "$@"
+
+# Stop when "xargs" is not available.
+if ! command -v xargs >/dev/null 2>&1
+then
+ die "xargs is not available"
fi
+# Use "xargs" to parse quoted args.
+#
+# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
+#
+# In Bash we could simply go:
+#
+# readarray ARGS < <( xargs -n1 <<<"$var" ) &&
+# set -- "${ARGS[@]}" "$@"
+#
+# but POSIX shell has neither arrays nor command substitution, so instead we
+# post-process each arg (as a line of input to sed) to backslash-escape any
+# character that might be a shell metacharacter, then use eval to reverse
+# that process (while maintaining the separation between arguments), and wrap
+# the whole thing up as a single "set" statement.
+#
+# This will of course break if any of these variables contains a newline or
+# an unmatched quote.
+#
+
+eval "set -- $(
+ printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
+ xargs -n1 |
+ sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
+ tr '\n' ' '
+ )" '"$@"'
+
exec "$JAVACMD" "$@"
diff --git a/gradlew.bat b/gradlew.bat
index f955316..25da30d 100644
--- a/gradlew.bat
+++ b/gradlew.bat
@@ -1,4 +1,20 @@
-@if "%DEBUG%" == "" @echo off
+@rem
+@rem Copyright 2015 the original author or authors.
+@rem
+@rem Licensed under the Apache License, Version 2.0 (the "License");
+@rem you may not use this file except in compliance with the License.
+@rem You may obtain a copy of the License at
+@rem
+@rem https://www.apache.org/licenses/LICENSE-2.0
+@rem
+@rem Unless required by applicable law or agreed to in writing, software
+@rem distributed under the License is distributed on an "AS IS" BASIS,
+@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+@rem See the License for the specific language governing permissions and
+@rem limitations under the License.
+@rem
+
+@if "%DEBUG%"=="" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@@ -9,25 +25,29 @@
if "%OS%"=="Windows_NT" setlocal
set DIRNAME=%~dp0
-if "%DIRNAME%" == "" set DIRNAME=.
+if "%DIRNAME%"=="" set DIRNAME=.
+@rem This is normally unused
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%
+@rem Resolve any "." and ".." in APP_HOME to make it shorter.
+for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
+
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
-set DEFAULT_JVM_OPTS=
+set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome
set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
-if "%ERRORLEVEL%" == "0" goto init
+if %ERRORLEVEL% equ 0 goto execute
-echo.
-echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
-echo.
-echo Please set the JAVA_HOME variable in your environment to match the
-echo location of your Java installation.
+echo. 1>&2
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
+echo. 1>&2
+echo Please set the JAVA_HOME variable in your environment to match the 1>&2
+echo location of your Java installation. 1>&2
goto fail
@@ -35,48 +55,36 @@ goto fail
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
-if exist "%JAVA_EXE%" goto init
+if exist "%JAVA_EXE%" goto execute
-echo.
-echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
-echo.
-echo Please set the JAVA_HOME variable in your environment to match the
-echo location of your Java installation.
+echo. 1>&2
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
+echo. 1>&2
+echo Please set the JAVA_HOME variable in your environment to match the 1>&2
+echo location of your Java installation. 1>&2
goto fail
-:init
-@rem Get command-line arguments, handling Windows variants
-
-if not "%OS%" == "Windows_NT" goto win9xME_args
-
-:win9xME_args
-@rem Slurp the command line arguments.
-set CMD_LINE_ARGS=
-set _SKIP=2
-
-:win9xME_args_slurp
-if "x%~1" == "x" goto execute
-
-set CMD_LINE_ARGS=%*
-
:execute
@rem Setup the command line
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
@rem Execute Gradle
-"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
:end
@rem End local scope for the variables with windows NT shell
-if "%ERRORLEVEL%"=="0" goto mainEnd
+if %ERRORLEVEL% equ 0 goto mainEnd
:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
-if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
-exit /b 1
+set EXIT_CODE=%ERRORLEVEL%
+if %EXIT_CODE% equ 0 set EXIT_CODE=1
+if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
+exit /b %EXIT_CODE%
:mainEnd
if "%OS%"=="Windows_NT" endlocal
diff --git a/panacea-java.iml b/panacea-java.iml
new file mode 100644
index 0000000..baad17f
--- /dev/null
+++ b/panacea-java.iml
@@ -0,0 +1,334 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/panacea-java.ipr b/panacea-java.ipr
new file mode 100644
index 0000000..50f3f50
--- /dev/null
+++ b/panacea-java.ipr
@@ -0,0 +1,104 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1.6
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/panacea-java.iws b/panacea-java.iws
new file mode 100644
index 0000000..d5bc759
--- /dev/null
+++ b/panacea-java.iws
@@ -0,0 +1,207 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ localhost
+ 5050
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/proto_update.dep.sh b/proto_update.dep.sh
new file mode 100755
index 0000000..6d99996
--- /dev/null
+++ b/proto_update.dep.sh
@@ -0,0 +1,37 @@
+#!/bin/bash
+
+##############################################################
+# This script updates 3rd-party proto files stored in the 'src/main/resources/proto'
+##############################################################
+
+set -eo pipefail
+
+SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
+
+PROTO_PATH="${SCRIPT_DIR}/src/main/resources/proto"
+
+rm -rfv ${PROTO_PATH}
+
+buf export buf.build/medibloc/panacea-core -o ${PROTO_PATH}
+buf export buf.build/cosmos/cosmos-sdk -o ${PROTO_PATH}
+buf export buf.build/cosmos/gogo-proto -o ${PROTO_PATH}
+
+## Delete nft proto because is not required and error class name.
+rm -rfv src/main/resources/proto/cosmos/nft
+## Delete google dependency
+rm -rfv src/main/resources/proto/google
+
+# Insert the new line after the 'package ...' line
+SED_COMMAND='/^package/a\
+option java_multiple_files = true;
+'
+
+for file in $(find ${PROTO_PATH} -type f -name '*.proto'); do
+ if ! grep -q '^option java_multiple_files' ${file}; then
+ if [[ `uname` == 'Darwin' ]]; then
+ sed -i '' "${SED_COMMAND}" ${file}
+ else
+ sed -i "${SED_COMMAND}" ${file}
+ fi
+ fi
+done
diff --git a/proto_update_dep.sh b/proto_update_dep.sh
deleted file mode 100755
index 8216471..0000000
--- a/proto_update_dep.sh
+++ /dev/null
@@ -1,43 +0,0 @@
-#!/bin/bash
-
-##############################################################
-# This script updates 3rd-party proto files stored in the 'src/main/resources/proto'
-##############################################################
-
-set -eo pipefail
-
-SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
-
-PROTO_PATH="${SCRIPT_DIR}/src/main/resources/proto"
-
-##############################################################
-# Download proto files from the 'panacea-core' git repo
-##############################################################
-PANACEA_CORE_VER_SHORT="2.0.5"
-PANACEA_CORE_VER="v${PANACEA_CORE_VER_SHORT}"
-
-mkdir -p ${PROTO_PATH}
-curl https://codeload.github.com/medibloc/panacea-core/tar.gz/${PANACEA_CORE_VER} | \
- tar -xz -C ${PROTO_PATH} --strip=3 panacea-core-${PANACEA_CORE_VER_SHORT}/third_party/proto
-curl https://codeload.github.com/medibloc/panacea-core/tar.gz/${PANACEA_CORE_VER} | \
- tar -xz -C ${PROTO_PATH} --strip=2 panacea-core-${PANACEA_CORE_VER_SHORT}/proto
-
-
-##############################################################
-# Insert the 'java_multiple_files' option, if the file doesn't already contain it.
-##############################################################
-
-# Insert the new line after the 'package ...' line
-SED_COMMAND='/^package/a\
-option java_multiple_files = true;
-'
-
-for file in $(find ${PROTO_PATH} -type f -name '*.proto'); do
- if ! grep -q '^option java_multiple_files' ${file}; then
- if [[ `uname` == 'Darwin' ]]; then
- sed -i '' "${SED_COMMAND}" ${file}
- else
- sed -i "${SED_COMMAND}" ${file}
- fi
- fi
-done
diff --git a/settings.gradle b/settings.gradle
index 828bfb1..b3f6f33 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -1,2 +1,7 @@
-rootProject.name = 'panacea-java'
-
+/*
+ * This file was generated by the Gradle 'init' task.
+ *
+ * The settings file is used to specify which projects to include in your build.
+ * For more detailed information on multi-project builds, please refer to https://docs.gradle.org/8.6/userguide/multi_project_builds.html in the Gradle documentation.
+ */
+rootProject.name = "panacea-java"
\ No newline at end of file
diff --git a/src/generated/main/grpc/cosmos/auth/v1beta1/QueryGrpc.java b/src/generated/main/grpc/cosmos/auth/v1beta1/QueryGrpc.java
deleted file mode 100644
index d59f052..0000000
--- a/src/generated/main/grpc/cosmos/auth/v1beta1/QueryGrpc.java
+++ /dev/null
@@ -1,394 +0,0 @@
-package cosmos.auth.v1beta1;
-
-import static io.grpc.MethodDescriptor.generateFullMethodName;
-import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall;
-import static io.grpc.stub.ClientCalls.asyncClientStreamingCall;
-import static io.grpc.stub.ClientCalls.asyncServerStreamingCall;
-import static io.grpc.stub.ClientCalls.asyncUnaryCall;
-import static io.grpc.stub.ClientCalls.blockingServerStreamingCall;
-import static io.grpc.stub.ClientCalls.blockingUnaryCall;
-import static io.grpc.stub.ClientCalls.futureUnaryCall;
-import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall;
-import static io.grpc.stub.ServerCalls.asyncClientStreamingCall;
-import static io.grpc.stub.ServerCalls.asyncServerStreamingCall;
-import static io.grpc.stub.ServerCalls.asyncUnaryCall;
-import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall;
-import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall;
-
-/**
- *
- * Query defines the gRPC querier service.
- *
- */
-@javax.annotation.Generated(
- value = "by gRPC proto compiler (version 1.22.1)",
- comments = "Source: cosmos/auth/v1beta1/query.proto")
-public final class QueryGrpc {
-
- private QueryGrpc() {}
-
- public static final String SERVICE_NAME = "cosmos.auth.v1beta1.Query";
-
- // Static method descriptors that strictly reflect the proto.
- private static volatile io.grpc.MethodDescriptor getAccountMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "Account",
- requestType = cosmos.auth.v1beta1.QueryAccountRequest.class,
- responseType = cosmos.auth.v1beta1.QueryAccountResponse.class,
- methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor getAccountMethod() {
- io.grpc.MethodDescriptor getAccountMethod;
- if ((getAccountMethod = QueryGrpc.getAccountMethod) == null) {
- synchronized (QueryGrpc.class) {
- if ((getAccountMethod = QueryGrpc.getAccountMethod) == null) {
- QueryGrpc.getAccountMethod = getAccountMethod =
- io.grpc.MethodDescriptor.newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(
- "cosmos.auth.v1beta1.Query", "Account"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- cosmos.auth.v1beta1.QueryAccountRequest.getDefaultInstance()))
- .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- cosmos.auth.v1beta1.QueryAccountResponse.getDefaultInstance()))
- .setSchemaDescriptor(new QueryMethodDescriptorSupplier("Account"))
- .build();
- }
- }
- }
- return getAccountMethod;
- }
-
- private static volatile io.grpc.MethodDescriptor getParamsMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "Params",
- requestType = cosmos.auth.v1beta1.QueryParamsRequest.class,
- responseType = cosmos.auth.v1beta1.QueryParamsResponse.class,
- methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor getParamsMethod() {
- io.grpc.MethodDescriptor getParamsMethod;
- if ((getParamsMethod = QueryGrpc.getParamsMethod) == null) {
- synchronized (QueryGrpc.class) {
- if ((getParamsMethod = QueryGrpc.getParamsMethod) == null) {
- QueryGrpc.getParamsMethod = getParamsMethod =
- io.grpc.MethodDescriptor.newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(
- "cosmos.auth.v1beta1.Query", "Params"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- cosmos.auth.v1beta1.QueryParamsRequest.getDefaultInstance()))
- .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- cosmos.auth.v1beta1.QueryParamsResponse.getDefaultInstance()))
- .setSchemaDescriptor(new QueryMethodDescriptorSupplier("Params"))
- .build();
- }
- }
- }
- return getParamsMethod;
- }
-
- /**
- * Creates a new async stub that supports all call types for the service
- */
- public static QueryStub newStub(io.grpc.Channel channel) {
- return new QueryStub(channel);
- }
-
- /**
- * Creates a new blocking-style stub that supports unary and streaming output calls on the service
- */
- public static QueryBlockingStub newBlockingStub(
- io.grpc.Channel channel) {
- return new QueryBlockingStub(channel);
- }
-
- /**
- * Creates a new ListenableFuture-style stub that supports unary calls on the service
- */
- public static QueryFutureStub newFutureStub(
- io.grpc.Channel channel) {
- return new QueryFutureStub(channel);
- }
-
- /**
- *
- * Query defines the gRPC querier service.
- *
- */
- public static abstract class QueryImplBase implements io.grpc.BindableService {
-
- /**
- *
- * Account returns account details based on address.
- *
- */
- public void account(cosmos.auth.v1beta1.QueryAccountRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- asyncUnimplementedUnaryCall(getAccountMethod(), responseObserver);
- }
-
- /**
- *
- * Params queries all parameters.
- *
- */
- public void params(cosmos.auth.v1beta1.QueryParamsRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- asyncUnimplementedUnaryCall(getParamsMethod(), responseObserver);
- }
-
- @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
- return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
- .addMethod(
- getAccountMethod(),
- asyncUnaryCall(
- new MethodHandlers<
- cosmos.auth.v1beta1.QueryAccountRequest,
- cosmos.auth.v1beta1.QueryAccountResponse>(
- this, METHODID_ACCOUNT)))
- .addMethod(
- getParamsMethod(),
- asyncUnaryCall(
- new MethodHandlers<
- cosmos.auth.v1beta1.QueryParamsRequest,
- cosmos.auth.v1beta1.QueryParamsResponse>(
- this, METHODID_PARAMS)))
- .build();
- }
- }
-
- /**
- *
- * Query defines the gRPC querier service.
- *
- */
- public static final class QueryStub extends io.grpc.stub.AbstractStub {
- private QueryStub(io.grpc.Channel channel) {
- super(channel);
- }
-
- private QueryStub(io.grpc.Channel channel,
- io.grpc.CallOptions callOptions) {
- super(channel, callOptions);
- }
-
- @java.lang.Override
- protected QueryStub build(io.grpc.Channel channel,
- io.grpc.CallOptions callOptions) {
- return new QueryStub(channel, callOptions);
- }
-
- /**
- *
- * Account returns account details based on address.
- *
- */
- public void account(cosmos.auth.v1beta1.QueryAccountRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- asyncUnaryCall(
- getChannel().newCall(getAccountMethod(), getCallOptions()), request, responseObserver);
- }
-
- /**
- *
- * Params queries all parameters.
- *
- */
- public void params(cosmos.auth.v1beta1.QueryParamsRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- asyncUnaryCall(
- getChannel().newCall(getParamsMethod(), getCallOptions()), request, responseObserver);
- }
- }
-
- /**
- *
- * Query defines the gRPC querier service.
- *
- */
- public static final class QueryBlockingStub extends io.grpc.stub.AbstractStub {
- private QueryBlockingStub(io.grpc.Channel channel) {
- super(channel);
- }
-
- private QueryBlockingStub(io.grpc.Channel channel,
- io.grpc.CallOptions callOptions) {
- super(channel, callOptions);
- }
-
- @java.lang.Override
- protected QueryBlockingStub build(io.grpc.Channel channel,
- io.grpc.CallOptions callOptions) {
- return new QueryBlockingStub(channel, callOptions);
- }
-
- /**
- *
- * Account returns account details based on address.
- *
- */
- public cosmos.auth.v1beta1.QueryAccountResponse account(cosmos.auth.v1beta1.QueryAccountRequest request) {
- return blockingUnaryCall(
- getChannel(), getAccountMethod(), getCallOptions(), request);
- }
-
- /**
- *
- * Params queries all parameters.
- *
- */
- public cosmos.auth.v1beta1.QueryParamsResponse params(cosmos.auth.v1beta1.QueryParamsRequest request) {
- return blockingUnaryCall(
- getChannel(), getParamsMethod(), getCallOptions(), request);
- }
- }
-
- /**
- *
- * Query defines the gRPC querier service.
- *
- */
- public static final class QueryFutureStub extends io.grpc.stub.AbstractStub {
- private QueryFutureStub(io.grpc.Channel channel) {
- super(channel);
- }
-
- private QueryFutureStub(io.grpc.Channel channel,
- io.grpc.CallOptions callOptions) {
- super(channel, callOptions);
- }
-
- @java.lang.Override
- protected QueryFutureStub build(io.grpc.Channel channel,
- io.grpc.CallOptions callOptions) {
- return new QueryFutureStub(channel, callOptions);
- }
-
- /**
- *
- * Account returns account details based on address.
- *
- */
- public com.google.common.util.concurrent.ListenableFuture account(
- cosmos.auth.v1beta1.QueryAccountRequest request) {
- return futureUnaryCall(
- getChannel().newCall(getAccountMethod(), getCallOptions()), request);
- }
-
- /**
- *
- * Params queries all parameters.
- *
- */
- public com.google.common.util.concurrent.ListenableFuture params(
- cosmos.auth.v1beta1.QueryParamsRequest request) {
- return futureUnaryCall(
- getChannel().newCall(getParamsMethod(), getCallOptions()), request);
- }
- }
-
- private static final int METHODID_ACCOUNT = 0;
- private static final int METHODID_PARAMS = 1;
-
- private static final class MethodHandlers implements
- io.grpc.stub.ServerCalls.UnaryMethod,
- io.grpc.stub.ServerCalls.ServerStreamingMethod,
- io.grpc.stub.ServerCalls.ClientStreamingMethod,
- io.grpc.stub.ServerCalls.BidiStreamingMethod {
- private final QueryImplBase serviceImpl;
- private final int methodId;
-
- MethodHandlers(QueryImplBase serviceImpl, int methodId) {
- this.serviceImpl = serviceImpl;
- this.methodId = methodId;
- }
-
- @java.lang.Override
- @java.lang.SuppressWarnings("unchecked")
- public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) {
- switch (methodId) {
- case METHODID_ACCOUNT:
- serviceImpl.account((cosmos.auth.v1beta1.QueryAccountRequest) request,
- (io.grpc.stub.StreamObserver) responseObserver);
- break;
- case METHODID_PARAMS:
- serviceImpl.params((cosmos.auth.v1beta1.QueryParamsRequest) request,
- (io.grpc.stub.StreamObserver) responseObserver);
- break;
- default:
- throw new AssertionError();
- }
- }
-
- @java.lang.Override
- @java.lang.SuppressWarnings("unchecked")
- public io.grpc.stub.StreamObserver invoke(
- io.grpc.stub.StreamObserver responseObserver) {
- switch (methodId) {
- default:
- throw new AssertionError();
- }
- }
- }
-
- private static abstract class QueryBaseDescriptorSupplier
- implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
- QueryBaseDescriptorSupplier() {}
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
- return cosmos.auth.v1beta1.QueryOuterClass.getDescriptor();
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
- return getFileDescriptor().findServiceByName("Query");
- }
- }
-
- private static final class QueryFileDescriptorSupplier
- extends QueryBaseDescriptorSupplier {
- QueryFileDescriptorSupplier() {}
- }
-
- private static final class QueryMethodDescriptorSupplier
- extends QueryBaseDescriptorSupplier
- implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
- private final String methodName;
-
- QueryMethodDescriptorSupplier(String methodName) {
- this.methodName = methodName;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
- return getServiceDescriptor().findMethodByName(methodName);
- }
- }
-
- private static volatile io.grpc.ServiceDescriptor serviceDescriptor;
-
- public static io.grpc.ServiceDescriptor getServiceDescriptor() {
- io.grpc.ServiceDescriptor result = serviceDescriptor;
- if (result == null) {
- synchronized (QueryGrpc.class) {
- result = serviceDescriptor;
- if (result == null) {
- serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
- .setSchemaDescriptor(new QueryFileDescriptorSupplier())
- .addMethod(getAccountMethod())
- .addMethod(getParamsMethod())
- .build();
- }
- }
- }
- return result;
- }
-}
diff --git a/src/generated/main/grpc/cosmos/bank/v1beta1/MsgGrpc.java b/src/generated/main/grpc/cosmos/bank/v1beta1/MsgGrpc.java
deleted file mode 100644
index 4fb8728..0000000
--- a/src/generated/main/grpc/cosmos/bank/v1beta1/MsgGrpc.java
+++ /dev/null
@@ -1,394 +0,0 @@
-package cosmos.bank.v1beta1;
-
-import static io.grpc.MethodDescriptor.generateFullMethodName;
-import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall;
-import static io.grpc.stub.ClientCalls.asyncClientStreamingCall;
-import static io.grpc.stub.ClientCalls.asyncServerStreamingCall;
-import static io.grpc.stub.ClientCalls.asyncUnaryCall;
-import static io.grpc.stub.ClientCalls.blockingServerStreamingCall;
-import static io.grpc.stub.ClientCalls.blockingUnaryCall;
-import static io.grpc.stub.ClientCalls.futureUnaryCall;
-import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall;
-import static io.grpc.stub.ServerCalls.asyncClientStreamingCall;
-import static io.grpc.stub.ServerCalls.asyncServerStreamingCall;
-import static io.grpc.stub.ServerCalls.asyncUnaryCall;
-import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall;
-import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall;
-
-/**
- *
- * Msg defines the bank Msg service.
- *
- */
-@javax.annotation.Generated(
- value = "by gRPC proto compiler (version 1.22.1)",
- comments = "Source: cosmos/bank/v1beta1/tx.proto")
-public final class MsgGrpc {
-
- private MsgGrpc() {}
-
- public static final String SERVICE_NAME = "cosmos.bank.v1beta1.Msg";
-
- // Static method descriptors that strictly reflect the proto.
- private static volatile io.grpc.MethodDescriptor getSendMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "Send",
- requestType = cosmos.bank.v1beta1.MsgSend.class,
- responseType = cosmos.bank.v1beta1.MsgSendResponse.class,
- methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor getSendMethod() {
- io.grpc.MethodDescriptor getSendMethod;
- if ((getSendMethod = MsgGrpc.getSendMethod) == null) {
- synchronized (MsgGrpc.class) {
- if ((getSendMethod = MsgGrpc.getSendMethod) == null) {
- MsgGrpc.getSendMethod = getSendMethod =
- io.grpc.MethodDescriptor.newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(
- "cosmos.bank.v1beta1.Msg", "Send"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- cosmos.bank.v1beta1.MsgSend.getDefaultInstance()))
- .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- cosmos.bank.v1beta1.MsgSendResponse.getDefaultInstance()))
- .setSchemaDescriptor(new MsgMethodDescriptorSupplier("Send"))
- .build();
- }
- }
- }
- return getSendMethod;
- }
-
- private static volatile io.grpc.MethodDescriptor getMultiSendMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "MultiSend",
- requestType = cosmos.bank.v1beta1.MsgMultiSend.class,
- responseType = cosmos.bank.v1beta1.MsgMultiSendResponse.class,
- methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor getMultiSendMethod() {
- io.grpc.MethodDescriptor getMultiSendMethod;
- if ((getMultiSendMethod = MsgGrpc.getMultiSendMethod) == null) {
- synchronized (MsgGrpc.class) {
- if ((getMultiSendMethod = MsgGrpc.getMultiSendMethod) == null) {
- MsgGrpc.getMultiSendMethod = getMultiSendMethod =
- io.grpc.MethodDescriptor.newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(
- "cosmos.bank.v1beta1.Msg", "MultiSend"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- cosmos.bank.v1beta1.MsgMultiSend.getDefaultInstance()))
- .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- cosmos.bank.v1beta1.MsgMultiSendResponse.getDefaultInstance()))
- .setSchemaDescriptor(new MsgMethodDescriptorSupplier("MultiSend"))
- .build();
- }
- }
- }
- return getMultiSendMethod;
- }
-
- /**
- * Creates a new async stub that supports all call types for the service
- */
- public static MsgStub newStub(io.grpc.Channel channel) {
- return new MsgStub(channel);
- }
-
- /**
- * Creates a new blocking-style stub that supports unary and streaming output calls on the service
- */
- public static MsgBlockingStub newBlockingStub(
- io.grpc.Channel channel) {
- return new MsgBlockingStub(channel);
- }
-
- /**
- * Creates a new ListenableFuture-style stub that supports unary calls on the service
- */
- public static MsgFutureStub newFutureStub(
- io.grpc.Channel channel) {
- return new MsgFutureStub(channel);
- }
-
- /**
- *
- * Msg defines the bank Msg service.
- *
- */
- public static abstract class MsgImplBase implements io.grpc.BindableService {
-
- /**
- *
- * Send defines a method for sending coins from one account to another account.
- *
- */
- public void send(cosmos.bank.v1beta1.MsgSend request,
- io.grpc.stub.StreamObserver responseObserver) {
- asyncUnimplementedUnaryCall(getSendMethod(), responseObserver);
- }
-
- /**
- *
- * MultiSend defines a method for sending coins from some accounts to other accounts.
- *
- */
- public void multiSend(cosmos.bank.v1beta1.MsgMultiSend request,
- io.grpc.stub.StreamObserver responseObserver) {
- asyncUnimplementedUnaryCall(getMultiSendMethod(), responseObserver);
- }
-
- @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
- return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
- .addMethod(
- getSendMethod(),
- asyncUnaryCall(
- new MethodHandlers<
- cosmos.bank.v1beta1.MsgSend,
- cosmos.bank.v1beta1.MsgSendResponse>(
- this, METHODID_SEND)))
- .addMethod(
- getMultiSendMethod(),
- asyncUnaryCall(
- new MethodHandlers<
- cosmos.bank.v1beta1.MsgMultiSend,
- cosmos.bank.v1beta1.MsgMultiSendResponse>(
- this, METHODID_MULTI_SEND)))
- .build();
- }
- }
-
- /**
- *
- * Msg defines the bank Msg service.
- *
- */
- public static final class MsgStub extends io.grpc.stub.AbstractStub {
- private MsgStub(io.grpc.Channel channel) {
- super(channel);
- }
-
- private MsgStub(io.grpc.Channel channel,
- io.grpc.CallOptions callOptions) {
- super(channel, callOptions);
- }
-
- @java.lang.Override
- protected MsgStub build(io.grpc.Channel channel,
- io.grpc.CallOptions callOptions) {
- return new MsgStub(channel, callOptions);
- }
-
- /**
- *
- * Send defines a method for sending coins from one account to another account.
- *
- */
- public void send(cosmos.bank.v1beta1.MsgSend request,
- io.grpc.stub.StreamObserver responseObserver) {
- asyncUnaryCall(
- getChannel().newCall(getSendMethod(), getCallOptions()), request, responseObserver);
- }
-
- /**
- *
- * MultiSend defines a method for sending coins from some accounts to other accounts.
- *
- */
- public void multiSend(cosmos.bank.v1beta1.MsgMultiSend request,
- io.grpc.stub.StreamObserver responseObserver) {
- asyncUnaryCall(
- getChannel().newCall(getMultiSendMethod(), getCallOptions()), request, responseObserver);
- }
- }
-
- /**
- *
- * Msg defines the bank Msg service.
- *
- */
- public static final class MsgBlockingStub extends io.grpc.stub.AbstractStub {
- private MsgBlockingStub(io.grpc.Channel channel) {
- super(channel);
- }
-
- private MsgBlockingStub(io.grpc.Channel channel,
- io.grpc.CallOptions callOptions) {
- super(channel, callOptions);
- }
-
- @java.lang.Override
- protected MsgBlockingStub build(io.grpc.Channel channel,
- io.grpc.CallOptions callOptions) {
- return new MsgBlockingStub(channel, callOptions);
- }
-
- /**
- *
- * Send defines a method for sending coins from one account to another account.
- *
- */
- public cosmos.bank.v1beta1.MsgSendResponse send(cosmos.bank.v1beta1.MsgSend request) {
- return blockingUnaryCall(
- getChannel(), getSendMethod(), getCallOptions(), request);
- }
-
- /**
- *
- * MultiSend defines a method for sending coins from some accounts to other accounts.
- *
- */
- public cosmos.bank.v1beta1.MsgMultiSendResponse multiSend(cosmos.bank.v1beta1.MsgMultiSend request) {
- return blockingUnaryCall(
- getChannel(), getMultiSendMethod(), getCallOptions(), request);
- }
- }
-
- /**
- *
- * Msg defines the bank Msg service.
- *
- */
- public static final class MsgFutureStub extends io.grpc.stub.AbstractStub {
- private MsgFutureStub(io.grpc.Channel channel) {
- super(channel);
- }
-
- private MsgFutureStub(io.grpc.Channel channel,
- io.grpc.CallOptions callOptions) {
- super(channel, callOptions);
- }
-
- @java.lang.Override
- protected MsgFutureStub build(io.grpc.Channel channel,
- io.grpc.CallOptions callOptions) {
- return new MsgFutureStub(channel, callOptions);
- }
-
- /**
- *
- * Send defines a method for sending coins from one account to another account.
- *
- */
- public com.google.common.util.concurrent.ListenableFuture send(
- cosmos.bank.v1beta1.MsgSend request) {
- return futureUnaryCall(
- getChannel().newCall(getSendMethod(), getCallOptions()), request);
- }
-
- /**
- *
- * MultiSend defines a method for sending coins from some accounts to other accounts.
- *
- */
- public com.google.common.util.concurrent.ListenableFuture multiSend(
- cosmos.bank.v1beta1.MsgMultiSend request) {
- return futureUnaryCall(
- getChannel().newCall(getMultiSendMethod(), getCallOptions()), request);
- }
- }
-
- private static final int METHODID_SEND = 0;
- private static final int METHODID_MULTI_SEND = 1;
-
- private static final class MethodHandlers implements
- io.grpc.stub.ServerCalls.UnaryMethod,
- io.grpc.stub.ServerCalls.ServerStreamingMethod,
- io.grpc.stub.ServerCalls.ClientStreamingMethod,
- io.grpc.stub.ServerCalls.BidiStreamingMethod {
- private final MsgImplBase serviceImpl;
- private final int methodId;
-
- MethodHandlers(MsgImplBase serviceImpl, int methodId) {
- this.serviceImpl = serviceImpl;
- this.methodId = methodId;
- }
-
- @java.lang.Override
- @java.lang.SuppressWarnings("unchecked")
- public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) {
- switch (methodId) {
- case METHODID_SEND:
- serviceImpl.send((cosmos.bank.v1beta1.MsgSend) request,
- (io.grpc.stub.StreamObserver) responseObserver);
- break;
- case METHODID_MULTI_SEND:
- serviceImpl.multiSend((cosmos.bank.v1beta1.MsgMultiSend) request,
- (io.grpc.stub.StreamObserver) responseObserver);
- break;
- default:
- throw new AssertionError();
- }
- }
-
- @java.lang.Override
- @java.lang.SuppressWarnings("unchecked")
- public io.grpc.stub.StreamObserver invoke(
- io.grpc.stub.StreamObserver responseObserver) {
- switch (methodId) {
- default:
- throw new AssertionError();
- }
- }
- }
-
- private static abstract class MsgBaseDescriptorSupplier
- implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
- MsgBaseDescriptorSupplier() {}
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
- return cosmos.bank.v1beta1.Tx.getDescriptor();
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
- return getFileDescriptor().findServiceByName("Msg");
- }
- }
-
- private static final class MsgFileDescriptorSupplier
- extends MsgBaseDescriptorSupplier {
- MsgFileDescriptorSupplier() {}
- }
-
- private static final class MsgMethodDescriptorSupplier
- extends MsgBaseDescriptorSupplier
- implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
- private final String methodName;
-
- MsgMethodDescriptorSupplier(String methodName) {
- this.methodName = methodName;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
- return getServiceDescriptor().findMethodByName(methodName);
- }
- }
-
- private static volatile io.grpc.ServiceDescriptor serviceDescriptor;
-
- public static io.grpc.ServiceDescriptor getServiceDescriptor() {
- io.grpc.ServiceDescriptor result = serviceDescriptor;
- if (result == null) {
- synchronized (MsgGrpc.class) {
- result = serviceDescriptor;
- if (result == null) {
- serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
- .setSchemaDescriptor(new MsgFileDescriptorSupplier())
- .addMethod(getSendMethod())
- .addMethod(getMultiSendMethod())
- .build();
- }
- }
- }
- return result;
- }
-}
diff --git a/src/generated/main/grpc/cosmos/bank/v1beta1/QueryGrpc.java b/src/generated/main/grpc/cosmos/bank/v1beta1/QueryGrpc.java
deleted file mode 100644
index 9386803..0000000
--- a/src/generated/main/grpc/cosmos/bank/v1beta1/QueryGrpc.java
+++ /dev/null
@@ -1,829 +0,0 @@
-package cosmos.bank.v1beta1;
-
-import static io.grpc.MethodDescriptor.generateFullMethodName;
-import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall;
-import static io.grpc.stub.ClientCalls.asyncClientStreamingCall;
-import static io.grpc.stub.ClientCalls.asyncServerStreamingCall;
-import static io.grpc.stub.ClientCalls.asyncUnaryCall;
-import static io.grpc.stub.ClientCalls.blockingServerStreamingCall;
-import static io.grpc.stub.ClientCalls.blockingUnaryCall;
-import static io.grpc.stub.ClientCalls.futureUnaryCall;
-import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall;
-import static io.grpc.stub.ServerCalls.asyncClientStreamingCall;
-import static io.grpc.stub.ServerCalls.asyncServerStreamingCall;
-import static io.grpc.stub.ServerCalls.asyncUnaryCall;
-import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall;
-import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall;
-
-/**
- *
- * Query defines the gRPC querier service.
- *
- */
-@javax.annotation.Generated(
- value = "by gRPC proto compiler (version 1.22.1)",
- comments = "Source: cosmos/bank/v1beta1/query.proto")
-public final class QueryGrpc {
-
- private QueryGrpc() {}
-
- public static final String SERVICE_NAME = "cosmos.bank.v1beta1.Query";
-
- // Static method descriptors that strictly reflect the proto.
- private static volatile io.grpc.MethodDescriptor getBalanceMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "Balance",
- requestType = cosmos.bank.v1beta1.QueryBalanceRequest.class,
- responseType = cosmos.bank.v1beta1.QueryBalanceResponse.class,
- methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor getBalanceMethod() {
- io.grpc.MethodDescriptor getBalanceMethod;
- if ((getBalanceMethod = QueryGrpc.getBalanceMethod) == null) {
- synchronized (QueryGrpc.class) {
- if ((getBalanceMethod = QueryGrpc.getBalanceMethod) == null) {
- QueryGrpc.getBalanceMethod = getBalanceMethod =
- io.grpc.MethodDescriptor.newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(
- "cosmos.bank.v1beta1.Query", "Balance"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- cosmos.bank.v1beta1.QueryBalanceRequest.getDefaultInstance()))
- .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- cosmos.bank.v1beta1.QueryBalanceResponse.getDefaultInstance()))
- .setSchemaDescriptor(new QueryMethodDescriptorSupplier("Balance"))
- .build();
- }
- }
- }
- return getBalanceMethod;
- }
-
- private static volatile io.grpc.MethodDescriptor getAllBalancesMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "AllBalances",
- requestType = cosmos.bank.v1beta1.QueryAllBalancesRequest.class,
- responseType = cosmos.bank.v1beta1.QueryAllBalancesResponse.class,
- methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor getAllBalancesMethod() {
- io.grpc.MethodDescriptor getAllBalancesMethod;
- if ((getAllBalancesMethod = QueryGrpc.getAllBalancesMethod) == null) {
- synchronized (QueryGrpc.class) {
- if ((getAllBalancesMethod = QueryGrpc.getAllBalancesMethod) == null) {
- QueryGrpc.getAllBalancesMethod = getAllBalancesMethod =
- io.grpc.MethodDescriptor.newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(
- "cosmos.bank.v1beta1.Query", "AllBalances"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- cosmos.bank.v1beta1.QueryAllBalancesRequest.getDefaultInstance()))
- .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- cosmos.bank.v1beta1.QueryAllBalancesResponse.getDefaultInstance()))
- .setSchemaDescriptor(new QueryMethodDescriptorSupplier("AllBalances"))
- .build();
- }
- }
- }
- return getAllBalancesMethod;
- }
-
- private static volatile io.grpc.MethodDescriptor getTotalSupplyMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "TotalSupply",
- requestType = cosmos.bank.v1beta1.QueryTotalSupplyRequest.class,
- responseType = cosmos.bank.v1beta1.QueryTotalSupplyResponse.class,
- methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor getTotalSupplyMethod() {
- io.grpc.MethodDescriptor getTotalSupplyMethod;
- if ((getTotalSupplyMethod = QueryGrpc.getTotalSupplyMethod) == null) {
- synchronized (QueryGrpc.class) {
- if ((getTotalSupplyMethod = QueryGrpc.getTotalSupplyMethod) == null) {
- QueryGrpc.getTotalSupplyMethod = getTotalSupplyMethod =
- io.grpc.MethodDescriptor.newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(
- "cosmos.bank.v1beta1.Query", "TotalSupply"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- cosmos.bank.v1beta1.QueryTotalSupplyRequest.getDefaultInstance()))
- .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- cosmos.bank.v1beta1.QueryTotalSupplyResponse.getDefaultInstance()))
- .setSchemaDescriptor(new QueryMethodDescriptorSupplier("TotalSupply"))
- .build();
- }
- }
- }
- return getTotalSupplyMethod;
- }
-
- private static volatile io.grpc.MethodDescriptor getSupplyOfMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "SupplyOf",
- requestType = cosmos.bank.v1beta1.QuerySupplyOfRequest.class,
- responseType = cosmos.bank.v1beta1.QuerySupplyOfResponse.class,
- methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor getSupplyOfMethod() {
- io.grpc.MethodDescriptor getSupplyOfMethod;
- if ((getSupplyOfMethod = QueryGrpc.getSupplyOfMethod) == null) {
- synchronized (QueryGrpc.class) {
- if ((getSupplyOfMethod = QueryGrpc.getSupplyOfMethod) == null) {
- QueryGrpc.getSupplyOfMethod = getSupplyOfMethod =
- io.grpc.MethodDescriptor.newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(
- "cosmos.bank.v1beta1.Query", "SupplyOf"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- cosmos.bank.v1beta1.QuerySupplyOfRequest.getDefaultInstance()))
- .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- cosmos.bank.v1beta1.QuerySupplyOfResponse.getDefaultInstance()))
- .setSchemaDescriptor(new QueryMethodDescriptorSupplier("SupplyOf"))
- .build();
- }
- }
- }
- return getSupplyOfMethod;
- }
-
- private static volatile io.grpc.MethodDescriptor getParamsMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "Params",
- requestType = cosmos.bank.v1beta1.QueryParamsRequest.class,
- responseType = cosmos.bank.v1beta1.QueryParamsResponse.class,
- methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor getParamsMethod() {
- io.grpc.MethodDescriptor getParamsMethod;
- if ((getParamsMethod = QueryGrpc.getParamsMethod) == null) {
- synchronized (QueryGrpc.class) {
- if ((getParamsMethod = QueryGrpc.getParamsMethod) == null) {
- QueryGrpc.getParamsMethod = getParamsMethod =
- io.grpc.MethodDescriptor.newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(
- "cosmos.bank.v1beta1.Query", "Params"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- cosmos.bank.v1beta1.QueryParamsRequest.getDefaultInstance()))
- .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- cosmos.bank.v1beta1.QueryParamsResponse.getDefaultInstance()))
- .setSchemaDescriptor(new QueryMethodDescriptorSupplier("Params"))
- .build();
- }
- }
- }
- return getParamsMethod;
- }
-
- private static volatile io.grpc.MethodDescriptor getDenomMetadataMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "DenomMetadata",
- requestType = cosmos.bank.v1beta1.QueryDenomMetadataRequest.class,
- responseType = cosmos.bank.v1beta1.QueryDenomMetadataResponse.class,
- methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor getDenomMetadataMethod() {
- io.grpc.MethodDescriptor getDenomMetadataMethod;
- if ((getDenomMetadataMethod = QueryGrpc.getDenomMetadataMethod) == null) {
- synchronized (QueryGrpc.class) {
- if ((getDenomMetadataMethod = QueryGrpc.getDenomMetadataMethod) == null) {
- QueryGrpc.getDenomMetadataMethod = getDenomMetadataMethod =
- io.grpc.MethodDescriptor.newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(
- "cosmos.bank.v1beta1.Query", "DenomMetadata"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- cosmos.bank.v1beta1.QueryDenomMetadataRequest.getDefaultInstance()))
- .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- cosmos.bank.v1beta1.QueryDenomMetadataResponse.getDefaultInstance()))
- .setSchemaDescriptor(new QueryMethodDescriptorSupplier("DenomMetadata"))
- .build();
- }
- }
- }
- return getDenomMetadataMethod;
- }
-
- private static volatile io.grpc.MethodDescriptor getDenomsMetadataMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "DenomsMetadata",
- requestType = cosmos.bank.v1beta1.QueryDenomsMetadataRequest.class,
- responseType = cosmos.bank.v1beta1.QueryDenomsMetadataResponse.class,
- methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor getDenomsMetadataMethod() {
- io.grpc.MethodDescriptor getDenomsMetadataMethod;
- if ((getDenomsMetadataMethod = QueryGrpc.getDenomsMetadataMethod) == null) {
- synchronized (QueryGrpc.class) {
- if ((getDenomsMetadataMethod = QueryGrpc.getDenomsMetadataMethod) == null) {
- QueryGrpc.getDenomsMetadataMethod = getDenomsMetadataMethod =
- io.grpc.MethodDescriptor.newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(
- "cosmos.bank.v1beta1.Query", "DenomsMetadata"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- cosmos.bank.v1beta1.QueryDenomsMetadataRequest.getDefaultInstance()))
- .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- cosmos.bank.v1beta1.QueryDenomsMetadataResponse.getDefaultInstance()))
- .setSchemaDescriptor(new QueryMethodDescriptorSupplier("DenomsMetadata"))
- .build();
- }
- }
- }
- return getDenomsMetadataMethod;
- }
-
- /**
- * Creates a new async stub that supports all call types for the service
- */
- public static QueryStub newStub(io.grpc.Channel channel) {
- return new QueryStub(channel);
- }
-
- /**
- * Creates a new blocking-style stub that supports unary and streaming output calls on the service
- */
- public static QueryBlockingStub newBlockingStub(
- io.grpc.Channel channel) {
- return new QueryBlockingStub(channel);
- }
-
- /**
- * Creates a new ListenableFuture-style stub that supports unary calls on the service
- */
- public static QueryFutureStub newFutureStub(
- io.grpc.Channel channel) {
- return new QueryFutureStub(channel);
- }
-
- /**
- *
- * Query defines the gRPC querier service.
- *
- */
- public static abstract class QueryImplBase implements io.grpc.BindableService {
-
- /**
- *
- * Balance queries the balance of a single coin for a single account.
- *
- */
- public void balance(cosmos.bank.v1beta1.QueryBalanceRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- asyncUnimplementedUnaryCall(getBalanceMethod(), responseObserver);
- }
-
- /**
- *
- * AllBalances queries the balance of all coins for a single account.
- *
- */
- public void allBalances(cosmos.bank.v1beta1.QueryAllBalancesRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- asyncUnimplementedUnaryCall(getAllBalancesMethod(), responseObserver);
- }
-
- /**
- *
- * TotalSupply queries the total supply of all coins.
- *
- */
- public void totalSupply(cosmos.bank.v1beta1.QueryTotalSupplyRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- asyncUnimplementedUnaryCall(getTotalSupplyMethod(), responseObserver);
- }
-
- /**
- *
- * SupplyOf queries the supply of a single coin.
- *
- */
- public void supplyOf(cosmos.bank.v1beta1.QuerySupplyOfRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- asyncUnimplementedUnaryCall(getSupplyOfMethod(), responseObserver);
- }
-
- /**
- *
- * Params queries the parameters of x/bank module.
- *
- */
- public void params(cosmos.bank.v1beta1.QueryParamsRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- asyncUnimplementedUnaryCall(getParamsMethod(), responseObserver);
- }
-
- /**
- *
- * DenomsMetadata queries the client metadata of a given coin denomination.
- *
- */
- public void denomMetadata(cosmos.bank.v1beta1.QueryDenomMetadataRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- asyncUnimplementedUnaryCall(getDenomMetadataMethod(), responseObserver);
- }
-
- /**
- *
- * DenomsMetadata queries the client metadata for all registered coin denominations.
- *
- */
- public void denomsMetadata(cosmos.bank.v1beta1.QueryDenomsMetadataRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- asyncUnimplementedUnaryCall(getDenomsMetadataMethod(), responseObserver);
- }
-
- @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
- return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
- .addMethod(
- getBalanceMethod(),
- asyncUnaryCall(
- new MethodHandlers<
- cosmos.bank.v1beta1.QueryBalanceRequest,
- cosmos.bank.v1beta1.QueryBalanceResponse>(
- this, METHODID_BALANCE)))
- .addMethod(
- getAllBalancesMethod(),
- asyncUnaryCall(
- new MethodHandlers<
- cosmos.bank.v1beta1.QueryAllBalancesRequest,
- cosmos.bank.v1beta1.QueryAllBalancesResponse>(
- this, METHODID_ALL_BALANCES)))
- .addMethod(
- getTotalSupplyMethod(),
- asyncUnaryCall(
- new MethodHandlers<
- cosmos.bank.v1beta1.QueryTotalSupplyRequest,
- cosmos.bank.v1beta1.QueryTotalSupplyResponse>(
- this, METHODID_TOTAL_SUPPLY)))
- .addMethod(
- getSupplyOfMethod(),
- asyncUnaryCall(
- new MethodHandlers<
- cosmos.bank.v1beta1.QuerySupplyOfRequest,
- cosmos.bank.v1beta1.QuerySupplyOfResponse>(
- this, METHODID_SUPPLY_OF)))
- .addMethod(
- getParamsMethod(),
- asyncUnaryCall(
- new MethodHandlers<
- cosmos.bank.v1beta1.QueryParamsRequest,
- cosmos.bank.v1beta1.QueryParamsResponse>(
- this, METHODID_PARAMS)))
- .addMethod(
- getDenomMetadataMethod(),
- asyncUnaryCall(
- new MethodHandlers<
- cosmos.bank.v1beta1.QueryDenomMetadataRequest,
- cosmos.bank.v1beta1.QueryDenomMetadataResponse>(
- this, METHODID_DENOM_METADATA)))
- .addMethod(
- getDenomsMetadataMethod(),
- asyncUnaryCall(
- new MethodHandlers<
- cosmos.bank.v1beta1.QueryDenomsMetadataRequest,
- cosmos.bank.v1beta1.QueryDenomsMetadataResponse>(
- this, METHODID_DENOMS_METADATA)))
- .build();
- }
- }
-
- /**
- *
- * Query defines the gRPC querier service.
- *
- */
- public static final class QueryStub extends io.grpc.stub.AbstractStub {
- private QueryStub(io.grpc.Channel channel) {
- super(channel);
- }
-
- private QueryStub(io.grpc.Channel channel,
- io.grpc.CallOptions callOptions) {
- super(channel, callOptions);
- }
-
- @java.lang.Override
- protected QueryStub build(io.grpc.Channel channel,
- io.grpc.CallOptions callOptions) {
- return new QueryStub(channel, callOptions);
- }
-
- /**
- *
- * Balance queries the balance of a single coin for a single account.
- *
- */
- public void balance(cosmos.bank.v1beta1.QueryBalanceRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- asyncUnaryCall(
- getChannel().newCall(getBalanceMethod(), getCallOptions()), request, responseObserver);
- }
-
- /**
- *
- * AllBalances queries the balance of all coins for a single account.
- *
- */
- public void allBalances(cosmos.bank.v1beta1.QueryAllBalancesRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- asyncUnaryCall(
- getChannel().newCall(getAllBalancesMethod(), getCallOptions()), request, responseObserver);
- }
-
- /**
- *
- * TotalSupply queries the total supply of all coins.
- *
- */
- public void totalSupply(cosmos.bank.v1beta1.QueryTotalSupplyRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- asyncUnaryCall(
- getChannel().newCall(getTotalSupplyMethod(), getCallOptions()), request, responseObserver);
- }
-
- /**
- *
- * SupplyOf queries the supply of a single coin.
- *
- */
- public void supplyOf(cosmos.bank.v1beta1.QuerySupplyOfRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- asyncUnaryCall(
- getChannel().newCall(getSupplyOfMethod(), getCallOptions()), request, responseObserver);
- }
-
- /**
- *
- * Params queries the parameters of x/bank module.
- *
- */
- public void params(cosmos.bank.v1beta1.QueryParamsRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- asyncUnaryCall(
- getChannel().newCall(getParamsMethod(), getCallOptions()), request, responseObserver);
- }
-
- /**
- *
- * DenomsMetadata queries the client metadata of a given coin denomination.
- *
- */
- public void denomMetadata(cosmos.bank.v1beta1.QueryDenomMetadataRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- asyncUnaryCall(
- getChannel().newCall(getDenomMetadataMethod(), getCallOptions()), request, responseObserver);
- }
-
- /**
- *
- * DenomsMetadata queries the client metadata for all registered coin denominations.
- *
- */
- public void denomsMetadata(cosmos.bank.v1beta1.QueryDenomsMetadataRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- asyncUnaryCall(
- getChannel().newCall(getDenomsMetadataMethod(), getCallOptions()), request, responseObserver);
- }
- }
-
- /**
- *
- * Query defines the gRPC querier service.
- *
- */
- public static final class QueryBlockingStub extends io.grpc.stub.AbstractStub {
- private QueryBlockingStub(io.grpc.Channel channel) {
- super(channel);
- }
-
- private QueryBlockingStub(io.grpc.Channel channel,
- io.grpc.CallOptions callOptions) {
- super(channel, callOptions);
- }
-
- @java.lang.Override
- protected QueryBlockingStub build(io.grpc.Channel channel,
- io.grpc.CallOptions callOptions) {
- return new QueryBlockingStub(channel, callOptions);
- }
-
- /**
- *
- * Balance queries the balance of a single coin for a single account.
- *
- */
- public cosmos.bank.v1beta1.QueryBalanceResponse balance(cosmos.bank.v1beta1.QueryBalanceRequest request) {
- return blockingUnaryCall(
- getChannel(), getBalanceMethod(), getCallOptions(), request);
- }
-
- /**
- *
- * AllBalances queries the balance of all coins for a single account.
- *
- */
- public cosmos.bank.v1beta1.QueryAllBalancesResponse allBalances(cosmos.bank.v1beta1.QueryAllBalancesRequest request) {
- return blockingUnaryCall(
- getChannel(), getAllBalancesMethod(), getCallOptions(), request);
- }
-
- /**
- *
- * TotalSupply queries the total supply of all coins.
- *
- */
- public cosmos.bank.v1beta1.QueryTotalSupplyResponse totalSupply(cosmos.bank.v1beta1.QueryTotalSupplyRequest request) {
- return blockingUnaryCall(
- getChannel(), getTotalSupplyMethod(), getCallOptions(), request);
- }
-
- /**
- *
- * SupplyOf queries the supply of a single coin.
- *
- */
- public cosmos.bank.v1beta1.QuerySupplyOfResponse supplyOf(cosmos.bank.v1beta1.QuerySupplyOfRequest request) {
- return blockingUnaryCall(
- getChannel(), getSupplyOfMethod(), getCallOptions(), request);
- }
-
- /**
- *
- * Params queries the parameters of x/bank module.
- *
- */
- public cosmos.bank.v1beta1.QueryParamsResponse params(cosmos.bank.v1beta1.QueryParamsRequest request) {
- return blockingUnaryCall(
- getChannel(), getParamsMethod(), getCallOptions(), request);
- }
-
- /**
- *
- * DenomsMetadata queries the client metadata of a given coin denomination.
- *
- */
- public cosmos.bank.v1beta1.QueryDenomMetadataResponse denomMetadata(cosmos.bank.v1beta1.QueryDenomMetadataRequest request) {
- return blockingUnaryCall(
- getChannel(), getDenomMetadataMethod(), getCallOptions(), request);
- }
-
- /**
- *
- * DenomsMetadata queries the client metadata for all registered coin denominations.
- *
- */
- public cosmos.bank.v1beta1.QueryDenomsMetadataResponse denomsMetadata(cosmos.bank.v1beta1.QueryDenomsMetadataRequest request) {
- return blockingUnaryCall(
- getChannel(), getDenomsMetadataMethod(), getCallOptions(), request);
- }
- }
-
- /**
- *
- * Query defines the gRPC querier service.
- *
- */
- public static final class QueryFutureStub extends io.grpc.stub.AbstractStub {
- private QueryFutureStub(io.grpc.Channel channel) {
- super(channel);
- }
-
- private QueryFutureStub(io.grpc.Channel channel,
- io.grpc.CallOptions callOptions) {
- super(channel, callOptions);
- }
-
- @java.lang.Override
- protected QueryFutureStub build(io.grpc.Channel channel,
- io.grpc.CallOptions callOptions) {
- return new QueryFutureStub(channel, callOptions);
- }
-
- /**
- *
- * Balance queries the balance of a single coin for a single account.
- *
- */
- public com.google.common.util.concurrent.ListenableFuture balance(
- cosmos.bank.v1beta1.QueryBalanceRequest request) {
- return futureUnaryCall(
- getChannel().newCall(getBalanceMethod(), getCallOptions()), request);
- }
-
- /**
- *
- * AllBalances queries the balance of all coins for a single account.
- *
- */
- public com.google.common.util.concurrent.ListenableFuture allBalances(
- cosmos.bank.v1beta1.QueryAllBalancesRequest request) {
- return futureUnaryCall(
- getChannel().newCall(getAllBalancesMethod(), getCallOptions()), request);
- }
-
- /**
- *
- * TotalSupply queries the total supply of all coins.
- *
- */
- public com.google.common.util.concurrent.ListenableFuture totalSupply(
- cosmos.bank.v1beta1.QueryTotalSupplyRequest request) {
- return futureUnaryCall(
- getChannel().newCall(getTotalSupplyMethod(), getCallOptions()), request);
- }
-
- /**
- *
- * SupplyOf queries the supply of a single coin.
- *
- */
- public com.google.common.util.concurrent.ListenableFuture supplyOf(
- cosmos.bank.v1beta1.QuerySupplyOfRequest request) {
- return futureUnaryCall(
- getChannel().newCall(getSupplyOfMethod(), getCallOptions()), request);
- }
-
- /**
- *
- * Params queries the parameters of x/bank module.
- *
- */
- public com.google.common.util.concurrent.ListenableFuture params(
- cosmos.bank.v1beta1.QueryParamsRequest request) {
- return futureUnaryCall(
- getChannel().newCall(getParamsMethod(), getCallOptions()), request);
- }
-
- /**
- *
- * DenomsMetadata queries the client metadata of a given coin denomination.
- *
- */
- public com.google.common.util.concurrent.ListenableFuture denomMetadata(
- cosmos.bank.v1beta1.QueryDenomMetadataRequest request) {
- return futureUnaryCall(
- getChannel().newCall(getDenomMetadataMethod(), getCallOptions()), request);
- }
-
- /**
- *
- * DenomsMetadata queries the client metadata for all registered coin denominations.
- *
- */
- public com.google.common.util.concurrent.ListenableFuture denomsMetadata(
- cosmos.bank.v1beta1.QueryDenomsMetadataRequest request) {
- return futureUnaryCall(
- getChannel().newCall(getDenomsMetadataMethod(), getCallOptions()), request);
- }
- }
-
- private static final int METHODID_BALANCE = 0;
- private static final int METHODID_ALL_BALANCES = 1;
- private static final int METHODID_TOTAL_SUPPLY = 2;
- private static final int METHODID_SUPPLY_OF = 3;
- private static final int METHODID_PARAMS = 4;
- private static final int METHODID_DENOM_METADATA = 5;
- private static final int METHODID_DENOMS_METADATA = 6;
-
- private static final class MethodHandlers implements
- io.grpc.stub.ServerCalls.UnaryMethod,
- io.grpc.stub.ServerCalls.ServerStreamingMethod,
- io.grpc.stub.ServerCalls.ClientStreamingMethod,
- io.grpc.stub.ServerCalls.BidiStreamingMethod {
- private final QueryImplBase serviceImpl;
- private final int methodId;
-
- MethodHandlers(QueryImplBase serviceImpl, int methodId) {
- this.serviceImpl = serviceImpl;
- this.methodId = methodId;
- }
-
- @java.lang.Override
- @java.lang.SuppressWarnings("unchecked")
- public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) {
- switch (methodId) {
- case METHODID_BALANCE:
- serviceImpl.balance((cosmos.bank.v1beta1.QueryBalanceRequest) request,
- (io.grpc.stub.StreamObserver) responseObserver);
- break;
- case METHODID_ALL_BALANCES:
- serviceImpl.allBalances((cosmos.bank.v1beta1.QueryAllBalancesRequest) request,
- (io.grpc.stub.StreamObserver) responseObserver);
- break;
- case METHODID_TOTAL_SUPPLY:
- serviceImpl.totalSupply((cosmos.bank.v1beta1.QueryTotalSupplyRequest) request,
- (io.grpc.stub.StreamObserver) responseObserver);
- break;
- case METHODID_SUPPLY_OF:
- serviceImpl.supplyOf((cosmos.bank.v1beta1.QuerySupplyOfRequest) request,
- (io.grpc.stub.StreamObserver) responseObserver);
- break;
- case METHODID_PARAMS:
- serviceImpl.params((cosmos.bank.v1beta1.QueryParamsRequest) request,
- (io.grpc.stub.StreamObserver) responseObserver);
- break;
- case METHODID_DENOM_METADATA:
- serviceImpl.denomMetadata((cosmos.bank.v1beta1.QueryDenomMetadataRequest) request,
- (io.grpc.stub.StreamObserver) responseObserver);
- break;
- case METHODID_DENOMS_METADATA:
- serviceImpl.denomsMetadata((cosmos.bank.v1beta1.QueryDenomsMetadataRequest) request,
- (io.grpc.stub.StreamObserver) responseObserver);
- break;
- default:
- throw new AssertionError();
- }
- }
-
- @java.lang.Override
- @java.lang.SuppressWarnings("unchecked")
- public io.grpc.stub.StreamObserver invoke(
- io.grpc.stub.StreamObserver responseObserver) {
- switch (methodId) {
- default:
- throw new AssertionError();
- }
- }
- }
-
- private static abstract class QueryBaseDescriptorSupplier
- implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
- QueryBaseDescriptorSupplier() {}
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
- return cosmos.bank.v1beta1.QueryOuterClass.getDescriptor();
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
- return getFileDescriptor().findServiceByName("Query");
- }
- }
-
- private static final class QueryFileDescriptorSupplier
- extends QueryBaseDescriptorSupplier {
- QueryFileDescriptorSupplier() {}
- }
-
- private static final class QueryMethodDescriptorSupplier
- extends QueryBaseDescriptorSupplier
- implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
- private final String methodName;
-
- QueryMethodDescriptorSupplier(String methodName) {
- this.methodName = methodName;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
- return getServiceDescriptor().findMethodByName(methodName);
- }
- }
-
- private static volatile io.grpc.ServiceDescriptor serviceDescriptor;
-
- public static io.grpc.ServiceDescriptor getServiceDescriptor() {
- io.grpc.ServiceDescriptor result = serviceDescriptor;
- if (result == null) {
- synchronized (QueryGrpc.class) {
- result = serviceDescriptor;
- if (result == null) {
- serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
- .setSchemaDescriptor(new QueryFileDescriptorSupplier())
- .addMethod(getBalanceMethod())
- .addMethod(getAllBalancesMethod())
- .addMethod(getTotalSupplyMethod())
- .addMethod(getSupplyOfMethod())
- .addMethod(getParamsMethod())
- .addMethod(getDenomMetadataMethod())
- .addMethod(getDenomsMetadataMethod())
- .build();
- }
- }
- }
- return result;
- }
-}
diff --git a/src/generated/main/grpc/cosmos/base/reflection/v1beta1/ReflectionServiceGrpc.java b/src/generated/main/grpc/cosmos/base/reflection/v1beta1/ReflectionServiceGrpc.java
deleted file mode 100644
index 28a5823..0000000
--- a/src/generated/main/grpc/cosmos/base/reflection/v1beta1/ReflectionServiceGrpc.java
+++ /dev/null
@@ -1,402 +0,0 @@
-package cosmos.base.reflection.v1beta1;
-
-import static io.grpc.MethodDescriptor.generateFullMethodName;
-import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall;
-import static io.grpc.stub.ClientCalls.asyncClientStreamingCall;
-import static io.grpc.stub.ClientCalls.asyncServerStreamingCall;
-import static io.grpc.stub.ClientCalls.asyncUnaryCall;
-import static io.grpc.stub.ClientCalls.blockingServerStreamingCall;
-import static io.grpc.stub.ClientCalls.blockingUnaryCall;
-import static io.grpc.stub.ClientCalls.futureUnaryCall;
-import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall;
-import static io.grpc.stub.ServerCalls.asyncClientStreamingCall;
-import static io.grpc.stub.ServerCalls.asyncServerStreamingCall;
-import static io.grpc.stub.ServerCalls.asyncUnaryCall;
-import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall;
-import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall;
-
-/**
- *
- * ReflectionService defines a service for interface reflection.
- *
- */
-@javax.annotation.Generated(
- value = "by gRPC proto compiler (version 1.22.1)",
- comments = "Source: cosmos/base/reflection/v1beta1/reflection.proto")
-public final class ReflectionServiceGrpc {
-
- private ReflectionServiceGrpc() {}
-
- public static final String SERVICE_NAME = "cosmos.base.reflection.v1beta1.ReflectionService";
-
- // Static method descriptors that strictly reflect the proto.
- private static volatile io.grpc.MethodDescriptor getListAllInterfacesMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "ListAllInterfaces",
- requestType = cosmos.base.reflection.v1beta1.ListAllInterfacesRequest.class,
- responseType = cosmos.base.reflection.v1beta1.ListAllInterfacesResponse.class,
- methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor getListAllInterfacesMethod() {
- io.grpc.MethodDescriptor getListAllInterfacesMethod;
- if ((getListAllInterfacesMethod = ReflectionServiceGrpc.getListAllInterfacesMethod) == null) {
- synchronized (ReflectionServiceGrpc.class) {
- if ((getListAllInterfacesMethod = ReflectionServiceGrpc.getListAllInterfacesMethod) == null) {
- ReflectionServiceGrpc.getListAllInterfacesMethod = getListAllInterfacesMethod =
- io.grpc.MethodDescriptor.newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(
- "cosmos.base.reflection.v1beta1.ReflectionService", "ListAllInterfaces"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- cosmos.base.reflection.v1beta1.ListAllInterfacesRequest.getDefaultInstance()))
- .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- cosmos.base.reflection.v1beta1.ListAllInterfacesResponse.getDefaultInstance()))
- .setSchemaDescriptor(new ReflectionServiceMethodDescriptorSupplier("ListAllInterfaces"))
- .build();
- }
- }
- }
- return getListAllInterfacesMethod;
- }
-
- private static volatile io.grpc.MethodDescriptor getListImplementationsMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "ListImplementations",
- requestType = cosmos.base.reflection.v1beta1.ListImplementationsRequest.class,
- responseType = cosmos.base.reflection.v1beta1.ListImplementationsResponse.class,
- methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor getListImplementationsMethod() {
- io.grpc.MethodDescriptor getListImplementationsMethod;
- if ((getListImplementationsMethod = ReflectionServiceGrpc.getListImplementationsMethod) == null) {
- synchronized (ReflectionServiceGrpc.class) {
- if ((getListImplementationsMethod = ReflectionServiceGrpc.getListImplementationsMethod) == null) {
- ReflectionServiceGrpc.getListImplementationsMethod = getListImplementationsMethod =
- io.grpc.MethodDescriptor.newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(
- "cosmos.base.reflection.v1beta1.ReflectionService", "ListImplementations"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- cosmos.base.reflection.v1beta1.ListImplementationsRequest.getDefaultInstance()))
- .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- cosmos.base.reflection.v1beta1.ListImplementationsResponse.getDefaultInstance()))
- .setSchemaDescriptor(new ReflectionServiceMethodDescriptorSupplier("ListImplementations"))
- .build();
- }
- }
- }
- return getListImplementationsMethod;
- }
-
- /**
- * Creates a new async stub that supports all call types for the service
- */
- public static ReflectionServiceStub newStub(io.grpc.Channel channel) {
- return new ReflectionServiceStub(channel);
- }
-
- /**
- * Creates a new blocking-style stub that supports unary and streaming output calls on the service
- */
- public static ReflectionServiceBlockingStub newBlockingStub(
- io.grpc.Channel channel) {
- return new ReflectionServiceBlockingStub(channel);
- }
-
- /**
- * Creates a new ListenableFuture-style stub that supports unary calls on the service
- */
- public static ReflectionServiceFutureStub newFutureStub(
- io.grpc.Channel channel) {
- return new ReflectionServiceFutureStub(channel);
- }
-
- /**
- *
- * ReflectionService defines a service for interface reflection.
- *
- */
- public static abstract class ReflectionServiceImplBase implements io.grpc.BindableService {
-
- /**
- *
- * ListAllInterfaces lists all the interfaces registered in the interface
- * registry.
- *
- */
- public void listAllInterfaces(cosmos.base.reflection.v1beta1.ListAllInterfacesRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- asyncUnimplementedUnaryCall(getListAllInterfacesMethod(), responseObserver);
- }
-
- /**
- *
- * ListImplementations list all the concrete types that implement a given
- * interface.
- *
- */
- public void listImplementations(cosmos.base.reflection.v1beta1.ListImplementationsRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- asyncUnimplementedUnaryCall(getListImplementationsMethod(), responseObserver);
- }
-
- @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
- return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
- .addMethod(
- getListAllInterfacesMethod(),
- asyncUnaryCall(
- new MethodHandlers<
- cosmos.base.reflection.v1beta1.ListAllInterfacesRequest,
- cosmos.base.reflection.v1beta1.ListAllInterfacesResponse>(
- this, METHODID_LIST_ALL_INTERFACES)))
- .addMethod(
- getListImplementationsMethod(),
- asyncUnaryCall(
- new MethodHandlers<
- cosmos.base.reflection.v1beta1.ListImplementationsRequest,
- cosmos.base.reflection.v1beta1.ListImplementationsResponse>(
- this, METHODID_LIST_IMPLEMENTATIONS)))
- .build();
- }
- }
-
- /**
- *
- * ReflectionService defines a service for interface reflection.
- *
- */
- public static final class ReflectionServiceStub extends io.grpc.stub.AbstractStub {
- private ReflectionServiceStub(io.grpc.Channel channel) {
- super(channel);
- }
-
- private ReflectionServiceStub(io.grpc.Channel channel,
- io.grpc.CallOptions callOptions) {
- super(channel, callOptions);
- }
-
- @java.lang.Override
- protected ReflectionServiceStub build(io.grpc.Channel channel,
- io.grpc.CallOptions callOptions) {
- return new ReflectionServiceStub(channel, callOptions);
- }
-
- /**
- *
- * ListAllInterfaces lists all the interfaces registered in the interface
- * registry.
- *
- */
- public void listAllInterfaces(cosmos.base.reflection.v1beta1.ListAllInterfacesRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- asyncUnaryCall(
- getChannel().newCall(getListAllInterfacesMethod(), getCallOptions()), request, responseObserver);
- }
-
- /**
- *
- * ListImplementations list all the concrete types that implement a given
- * interface.
- *
- */
- public void listImplementations(cosmos.base.reflection.v1beta1.ListImplementationsRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- asyncUnaryCall(
- getChannel().newCall(getListImplementationsMethod(), getCallOptions()), request, responseObserver);
- }
- }
-
- /**
- *
- * ReflectionService defines a service for interface reflection.
- *
- */
- public static final class ReflectionServiceBlockingStub extends io.grpc.stub.AbstractStub {
- private ReflectionServiceBlockingStub(io.grpc.Channel channel) {
- super(channel);
- }
-
- private ReflectionServiceBlockingStub(io.grpc.Channel channel,
- io.grpc.CallOptions callOptions) {
- super(channel, callOptions);
- }
-
- @java.lang.Override
- protected ReflectionServiceBlockingStub build(io.grpc.Channel channel,
- io.grpc.CallOptions callOptions) {
- return new ReflectionServiceBlockingStub(channel, callOptions);
- }
-
- /**
- *
- * ListAllInterfaces lists all the interfaces registered in the interface
- * registry.
- *
- */
- public cosmos.base.reflection.v1beta1.ListAllInterfacesResponse listAllInterfaces(cosmos.base.reflection.v1beta1.ListAllInterfacesRequest request) {
- return blockingUnaryCall(
- getChannel(), getListAllInterfacesMethod(), getCallOptions(), request);
- }
-
- /**
- *
- * ListImplementations list all the concrete types that implement a given
- * interface.
- *
- */
- public cosmos.base.reflection.v1beta1.ListImplementationsResponse listImplementations(cosmos.base.reflection.v1beta1.ListImplementationsRequest request) {
- return blockingUnaryCall(
- getChannel(), getListImplementationsMethod(), getCallOptions(), request);
- }
- }
-
- /**
- *
- * ReflectionService defines a service for interface reflection.
- *
- */
- public static final class ReflectionServiceFutureStub extends io.grpc.stub.AbstractStub {
- private ReflectionServiceFutureStub(io.grpc.Channel channel) {
- super(channel);
- }
-
- private ReflectionServiceFutureStub(io.grpc.Channel channel,
- io.grpc.CallOptions callOptions) {
- super(channel, callOptions);
- }
-
- @java.lang.Override
- protected ReflectionServiceFutureStub build(io.grpc.Channel channel,
- io.grpc.CallOptions callOptions) {
- return new ReflectionServiceFutureStub(channel, callOptions);
- }
-
- /**
- *
- * ListAllInterfaces lists all the interfaces registered in the interface
- * registry.
- *
- */
- public com.google.common.util.concurrent.ListenableFuture listAllInterfaces(
- cosmos.base.reflection.v1beta1.ListAllInterfacesRequest request) {
- return futureUnaryCall(
- getChannel().newCall(getListAllInterfacesMethod(), getCallOptions()), request);
- }
-
- /**
- *
- * ListImplementations list all the concrete types that implement a given
- * interface.
- *
- */
- public com.google.common.util.concurrent.ListenableFuture listImplementations(
- cosmos.base.reflection.v1beta1.ListImplementationsRequest request) {
- return futureUnaryCall(
- getChannel().newCall(getListImplementationsMethod(), getCallOptions()), request);
- }
- }
-
- private static final int METHODID_LIST_ALL_INTERFACES = 0;
- private static final int METHODID_LIST_IMPLEMENTATIONS = 1;
-
- private static final class MethodHandlers implements
- io.grpc.stub.ServerCalls.UnaryMethod,
- io.grpc.stub.ServerCalls.ServerStreamingMethod,
- io.grpc.stub.ServerCalls.ClientStreamingMethod,
- io.grpc.stub.ServerCalls.BidiStreamingMethod {
- private final ReflectionServiceImplBase serviceImpl;
- private final int methodId;
-
- MethodHandlers(ReflectionServiceImplBase serviceImpl, int methodId) {
- this.serviceImpl = serviceImpl;
- this.methodId = methodId;
- }
-
- @java.lang.Override
- @java.lang.SuppressWarnings("unchecked")
- public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) {
- switch (methodId) {
- case METHODID_LIST_ALL_INTERFACES:
- serviceImpl.listAllInterfaces((cosmos.base.reflection.v1beta1.ListAllInterfacesRequest) request,
- (io.grpc.stub.StreamObserver) responseObserver);
- break;
- case METHODID_LIST_IMPLEMENTATIONS:
- serviceImpl.listImplementations((cosmos.base.reflection.v1beta1.ListImplementationsRequest) request,
- (io.grpc.stub.StreamObserver) responseObserver);
- break;
- default:
- throw new AssertionError();
- }
- }
-
- @java.lang.Override
- @java.lang.SuppressWarnings("unchecked")
- public io.grpc.stub.StreamObserver invoke(
- io.grpc.stub.StreamObserver responseObserver) {
- switch (methodId) {
- default:
- throw new AssertionError();
- }
- }
- }
-
- private static abstract class ReflectionServiceBaseDescriptorSupplier
- implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
- ReflectionServiceBaseDescriptorSupplier() {}
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
- return cosmos.base.reflection.v1beta1.Reflection.getDescriptor();
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
- return getFileDescriptor().findServiceByName("ReflectionService");
- }
- }
-
- private static final class ReflectionServiceFileDescriptorSupplier
- extends ReflectionServiceBaseDescriptorSupplier {
- ReflectionServiceFileDescriptorSupplier() {}
- }
-
- private static final class ReflectionServiceMethodDescriptorSupplier
- extends ReflectionServiceBaseDescriptorSupplier
- implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
- private final String methodName;
-
- ReflectionServiceMethodDescriptorSupplier(String methodName) {
- this.methodName = methodName;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
- return getServiceDescriptor().findMethodByName(methodName);
- }
- }
-
- private static volatile io.grpc.ServiceDescriptor serviceDescriptor;
-
- public static io.grpc.ServiceDescriptor getServiceDescriptor() {
- io.grpc.ServiceDescriptor result = serviceDescriptor;
- if (result == null) {
- synchronized (ReflectionServiceGrpc.class) {
- result = serviceDescriptor;
- if (result == null) {
- serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
- .setSchemaDescriptor(new ReflectionServiceFileDescriptorSupplier())
- .addMethod(getListAllInterfacesMethod())
- .addMethod(getListImplementationsMethod())
- .build();
- }
- }
- }
- return result;
- }
-}
diff --git a/src/generated/main/grpc/cosmos/base/tendermint/v1beta1/ServiceGrpc.java b/src/generated/main/grpc/cosmos/base/tendermint/v1beta1/ServiceGrpc.java
deleted file mode 100644
index aebf1ed..0000000
--- a/src/generated/main/grpc/cosmos/base/tendermint/v1beta1/ServiceGrpc.java
+++ /dev/null
@@ -1,742 +0,0 @@
-package cosmos.base.tendermint.v1beta1;
-
-import static io.grpc.MethodDescriptor.generateFullMethodName;
-import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall;
-import static io.grpc.stub.ClientCalls.asyncClientStreamingCall;
-import static io.grpc.stub.ClientCalls.asyncServerStreamingCall;
-import static io.grpc.stub.ClientCalls.asyncUnaryCall;
-import static io.grpc.stub.ClientCalls.blockingServerStreamingCall;
-import static io.grpc.stub.ClientCalls.blockingUnaryCall;
-import static io.grpc.stub.ClientCalls.futureUnaryCall;
-import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall;
-import static io.grpc.stub.ServerCalls.asyncClientStreamingCall;
-import static io.grpc.stub.ServerCalls.asyncServerStreamingCall;
-import static io.grpc.stub.ServerCalls.asyncUnaryCall;
-import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall;
-import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall;
-
-/**
- *
- * Service defines the gRPC querier service for tendermint queries.
- *
- */
-@javax.annotation.Generated(
- value = "by gRPC proto compiler (version 1.22.1)",
- comments = "Source: cosmos/base/tendermint/v1beta1/query.proto")
-public final class ServiceGrpc {
-
- private ServiceGrpc() {}
-
- public static final String SERVICE_NAME = "cosmos.base.tendermint.v1beta1.Service";
-
- // Static method descriptors that strictly reflect the proto.
- private static volatile io.grpc.MethodDescriptor getGetNodeInfoMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "GetNodeInfo",
- requestType = cosmos.base.tendermint.v1beta1.GetNodeInfoRequest.class,
- responseType = cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.class,
- methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor getGetNodeInfoMethod() {
- io.grpc.MethodDescriptor getGetNodeInfoMethod;
- if ((getGetNodeInfoMethod = ServiceGrpc.getGetNodeInfoMethod) == null) {
- synchronized (ServiceGrpc.class) {
- if ((getGetNodeInfoMethod = ServiceGrpc.getGetNodeInfoMethod) == null) {
- ServiceGrpc.getGetNodeInfoMethod = getGetNodeInfoMethod =
- io.grpc.MethodDescriptor.newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(
- "cosmos.base.tendermint.v1beta1.Service", "GetNodeInfo"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- cosmos.base.tendermint.v1beta1.GetNodeInfoRequest.getDefaultInstance()))
- .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.getDefaultInstance()))
- .setSchemaDescriptor(new ServiceMethodDescriptorSupplier("GetNodeInfo"))
- .build();
- }
- }
- }
- return getGetNodeInfoMethod;
- }
-
- private static volatile io.grpc.MethodDescriptor getGetSyncingMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "GetSyncing",
- requestType = cosmos.base.tendermint.v1beta1.GetSyncingRequest.class,
- responseType = cosmos.base.tendermint.v1beta1.GetSyncingResponse.class,
- methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor getGetSyncingMethod() {
- io.grpc.MethodDescriptor getGetSyncingMethod;
- if ((getGetSyncingMethod = ServiceGrpc.getGetSyncingMethod) == null) {
- synchronized (ServiceGrpc.class) {
- if ((getGetSyncingMethod = ServiceGrpc.getGetSyncingMethod) == null) {
- ServiceGrpc.getGetSyncingMethod = getGetSyncingMethod =
- io.grpc.MethodDescriptor.newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(
- "cosmos.base.tendermint.v1beta1.Service", "GetSyncing"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- cosmos.base.tendermint.v1beta1.GetSyncingRequest.getDefaultInstance()))
- .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- cosmos.base.tendermint.v1beta1.GetSyncingResponse.getDefaultInstance()))
- .setSchemaDescriptor(new ServiceMethodDescriptorSupplier("GetSyncing"))
- .build();
- }
- }
- }
- return getGetSyncingMethod;
- }
-
- private static volatile io.grpc.MethodDescriptor getGetLatestBlockMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "GetLatestBlock",
- requestType = cosmos.base.tendermint.v1beta1.GetLatestBlockRequest.class,
- responseType = cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.class,
- methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor getGetLatestBlockMethod() {
- io.grpc.MethodDescriptor getGetLatestBlockMethod;
- if ((getGetLatestBlockMethod = ServiceGrpc.getGetLatestBlockMethod) == null) {
- synchronized (ServiceGrpc.class) {
- if ((getGetLatestBlockMethod = ServiceGrpc.getGetLatestBlockMethod) == null) {
- ServiceGrpc.getGetLatestBlockMethod = getGetLatestBlockMethod =
- io.grpc.MethodDescriptor.newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(
- "cosmos.base.tendermint.v1beta1.Service", "GetLatestBlock"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- cosmos.base.tendermint.v1beta1.GetLatestBlockRequest.getDefaultInstance()))
- .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.getDefaultInstance()))
- .setSchemaDescriptor(new ServiceMethodDescriptorSupplier("GetLatestBlock"))
- .build();
- }
- }
- }
- return getGetLatestBlockMethod;
- }
-
- private static volatile io.grpc.MethodDescriptor getGetBlockByHeightMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "GetBlockByHeight",
- requestType = cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest.class,
- responseType = cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.class,
- methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor getGetBlockByHeightMethod() {
- io.grpc.MethodDescriptor getGetBlockByHeightMethod;
- if ((getGetBlockByHeightMethod = ServiceGrpc.getGetBlockByHeightMethod) == null) {
- synchronized (ServiceGrpc.class) {
- if ((getGetBlockByHeightMethod = ServiceGrpc.getGetBlockByHeightMethod) == null) {
- ServiceGrpc.getGetBlockByHeightMethod = getGetBlockByHeightMethod =
- io.grpc.MethodDescriptor.newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(
- "cosmos.base.tendermint.v1beta1.Service", "GetBlockByHeight"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest.getDefaultInstance()))
- .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.getDefaultInstance()))
- .setSchemaDescriptor(new ServiceMethodDescriptorSupplier("GetBlockByHeight"))
- .build();
- }
- }
- }
- return getGetBlockByHeightMethod;
- }
-
- private static volatile io.grpc.MethodDescriptor getGetLatestValidatorSetMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "GetLatestValidatorSet",
- requestType = cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest.class,
- responseType = cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.class,
- methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor getGetLatestValidatorSetMethod() {
- io.grpc.MethodDescriptor getGetLatestValidatorSetMethod;
- if ((getGetLatestValidatorSetMethod = ServiceGrpc.getGetLatestValidatorSetMethod) == null) {
- synchronized (ServiceGrpc.class) {
- if ((getGetLatestValidatorSetMethod = ServiceGrpc.getGetLatestValidatorSetMethod) == null) {
- ServiceGrpc.getGetLatestValidatorSetMethod = getGetLatestValidatorSetMethod =
- io.grpc.MethodDescriptor.newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(
- "cosmos.base.tendermint.v1beta1.Service", "GetLatestValidatorSet"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest.getDefaultInstance()))
- .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.getDefaultInstance()))
- .setSchemaDescriptor(new ServiceMethodDescriptorSupplier("GetLatestValidatorSet"))
- .build();
- }
- }
- }
- return getGetLatestValidatorSetMethod;
- }
-
- private static volatile io.grpc.MethodDescriptor getGetValidatorSetByHeightMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "GetValidatorSetByHeight",
- requestType = cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest.class,
- responseType = cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.class,
- methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor getGetValidatorSetByHeightMethod() {
- io.grpc.MethodDescriptor getGetValidatorSetByHeightMethod;
- if ((getGetValidatorSetByHeightMethod = ServiceGrpc.getGetValidatorSetByHeightMethod) == null) {
- synchronized (ServiceGrpc.class) {
- if ((getGetValidatorSetByHeightMethod = ServiceGrpc.getGetValidatorSetByHeightMethod) == null) {
- ServiceGrpc.getGetValidatorSetByHeightMethod = getGetValidatorSetByHeightMethod =
- io.grpc.MethodDescriptor.newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(
- "cosmos.base.tendermint.v1beta1.Service", "GetValidatorSetByHeight"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest.getDefaultInstance()))
- .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.getDefaultInstance()))
- .setSchemaDescriptor(new ServiceMethodDescriptorSupplier("GetValidatorSetByHeight"))
- .build();
- }
- }
- }
- return getGetValidatorSetByHeightMethod;
- }
-
- /**
- * Creates a new async stub that supports all call types for the service
- */
- public static ServiceStub newStub(io.grpc.Channel channel) {
- return new ServiceStub(channel);
- }
-
- /**
- * Creates a new blocking-style stub that supports unary and streaming output calls on the service
- */
- public static ServiceBlockingStub newBlockingStub(
- io.grpc.Channel channel) {
- return new ServiceBlockingStub(channel);
- }
-
- /**
- * Creates a new ListenableFuture-style stub that supports unary calls on the service
- */
- public static ServiceFutureStub newFutureStub(
- io.grpc.Channel channel) {
- return new ServiceFutureStub(channel);
- }
-
- /**
- *
- * Service defines the gRPC querier service for tendermint queries.
- *
- */
- public static abstract class ServiceImplBase implements io.grpc.BindableService {
-
- /**
- *
- * GetNodeInfo queries the current node info.
- *
- */
- public void getNodeInfo(cosmos.base.tendermint.v1beta1.GetNodeInfoRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- asyncUnimplementedUnaryCall(getGetNodeInfoMethod(), responseObserver);
- }
-
- /**
- *
- * GetSyncing queries node syncing.
- *
- */
- public void getSyncing(cosmos.base.tendermint.v1beta1.GetSyncingRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- asyncUnimplementedUnaryCall(getGetSyncingMethod(), responseObserver);
- }
-
- /**
- *
- * GetLatestBlock returns the latest block.
- *
- */
- public void getLatestBlock(cosmos.base.tendermint.v1beta1.GetLatestBlockRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- asyncUnimplementedUnaryCall(getGetLatestBlockMethod(), responseObserver);
- }
-
- /**
- *
- * GetBlockByHeight queries block for given height.
- *
- */
- public void getBlockByHeight(cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- asyncUnimplementedUnaryCall(getGetBlockByHeightMethod(), responseObserver);
- }
-
- /**
- *
- * GetLatestValidatorSet queries latest validator-set.
- *
- */
- public void getLatestValidatorSet(cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- asyncUnimplementedUnaryCall(getGetLatestValidatorSetMethod(), responseObserver);
- }
-
- /**
- *
- * GetValidatorSetByHeight queries validator-set at a given height.
- *
- */
- public void getValidatorSetByHeight(cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- asyncUnimplementedUnaryCall(getGetValidatorSetByHeightMethod(), responseObserver);
- }
-
- @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
- return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
- .addMethod(
- getGetNodeInfoMethod(),
- asyncUnaryCall(
- new MethodHandlers<
- cosmos.base.tendermint.v1beta1.GetNodeInfoRequest,
- cosmos.base.tendermint.v1beta1.GetNodeInfoResponse>(
- this, METHODID_GET_NODE_INFO)))
- .addMethod(
- getGetSyncingMethod(),
- asyncUnaryCall(
- new MethodHandlers<
- cosmos.base.tendermint.v1beta1.GetSyncingRequest,
- cosmos.base.tendermint.v1beta1.GetSyncingResponse>(
- this, METHODID_GET_SYNCING)))
- .addMethod(
- getGetLatestBlockMethod(),
- asyncUnaryCall(
- new MethodHandlers<
- cosmos.base.tendermint.v1beta1.GetLatestBlockRequest,
- cosmos.base.tendermint.v1beta1.GetLatestBlockResponse>(
- this, METHODID_GET_LATEST_BLOCK)))
- .addMethod(
- getGetBlockByHeightMethod(),
- asyncUnaryCall(
- new MethodHandlers<
- cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest,
- cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse>(
- this, METHODID_GET_BLOCK_BY_HEIGHT)))
- .addMethod(
- getGetLatestValidatorSetMethod(),
- asyncUnaryCall(
- new MethodHandlers<
- cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest,
- cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse>(
- this, METHODID_GET_LATEST_VALIDATOR_SET)))
- .addMethod(
- getGetValidatorSetByHeightMethod(),
- asyncUnaryCall(
- new MethodHandlers<
- cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest,
- cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse>(
- this, METHODID_GET_VALIDATOR_SET_BY_HEIGHT)))
- .build();
- }
- }
-
- /**
- *
- * Service defines the gRPC querier service for tendermint queries.
- *
- */
- public static final class ServiceStub extends io.grpc.stub.AbstractStub {
- private ServiceStub(io.grpc.Channel channel) {
- super(channel);
- }
-
- private ServiceStub(io.grpc.Channel channel,
- io.grpc.CallOptions callOptions) {
- super(channel, callOptions);
- }
-
- @java.lang.Override
- protected ServiceStub build(io.grpc.Channel channel,
- io.grpc.CallOptions callOptions) {
- return new ServiceStub(channel, callOptions);
- }
-
- /**
- *
- * GetNodeInfo queries the current node info.
- *
- */
- public void getNodeInfo(cosmos.base.tendermint.v1beta1.GetNodeInfoRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- asyncUnaryCall(
- getChannel().newCall(getGetNodeInfoMethod(), getCallOptions()), request, responseObserver);
- }
-
- /**
- *
- * GetSyncing queries node syncing.
- *
- */
- public void getSyncing(cosmos.base.tendermint.v1beta1.GetSyncingRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- asyncUnaryCall(
- getChannel().newCall(getGetSyncingMethod(), getCallOptions()), request, responseObserver);
- }
-
- /**
- *
- * GetLatestBlock returns the latest block.
- *
- */
- public void getLatestBlock(cosmos.base.tendermint.v1beta1.GetLatestBlockRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- asyncUnaryCall(
- getChannel().newCall(getGetLatestBlockMethod(), getCallOptions()), request, responseObserver);
- }
-
- /**
- *
- * GetBlockByHeight queries block for given height.
- *
- */
- public void getBlockByHeight(cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- asyncUnaryCall(
- getChannel().newCall(getGetBlockByHeightMethod(), getCallOptions()), request, responseObserver);
- }
-
- /**
- *
- * GetLatestValidatorSet queries latest validator-set.
- *
- */
- public void getLatestValidatorSet(cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- asyncUnaryCall(
- getChannel().newCall(getGetLatestValidatorSetMethod(), getCallOptions()), request, responseObserver);
- }
-
- /**
- *
- * GetValidatorSetByHeight queries validator-set at a given height.
- *
- */
- public void getValidatorSetByHeight(cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- asyncUnaryCall(
- getChannel().newCall(getGetValidatorSetByHeightMethod(), getCallOptions()), request, responseObserver);
- }
- }
-
- /**
- *
- * Service defines the gRPC querier service for tendermint queries.
- *
- */
- public static final class ServiceBlockingStub extends io.grpc.stub.AbstractStub {
- private ServiceBlockingStub(io.grpc.Channel channel) {
- super(channel);
- }
-
- private ServiceBlockingStub(io.grpc.Channel channel,
- io.grpc.CallOptions callOptions) {
- super(channel, callOptions);
- }
-
- @java.lang.Override
- protected ServiceBlockingStub build(io.grpc.Channel channel,
- io.grpc.CallOptions callOptions) {
- return new ServiceBlockingStub(channel, callOptions);
- }
-
- /**
- *
- * GetNodeInfo queries the current node info.
- *
- */
- public cosmos.base.tendermint.v1beta1.GetNodeInfoResponse getNodeInfo(cosmos.base.tendermint.v1beta1.GetNodeInfoRequest request) {
- return blockingUnaryCall(
- getChannel(), getGetNodeInfoMethod(), getCallOptions(), request);
- }
-
- /**
- *
- * GetSyncing queries node syncing.
- *
- */
- public cosmos.base.tendermint.v1beta1.GetSyncingResponse getSyncing(cosmos.base.tendermint.v1beta1.GetSyncingRequest request) {
- return blockingUnaryCall(
- getChannel(), getGetSyncingMethod(), getCallOptions(), request);
- }
-
- /**
- *
- * GetLatestBlock returns the latest block.
- *
- */
- public cosmos.base.tendermint.v1beta1.GetLatestBlockResponse getLatestBlock(cosmos.base.tendermint.v1beta1.GetLatestBlockRequest request) {
- return blockingUnaryCall(
- getChannel(), getGetLatestBlockMethod(), getCallOptions(), request);
- }
-
- /**
- *
- * GetBlockByHeight queries block for given height.
- *
- */
- public cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse getBlockByHeight(cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest request) {
- return blockingUnaryCall(
- getChannel(), getGetBlockByHeightMethod(), getCallOptions(), request);
- }
-
- /**
- *
- * GetLatestValidatorSet queries latest validator-set.
- *
- */
- public cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse getLatestValidatorSet(cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest request) {
- return blockingUnaryCall(
- getChannel(), getGetLatestValidatorSetMethod(), getCallOptions(), request);
- }
-
- /**
- *
- * GetValidatorSetByHeight queries validator-set at a given height.
- *
- */
- public cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse getValidatorSetByHeight(cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest request) {
- return blockingUnaryCall(
- getChannel(), getGetValidatorSetByHeightMethod(), getCallOptions(), request);
- }
- }
-
- /**
- *
- * Service defines the gRPC querier service for tendermint queries.
- *
- */
- public static final class ServiceFutureStub extends io.grpc.stub.AbstractStub {
- private ServiceFutureStub(io.grpc.Channel channel) {
- super(channel);
- }
-
- private ServiceFutureStub(io.grpc.Channel channel,
- io.grpc.CallOptions callOptions) {
- super(channel, callOptions);
- }
-
- @java.lang.Override
- protected ServiceFutureStub build(io.grpc.Channel channel,
- io.grpc.CallOptions callOptions) {
- return new ServiceFutureStub(channel, callOptions);
- }
-
- /**
- *
- * GetNodeInfo queries the current node info.
- *
- */
- public com.google.common.util.concurrent.ListenableFuture getNodeInfo(
- cosmos.base.tendermint.v1beta1.GetNodeInfoRequest request) {
- return futureUnaryCall(
- getChannel().newCall(getGetNodeInfoMethod(), getCallOptions()), request);
- }
-
- /**
- *
- * GetSyncing queries node syncing.
- *
- */
- public com.google.common.util.concurrent.ListenableFuture getSyncing(
- cosmos.base.tendermint.v1beta1.GetSyncingRequest request) {
- return futureUnaryCall(
- getChannel().newCall(getGetSyncingMethod(), getCallOptions()), request);
- }
-
- /**
- *
- * GetLatestBlock returns the latest block.
- *
- */
- public com.google.common.util.concurrent.ListenableFuture getLatestBlock(
- cosmos.base.tendermint.v1beta1.GetLatestBlockRequest request) {
- return futureUnaryCall(
- getChannel().newCall(getGetLatestBlockMethod(), getCallOptions()), request);
- }
-
- /**
- *
- * GetBlockByHeight queries block for given height.
- *
- */
- public com.google.common.util.concurrent.ListenableFuture getBlockByHeight(
- cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest request) {
- return futureUnaryCall(
- getChannel().newCall(getGetBlockByHeightMethod(), getCallOptions()), request);
- }
-
- /**
- *
- * GetLatestValidatorSet queries latest validator-set.
- *
- */
- public com.google.common.util.concurrent.ListenableFuture getLatestValidatorSet(
- cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest request) {
- return futureUnaryCall(
- getChannel().newCall(getGetLatestValidatorSetMethod(), getCallOptions()), request);
- }
-
- /**
- *
- * GetValidatorSetByHeight queries validator-set at a given height.
- *
- */
- public com.google.common.util.concurrent.ListenableFuture getValidatorSetByHeight(
- cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest request) {
- return futureUnaryCall(
- getChannel().newCall(getGetValidatorSetByHeightMethod(), getCallOptions()), request);
- }
- }
-
- private static final int METHODID_GET_NODE_INFO = 0;
- private static final int METHODID_GET_SYNCING = 1;
- private static final int METHODID_GET_LATEST_BLOCK = 2;
- private static final int METHODID_GET_BLOCK_BY_HEIGHT = 3;
- private static final int METHODID_GET_LATEST_VALIDATOR_SET = 4;
- private static final int METHODID_GET_VALIDATOR_SET_BY_HEIGHT = 5;
-
- private static final class MethodHandlers implements
- io.grpc.stub.ServerCalls.UnaryMethod,
- io.grpc.stub.ServerCalls.ServerStreamingMethod,
- io.grpc.stub.ServerCalls.ClientStreamingMethod,
- io.grpc.stub.ServerCalls.BidiStreamingMethod {
- private final ServiceImplBase serviceImpl;
- private final int methodId;
-
- MethodHandlers(ServiceImplBase serviceImpl, int methodId) {
- this.serviceImpl = serviceImpl;
- this.methodId = methodId;
- }
-
- @java.lang.Override
- @java.lang.SuppressWarnings("unchecked")
- public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) {
- switch (methodId) {
- case METHODID_GET_NODE_INFO:
- serviceImpl.getNodeInfo((cosmos.base.tendermint.v1beta1.GetNodeInfoRequest) request,
- (io.grpc.stub.StreamObserver) responseObserver);
- break;
- case METHODID_GET_SYNCING:
- serviceImpl.getSyncing((cosmos.base.tendermint.v1beta1.GetSyncingRequest) request,
- (io.grpc.stub.StreamObserver) responseObserver);
- break;
- case METHODID_GET_LATEST_BLOCK:
- serviceImpl.getLatestBlock((cosmos.base.tendermint.v1beta1.GetLatestBlockRequest) request,
- (io.grpc.stub.StreamObserver) responseObserver);
- break;
- case METHODID_GET_BLOCK_BY_HEIGHT:
- serviceImpl.getBlockByHeight((cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest) request,
- (io.grpc.stub.StreamObserver) responseObserver);
- break;
- case METHODID_GET_LATEST_VALIDATOR_SET:
- serviceImpl.getLatestValidatorSet((cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest) request,
- (io.grpc.stub.StreamObserver) responseObserver);
- break;
- case METHODID_GET_VALIDATOR_SET_BY_HEIGHT:
- serviceImpl.getValidatorSetByHeight((cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest) request,
- (io.grpc.stub.StreamObserver) responseObserver);
- break;
- default:
- throw new AssertionError();
- }
- }
-
- @java.lang.Override
- @java.lang.SuppressWarnings("unchecked")
- public io.grpc.stub.StreamObserver invoke(
- io.grpc.stub.StreamObserver responseObserver) {
- switch (methodId) {
- default:
- throw new AssertionError();
- }
- }
- }
-
- private static abstract class ServiceBaseDescriptorSupplier
- implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
- ServiceBaseDescriptorSupplier() {}
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
- return cosmos.base.tendermint.v1beta1.Query.getDescriptor();
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
- return getFileDescriptor().findServiceByName("Service");
- }
- }
-
- private static final class ServiceFileDescriptorSupplier
- extends ServiceBaseDescriptorSupplier {
- ServiceFileDescriptorSupplier() {}
- }
-
- private static final class ServiceMethodDescriptorSupplier
- extends ServiceBaseDescriptorSupplier
- implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
- private final String methodName;
-
- ServiceMethodDescriptorSupplier(String methodName) {
- this.methodName = methodName;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
- return getServiceDescriptor().findMethodByName(methodName);
- }
- }
-
- private static volatile io.grpc.ServiceDescriptor serviceDescriptor;
-
- public static io.grpc.ServiceDescriptor getServiceDescriptor() {
- io.grpc.ServiceDescriptor result = serviceDescriptor;
- if (result == null) {
- synchronized (ServiceGrpc.class) {
- result = serviceDescriptor;
- if (result == null) {
- serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
- .setSchemaDescriptor(new ServiceFileDescriptorSupplier())
- .addMethod(getGetNodeInfoMethod())
- .addMethod(getGetSyncingMethod())
- .addMethod(getGetLatestBlockMethod())
- .addMethod(getGetBlockByHeightMethod())
- .addMethod(getGetLatestValidatorSetMethod())
- .addMethod(getGetValidatorSetByHeightMethod())
- .build();
- }
- }
- }
- return result;
- }
-}
diff --git a/src/generated/main/grpc/cosmos/crisis/v1beta1/MsgGrpc.java b/src/generated/main/grpc/cosmos/crisis/v1beta1/MsgGrpc.java
deleted file mode 100644
index 0d33da5..0000000
--- a/src/generated/main/grpc/cosmos/crisis/v1beta1/MsgGrpc.java
+++ /dev/null
@@ -1,307 +0,0 @@
-package cosmos.crisis.v1beta1;
-
-import static io.grpc.MethodDescriptor.generateFullMethodName;
-import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall;
-import static io.grpc.stub.ClientCalls.asyncClientStreamingCall;
-import static io.grpc.stub.ClientCalls.asyncServerStreamingCall;
-import static io.grpc.stub.ClientCalls.asyncUnaryCall;
-import static io.grpc.stub.ClientCalls.blockingServerStreamingCall;
-import static io.grpc.stub.ClientCalls.blockingUnaryCall;
-import static io.grpc.stub.ClientCalls.futureUnaryCall;
-import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall;
-import static io.grpc.stub.ServerCalls.asyncClientStreamingCall;
-import static io.grpc.stub.ServerCalls.asyncServerStreamingCall;
-import static io.grpc.stub.ServerCalls.asyncUnaryCall;
-import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall;
-import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall;
-
-/**
- *
- * Msg defines the bank Msg service.
- *
- */
-@javax.annotation.Generated(
- value = "by gRPC proto compiler (version 1.22.1)",
- comments = "Source: cosmos/crisis/v1beta1/tx.proto")
-public final class MsgGrpc {
-
- private MsgGrpc() {}
-
- public static final String SERVICE_NAME = "cosmos.crisis.v1beta1.Msg";
-
- // Static method descriptors that strictly reflect the proto.
- private static volatile io.grpc.MethodDescriptor getVerifyInvariantMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "VerifyInvariant",
- requestType = cosmos.crisis.v1beta1.MsgVerifyInvariant.class,
- responseType = cosmos.crisis.v1beta1.MsgVerifyInvariantResponse.class,
- methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor getVerifyInvariantMethod() {
- io.grpc.MethodDescriptor getVerifyInvariantMethod;
- if ((getVerifyInvariantMethod = MsgGrpc.getVerifyInvariantMethod) == null) {
- synchronized (MsgGrpc.class) {
- if ((getVerifyInvariantMethod = MsgGrpc.getVerifyInvariantMethod) == null) {
- MsgGrpc.getVerifyInvariantMethod = getVerifyInvariantMethod =
- io.grpc.MethodDescriptor.newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(
- "cosmos.crisis.v1beta1.Msg", "VerifyInvariant"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- cosmos.crisis.v1beta1.MsgVerifyInvariant.getDefaultInstance()))
- .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- cosmos.crisis.v1beta1.MsgVerifyInvariantResponse.getDefaultInstance()))
- .setSchemaDescriptor(new MsgMethodDescriptorSupplier("VerifyInvariant"))
- .build();
- }
- }
- }
- return getVerifyInvariantMethod;
- }
-
- /**
- * Creates a new async stub that supports all call types for the service
- */
- public static MsgStub newStub(io.grpc.Channel channel) {
- return new MsgStub(channel);
- }
-
- /**
- * Creates a new blocking-style stub that supports unary and streaming output calls on the service
- */
- public static MsgBlockingStub newBlockingStub(
- io.grpc.Channel channel) {
- return new MsgBlockingStub(channel);
- }
-
- /**
- * Creates a new ListenableFuture-style stub that supports unary calls on the service
- */
- public static MsgFutureStub newFutureStub(
- io.grpc.Channel channel) {
- return new MsgFutureStub(channel);
- }
-
- /**
- *
- * Msg defines the bank Msg service.
- *
- */
- public static abstract class MsgImplBase implements io.grpc.BindableService {
-
- /**
- *
- * VerifyInvariant defines a method to verify a particular invariance.
- *
- */
- public void verifyInvariant(cosmos.crisis.v1beta1.MsgVerifyInvariant request,
- io.grpc.stub.StreamObserver responseObserver) {
- asyncUnimplementedUnaryCall(getVerifyInvariantMethod(), responseObserver);
- }
-
- @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
- return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
- .addMethod(
- getVerifyInvariantMethod(),
- asyncUnaryCall(
- new MethodHandlers<
- cosmos.crisis.v1beta1.MsgVerifyInvariant,
- cosmos.crisis.v1beta1.MsgVerifyInvariantResponse>(
- this, METHODID_VERIFY_INVARIANT)))
- .build();
- }
- }
-
- /**
- *
- * Msg defines the bank Msg service.
- *
- */
- public static final class MsgStub extends io.grpc.stub.AbstractStub {
- private MsgStub(io.grpc.Channel channel) {
- super(channel);
- }
-
- private MsgStub(io.grpc.Channel channel,
- io.grpc.CallOptions callOptions) {
- super(channel, callOptions);
- }
-
- @java.lang.Override
- protected MsgStub build(io.grpc.Channel channel,
- io.grpc.CallOptions callOptions) {
- return new MsgStub(channel, callOptions);
- }
-
- /**
- *
- * VerifyInvariant defines a method to verify a particular invariance.
- *
- */
- public void verifyInvariant(cosmos.crisis.v1beta1.MsgVerifyInvariant request,
- io.grpc.stub.StreamObserver responseObserver) {
- asyncUnaryCall(
- getChannel().newCall(getVerifyInvariantMethod(), getCallOptions()), request, responseObserver);
- }
- }
-
- /**
- *
- * Msg defines the bank Msg service.
- *
- */
- public static final class MsgBlockingStub extends io.grpc.stub.AbstractStub {
- private MsgBlockingStub(io.grpc.Channel channel) {
- super(channel);
- }
-
- private MsgBlockingStub(io.grpc.Channel channel,
- io.grpc.CallOptions callOptions) {
- super(channel, callOptions);
- }
-
- @java.lang.Override
- protected MsgBlockingStub build(io.grpc.Channel channel,
- io.grpc.CallOptions callOptions) {
- return new MsgBlockingStub(channel, callOptions);
- }
-
- /**
- *
- * VerifyInvariant defines a method to verify a particular invariance.
- *
- */
- public cosmos.crisis.v1beta1.MsgVerifyInvariantResponse verifyInvariant(cosmos.crisis.v1beta1.MsgVerifyInvariant request) {
- return blockingUnaryCall(
- getChannel(), getVerifyInvariantMethod(), getCallOptions(), request);
- }
- }
-
- /**
- *
- * Msg defines the bank Msg service.
- *
- */
- public static final class MsgFutureStub extends io.grpc.stub.AbstractStub {
- private MsgFutureStub(io.grpc.Channel channel) {
- super(channel);
- }
-
- private MsgFutureStub(io.grpc.Channel channel,
- io.grpc.CallOptions callOptions) {
- super(channel, callOptions);
- }
-
- @java.lang.Override
- protected MsgFutureStub build(io.grpc.Channel channel,
- io.grpc.CallOptions callOptions) {
- return new MsgFutureStub(channel, callOptions);
- }
-
- /**
- *
- * VerifyInvariant defines a method to verify a particular invariance.
- *
- */
- public com.google.common.util.concurrent.ListenableFuture verifyInvariant(
- cosmos.crisis.v1beta1.MsgVerifyInvariant request) {
- return futureUnaryCall(
- getChannel().newCall(getVerifyInvariantMethod(), getCallOptions()), request);
- }
- }
-
- private static final int METHODID_VERIFY_INVARIANT = 0;
-
- private static final class MethodHandlers implements
- io.grpc.stub.ServerCalls.UnaryMethod,
- io.grpc.stub.ServerCalls.ServerStreamingMethod,
- io.grpc.stub.ServerCalls.ClientStreamingMethod,
- io.grpc.stub.ServerCalls.BidiStreamingMethod {
- private final MsgImplBase serviceImpl;
- private final int methodId;
-
- MethodHandlers(MsgImplBase serviceImpl, int methodId) {
- this.serviceImpl = serviceImpl;
- this.methodId = methodId;
- }
-
- @java.lang.Override
- @java.lang.SuppressWarnings("unchecked")
- public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) {
- switch (methodId) {
- case METHODID_VERIFY_INVARIANT:
- serviceImpl.verifyInvariant((cosmos.crisis.v1beta1.MsgVerifyInvariant) request,
- (io.grpc.stub.StreamObserver) responseObserver);
- break;
- default:
- throw new AssertionError();
- }
- }
-
- @java.lang.Override
- @java.lang.SuppressWarnings("unchecked")
- public io.grpc.stub.StreamObserver invoke(
- io.grpc.stub.StreamObserver responseObserver) {
- switch (methodId) {
- default:
- throw new AssertionError();
- }
- }
- }
-
- private static abstract class MsgBaseDescriptorSupplier
- implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
- MsgBaseDescriptorSupplier() {}
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
- return cosmos.crisis.v1beta1.Tx.getDescriptor();
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
- return getFileDescriptor().findServiceByName("Msg");
- }
- }
-
- private static final class MsgFileDescriptorSupplier
- extends MsgBaseDescriptorSupplier {
- MsgFileDescriptorSupplier() {}
- }
-
- private static final class MsgMethodDescriptorSupplier
- extends MsgBaseDescriptorSupplier
- implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
- private final String methodName;
-
- MsgMethodDescriptorSupplier(String methodName) {
- this.methodName = methodName;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
- return getServiceDescriptor().findMethodByName(methodName);
- }
- }
-
- private static volatile io.grpc.ServiceDescriptor serviceDescriptor;
-
- public static io.grpc.ServiceDescriptor getServiceDescriptor() {
- io.grpc.ServiceDescriptor result = serviceDescriptor;
- if (result == null) {
- synchronized (MsgGrpc.class) {
- result = serviceDescriptor;
- if (result == null) {
- serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
- .setSchemaDescriptor(new MsgFileDescriptorSupplier())
- .addMethod(getVerifyInvariantMethod())
- .build();
- }
- }
- }
- return result;
- }
-}
diff --git a/src/generated/main/grpc/cosmos/distribution/v1beta1/MsgGrpc.java b/src/generated/main/grpc/cosmos/distribution/v1beta1/MsgGrpc.java
deleted file mode 100644
index 4c29b8d..0000000
--- a/src/generated/main/grpc/cosmos/distribution/v1beta1/MsgGrpc.java
+++ /dev/null
@@ -1,584 +0,0 @@
-package cosmos.distribution.v1beta1;
-
-import static io.grpc.MethodDescriptor.generateFullMethodName;
-import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall;
-import static io.grpc.stub.ClientCalls.asyncClientStreamingCall;
-import static io.grpc.stub.ClientCalls.asyncServerStreamingCall;
-import static io.grpc.stub.ClientCalls.asyncUnaryCall;
-import static io.grpc.stub.ClientCalls.blockingServerStreamingCall;
-import static io.grpc.stub.ClientCalls.blockingUnaryCall;
-import static io.grpc.stub.ClientCalls.futureUnaryCall;
-import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall;
-import static io.grpc.stub.ServerCalls.asyncClientStreamingCall;
-import static io.grpc.stub.ServerCalls.asyncServerStreamingCall;
-import static io.grpc.stub.ServerCalls.asyncUnaryCall;
-import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall;
-import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall;
-
-/**
- *
- * Msg defines the distribution Msg service.
- *
- */
-@javax.annotation.Generated(
- value = "by gRPC proto compiler (version 1.22.1)",
- comments = "Source: cosmos/distribution/v1beta1/tx.proto")
-public final class MsgGrpc {
-
- private MsgGrpc() {}
-
- public static final String SERVICE_NAME = "cosmos.distribution.v1beta1.Msg";
-
- // Static method descriptors that strictly reflect the proto.
- private static volatile io.grpc.MethodDescriptor getSetWithdrawAddressMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "SetWithdrawAddress",
- requestType = cosmos.distribution.v1beta1.MsgSetWithdrawAddress.class,
- responseType = cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse.class,
- methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor getSetWithdrawAddressMethod() {
- io.grpc.MethodDescriptor getSetWithdrawAddressMethod;
- if ((getSetWithdrawAddressMethod = MsgGrpc.getSetWithdrawAddressMethod) == null) {
- synchronized (MsgGrpc.class) {
- if ((getSetWithdrawAddressMethod = MsgGrpc.getSetWithdrawAddressMethod) == null) {
- MsgGrpc.getSetWithdrawAddressMethod = getSetWithdrawAddressMethod =
- io.grpc.MethodDescriptor.newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(
- "cosmos.distribution.v1beta1.Msg", "SetWithdrawAddress"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- cosmos.distribution.v1beta1.MsgSetWithdrawAddress.getDefaultInstance()))
- .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse.getDefaultInstance()))
- .setSchemaDescriptor(new MsgMethodDescriptorSupplier("SetWithdrawAddress"))
- .build();
- }
- }
- }
- return getSetWithdrawAddressMethod;
- }
-
- private static volatile io.grpc.MethodDescriptor getWithdrawDelegatorRewardMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "WithdrawDelegatorReward",
- requestType = cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward.class,
- responseType = cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse.class,
- methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor getWithdrawDelegatorRewardMethod() {
- io.grpc.MethodDescriptor getWithdrawDelegatorRewardMethod;
- if ((getWithdrawDelegatorRewardMethod = MsgGrpc.getWithdrawDelegatorRewardMethod) == null) {
- synchronized (MsgGrpc.class) {
- if ((getWithdrawDelegatorRewardMethod = MsgGrpc.getWithdrawDelegatorRewardMethod) == null) {
- MsgGrpc.getWithdrawDelegatorRewardMethod = getWithdrawDelegatorRewardMethod =
- io.grpc.MethodDescriptor.newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(
- "cosmos.distribution.v1beta1.Msg", "WithdrawDelegatorReward"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward.getDefaultInstance()))
- .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse.getDefaultInstance()))
- .setSchemaDescriptor(new MsgMethodDescriptorSupplier("WithdrawDelegatorReward"))
- .build();
- }
- }
- }
- return getWithdrawDelegatorRewardMethod;
- }
-
- private static volatile io.grpc.MethodDescriptor getWithdrawValidatorCommissionMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "WithdrawValidatorCommission",
- requestType = cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission.class,
- responseType = cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse.class,
- methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor getWithdrawValidatorCommissionMethod() {
- io.grpc.MethodDescriptor getWithdrawValidatorCommissionMethod;
- if ((getWithdrawValidatorCommissionMethod = MsgGrpc.getWithdrawValidatorCommissionMethod) == null) {
- synchronized (MsgGrpc.class) {
- if ((getWithdrawValidatorCommissionMethod = MsgGrpc.getWithdrawValidatorCommissionMethod) == null) {
- MsgGrpc.getWithdrawValidatorCommissionMethod = getWithdrawValidatorCommissionMethod =
- io.grpc.MethodDescriptor.newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(
- "cosmos.distribution.v1beta1.Msg", "WithdrawValidatorCommission"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission.getDefaultInstance()))
- .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse.getDefaultInstance()))
- .setSchemaDescriptor(new MsgMethodDescriptorSupplier("WithdrawValidatorCommission"))
- .build();
- }
- }
- }
- return getWithdrawValidatorCommissionMethod;
- }
-
- private static volatile io.grpc.MethodDescriptor getFundCommunityPoolMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "FundCommunityPool",
- requestType = cosmos.distribution.v1beta1.MsgFundCommunityPool.class,
- responseType = cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse.class,
- methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor getFundCommunityPoolMethod() {
- io.grpc.MethodDescriptor getFundCommunityPoolMethod;
- if ((getFundCommunityPoolMethod = MsgGrpc.getFundCommunityPoolMethod) == null) {
- synchronized (MsgGrpc.class) {
- if ((getFundCommunityPoolMethod = MsgGrpc.getFundCommunityPoolMethod) == null) {
- MsgGrpc.getFundCommunityPoolMethod = getFundCommunityPoolMethod =
- io.grpc.MethodDescriptor.newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(
- "cosmos.distribution.v1beta1.Msg", "FundCommunityPool"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- cosmos.distribution.v1beta1.MsgFundCommunityPool.getDefaultInstance()))
- .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse.getDefaultInstance()))
- .setSchemaDescriptor(new MsgMethodDescriptorSupplier("FundCommunityPool"))
- .build();
- }
- }
- }
- return getFundCommunityPoolMethod;
- }
-
- /**
- * Creates a new async stub that supports all call types for the service
- */
- public static MsgStub newStub(io.grpc.Channel channel) {
- return new MsgStub(channel);
- }
-
- /**
- * Creates a new blocking-style stub that supports unary and streaming output calls on the service
- */
- public static MsgBlockingStub newBlockingStub(
- io.grpc.Channel channel) {
- return new MsgBlockingStub(channel);
- }
-
- /**
- * Creates a new ListenableFuture-style stub that supports unary calls on the service
- */
- public static MsgFutureStub newFutureStub(
- io.grpc.Channel channel) {
- return new MsgFutureStub(channel);
- }
-
- /**
- *
- * Msg defines the distribution Msg service.
- *
- */
- public static abstract class MsgImplBase implements io.grpc.BindableService {
-
- /**
- *
- * SetWithdrawAddress defines a method to change the withdraw address
- * for a delegator (or validator self-delegation).
- *
- */
- public void setWithdrawAddress(cosmos.distribution.v1beta1.MsgSetWithdrawAddress request,
- io.grpc.stub.StreamObserver responseObserver) {
- asyncUnimplementedUnaryCall(getSetWithdrawAddressMethod(), responseObserver);
- }
-
- /**
- *
- * WithdrawDelegatorReward defines a method to withdraw rewards of delegator
- * from a single validator.
- *
- */
- public void withdrawDelegatorReward(cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward request,
- io.grpc.stub.StreamObserver responseObserver) {
- asyncUnimplementedUnaryCall(getWithdrawDelegatorRewardMethod(), responseObserver);
- }
-
- /**
- *
- * WithdrawValidatorCommission defines a method to withdraw the
- * full commission to the validator address.
- *
- */
- public void withdrawValidatorCommission(cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission request,
- io.grpc.stub.StreamObserver responseObserver) {
- asyncUnimplementedUnaryCall(getWithdrawValidatorCommissionMethod(), responseObserver);
- }
-
- /**
- *
- * FundCommunityPool defines a method to allow an account to directly
- * fund the community pool.
- *
- */
- public void fundCommunityPool(cosmos.distribution.v1beta1.MsgFundCommunityPool request,
- io.grpc.stub.StreamObserver responseObserver) {
- asyncUnimplementedUnaryCall(getFundCommunityPoolMethod(), responseObserver);
- }
-
- @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
- return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
- .addMethod(
- getSetWithdrawAddressMethod(),
- asyncUnaryCall(
- new MethodHandlers<
- cosmos.distribution.v1beta1.MsgSetWithdrawAddress,
- cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse>(
- this, METHODID_SET_WITHDRAW_ADDRESS)))
- .addMethod(
- getWithdrawDelegatorRewardMethod(),
- asyncUnaryCall(
- new MethodHandlers<
- cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward,
- cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse>(
- this, METHODID_WITHDRAW_DELEGATOR_REWARD)))
- .addMethod(
- getWithdrawValidatorCommissionMethod(),
- asyncUnaryCall(
- new MethodHandlers<
- cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission,
- cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse>(
- this, METHODID_WITHDRAW_VALIDATOR_COMMISSION)))
- .addMethod(
- getFundCommunityPoolMethod(),
- asyncUnaryCall(
- new MethodHandlers<
- cosmos.distribution.v1beta1.MsgFundCommunityPool,
- cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse>(
- this, METHODID_FUND_COMMUNITY_POOL)))
- .build();
- }
- }
-
- /**
- *
- * Msg defines the distribution Msg service.
- *
- */
- public static final class MsgStub extends io.grpc.stub.AbstractStub {
- private MsgStub(io.grpc.Channel channel) {
- super(channel);
- }
-
- private MsgStub(io.grpc.Channel channel,
- io.grpc.CallOptions callOptions) {
- super(channel, callOptions);
- }
-
- @java.lang.Override
- protected MsgStub build(io.grpc.Channel channel,
- io.grpc.CallOptions callOptions) {
- return new MsgStub(channel, callOptions);
- }
-
- /**
- *
- * SetWithdrawAddress defines a method to change the withdraw address
- * for a delegator (or validator self-delegation).
- *
- */
- public void setWithdrawAddress(cosmos.distribution.v1beta1.MsgSetWithdrawAddress request,
- io.grpc.stub.StreamObserver responseObserver) {
- asyncUnaryCall(
- getChannel().newCall(getSetWithdrawAddressMethod(), getCallOptions()), request, responseObserver);
- }
-
- /**
- *
- * WithdrawDelegatorReward defines a method to withdraw rewards of delegator
- * from a single validator.
- *
- */
- public void withdrawDelegatorReward(cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward request,
- io.grpc.stub.StreamObserver responseObserver) {
- asyncUnaryCall(
- getChannel().newCall(getWithdrawDelegatorRewardMethod(), getCallOptions()), request, responseObserver);
- }
-
- /**
- *
- * WithdrawValidatorCommission defines a method to withdraw the
- * full commission to the validator address.
- *
- */
- public void withdrawValidatorCommission(cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission request,
- io.grpc.stub.StreamObserver responseObserver) {
- asyncUnaryCall(
- getChannel().newCall(getWithdrawValidatorCommissionMethod(), getCallOptions()), request, responseObserver);
- }
-
- /**
- *
- * FundCommunityPool defines a method to allow an account to directly
- * fund the community pool.
- *
- */
- public void fundCommunityPool(cosmos.distribution.v1beta1.MsgFundCommunityPool request,
- io.grpc.stub.StreamObserver responseObserver) {
- asyncUnaryCall(
- getChannel().newCall(getFundCommunityPoolMethod(), getCallOptions()), request, responseObserver);
- }
- }
-
- /**
- *
- * Msg defines the distribution Msg service.
- *
- */
- public static final class MsgBlockingStub extends io.grpc.stub.AbstractStub {
- private MsgBlockingStub(io.grpc.Channel channel) {
- super(channel);
- }
-
- private MsgBlockingStub(io.grpc.Channel channel,
- io.grpc.CallOptions callOptions) {
- super(channel, callOptions);
- }
-
- @java.lang.Override
- protected MsgBlockingStub build(io.grpc.Channel channel,
- io.grpc.CallOptions callOptions) {
- return new MsgBlockingStub(channel, callOptions);
- }
-
- /**
- *
- * SetWithdrawAddress defines a method to change the withdraw address
- * for a delegator (or validator self-delegation).
- *
- */
- public cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse setWithdrawAddress(cosmos.distribution.v1beta1.MsgSetWithdrawAddress request) {
- return blockingUnaryCall(
- getChannel(), getSetWithdrawAddressMethod(), getCallOptions(), request);
- }
-
- /**
- *
- * WithdrawDelegatorReward defines a method to withdraw rewards of delegator
- * from a single validator.
- *
- */
- public cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse withdrawDelegatorReward(cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward request) {
- return blockingUnaryCall(
- getChannel(), getWithdrawDelegatorRewardMethod(), getCallOptions(), request);
- }
-
- /**
- *
- * WithdrawValidatorCommission defines a method to withdraw the
- * full commission to the validator address.
- *
- */
- public cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse withdrawValidatorCommission(cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission request) {
- return blockingUnaryCall(
- getChannel(), getWithdrawValidatorCommissionMethod(), getCallOptions(), request);
- }
-
- /**
- *
- * FundCommunityPool defines a method to allow an account to directly
- * fund the community pool.
- *
- */
- public cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse fundCommunityPool(cosmos.distribution.v1beta1.MsgFundCommunityPool request) {
- return blockingUnaryCall(
- getChannel(), getFundCommunityPoolMethod(), getCallOptions(), request);
- }
- }
-
- /**
- *
- * Msg defines the distribution Msg service.
- *
- */
- public static final class MsgFutureStub extends io.grpc.stub.AbstractStub {
- private MsgFutureStub(io.grpc.Channel channel) {
- super(channel);
- }
-
- private MsgFutureStub(io.grpc.Channel channel,
- io.grpc.CallOptions callOptions) {
- super(channel, callOptions);
- }
-
- @java.lang.Override
- protected MsgFutureStub build(io.grpc.Channel channel,
- io.grpc.CallOptions callOptions) {
- return new MsgFutureStub(channel, callOptions);
- }
-
- /**
- *